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

bfd_boolean __regparm3
stab_record_variable
          (void *dhandle,stab_handle *info,char *name,debug_type type,debug_var_kind kind,
          bfd_vma val)

{
  stab_pending_var *psVar1;
  stab_pending_var *psVar2;
  bfd_boolean bVar3;
  
  if (((1 < kind - DEBUG_GLOBAL) && (info->within_function != 0)) &&
     ((info->gcc_compiled != 0 || (info->n_opt_found == 0)))) {
    psVar2 = (stab_pending_var *)xmalloc(0x14);
    psVar1 = info->pending;
    psVar2->name = name;
    psVar2->type = type;
    psVar2->next = psVar1;
    psVar2->kind = kind;
    psVar2->val = val;
    info->pending = psVar2;
    return 1;
  }
  bVar3 = debug_record_variable(dhandle,name,type,kind,val);
  return bVar3;
}



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

undefined4 __regparm3
FUN_0001fff0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5,
            undefined4 param_6)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  if (((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&
     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))) {
    puVar1 = (undefined4 *)xmalloc(0x14);
    uVar2 = *(undefined4 *)(param_2 + 0x40);
    puVar1[1] = param_3;
    puVar1[2] = param_4;
    *puVar1 = uVar2;
    puVar1[3] = param_5;
    puVar1[4] = param_6;
    *(undefined4 **)(param_2 + 0x40) = puVar1;
    return 1;
  }
  uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6);
  return uVar2;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x000165d0
