
/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */

void __regparm3 checkPtrmap(IntegrityCk *pCheck,Pgno iChild,u8 eType,Pgno iParent)

{
  int iVar1;
  int in_GS_OFFSET;
  u8 ePtrmapType;
  Pgno iPtrmapParent;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x3efed;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = ptrmapGet(pCheck->pBt,iChild,&ePtrmapType,&iPtrmapParent);
  if (iVar1 == 0) {
    if ((ePtrmapType != eType) || (iParent != iPtrmapParent)) {
      checkAppendMsg(pCheck,"Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)",iChild,eType,
                     iParent,(uint)ePtrmapType,iPtrmapParent);
    }
  }
  else {
    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {
      pCheck->bOomFault = 1;
    }
    checkAppendMsg(pCheck,"Failed to read ptrmap key=%d",iChild);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



void __regparm3 FUN_0003efe0(int param_1,undefined4 param_2,char param_3,int param_4)

{
  int iVar1;
  undefined4 extraout_EDX;
  int unaff_EBP;
  int in_GS_OFFSET;
  char local_25;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x3efed;
  FUN_000a9503();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = FUN_00039cb0(&local_24);
  if (iVar1 == 0) {
    if ((local_25 != param_3) || (param_4 != local_24)) {
      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);
    }
  }
  else {
    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {
      *(undefined4 *)(param_1 + 0x18) = 1;
    }
    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a9ea0();
}


PUSH EBP
PUSH EDI
MOV EDI,ECX
PUSH ESI
PUSH EBX
MOV EBX,EAX
CALL 0x000a9503
ADD EBP,0x9f013
SUB ESP,0x1c
MOV ESI,EDX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
LEA ECX,[ESP + 0x7]
SUB ESP,0xc
LEA EAX,[ESP + 0x14]
PUSH EAX
MOV EAX,dword ptr [EBX]
CALL 0x00039cb0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0003f058
CMP EAX,0x7
JZ 0x0003f090
CMP EAX,0xc0a
JZ 0x0003f090
LEA EAX,[EBP + 0xfffcc44e]
SUB ESP,0x4
PUSH ESI
PUSH EAX
PUSH EBX
CALL 0x0003ef40
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0003f099
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOVZX EAX,byte ptr [ESP + 0x7]
MOV ECX,EDI
MOV EDX,dword ptr [ESP + 0x8]
CMP AL,CL
JNZ 0x0003f06d
CMP dword ptr [ESP + 0x30],EDX
JZ 0x0003f03e
SUB ESP,0x4
PUSH EDX
PUSH EAX
MOV EAX,EDI
MOVZX EDI,AL
LEA EAX,[EBP + 0xfffce940]
PUSH dword ptr [ESP + 0x3c]
PUSH EDI
PUSH ESI
PUSH EAX
PUSH EBX
CALL 0x0003ef40
ADD ESP,0x20
JMP 0x0003f03e
MOV dword ptr [EBX + 0x18],0x1
JMP 0x0003f02a
CALL 0x000a9ea0
(translation_unit "void __regparm3 FUN_0003efe0(int param_1,undefined4 param_2,char param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 extraout_EDX;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_25;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3efed;\n  FUN_000a9503();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_00039cb0(&local_24);\n  if (iVar1 == 0) {\n    if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}\n\n" (function_definition "void __regparm3 FUN_0003efe0(int param_1,undefined4 param_2,char param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 extraout_EDX;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_25;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3efed;\n  FUN_000a9503();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_00039cb0(&local_24);\n  if (iVar1 == 0) {\n    if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003efe0(int param_1,undefined4 param_2,char param_3,int param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,char param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 extraout_EDX;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_25;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3efed;\n  FUN_000a9503();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_00039cb0(&local_24);\n  if (iVar1 == 0) {\n    if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char local_25;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x3efed;" (assignment_expression "uStack_14 = 0x3efed" identifier = number_literal) ;) (expression_statement "FUN_000a9503();" (call_expression "FUN_000a9503()" identifier (argument_list "()" ( ))) ;) (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 "iVar1 = FUN_00039cb0(&local_24);" (assignment_expression "iVar1 = FUN_00039cb0(&local_24)" identifier = (call_expression "FUN_00039cb0(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }\n  }" { (if_statement "if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }" if (parenthesized_expression "((local_25 != param_3) || (param_4 != local_24))" ( (binary_expression "(local_25 != param_3) || (param_4 != local_24)" (parenthesized_expression "(local_25 != param_3)" ( (binary_expression "local_25 != param_3" identifier != identifier) )) || (parenthesized_expression "(param_4 != local_24)" ( (binary_expression "param_4 != local_24" identifier != identifier) ))) )) (compound_statement "{\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }" { (expression_statement "FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);" (call_expression "FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24)" identifier (argument_list "(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24)" ( identifier , (binary_expression "unaff_EBP + 0x6d953" identifier + number_literal) , identifier , identifier , identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }" else (compound_statement "{\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }" { (if_statement "if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }" if (parenthesized_expression "((iVar1 == 7) || (iVar1 == 0xc0a))" ( (binary_expression "(iVar1 == 7) || (iVar1 == 0xc0a)" (parenthesized_expression "(iVar1 == 7)" ( (binary_expression "iVar1 == 7" identifier == number_literal) )) || (parenthesized_expression "(iVar1 == 0xc0a)" ( (binary_expression "iVar1 == 0xc0a" identifier == number_literal) ))) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);" (call_expression "FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX)" identifier (argument_list "(param_1,unaff_EBP + 0x6b461,extraout_EDX)" ( identifier , (binary_expression "unaff_EBP + 0x6b461" identifier + number_literal) , identifier ))) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */\n\nvoid __regparm3 checkPtrmap(IntegrityCk *pCheck,Pgno iChild,u8 eType,Pgno iParent)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  u8 ePtrmapType;\n  Pgno iPtrmapParent;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3efed;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = ptrmapGet(pCheck->pBt,iChild,&ePtrmapType,&iPtrmapParent);\n  if (iVar1 == 0) {\n    if ((ePtrmapType != eType) || (iParent != iPtrmapParent)) {\n      checkAppendMsg(pCheck,"Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)",iChild,eType,\n                     iParent,(uint)ePtrmapType,iPtrmapParent);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      pCheck->bOomFault = 1;\n    }\n    checkAppendMsg(pCheck,"Failed to read ptrmap key=%d",iChild);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "void __regparm3 checkPtrmap(IntegrityCk *pCheck,Pgno iChild,u8 eType,Pgno iParent)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  u8 ePtrmapType;\n  Pgno iPtrmapParent;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3efed;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = ptrmapGet(pCheck->pBt,iChild,&ePtrmapType,&iPtrmapParent);\n  if (iVar1 == 0) {\n    if ((ePtrmapType != eType) || (iParent != iPtrmapParent)) {\n      checkAppendMsg(pCheck,"Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)",iChild,eType,\n                     iParent,(uint)ePtrmapType,iPtrmapParent);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      pCheck->bOomFault = 1;\n    }\n    checkAppendMsg(pCheck,"Failed to read ptrmap key=%d",iChild);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "checkPtrmap(IntegrityCk *pCheck,Pgno iChild,u8 eType,Pgno iParent)" identifier (parameter_list "(IntegrityCk *pCheck,Pgno iChild,u8 eType,Pgno iParent)" ( (parameter_declaration "IntegrityCk *pCheck" type_identifier (pointer_declarator "*pCheck" * identifier)) , (parameter_declaration "Pgno iChild" type_identifier identifier) , (parameter_declaration "u8 eType" type_identifier identifier) , (parameter_declaration "Pgno iParent" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  u8 ePtrmapType;\n  Pgno iPtrmapParent;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3efed;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = ptrmapGet(pCheck->pBt,iChild,&ePtrmapType,&iPtrmapParent);\n  if (iVar1 == 0) {\n    if ((ePtrmapType != eType) || (iParent != iPtrmapParent)) {\n      checkAppendMsg(pCheck,"Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)",iChild,eType,\n                     iParent,(uint)ePtrmapType,iPtrmapParent);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      pCheck->bOomFault = 1;\n    }\n    checkAppendMsg(pCheck,"Failed to read ptrmap key=%d",iChild);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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 "u8 ePtrmapType;" type_identifier identifier ;) (declaration "Pgno iPtrmapParent;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x3efed;" (assignment_expression "uStack_14 = 0x3efed" 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 "iVar1 = ptrmapGet(pCheck->pBt,iChild,&ePtrmapType,&iPtrmapParent);" (assignment_expression "iVar1 = ptrmapGet(pCheck->pBt,iChild,&ePtrmapType,&iPtrmapParent)" identifier = (call_expression "ptrmapGet(pCheck->pBt,iChild,&ePtrmapType,&iPtrmapParent)" identifier (argument_list "(pCheck->pBt,iChild,&ePtrmapType,&iPtrmapParent)" ( (field_expression "pCheck->pBt" identifier -> field_identifier) , identifier , (pointer_expression "&ePtrmapType" & identifier) , (pointer_expression "&iPtrmapParent" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    if ((ePtrmapType != eType) || (iParent != iPtrmapParent)) {\n      checkAppendMsg(pCheck,"Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)",iChild,eType,\n                     iParent,(uint)ePtrmapType,iPtrmapParent);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      pCheck->bOomFault = 1;\n    }\n    checkAppendMsg(pCheck,"Failed to read ptrmap key=%d",iChild);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((ePtrmapType != eType) || (iParent != iPtrmapParent)) {\n      checkAppendMsg(pCheck,"Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)",iChild,eType,\n                     iParent,(uint)ePtrmapType,iPtrmapParent);\n    }\n  }" { (if_statement "if ((ePtrmapType != eType) || (iParent != iPtrmapParent)) {\n      checkAppendMsg(pCheck,"Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)",iChild,eType,\n                     iParent,(uint)ePtrmapType,iPtrmapParent);\n    }" if (parenthesized_expression "((ePtrmapType != eType) || (iParent != iPtrmapParent))" ( (binary_expression "(ePtrmapType != eType) || (iParent != iPtrmapParent)" (parenthesized_expression "(ePtrmapType != eType)" ( (binary_expression "ePtrmapType != eType" identifier != identifier) )) || (parenthesized_expression "(iParent != iPtrmapParent)" ( (binary_expression "iParent != iPtrmapParent" identifier != identifier) ))) )) (compound_statement "{\n      checkAppendMsg(pCheck,"Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)",iChild,eType,\n                     iParent,(uint)ePtrmapType,iPtrmapParent);\n    }" { (expression_statement "checkAppendMsg(pCheck,"Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)",iChild,eType,\n                     iParent,(uint)ePtrmapType,iPtrmapParent);" (call_expression "checkAppendMsg(pCheck,"Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)",iChild,eType,\n                     iParent,(uint)ePtrmapType,iPtrmapParent)" identifier (argument_list "(pCheck,"Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)",iChild,eType,\n                     iParent,(uint)ePtrmapType,iPtrmapParent)" ( identifier , (string_literal ""Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)"" " string_content ") , identifier , identifier , identifier , (cast_expression "(uint)ePtrmapType" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier ))) ;) })) }) (else_clause "else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      pCheck->bOomFault = 1;\n    }\n    checkAppendMsg(pCheck,"Failed to read ptrmap key=%d",iChild);\n  }" else (compound_statement "{\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      pCheck->bOomFault = 1;\n    }\n    checkAppendMsg(pCheck,"Failed to read ptrmap key=%d",iChild);\n  }" { (if_statement "if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      pCheck->bOomFault = 1;\n    }" if (parenthesized_expression "((iVar1 == 7) || (iVar1 == 0xc0a))" ( (binary_expression "(iVar1 == 7) || (iVar1 == 0xc0a)" (parenthesized_expression "(iVar1 == 7)" ( (binary_expression "iVar1 == 7" identifier == number_literal) )) || (parenthesized_expression "(iVar1 == 0xc0a)" ( (binary_expression "iVar1 == 0xc0a" identifier == number_literal) ))) )) (compound_statement "{\n      pCheck->bOomFault = 1;\n    }" { (expression_statement "pCheck->bOomFault = 1;" (assignment_expression "pCheck->bOomFault = 1" (field_expression "pCheck->bOomFault" identifier -> field_identifier) = number_literal) ;) })) (expression_statement "checkAppendMsg(pCheck,"Failed to read ptrmap key=%d",iChild);" (call_expression "checkAppendMsg(pCheck,"Failed to read ptrmap key=%d",iChild)" identifier (argument_list "(pCheck,"Failed to read ptrmap key=%d",iChild)" ( identifier , (string_literal ""Failed to read ptrmap key=%d"" " string_content ") , identifier ))) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __regparm3 FUN_0003efe0(int param_1,undefined4 param_2,char param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 extraout_EDX;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_25;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3efed;\n  FUN_000a9503();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_00039cb0(&local_24);\n  if (iVar1 == 0) {\n    if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a9ea0();\n}\n\n" (function_definition "void __regparm3 FUN_0003efe0(int param_1,undefined4 param_2,char param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 extraout_EDX;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_25;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3efed;\n  FUN_000a9503();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_00039cb0(&local_24);\n  if (iVar1 == 0) {\n    if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a9ea0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003efe0(int param_1,undefined4 param_2,char param_3,int param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,char param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 extraout_EDX;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_25;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3efed;\n  FUN_000a9503();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_00039cb0(&local_24);\n  if (iVar1 == 0) {\n    if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a9ea0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char local_25;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x3efed;" (assignment_expression "uStack_14 = 0x3efed" identifier = number_literal) ;) (expression_statement "FUN_000a9503();" (call_expression "FUN_000a9503()" identifier (argument_list "()" ( ))) ;) (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 "iVar1 = FUN_00039cb0(&local_24);" (assignment_expression "iVar1 = FUN_00039cb0(&local_24)" identifier = (call_expression "FUN_00039cb0(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }\n  }" { (if_statement "if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }" if (parenthesized_expression "((local_25 != param_3) || (param_4 != local_24))" ( (binary_expression "(local_25 != param_3) || (param_4 != local_24)" (parenthesized_expression "(local_25 != param_3)" ( (binary_expression "local_25 != param_3" identifier != identifier) )) || (parenthesized_expression "(param_4 != local_24)" ( (binary_expression "param_4 != local_24" identifier != identifier) ))) )) (compound_statement "{\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }" { (expression_statement "FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);" (call_expression "FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24)" identifier (argument_list "(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24)" ( identifier , (binary_expression "unaff_EBP + 0x6d953" identifier + number_literal) , identifier , identifier , identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }" else (compound_statement "{\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }" { (if_statement "if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }" if (parenthesized_expression "((iVar1 == 7) || (iVar1 == 0xc0a))" ( (binary_expression "(iVar1 == 7) || (iVar1 == 0xc0a)" (parenthesized_expression "(iVar1 == 7)" ( (binary_expression "iVar1 == 7" identifier == number_literal) )) || (parenthesized_expression "(iVar1 == 0xc0a)" ( (binary_expression "iVar1 == 0xc0a" identifier == number_literal) ))) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);" (call_expression "FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX)" identifier (argument_list "(param_1,unaff_EBP + 0x6b461,extraout_EDX)" ( identifier , (binary_expression "unaff_EBP + 0x6b461" identifier + number_literal) , identifier ))) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (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 ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) || (parenthesized_expression ( (binary_expression IDENT != IDENT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , 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 ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __regparm3 FUN_0003efe0(int param_1,undefined4 param_2,char param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 extraout_EDX;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_25;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3efed;\n  FUN_000a9503();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_00039cb0(&local_24);\n  if (iVar1 == 0) {\n    if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a9ea0();\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0003efe0(int param_1,undefined4 param_2,char param_3,int param_4)" (identifier "FUN_0003efe0") (parameter_list "(int param_1,undefined4 param_2,char param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 extraout_EDX;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_25;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3efed;\n  FUN_000a9503();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_00039cb0(&local_24);\n  if (iVar1 == 0) {\n    if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a9ea0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 extraout_EDX;" (type_identifier "undefined4") (identifier "extraout_EDX") (; ";")) (declaration "int unaff_EBP;" (primitive_type "int") (identifier "unaff_EBP") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "char local_25;" (primitive_type "char") (identifier "local_25") (; ";")) (declaration "int local_24;" (primitive_type "int") (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 = 0x3efed;" (assignment_expression "uStack_14 = 0x3efed" (identifier "uStack_14") (= "=") (number_literal "0x3efed")) (; ";")) (expression_statement "FUN_000a9503();" (call_expression "FUN_000a9503()" (identifier "FUN_000a9503") (argument_list "()" (( "(") () ")"))) (; ";")) (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 "iVar1 = FUN_00039cb0(&local_24);" (assignment_expression "iVar1 = FUN_00039cb0(&local_24)" (identifier "iVar1") (= "=") (call_expression "FUN_00039cb0(&local_24)" (identifier "FUN_00039cb0") (argument_list "(&local_24)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }\n  }\n  else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }\n  }" ({ "{") (if_statement "if ((local_25 != param_3) || (param_4 != local_24)) {\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }" (if "if") (parenthesized_expression "((local_25 != param_3) || (param_4 != local_24))" (( "(") (binary_expression "(local_25 != param_3) || (param_4 != local_24)" (parenthesized_expression "(local_25 != param_3)" (( "(") (binary_expression "local_25 != param_3" (identifier "local_25") (!= "!=") (identifier "param_3")) () ")")) (|| "||") (parenthesized_expression "(param_4 != local_24)" (( "(") (binary_expression "param_4 != local_24" (identifier "param_4") (!= "!=") (identifier "local_24")) () ")"))) () ")")) (compound_statement "{\n      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);\n    }" ({ "{") (expression_statement "FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);" (call_expression "FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24)" (identifier "FUN_0003ef40") (argument_list "(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24)" (( "(") (identifier "param_1") (, ",") (binary_expression "unaff_EBP + 0x6d953" (identifier "unaff_EBP") (+ "+") (number_literal "0x6d953")) (, ",") (identifier "extraout_EDX") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "local_25") (, ",") (identifier "local_24") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }" (else "else") (compound_statement "{\n    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }\n    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);\n  }" ({ "{") (if_statement "if ((iVar1 == 7) || (iVar1 == 0xc0a)) {\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }" (if "if") (parenthesized_expression "((iVar1 == 7) || (iVar1 == 0xc0a))" (( "(") (binary_expression "(iVar1 == 7) || (iVar1 == 0xc0a)" (parenthesized_expression "(iVar1 == 7)" (( "(") (binary_expression "iVar1 == 7" (identifier "iVar1") (== "==") (number_literal "7")) () ")")) (|| "||") (parenthesized_expression "(iVar1 == 0xc0a)" (( "(") (binary_expression "iVar1 == 0xc0a" (identifier "iVar1") (== "==") (number_literal "0xc0a")) () ")"))) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x18) = 1;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);" (call_expression "FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX)" (identifier "FUN_0003ef40") (argument_list "(param_1,unaff_EBP + 0x6b461,extraout_EDX)" (( "(") (identifier "param_1") (, ",") (binary_expression "unaff_EBP + 0x6b461" (identifier "unaff_EBP") (+ "+") (number_literal "0x6b461")) (, ",") (identifier "extraout_EDX") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" (identifier "FUN_000a9ea0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */

void __regparm3 function_1(type_1 *pCheck,type_2 iChild,type_3 var_5,type_2 var_6)

{
  int var_3;
  int var_1;
  type_3 var_4;
  type_2 var_7;
  int var_9;
  type_4 uStack_14;
  
  uStack_14 = 0x3efed;
  var_9 = *(int *)(var_1 + 0x14);
  var_3 = var_2(pCheck->pBt,iChild,&var_4,&var_7);
  if (var_3 == 0) {
    if ((var_4 != var_5) || (var_6 != var_7)) {
      var_8(pCheck,"Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)",iChild,var_5,
                     var_6,(type_5)var_4,var_7);
    }
  }
  else {
    if ((var_3 == 7) || (var_3 == 0xc0a)) {
      pCheck->bOomFault = 1;
    }
    var_8(pCheck,"Failed to read ptrmap key=%d",iChild);
  }
  if (var_9 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) 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 (call_expression function: (identifier) arguments: (argument_list))) (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: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (identifier) (identifier) (identifier))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (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))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

void __regparm3 MASKED(int param_1,undefined4 param_2,char param_3,int param_4)

{
  int iVar1;
  undefined4 extraout_EDX;
  int unaff_EBP;
  int in_GS_OFFSET;
  char local_25;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x3efed;
  FUN_000a9503();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = FUN_00039cb0(&local_24);
  if (iVar1 == 0) {
    if ((local_25 != param_3) || (param_4 != local_24)) {
      FUN_0003ef40(param_1,unaff_EBP + 0x6d953,extraout_EDX,param_3,param_4,local_25,local_24);
    }
  }
  else {
    if ((iVar1 == 7) || (iVar1 == 0xc0a)) {
      *(undefined4 *)(param_1 + 0x18) = 1;
    }
    FUN_0003ef40(param_1,unaff_EBP + 0x6b461,extraout_EDX);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a9ea0();
}

