
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int sqlite3rebaser_rebase(sqlite3_rebaser *p,int nIn,void *pIn,int *pnOut,void **ppOut)

{
  int iVar1;
  int in_GS_OFFSET;
  sqlite3_changeset_iter *pIter;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xf5839;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  pIter = (sqlite3_changeset_iter *)0x0;
  iVar1 = sqlite3changeset_start(&pIter,nIn,pIn);
  if (iVar1 == 0) {
    iVar1 = sessionRebase((sqlite3_rebaser *)&(p->grp).pList,pIter,
                          (_func_int_void_ptr_void_ptr_int *)0x0,(void *)0x0,pnOut,ppOut);
    sqlite3changeset_finalize(pIter);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_000f5830(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                undefined4 param_5)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xf5839;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = 0;
  iVar1 = FUN_000f2ba0(&local_24,param_2,param_3);
  if (iVar1 == 0) {
    iVar1 = FUN_00070d10(0,param_4,param_5);
    FUN_000f3f50(local_24);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000f6410();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014d20
ADD EBX,0x5569b
SUB ESP,0x30
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x20],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x44]
MOV EDI,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0x1c],0x0
MOV EBP,dword ptr [ESP + 0x54]
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x4c]
LEA EAX,[ESP + 0x24]
PUSH EAX
CALL 0x000f2ba0
ADD ESP,0x10
MOV EDX,EAX
TEST EAX,EAX
JZ 0x000f5898
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EDX
JNZ 0x000f58c4
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
XOR ECX,ECX
LEA EAX,[ESI + 0x8]
PUSH EBP
PUSH EDI
PUSH 0x0
MOV EDX,dword ptr [ESP + 0x28]
CALL 0x00070d10
MOV dword ptr [ESP + 0x1c],EAX
POP EAX
PUSH dword ptr [ESP + 0x24]
CALL 0x000f3f50
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x000f587d
CALL 0x000f6410
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_000f5830(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf5839;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  iVar1 = FUN_000f2ba0(&local_24,param_2,param_3);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00070d10(0,param_4,param_5);\n    FUN_000f3f50(local_24);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f6410();\n}\n\n" comment (function_definition "int FUN_000f5830(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf5839;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  iVar1 = FUN_000f2ba0(&local_24,param_2,param_3);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00070d10(0,param_4,param_5);\n    FUN_000f3f50(local_24);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f6410();\n}" primitive_type (function_declarator "FUN_000f5830(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf5839;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  iVar1 = FUN_000f2ba0(&local_24,param_2,param_3);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00070d10(0,param_4,param_5);\n    FUN_000f3f50(local_24);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f6410();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xf5839;" (assignment_expression "uStack_14 = 0xf5839" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_000f2ba0(&local_24,param_2,param_3);" (assignment_expression "iVar1 = FUN_000f2ba0(&local_24,param_2,param_3)" identifier = (call_expression "FUN_000f2ba0(&local_24,param_2,param_3)" identifier (argument_list "(&local_24,param_2,param_3)" ( (pointer_expression "&local_24" & identifier) , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_00070d10(0,param_4,param_5);\n    FUN_000f3f50(local_24);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_00070d10(0,param_4,param_5);\n    FUN_000f3f50(local_24);\n  }" { (expression_statement "iVar1 = FUN_00070d10(0,param_4,param_5);" (assignment_expression "iVar1 = FUN_00070d10(0,param_4,param_5)" identifier = (call_expression "FUN_00070d10(0,param_4,param_5)" identifier (argument_list "(0,param_4,param_5)" ( number_literal , identifier , identifier )))) ;) (expression_statement "FUN_000f3f50(local_24);" (call_expression "FUN_000f3f50(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "FUN_000f6410();" (call_expression "FUN_000f6410()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint sqlite3rebaser_rebase(sqlite3_rebaser *p,int nIn,void *pIn,int *pnOut,void **ppOut)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  sqlite3_changeset_iter *pIter;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf5839;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pIter = (sqlite3_changeset_iter *)0x0;\n  iVar1 = sqlite3changeset_start(&pIter,nIn,pIn);\n  if (iVar1 == 0) {\n    iVar1 = sessionRebase((sqlite3_rebaser *)&(p->grp).pList,pIter,\n                          (_func_int_void_ptr_void_ptr_int *)0x0,(void *)0x0,pnOut,ppOut);\n    sqlite3changeset_finalize(pIter);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int sqlite3rebaser_rebase(sqlite3_rebaser *p,int nIn,void *pIn,int *pnOut,void **ppOut)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  sqlite3_changeset_iter *pIter;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf5839;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pIter = (sqlite3_changeset_iter *)0x0;\n  iVar1 = sqlite3changeset_start(&pIter,nIn,pIn);\n  if (iVar1 == 0) {\n    iVar1 = sessionRebase((sqlite3_rebaser *)&(p->grp).pList,pIter,\n                          (_func_int_void_ptr_void_ptr_int *)0x0,(void *)0x0,pnOut,ppOut);\n    sqlite3changeset_finalize(pIter);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "sqlite3rebaser_rebase(sqlite3_rebaser *p,int nIn,void *pIn,int *pnOut,void **ppOut)" identifier (parameter_list "(sqlite3_rebaser *p,int nIn,void *pIn,int *pnOut,void **ppOut)" ( (parameter_declaration "sqlite3_rebaser *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int nIn" primitive_type identifier) , (parameter_declaration "void *pIn" primitive_type (pointer_declarator "*pIn" * identifier)) , (parameter_declaration "int *pnOut" primitive_type (pointer_declarator "*pnOut" * identifier)) , (parameter_declaration "void **ppOut" primitive_type (pointer_declarator "**ppOut" * (pointer_declarator "*ppOut" * identifier))) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  sqlite3_changeset_iter *pIter;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf5839;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pIter = (sqlite3_changeset_iter *)0x0;\n  iVar1 = sqlite3changeset_start(&pIter,nIn,pIn);\n  if (iVar1 == 0) {\n    iVar1 = sessionRebase((sqlite3_rebaser *)&(p->grp).pList,pIter,\n                          (_func_int_void_ptr_void_ptr_int *)0x0,(void *)0x0,pnOut,ppOut);\n    sqlite3changeset_finalize(pIter);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "sqlite3_changeset_iter *pIter;" type_identifier (pointer_declarator "*pIter" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xf5839;" (assignment_expression "uStack_14 = 0xf5839" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pIter = (sqlite3_changeset_iter *)0x0;" (assignment_expression "pIter = (sqlite3_changeset_iter *)0x0" identifier = (cast_expression "(sqlite3_changeset_iter *)0x0" ( (type_descriptor "sqlite3_changeset_iter *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = sqlite3changeset_start(&pIter,nIn,pIn);" (assignment_expression "iVar1 = sqlite3changeset_start(&pIter,nIn,pIn)" identifier = (call_expression "sqlite3changeset_start(&pIter,nIn,pIn)" identifier (argument_list "(&pIter,nIn,pIn)" ( (pointer_expression "&pIter" & identifier) , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = sessionRebase((sqlite3_rebaser *)&(p->grp).pList,pIter,\n                          (_func_int_void_ptr_void_ptr_int *)0x0,(void *)0x0,pnOut,ppOut);\n    sqlite3changeset_finalize(pIter);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = sessionRebase((sqlite3_rebaser *)&(p->grp).pList,pIter,\n                          (_func_int_void_ptr_void_ptr_int *)0x0,(void *)0x0,pnOut,ppOut);\n    sqlite3changeset_finalize(pIter);\n  }" { (expression_statement "iVar1 = sessionRebase((sqlite3_rebaser *)&(p->grp).pList,pIter,\n                          (_func_int_void_ptr_void_ptr_int *)0x0,(void *)0x0,pnOut,ppOut);" (assignment_expression "iVar1 = sessionRebase((sqlite3_rebaser *)&(p->grp).pList,pIter,\n                          (_func_int_void_ptr_void_ptr_int *)0x0,(void *)0x0,pnOut,ppOut)" identifier = (call_expression "sessionRebase((sqlite3_rebaser *)&(p->grp).pList,pIter,\n                          (_func_int_void_ptr_void_ptr_int *)0x0,(void *)0x0,pnOut,ppOut)" identifier (argument_list "((sqlite3_rebaser *)&(p->grp).pList,pIter,\n                          (_func_int_void_ptr_void_ptr_int *)0x0,(void *)0x0,pnOut,ppOut)" ( (cast_expression "(sqlite3_rebaser *)&(p->grp).pList" ( (type_descriptor "sqlite3_rebaser *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(p->grp).pList" & (field_expression "(p->grp).pList" (parenthesized_expression "(p->grp)" ( (field_expression "p->grp" identifier -> field_identifier) )) . field_identifier))) , identifier , (cast_expression "(_func_int_void_ptr_void_ptr_int *)0x0" ( (type_descriptor "_func_int_void_ptr_void_ptr_int *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier )))) ;) (expression_statement "sqlite3changeset_finalize(pIter);" (call_expression "sqlite3changeset_finalize(pIter)" identifier (argument_list "(pIter)" ( identifier ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_000f5830(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf5839;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  iVar1 = FUN_000f2ba0(&local_24,param_2,param_3);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00070d10(0,param_4,param_5);\n    FUN_000f3f50(local_24);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_000f6410();\n}\n\n" (function_definition "int FUN_000f5830(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf5839;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  iVar1 = FUN_000f2ba0(&local_24,param_2,param_3);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00070d10(0,param_4,param_5);\n    FUN_000f3f50(local_24);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_000f6410();\n}" primitive_type (function_declarator "FUN_000f5830(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf5839;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  iVar1 = FUN_000f2ba0(&local_24,param_2,param_3);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00070d10(0,param_4,param_5);\n    FUN_000f3f50(local_24);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_000f6410();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xf5839;" (assignment_expression "uStack_14 = 0xf5839" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_000f2ba0(&local_24,param_2,param_3);" (assignment_expression "iVar1 = FUN_000f2ba0(&local_24,param_2,param_3)" identifier = (call_expression "FUN_000f2ba0(&local_24,param_2,param_3)" identifier (argument_list "(&local_24,param_2,param_3)" ( (pointer_expression "&local_24" & identifier) , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_00070d10(0,param_4,param_5);\n    FUN_000f3f50(local_24);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_00070d10(0,param_4,param_5);\n    FUN_000f3f50(local_24);\n  }" { (expression_statement "iVar1 = FUN_00070d10(0,param_4,param_5);" (assignment_expression "iVar1 = FUN_00070d10(0,param_4,param_5)" identifier = (call_expression "FUN_00070d10(0,param_4,param_5)" identifier (argument_list "(0,param_4,param_5)" ( number_literal , identifier , identifier )))) ;) (expression_statement "FUN_000f3f50(local_24);" (call_expression "FUN_000f3f50(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "FUN_000f6410();" (call_expression "FUN_000f6410()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_000f5830(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf5839;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  iVar1 = FUN_000f2ba0(&local_24,param_2,param_3);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00070d10(0,param_4,param_5);\n    FUN_000f3f50(local_24);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_000f6410();\n}" (primitive_type "int") (function_declarator "FUN_000f5830(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" (identifier "FUN_000f5830") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf5839;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  iVar1 = FUN_000f2ba0(&local_24,param_2,param_3);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00070d10(0,param_4,param_5);\n    FUN_000f3f50(local_24);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_000f6410();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0xf5839;" (assignment_expression "uStack_14 = 0xf5839" (identifier "uStack_14") (= "=") (number_literal "0xf5839")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = FUN_000f2ba0(&local_24,param_2,param_3);" (assignment_expression "iVar1 = FUN_000f2ba0(&local_24,param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_000f2ba0(&local_24,param_2,param_3)" (identifier "FUN_000f2ba0") (argument_list "(&local_24,param_2,param_3)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_00070d10(0,param_4,param_5);\n    FUN_000f3f50(local_24);\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_00070d10(0,param_4,param_5);\n    FUN_000f3f50(local_24);\n  }" ({ "{") (expression_statement "iVar1 = FUN_00070d10(0,param_4,param_5);" (assignment_expression "iVar1 = FUN_00070d10(0,param_4,param_5)" (identifier "iVar1") (= "=") (call_expression "FUN_00070d10(0,param_4,param_5)" (identifier "FUN_00070d10") (argument_list "(0,param_4,param_5)" (( "(") (number_literal "0") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "FUN_000f3f50(local_24);" (call_expression "FUN_000f3f50(local_24)" (identifier "FUN_000f3f50") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "FUN_000f6410();" (call_expression "FUN_000f6410()" (identifier "FUN_000f6410") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(type_1 *p,int nIn,void *pIn,int *pnOut,void **ppOut)

{
  int var_3;
  int var_1;
  type_2 *pIter;
  int var_6;
  type_3 uStack_14;
  
  uStack_14 = 0xf5839;
  var_6 = *(int *)(var_1 + 0x14);
  pIter = (type_2 *)0x0;
  var_3 = var_2(&pIter,nIn,pIn);
  if (var_3 == 0) {
    var_3 = var_4((type_1 *)&(p->grp).pList,pIter,
                          (type_4 *)0x0,(void *)0x0,pnOut,ppOut);
    var_5(pIter);
  }
  if (var_6 == *(int *)(var_1 + 0x14)) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                undefined4 param_5)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xf5839;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = 0;
  iVar1 = FUN_000f2ba0(&local_24,param_2,param_3);
  if (iVar1 == 0) {
    iVar1 = FUN_00070d10(0,param_4,param_5);
    FUN_000f3f50(local_24);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000f6410();
}