ADD EBX,0x1f003
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x24]
LEA EDX,[EDI + -0x1]
CMP EDX,0x1
JBE 0x00020060
MOV EDX,dword ptr [ESI + 0x34]
TEST EDX,EDX
JZ 0x00020060
MOV ECX,dword ptr [ESI + 0x20]
TEST ECX,ECX
JNZ 0x00020027
MOV EDX,dword ptr [ESI + 0x24]
TEST EDX,EDX
JNZ 0x00020060
SUB ESP,0xc
PUSH 0x14
CALL 0x000132e0
MOV ECX,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESI + 0x40]
MOV dword ptr [EAX + 0x4],EBP
MOV dword ptr [EAX + 0x8],ECX
MOV ECX,dword ptr [ESP + 0x38]
ADD ESP,0x10
MOV dword ptr [EAX],EDX
MOV dword ptr [EAX + 0xc],EDI
MOV dword ptr [EAX + 0x10],ECX
MOV dword ptr [ESI + 0x40],EAX
ADD ESP,0xc
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [ESP + 0x34]
PUSH EDI
PUSH dword ptr [ESP + 0x34]
PUSH EBP
PUSH EAX
CALL 0x0001eba0
ADD ESP,0x20
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3\nFUN_0001fff0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5,\n            undefined4 param_6)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))) {\n    puVar1 = (undefined4 *)xmalloc(0x14);\n    uVar2 = *(undefined4 *)(param_2 + 0x40);\n    puVar1[1] = param_3;\n    puVar1[2] = param_4;\n    *puVar1 = uVar2;\n    puVar1[3] = param_5;\n    puVar1[4] = param_6;\n    *(undefined4 **)(param_2 + 0x40) = puVar1;\n    return 1;\n  }\n  uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6);\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 __regparm3\nFUN_0001fff0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5,\n            undefined4 param_6)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))) {\n    puVar1 = (undefined4 *)xmalloc(0x14);\n    uVar2 = *(undefined4 *)(param_2 + 0x40);\n    puVar1[1] = param_3;\n    puVar1[2] = param_4;\n    *puVar1 = uVar2;\n    puVar1[3] = param_5;\n    puVar1[4] = param_6;\n    *(undefined4 **)(param_2 + 0x40) = puVar1;\n    return 1;\n  }\n  uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6);\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001fff0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5,\n            undefined4 param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5,\n            undefined4 param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))) {\n    puVar1 = (undefined4 *)xmalloc(0x14);\n    uVar2 = *(undefined4 *)(param_2 + 0x40);\n    puVar1[1] = param_3;\n    puVar1[2] = param_4;\n    *puVar1 = uVar2;\n    puVar1[3] = param_5;\n    puVar1[4] = param_6;\n    *(undefined4 **)(param_2 + 0x40) = puVar1;\n    return 1;\n  }\n  uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6);\n  return uVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))) {\n    puVar1 = (undefined4 *)xmalloc(0x14);\n    uVar2 = *(undefined4 *)(param_2 + 0x40);\n    puVar1[1] = param_3;\n    puVar1[2] = param_4;\n    *puVar1 = uVar2;\n    puVar1[3] = param_5;\n    puVar1[4] = param_6;\n    *(undefined4 **)(param_2 + 0x40) = puVar1;\n    return 1;\n  }" if (parenthesized_expression "(((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0))))" ( (binary_expression "((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))" (parenthesized_expression "((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0))" ( (binary_expression "(1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)" (parenthesized_expression "(1 < param_5 - 1U)" ( (binary_expression "1 < param_5 - 1U" number_literal < (binary_expression "param_5 - 1U" identifier - number_literal)) )) && (parenthesized_expression "(*(int *)(param_2 + 0x34) != 0)" ( (binary_expression "*(int *)(param_2 + 0x34) != 0" (pointer_expression "*(int *)(param_2 + 0x34)" * (cast_expression "(int *)(param_2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))" ( (parenthesized_expression "(*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0))" ( (binary_expression "*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)" (binary_expression "*(int *)(param_2 + 0x20) != 0" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) != number_literal) || (parenthesized_expression "(*(int *)(param_2 + 0x24) == 0)" ( (binary_expression "*(int *)(param_2 + 0x24) == 0" (pointer_expression "*(int *)(param_2 + 0x24)" * (cast_expression "(int *)(param_2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) == number_literal) ))) )) ))) )) (compound_statement "{\n    puVar1 = (undefined4 *)xmalloc(0x14);\n    uVar2 = *(undefined4 *)(param_2 + 0x40);\n    puVar1[1] = param_3;\n    puVar1[2] = param_4;\n    *puVar1 = uVar2;\n    puVar1[3] = param_5;\n    puVar1[4] = param_6;\n    *(undefined4 **)(param_2 + 0x40) = puVar1;\n    return 1;\n  }" { (expression_statement "puVar1 = (undefined4 *)xmalloc(0x14);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x14)" identifier = (cast_expression "(undefined4 *)xmalloc(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x40);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x40)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x40)" * (cast_expression "(undefined4 *)(param_2 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x40)" ( (binary_expression "param_2 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = param_4;" (assignment_expression "puVar1[2] = param_4" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[3] = param_5;" (assignment_expression "puVar1[3] = param_5" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[4] = param_6;" (assignment_expression "puVar1[4] = param_6" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 **)(param_2 + 0x40) = puVar1;" (assignment_expression "*(undefined4 **)(param_2 + 0x40) = puVar1" (pointer_expression "*(undefined4 **)(param_2 + 0x40)" * (cast_expression "(undefined4 **)(param_2 + 0x40)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x40)" ( (binary_expression "param_2 + 0x40" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6)" identifier = (call_expression "FUN_0001eba0(param_1,param_3,param_4,param_5,param_6)" identifier (argument_list "(param_1,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean __regparm3\nstab_record_variable\n          (void *dhandle,stab_handle *info,char *name,debug_type type,debug_var_kind kind,\n          bfd_vma val)\n\n{\n  stab_pending_var *psVar1;\n  stab_pending_var *psVar2;\n  bfd_boolean bVar3;\n  \n  if (((1 < kind - DEBUG_GLOBAL) && (info->within_function != 0)) &&\n     ((info->gcc_compiled != 0 || (info->n_opt_found == 0)))) {\n    psVar2 = (stab_pending_var *)xmalloc(0x14);\n    psVar1 = info->pending;\n    psVar2->name = name;\n    psVar2->type = type;\n    psVar2->next = psVar1;\n    psVar2->kind = kind;\n    psVar2->val = val;\n    info->pending = psVar2;\n    return 1;\n  }\n  bVar3 = debug_record_variable(dhandle,name,type,kind,val);\n  return bVar3;\n}\n\n" comment (function_definition "bfd_boolean __regparm3\nstab_record_variable\n          (void *dhandle,stab_handle *info,char *name,debug_type type,debug_var_kind kind,\n          bfd_vma val)\n\n{\n  stab_pending_var *psVar1;\n  stab_pending_var *psVar2;\n  bfd_boolean bVar3;\n  \n  if (((1 < kind - DEBUG_GLOBAL) && (info->within_function != 0)) &&\n     ((info->gcc_compiled != 0 || (info->n_opt_found == 0)))) {\n    psVar2 = (stab_pending_var *)xmalloc(0x14);\n    psVar1 = info->pending;\n    psVar2->name = name;\n    psVar2->type = type;\n    psVar2->next = psVar1;\n    psVar2->kind = kind;\n    psVar2->val = val;\n    info->pending = psVar2;\n    return 1;\n  }\n  bVar3 = debug_record_variable(dhandle,name,type,kind,val);\n  return bVar3;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "stab_record_variable\n          (void *dhandle,stab_handle *info,char *name,debug_type type,debug_var_kind kind,\n          bfd_vma val)" identifier (parameter_list "(void *dhandle,stab_handle *info,char *name,debug_type type,debug_var_kind kind,\n          bfd_vma val)" ( (parameter_declaration "void *dhandle" primitive_type (pointer_declarator "*dhandle" * identifier)) , (parameter_declaration "stab_handle *info" type_identifier (pointer_declarator "*info" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "debug_type type" type_identifier identifier) , (parameter_declaration "debug_var_kind kind" type_identifier identifier) , (parameter_declaration "bfd_vma val" type_identifier identifier) ))) (compound_statement "{\n  stab_pending_var *psVar1;\n  stab_pending_var *psVar2;\n  bfd_boolean bVar3;\n  \n  if (((1 < kind - DEBUG_GLOBAL) && (info->within_function != 0)) &&\n     ((info->gcc_compiled != 0 || (info->n_opt_found == 0)))) {\n    psVar2 = (stab_pending_var *)xmalloc(0x14);\n    psVar1 = info->pending;\n    psVar2->name = name;\n    psVar2->type = type;\n    psVar2->next = psVar1;\n    psVar2->kind = kind;\n    psVar2->val = val;\n    info->pending = psVar2;\n    return 1;\n  }\n  bVar3 = debug_record_variable(dhandle,name,type,kind,val);\n  return bVar3;\n}" { (declaration "stab_pending_var *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "stab_pending_var *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "bfd_boolean bVar3;" type_identifier identifier ;) (if_statement "if (((1 < kind - DEBUG_GLOBAL) && (info->within_function != 0)) &&\n     ((info->gcc_compiled != 0 || (info->n_opt_found == 0)))) {\n    psVar2 = (stab_pending_var *)xmalloc(0x14);\n    psVar1 = info->pending;\n    psVar2->name = name;\n    psVar2->type = type;\n    psVar2->next = psVar1;\n    psVar2->kind = kind;\n    psVar2->val = val;\n    info->pending = psVar2;\n    return 1;\n  }" if (parenthesized_expression "(((1 < kind - DEBUG_GLOBAL) && (info->within_function != 0)) &&\n     ((info->gcc_compiled != 0 || (info->n_opt_found == 0))))" ( (binary_expression "((1 < kind - DEBUG_GLOBAL) && (info->within_function != 0)) &&\n     ((info->gcc_compiled != 0 || (info->n_opt_found == 0)))" (parenthesized_expression "((1 < kind - DEBUG_GLOBAL) && (info->within_function != 0))" ( (binary_expression "(1 < kind - DEBUG_GLOBAL) && (info->within_function != 0)" (parenthesized_expression "(1 < kind - DEBUG_GLOBAL)" ( (binary_expression "1 < kind - DEBUG_GLOBAL" number_literal < (binary_expression "kind - DEBUG_GLOBAL" identifier - identifier)) )) && (parenthesized_expression "(info->within_function != 0)" ( (binary_expression "info->within_function != 0" (field_expression "info->within_function" identifier -> field_identifier) != number_literal) ))) )) && (parenthesized_expression "((info->gcc_compiled != 0 || (info->n_opt_found == 0)))" ( (parenthesized_expression "(info->gcc_compiled != 0 || (info->n_opt_found == 0))" ( (binary_expression "info->gcc_compiled != 0 || (info->n_opt_found == 0)" (binary_expression "info->gcc_compiled != 0" (field_expression "info->gcc_compiled" identifier -> field_identifier) != number_literal) || (parenthesized_expression "(info->n_opt_found == 0)" ( (binary_expression "info->n_opt_found == 0" (field_expression "info->n_opt_found" identifier -> field_identifier) == number_literal) ))) )) ))) )) (compound_statement "{\n    psVar2 = (stab_pending_var *)xmalloc(0x14);\n    psVar1 = info->pending;\n    psVar2->name = name;\n    psVar2->type = type;\n    psVar2->next = psVar1;\n    psVar2->kind = kind;\n    psVar2->val = val;\n    info->pending = psVar2;\n    return 1;\n  }" { (expression_statement "psVar2 = (stab_pending_var *)xmalloc(0x14);" (assignment_expression "psVar2 = (stab_pending_var *)xmalloc(0x14)" identifier = (cast_expression "(stab_pending_var *)xmalloc(0x14)" ( (type_descriptor "stab_pending_var *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "psVar1 = info->pending;" (assignment_expression "psVar1 = info->pending" identifier = (field_expression "info->pending" identifier -> field_identifier)) ;) (expression_statement "psVar2->name = name;" (assignment_expression "psVar2->name = name" (field_expression "psVar2->name" identifier -> field_identifier) = identifier) ;) (expression_statement "psVar2->type = type;" (assignment_expression "psVar2->type = type" (field_expression "psVar2->type" identifier -> field_identifier) = identifier) ;) (expression_statement "psVar2->next = psVar1;" (assignment_expression "psVar2->next = psVar1" (field_expression "psVar2->next" identifier -> field_identifier) = identifier) ;) (expression_statement "psVar2->kind = kind;" (assignment_expression "psVar2->kind = kind" (field_expression "psVar2->kind" identifier -> field_identifier) = identifier) ;) (expression_statement "psVar2->val = val;" (assignment_expression "psVar2->val = val" (field_expression "psVar2->val" identifier -> field_identifier) = identifier) ;) (expression_statement "info->pending = psVar2;" (assignment_expression "info->pending = psVar2" (field_expression "info->pending" identifier -> field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "bVar3 = debug_record_variable(dhandle,name,type,kind,val);" (assignment_expression "bVar3 = debug_record_variable(dhandle,name,type,kind,val)" identifier = (call_expression "debug_record_variable(dhandle,name,type,kind,val)" identifier (argument_list "(dhandle,name,type,kind,val)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return bVar3;" return identifier ;) })))
(translation_unit "undefined4 __regparm3\nFUN_0001fff0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5,\n            undefined4 param_6)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))) {\n    puVar1 = (undefined4 *)xmalloc(0x14);\n    uVar2 = *(undefined4 *)(param_2 + 0x40);\n    puVar1[1] = param_3;\n    puVar1[2] = param_4;\n    *puVar1 = uVar2;\n    puVar1[3] = param_5;\n    puVar1[4] = param_6;\n    *(undefined4 **)(param_2 + 0x40) = puVar1;\n    return 1;\n  }\n  uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6);\n  return uVar2;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_0001fff0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5,\n            undefined4 param_6)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))) {\n    puVar1 = (undefined4 *)xmalloc(0x14);\n    uVar2 = *(undefined4 *)(param_2 + 0x40);\n    puVar1[1] = param_3;\n    puVar1[2] = param_4;\n    *puVar1 = uVar2;\n    puVar1[3] = param_5;\n    puVar1[4] = param_6;\n    *(undefined4 **)(param_2 + 0x40) = puVar1;\n    return 1;\n  }\n  uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6);\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001fff0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5,\n            undefined4 param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5,\n            undefined4 param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))) {\n    puVar1 = (undefined4 *)xmalloc(0x14);\n    uVar2 = *(undefined4 *)(param_2 + 0x40);\n    puVar1[1] = param_3;\n    puVar1[2] = param_4;\n    *puVar1 = uVar2;\n    puVar1[3] = param_5;\n    puVar1[4] = param_6;\n    *(undefined4 **)(param_2 + 0x40) = puVar1;\n    return 1;\n  }\n  uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6);\n  return uVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))) {\n    puVar1 = (undefined4 *)xmalloc(0x14);\n    uVar2 = *(undefined4 *)(param_2 + 0x40);\n    puVar1[1] = param_3;\n    puVar1[2] = param_4;\n    *puVar1 = uVar2;\n    puVar1[3] = param_5;\n    puVar1[4] = param_6;\n    *(undefined4 **)(param_2 + 0x40) = puVar1;\n    return 1;\n  }" if (parenthesized_expression "(((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0))))" ( (binary_expression "((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))" (parenthesized_expression "((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0))" ( (binary_expression "(1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)" (parenthesized_expression "(1 < param_5 - 1U)" ( (binary_expression "1 < param_5 - 1U" number_literal < (binary_expression "param_5 - 1U" identifier - number_literal)) )) && (parenthesized_expression "(*(int *)(param_2 + 0x34) != 0)" ( (binary_expression "*(int *)(param_2 + 0x34) != 0" (pointer_expression "*(int *)(param_2 + 0x34)" * (cast_expression "(int *)(param_2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))" ( (parenthesized_expression "(*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0))" ( (binary_expression "*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)" (binary_expression "*(int *)(param_2 + 0x20) != 0" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) != number_literal) || (parenthesized_expression "(*(int *)(param_2 + 0x24) == 0)" ( (binary_expression "*(int *)(param_2 + 0x24) == 0" (pointer_expression "*(int *)(param_2 + 0x24)" * (cast_expression "(int *)(param_2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) == number_literal) ))) )) ))) )) (compound_statement "{\n    puVar1 = (undefined4 *)xmalloc(0x14);\n    uVar2 = *(undefined4 *)(param_2 + 0x40);\n    puVar1[1] = param_3;\n    puVar1[2] = param_4;\n    *puVar1 = uVar2;\n    puVar1[3] = param_5;\n    puVar1[4] = param_6;\n    *(undefined4 **)(param_2 + 0x40) = puVar1;\n    return 1;\n  }" { (expression_statement "puVar1 = (undefined4 *)xmalloc(0x14);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x14)" identifier = (cast_expression "(undefined4 *)xmalloc(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x40);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x40)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x40)" * (cast_expression "(undefined4 *)(param_2 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x40)" ( (binary_expression "param_2 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = param_4;" (assignment_expression "puVar1[2] = param_4" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[3] = param_5;" (assignment_expression "puVar1[3] = param_5" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[4] = param_6;" (assignment_expression "puVar1[4] = param_6" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 **)(param_2 + 0x40) = puVar1;" (assignment_expression "*(undefined4 **)(param_2 + 0x40) = puVar1" (pointer_expression "*(undefined4 **)(param_2 + 0x40)" * (cast_expression "(undefined4 **)(param_2 + 0x40)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x40)" ( (binary_expression "param_2 + 0x40" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6)" identifier = (call_expression "FUN_0001eba0(param_1,param_3,param_4,param_5,param_6)" identifier (argument_list "(param_1,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(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) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( 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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3\nFUN_0001fff0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5,\n            undefined4 param_6)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))) {\n    puVar1 = (undefined4 *)xmalloc(0x14);\n    uVar2 = *(undefined4 *)(param_2 + 0x40);\n    puVar1[1] = param_3;\n    puVar1[2] = param_4;\n    *puVar1 = uVar2;\n    puVar1[3] = param_5;\n    puVar1[4] = param_6;\n    *(undefined4 **)(param_2 + 0x40) = puVar1;\n    return 1;\n  }\n  uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6);\n  return uVar2;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001fff0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5,\n            undefined4 param_6)" (identifier "FUN_0001fff0") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5,\n            undefined4 param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (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 "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))) {\n    puVar1 = (undefined4 *)xmalloc(0x14);\n    uVar2 = *(undefined4 *)(param_2 + 0x40);\n    puVar1[1] = param_3;\n    puVar1[2] = param_4;\n    *puVar1 = uVar2;\n    puVar1[3] = param_5;\n    puVar1[4] = param_6;\n    *(undefined4 **)(param_2 + 0x40) = puVar1;\n    return 1;\n  }\n  uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6);\n  return uVar2;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))) {\n    puVar1 = (undefined4 *)xmalloc(0x14);\n    uVar2 = *(undefined4 *)(param_2 + 0x40);\n    puVar1[1] = param_3;\n    puVar1[2] = param_4;\n    *puVar1 = uVar2;\n    puVar1[3] = param_5;\n    puVar1[4] = param_6;\n    *(undefined4 **)(param_2 + 0x40) = puVar1;\n    return 1;\n  }" (if "if") (parenthesized_expression "(((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0))))" (( "(") (binary_expression "((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&\n     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))" (parenthesized_expression "((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0))" (( "(") (binary_expression "(1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)" (parenthesized_expression "(1 < param_5 - 1U)" (( "(") (binary_expression "1 < param_5 - 1U" (number_literal "1") (< "<") (binary_expression "param_5 - 1U" (identifier "param_5") (- "-") (number_literal "1U"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_2 + 0x34) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x34) != 0" (pointer_expression "*(int *)(param_2 + 0x34)" (* "*") (cast_expression "(int *)(param_2 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x34)" (( "(") (binary_expression "param_2 + 0x34" (identifier "param_2") (+ "+") (number_literal "0x34")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))" (( "(") (parenthesized_expression "(*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0))" (( "(") (binary_expression "*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)" (binary_expression "*(int *)(param_2 + 0x20) != 0" (pointer_expression "*(int *)(param_2 + 0x20)" (* "*") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "(*(int *)(param_2 + 0x24) == 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x24) == 0" (pointer_expression "*(int *)(param_2 + 0x24)" (* "*") (cast_expression "(int *)(param_2 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)xmalloc(0x14);\n    uVar2 = *(undefined4 *)(param_2 + 0x40);\n    puVar1[1] = param_3;\n    puVar1[2] = param_4;\n    *puVar1 = uVar2;\n    puVar1[3] = param_5;\n    puVar1[4] = param_6;\n    *(undefined4 **)(param_2 + 0x40) = puVar1;\n    return 1;\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)xmalloc(0x14);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x14)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xmalloc(0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x14)" (identifier "xmalloc") (argument_list "(0x14)" (( "(") (number_literal "0x14") () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x40);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x40)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x40)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x40)" (( "(") (binary_expression "param_2 + 0x40" (identifier "param_2") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar1[2] = param_4;" (assignment_expression "puVar1[2] = param_4" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar1[3] = param_5;" (assignment_expression "puVar1[3] = param_5" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "puVar1[4] = param_6;" (assignment_expression "puVar1[4] = param_6" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_6")) (; ";")) (expression_statement "*(undefined4 **)(param_2 + 0x40) = puVar1;" (assignment_expression "*(undefined4 **)(param_2 + 0x40) = puVar1" (pointer_expression "*(undefined4 **)(param_2 + 0x40)" (* "*") (cast_expression "(undefined4 **)(param_2 + 0x40)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x40)" (( "(") (binary_expression "param_2 + 0x40" (identifier "param_2") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (identifier "puVar1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6)" (identifier "uVar2") (= "=") (call_expression "FUN_0001eba0(param_1,param_3,param_4,param_5,param_6)" (identifier "FUN_0001eba0") (argument_list "(param_1,param_3,param_4,param_5,param_6)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

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

type_1 __regparm3
function_1
          (void *dhandle,type_2 *info,char *name,type_3 type,type_4 var_1,
          type_5 val)

{
  type_6 *psVar1;
  type_6 *psVar2;
  type_1 bVar3;
  
  if (((1 < var_1 - var_2) && (info->within_function != 0)) &&
     ((info->gcc_compiled != 0 || (info->n_opt_found == 0)))) {
    psVar2 = (type_6 *)var_3(0x14);
    psVar1 = info->pending;
    psVar2->name = name;
    psVar2->type = type;
    psVar2->next = psVar1;
    psVar2->var_1 = var_1;
    psVar2->val = val;
    info->pending = psVar2;
    return 1;
  }
  bVar3 = var_4(dhandle,name,type,var_1,val);
  return bVar3;
}


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

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

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

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  if (((1 < param_5 - 1U) && (*(int *)(param_2 + 0x34) != 0)) &&
     ((*(int *)(param_2 + 0x20) != 0 || (*(int *)(param_2 + 0x24) == 0)))) {
    puVar1 = (undefined4 *)xmalloc(0x14);
    uVar2 = *(undefined4 *)(param_2 + 0x40);
    puVar1[1] = param_3;
    puVar1[2] = param_4;
    *puVar1 = uVar2;
    puVar1[3] = param_5;
    puVar1[4] = param_6;
    *(undefined4 **)(param_2 + 0x40) = puVar1;
    return 1;
  }
  uVar2 = FUN_0001eba0(param_1,param_3,param_4,param_5,param_6);
  return uVar2;
}

