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

void key_find_callback(void *vctx,char *fingerprint,char *comment,pageant_pubkey *key)

{
  int iVar1;
  pageant_pubkey *ppVar2;
  
  if (*(int *)((int)vctx + 8) != 0) {
                    /* WARNING: Load size is inaccurate */
    iVar1 = strcmp(*vctx,comment);
    if (iVar1 == 0) goto LAB_00045040;
  }
  if (*(int *)((int)vctx + 4) == 0) {
    return;
  }
                    /* WARNING: Load size is inaccurate */
  iVar1 = match_fingerprint_string(*vctx,fingerprint);
  if (iVar1 == 0) {
    return;
  }
LAB_00045040:
  if (*(int *)((int)vctx + 0xc) == 0) {
    ppVar2 = pageant_pubkey_copy(key);
    *(pageant_pubkey **)((int)vctx + 0xc) = ppVar2;
  }
  *(int *)((int)vctx + 0x10) = *(int *)((int)vctx + 0x10) + 1;
  return;
}



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

void FUN_00045010(undefined4 *param_1,undefined4 param_2,char *param_3,undefined4 param_4)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_1[2] != 0) {
    iVar1 = strcmp((char *)*param_1,param_3);
    if (iVar1 == 0) goto LAB_00045040;
  }
  if (param_1[1] == 0) {
    return;
  }
  iVar1 = FUN_00044f50(*param_1,param_2);
  if (iVar1 == 0) {
    return;
  }
LAB_00045040:
  if (param_1[3] == 0) {
    uVar2 = FUN_0001d980(param_4);
    param_1[3] = uVar2;
  }
  param_1[4] = param_1[4] + 1;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x000152d0
ADD EBX,0x29cd1
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESI + 0x8]
TEST ECX,ECX
JZ 0x00045058
SUB ESP,0x8
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESI]
CALL 0x000143b0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00045058
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x00045088
ADD dword ptr [ESI + 0x10],0x1
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EDX,dword ptr [ESI + 0x4]
TEST EDX,EDX
JNZ 0x00045068
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESI]
CALL 0x00044f50
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00045040
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH dword ptr [ESP + 0x28]
CALL 0x0001d980
ADD ESP,0x10
MOV dword ptr [ESI + 0xc],EAX
JMP 0x00045047
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00045010(undefined4 *param_1,undefined4 param_2,char *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[2] != 0) {\n    iVar1 = strcmp((char *)*param_1,param_3);\n    if (iVar1 == 0) goto LAB_00045040;\n  }\n  if (param_1[1] == 0) {\n    return;\n  }\n  iVar1 = FUN_00044f50(*param_1,param_2);\n  if (iVar1 == 0) {\n    return;\n  }\nLAB_00045040:\n  if (param_1[3] == 0) {\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }\n  param_1[4] = param_1[4] + 1;\n  return;\n}\n\n" comment (function_definition "void FUN_00045010(undefined4 *param_1,undefined4 param_2,char *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[2] != 0) {\n    iVar1 = strcmp((char *)*param_1,param_3);\n    if (iVar1 == 0) goto LAB_00045040;\n  }\n  if (param_1[1] == 0) {\n    return;\n  }\n  iVar1 = FUN_00044f50(*param_1,param_2);\n  if (iVar1 == 0) {\n    return;\n  }\nLAB_00045040:\n  if (param_1[3] == 0) {\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }\n  param_1[4] = param_1[4] + 1;\n  return;\n}" primitive_type (function_declarator "FUN_00045010(undefined4 *param_1,undefined4 param_2,char *param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,char *param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[2] != 0) {\n    iVar1 = strcmp((char *)*param_1,param_3);\n    if (iVar1 == 0) goto LAB_00045040;\n  }\n  if (param_1[1] == 0) {\n    return;\n  }\n  iVar1 = FUN_00044f50(*param_1,param_2);\n  if (iVar1 == 0) {\n    return;\n  }\nLAB_00045040:\n  if (param_1[3] == 0) {\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }\n  param_1[4] = param_1[4] + 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1[2] != 0) {\n    iVar1 = strcmp((char *)*param_1,param_3);\n    if (iVar1 == 0) goto LAB_00045040;\n  }" if (parenthesized_expression "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    iVar1 = strcmp((char *)*param_1,param_3);\n    if (iVar1 == 0) goto LAB_00045040;\n  }" { (expression_statement "iVar1 = strcmp((char *)*param_1,param_3);" (assignment_expression "iVar1 = strcmp((char *)*param_1,param_3)" identifier = (call_expression "strcmp((char *)*param_1,param_3)" identifier (argument_list "((char *)*param_1,param_3)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , identifier )))) ;) (if_statement "if (iVar1 == 0) goto LAB_00045040;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00045040;" goto statement_identifier ;)) })) (if_statement "if (param_1[1] == 0) {\n    return;\n  }" if (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = FUN_00044f50(*param_1,param_2);" (assignment_expression "iVar1 = FUN_00044f50(*param_1,param_2)" identifier = (call_expression "FUN_00044f50(*param_1,param_2)" identifier (argument_list "(*param_1,param_2)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00045040:\n  if (param_1[3] == 0) {\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }" statement_identifier : (if_statement "if (param_1[3] == 0) {\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }" if (parenthesized_expression "(param_1[3] == 0)" ( (binary_expression "param_1[3] == 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }" { (expression_statement "uVar2 = FUN_0001d980(param_4);" (assignment_expression "uVar2 = FUN_0001d980(param_4)" identifier = (call_expression "FUN_0001d980(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "param_1[3] = uVar2;" (assignment_expression "param_1[3] = uVar2" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "param_1[4] = param_1[4] + 1;" (assignment_expression "param_1[4] = param_1[4] + 1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (binary_expression "param_1[4] + 1" (subscript_expression "param_1[4]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid key_find_callback(void *vctx,char *fingerprint,char *comment,pageant_pubkey *key)\n\n{\n  int iVar1;\n  pageant_pubkey *ppVar2;\n  \n  if (*(int *)((int)vctx + 8) != 0) {\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = strcmp(*vctx,comment);\n    if (iVar1 == 0) goto LAB_00045040;\n  }\n  if (*(int *)((int)vctx + 4) == 0) {\n    return;\n  }\n                    /* WARNING: Load size is inaccurate */\n  iVar1 = match_fingerprint_string(*vctx,fingerprint);\n  if (iVar1 == 0) {\n    return;\n  }\nLAB_00045040:\n  if (*(int *)((int)vctx + 0xc) == 0) {\n    ppVar2 = pageant_pubkey_copy(key);\n    *(pageant_pubkey **)((int)vctx + 0xc) = ppVar2;\n  }\n  *(int *)((int)vctx + 0x10) = *(int *)((int)vctx + 0x10) + 1;\n  return;\n}\n\n" comment comment (function_definition "void key_find_callback(void *vctx,char *fingerprint,char *comment,pageant_pubkey *key)\n\n{\n  int iVar1;\n  pageant_pubkey *ppVar2;\n  \n  if (*(int *)((int)vctx + 8) != 0) {\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = strcmp(*vctx,comment);\n    if (iVar1 == 0) goto LAB_00045040;\n  }\n  if (*(int *)((int)vctx + 4) == 0) {\n    return;\n  }\n                    /* WARNING: Load size is inaccurate */\n  iVar1 = match_fingerprint_string(*vctx,fingerprint);\n  if (iVar1 == 0) {\n    return;\n  }\nLAB_00045040:\n  if (*(int *)((int)vctx + 0xc) == 0) {\n    ppVar2 = pageant_pubkey_copy(key);\n    *(pageant_pubkey **)((int)vctx + 0xc) = ppVar2;\n  }\n  *(int *)((int)vctx + 0x10) = *(int *)((int)vctx + 0x10) + 1;\n  return;\n}" primitive_type (function_declarator "key_find_callback(void *vctx,char *fingerprint,char *comment,pageant_pubkey *key)" identifier (parameter_list "(void *vctx,char *fingerprint,char *comment,pageant_pubkey *key)" ( (parameter_declaration "void *vctx" primitive_type (pointer_declarator "*vctx" * identifier)) , (parameter_declaration "char *fingerprint" primitive_type (pointer_declarator "*fingerprint" * identifier)) , (parameter_declaration "char *comment" primitive_type (pointer_declarator "*comment" * identifier)) , (parameter_declaration "pageant_pubkey *key" type_identifier (pointer_declarator "*key" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  pageant_pubkey *ppVar2;\n  \n  if (*(int *)((int)vctx + 8) != 0) {\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = strcmp(*vctx,comment);\n    if (iVar1 == 0) goto LAB_00045040;\n  }\n  if (*(int *)((int)vctx + 4) == 0) {\n    return;\n  }\n                    /* WARNING: Load size is inaccurate */\n  iVar1 = match_fingerprint_string(*vctx,fingerprint);\n  if (iVar1 == 0) {\n    return;\n  }\nLAB_00045040:\n  if (*(int *)((int)vctx + 0xc) == 0) {\n    ppVar2 = pageant_pubkey_copy(key);\n    *(pageant_pubkey **)((int)vctx + 0xc) = ppVar2;\n  }\n  *(int *)((int)vctx + 0x10) = *(int *)((int)vctx + 0x10) + 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "pageant_pubkey *ppVar2;" type_identifier (pointer_declarator "*ppVar2" * identifier) ;) (if_statement "if (*(int *)((int)vctx + 8) != 0) {\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = strcmp(*vctx,comment);\n    if (iVar1 == 0) goto LAB_00045040;\n  }" if (parenthesized_expression "(*(int *)((int)vctx + 8) != 0)" ( (binary_expression "*(int *)((int)vctx + 8) != 0" (pointer_expression "*(int *)((int)vctx + 8)" * (cast_expression "(int *)((int)vctx + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vctx + 8)" ( (binary_expression "(int)vctx + 8" (cast_expression "(int)vctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = strcmp(*vctx,comment);\n    if (iVar1 == 0) goto LAB_00045040;\n  }" { comment (expression_statement "iVar1 = strcmp(*vctx,comment);" (assignment_expression "iVar1 = strcmp(*vctx,comment)" identifier = (call_expression "strcmp(*vctx,comment)" identifier (argument_list "(*vctx,comment)" ( (pointer_expression "*vctx" * identifier) , identifier )))) ;) (if_statement "if (iVar1 == 0) goto LAB_00045040;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00045040;" goto statement_identifier ;)) })) (if_statement "if (*(int *)((int)vctx + 4) == 0) {\n    return;\n  }" if (parenthesized_expression "(*(int *)((int)vctx + 4) == 0)" ( (binary_expression "*(int *)((int)vctx + 4) == 0" (pointer_expression "*(int *)((int)vctx + 4)" * (cast_expression "(int *)((int)vctx + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vctx + 4)" ( (binary_expression "(int)vctx + 4" (cast_expression "(int)vctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "iVar1 = match_fingerprint_string(*vctx,fingerprint);" (assignment_expression "iVar1 = match_fingerprint_string(*vctx,fingerprint)" identifier = (call_expression "match_fingerprint_string(*vctx,fingerprint)" identifier (argument_list "(*vctx,fingerprint)" ( (pointer_expression "*vctx" * identifier) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00045040:\n  if (*(int *)((int)vctx + 0xc) == 0) {\n    ppVar2 = pageant_pubkey_copy(key);\n    *(pageant_pubkey **)((int)vctx + 0xc) = ppVar2;\n  }" statement_identifier : (if_statement "if (*(int *)((int)vctx + 0xc) == 0) {\n    ppVar2 = pageant_pubkey_copy(key);\n    *(pageant_pubkey **)((int)vctx + 0xc) = ppVar2;\n  }" if (parenthesized_expression "(*(int *)((int)vctx + 0xc) == 0)" ( (binary_expression "*(int *)((int)vctx + 0xc) == 0" (pointer_expression "*(int *)((int)vctx + 0xc)" * (cast_expression "(int *)((int)vctx + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vctx + 0xc)" ( (binary_expression "(int)vctx + 0xc" (cast_expression "(int)vctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    ppVar2 = pageant_pubkey_copy(key);\n    *(pageant_pubkey **)((int)vctx + 0xc) = ppVar2;\n  }" { (expression_statement "ppVar2 = pageant_pubkey_copy(key);" (assignment_expression "ppVar2 = pageant_pubkey_copy(key)" identifier = (call_expression "pageant_pubkey_copy(key)" identifier (argument_list "(key)" ( identifier )))) ;) (expression_statement "*(pageant_pubkey **)((int)vctx + 0xc) = ppVar2;" (assignment_expression "*(pageant_pubkey **)((int)vctx + 0xc) = ppVar2" (pointer_expression "*(pageant_pubkey **)((int)vctx + 0xc)" * (cast_expression "(pageant_pubkey **)((int)vctx + 0xc)" ( (type_descriptor "pageant_pubkey **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)vctx + 0xc)" ( (binary_expression "(int)vctx + 0xc" (cast_expression "(int)vctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) }))) (expression_statement "*(int *)((int)vctx + 0x10) = *(int *)((int)vctx + 0x10) + 1;" (assignment_expression "*(int *)((int)vctx + 0x10) = *(int *)((int)vctx + 0x10) + 1" (pointer_expression "*(int *)((int)vctx + 0x10)" * (cast_expression "(int *)((int)vctx + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vctx + 0x10)" ( (binary_expression "(int)vctx + 0x10" (cast_expression "(int)vctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((int)vctx + 0x10) + 1" (pointer_expression "*(int *)((int)vctx + 0x10)" * (cast_expression "(int *)((int)vctx + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vctx + 0x10)" ( (binary_expression "(int)vctx + 0x10" (cast_expression "(int)vctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00045010(undefined4 *param_1,undefined4 param_2,char *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[2] != 0) {\n    iVar1 = strcmp((char *)*param_1,param_3);\n    if (iVar1 == 0) goto LAB_00045040;\n  }\n  if (param_1[1] == 0) {\n    return;\n  }\n  iVar1 = FUN_00044f50(*param_1,param_2);\n  if (iVar1 == 0) {\n    return;\n  }\nLAB_00045040:\n  if (param_1[3] == 0) {\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }\n  param_1[4] = param_1[4] + 1;\n  return;\n}\n\n" (function_definition "void FUN_00045010(undefined4 *param_1,undefined4 param_2,char *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[2] != 0) {\n    iVar1 = strcmp((char *)*param_1,param_3);\n    if (iVar1 == 0) goto LAB_00045040;\n  }\n  if (param_1[1] == 0) {\n    return;\n  }\n  iVar1 = FUN_00044f50(*param_1,param_2);\n  if (iVar1 == 0) {\n    return;\n  }\nLAB_00045040:\n  if (param_1[3] == 0) {\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }\n  param_1[4] = param_1[4] + 1;\n  return;\n}" primitive_type (function_declarator "FUN_00045010(undefined4 *param_1,undefined4 param_2,char *param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,char *param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[2] != 0) {\n    iVar1 = strcmp((char *)*param_1,param_3);\n    if (iVar1 == 0) goto LAB_00045040;\n  }\n  if (param_1[1] == 0) {\n    return;\n  }\n  iVar1 = FUN_00044f50(*param_1,param_2);\n  if (iVar1 == 0) {\n    return;\n  }\nLAB_00045040:\n  if (param_1[3] == 0) {\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }\n  param_1[4] = param_1[4] + 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1[2] != 0) {\n    iVar1 = strcmp((char *)*param_1,param_3);\n    if (iVar1 == 0) goto LAB_00045040;\n  }" if (parenthesized_expression "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    iVar1 = strcmp((char *)*param_1,param_3);\n    if (iVar1 == 0) goto LAB_00045040;\n  }" { (expression_statement "iVar1 = strcmp((char *)*param_1,param_3);" (assignment_expression "iVar1 = strcmp((char *)*param_1,param_3)" identifier = (call_expression "strcmp((char *)*param_1,param_3)" identifier (argument_list "((char *)*param_1,param_3)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , identifier )))) ;) (if_statement "if (iVar1 == 0) goto LAB_00045040;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00045040;" goto statement_identifier ;)) })) (if_statement "if (param_1[1] == 0) {\n    return;\n  }" if (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = FUN_00044f50(*param_1,param_2);" (assignment_expression "iVar1 = FUN_00044f50(*param_1,param_2)" identifier = (call_expression "FUN_00044f50(*param_1,param_2)" identifier (argument_list "(*param_1,param_2)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00045040:\n  if (param_1[3] == 0) {\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }" statement_identifier : (if_statement "if (param_1[3] == 0) {\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }" if (parenthesized_expression "(param_1[3] == 0)" ( (binary_expression "param_1[3] == 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }" { (expression_statement "uVar2 = FUN_0001d980(param_4);" (assignment_expression "uVar2 = FUN_0001d980(param_4)" identifier = (call_expression "FUN_0001d980(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "param_1[3] = uVar2;" (assignment_expression "param_1[3] = uVar2" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "param_1[4] = param_1[4] + 1;" (assignment_expression "param_1[4] = param_1[4] + 1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (binary_expression "param_1[4] + 1" (subscript_expression "param_1[4]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00045010(undefined4 *param_1,undefined4 param_2,char *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[2] != 0) {\n    iVar1 = strcmp((char *)*param_1,param_3);\n    if (iVar1 == 0) goto LAB_00045040;\n  }\n  if (param_1[1] == 0) {\n    return;\n  }\n  iVar1 = FUN_00044f50(*param_1,param_2);\n  if (iVar1 == 0) {\n    return;\n  }\nLAB_00045040:\n  if (param_1[3] == 0) {\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }\n  param_1[4] = param_1[4] + 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00045010(undefined4 *param_1,undefined4 param_2,char *param_3,undefined4 param_4)" (identifier "FUN_00045010") (parameter_list "(undefined4 *param_1,undefined4 param_2,char *param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[2] != 0) {\n    iVar1 = strcmp((char *)*param_1,param_3);\n    if (iVar1 == 0) goto LAB_00045040;\n  }\n  if (param_1[1] == 0) {\n    return;\n  }\n  iVar1 = FUN_00044f50(*param_1,param_2);\n  if (iVar1 == 0) {\n    return;\n  }\nLAB_00045040:\n  if (param_1[3] == 0) {\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }\n  param_1[4] = param_1[4] + 1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (param_1[2] != 0) {\n    iVar1 = strcmp((char *)*param_1,param_3);\n    if (iVar1 == 0) goto LAB_00045040;\n  }" (if "if") (parenthesized_expression "(param_1[2] != 0)" (( "(") (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = strcmp((char *)*param_1,param_3);\n    if (iVar1 == 0) goto LAB_00045040;\n  }" ({ "{") (expression_statement "iVar1 = strcmp((char *)*param_1,param_3);" (assignment_expression "iVar1 = strcmp((char *)*param_1,param_3)" (identifier "iVar1") (= "=") (call_expression "strcmp((char *)*param_1,param_3)" (identifier "strcmp") (argument_list "((char *)*param_1,param_3)" (( "(") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) goto LAB_00045040;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00045040;" (goto "goto") (statement_identifier "LAB_00045040") (; ";"))) (} "}"))) (if_statement "if (param_1[1] == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_1[1] == 0)" (( "(") (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_00044f50(*param_1,param_2);" (assignment_expression "iVar1 = FUN_00044f50(*param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_00044f50(*param_1,param_2)" (identifier "FUN_00044f50") (argument_list "(*param_1,param_2)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_00045040:\n  if (param_1[3] == 0) {\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }" (statement_identifier "LAB_00045040") (: ":") (if_statement "if (param_1[3] == 0) {\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }" (if "if") (parenthesized_expression "(param_1[3] == 0)" (( "(") (binary_expression "param_1[3] == 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = FUN_0001d980(param_4);\n    param_1[3] = uVar2;\n  }" ({ "{") (expression_statement "uVar2 = FUN_0001d980(param_4);" (assignment_expression "uVar2 = FUN_0001d980(param_4)" (identifier "uVar2") (= "=") (call_expression "FUN_0001d980(param_4)" (identifier "FUN_0001d980") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (expression_statement "param_1[3] = uVar2;" (assignment_expression "param_1[3] = uVar2" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (} "}")))) (expression_statement "param_1[4] = param_1[4] + 1;" (assignment_expression "param_1[4] = param_1[4] + 1" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (binary_expression "param_1[4] + 1" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void *vctx,char *fingerprint,char *comment,type_1 *key)

{
  int var_2;
  type_1 *ppVar2;
  
  if (*(int *)((int)vctx + 8) != 0) {
                    /* WARNING: Load size is inaccurate */
    var_2 = var_1(*vctx,comment);
    if (var_2 == 0) goto LAB_00045040;
  }
  if (*(int *)((int)vctx + 4) == 0) {
    return;
  }
                    /* WARNING: Load size is inaccurate */
  var_2 = var_3(*vctx,fingerprint);
  if (var_2 == 0) {
    return;
  }
LAB_00045040:
  if (*(int *)((int)vctx + 0xc) == 0) {
    ppVar2 = var_4(key);
    *(type_1 **)((int)vctx + 0xc) = ppVar2;
  }
  *(int *)((int)vctx + 0x10) = *(int *)((int)vctx + 0x10) + 1;
  return;
}


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

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

void MASKED(undefined4 *param_1,undefined4 param_2,char *param_3,undefined4 param_4)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_1[2] != 0) {
    iVar1 = strcmp((char *)*param_1,param_3);
    if (iVar1 == 0) goto LAB_00045040;
  }
  if (param_1[1] == 0) {
    return;
  }
  iVar1 = FUN_00044f50(*param_1,param_2);
  if (iVar1 == 0) {
    return;
  }
LAB_00045040:
  if (param_1[3] == 0) {
    uVar2 = FUN_0001d980(param_4);
    param_1[3] = uVar2;
  }
  param_1[4] = param_1[4] + 1;
  return;
}

