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

char * __regparm3 regname(uint regno,int row)

{
  char *pcVar1;
  
  if (((dwarf_regnames == (char **)0x0) || (dwarf_regnames_count <= regno)) ||
     (pcVar1 = dwarf_regnames[regno], pcVar1 == (char *)0x0)) {
    pcVar1 = regname::reg;
    snprintf(regname::reg,0x40,"r%d",regno);
  }
  else if (row == 0) {
    snprintf(regname::reg,0x40,"r%d (%s)",regno,pcVar1);
    return regname::reg;
  }
  return pcVar1;
}



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

undefined * __regparm3 FUN_0001c8d0(uint param_1,int param_2)

{
  undefined *puVar1;
  
  if (((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||
     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)) {
    puVar1 = &DAT_000742c0;
    snprintf(&DAT_000742c0,0x40,"r%d",param_1);
  }
  else if (param_2 == 0) {
    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);
    return &DAT_000742c0;
  }
  return puVar1;
}


PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x56729
SUB ESP,0x4
MOV ECX,dword ptr [EBX + 0x38b4]
TEST ECX,ECX
JZ 0x0001c928
CMP dword ptr [EBX + 0x38b0],EAX
JBE 0x0001c928
MOV ESI,dword ptr [ECX + EAX*0x4]
TEST ESI,ESI
JZ 0x0001c928
TEST EDX,EDX
JNZ 0x0001c941
SUB ESP,0xc
PUSH ESI
LEA ESI,[EBX + 0x12c0]
PUSH EAX
LEA EAX,[EBX + 0xfffe05ec]
PUSH EAX
PUSH 0x40
PUSH ESI
CALL 0x00014520
ADD ESP,0x20
MOV EAX,ESI
ADD ESP,0x4
POP EBX
POP ESI
RET
PUSH EAX
LEA ESI,[EBX + 0x12c0]
LEA EAX,[EBX + 0xfffe05f5]
PUSH EAX
PUSH 0x40
PUSH ESI
CALL 0x00014520
ADD ESP,0x10
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined * __regparm3 FUN_0001c8d0(uint param_1,int param_2)\n\n{\n  undefined *puVar1;\n  \n  if (((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||\n     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)) {\n    puVar1 = &DAT_000742c0;\n    snprintf(&DAT_000742c0,0x40,"r%d",param_1);\n  }\n  else if (param_2 == 0) {\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }\n  return puVar1;\n}\n\n" comment (ERROR "undefined * __regparm3 FUN_0001c8d0(uint param_1,int param_2)" (binary_expression "undefined * __regparm3 FUN_0001c8d0(uint param_1,int param_2)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_0001c8d0(uint param_1,int param_2)" identifier (argument_list "(uint param_1,int param_2)" ( (ERROR "uint" identifier) identifier , (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  undefined *puVar1;\n  \n  if (((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||\n     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)) {\n    puVar1 = &DAT_000742c0;\n    snprintf(&DAT_000742c0,0x40,"r%d",param_1);\n  }\n  else if (param_2 == 0) {\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }\n  return puVar1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||\n     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)) {\n    puVar1 = &DAT_000742c0;\n    snprintf(&DAT_000742c0,0x40,"r%d",param_1);\n  }\n  else if (param_2 == 0) {\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }" if (parenthesized_expression "(((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||\n     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0))" ( (binary_expression "((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||\n     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)" (parenthesized_expression "((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1))" ( (binary_expression "(DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)" (parenthesized_expression "(DAT_000768b4 == 0)" ( (binary_expression "DAT_000768b4 == 0" identifier == number_literal) )) || (parenthesized_expression "(DAT_000768b0 <= param_1)" ( (binary_expression "DAT_000768b0 <= param_1" identifier <= identifier) ))) )) || (parenthesized_expression "(puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)" ( (comma_expression "puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0" (assignment_expression "puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4)" identifier = (pointer_expression "*(undefined **)(DAT_000768b4 + param_1 * 4)" * (cast_expression "(undefined **)(DAT_000768b4 + param_1 * 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_000768b4 + param_1 * 4)" ( (binary_expression "DAT_000768b4 + param_1 * 4" identifier + (binary_expression "param_1 * 4" identifier * number_literal)) ))))) , (binary_expression "puVar1 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    puVar1 = &DAT_000742c0;\n    snprintf(&DAT_000742c0,0x40,"r%d",param_1);\n  }" { (expression_statement "puVar1 = &DAT_000742c0;" (assignment_expression "puVar1 = &DAT_000742c0" identifier = (pointer_expression "&DAT_000742c0" & identifier)) ;) (expression_statement "snprintf(&DAT_000742c0,0x40,"r%d",param_1);" (call_expression "snprintf(&DAT_000742c0,0x40,"r%d",param_1)" identifier (argument_list "(&DAT_000742c0,0x40,"r%d",param_1)" ( (pointer_expression "&DAT_000742c0" & identifier) , number_literal , (string_literal ""r%d"" " string_content ") , identifier ))) ;) }) (else_clause "else if (param_2 == 0) {\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }" else (if_statement "if (param_2 == 0) {\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }" { (expression_statement "snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);" (call_expression "snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1)" identifier (argument_list "(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1)" ( (pointer_expression "&DAT_000742c0" & identifier) , number_literal , (string_literal ""r%d (%s)"" " string_content ") , identifier , identifier ))) ;) (return_statement "return &DAT_000742c0;" return (pointer_expression "&DAT_000742c0" & identifier) ;) })))) (return_statement "return puVar1;" return identifier ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 regname(uint regno,int row)\n\n{\n  char *pcVar1;\n  \n  if (((dwarf_regnames == (char **)0x0) || (dwarf_regnames_count <= regno)) ||\n     (pcVar1 = dwarf_regnames[regno], pcVar1 == (char *)0x0)) {\n    pcVar1 = regname::reg;\n    snprintf(regname::reg,0x40,"r%d",regno);\n  }\n  else if (row == 0) {\n    snprintf(regname::reg,0x40,"r%d (%s)",regno,pcVar1);\n    return regname::reg;\n  }\n  return pcVar1;\n}\n\n" comment (function_definition "char * __regparm3 regname(uint regno,int row)\n\n{\n  char *pcVar1;\n  \n  if (((dwarf_regnames == (char **)0x0) || (dwarf_regnames_count <= regno)) ||\n     (pcVar1 = dwarf_regnames[regno], pcVar1 == (char *)0x0)) {\n    pcVar1 = regname::reg;\n    snprintf(regname::reg,0x40,"r%d",regno);\n  }\n  else if (row == 0) {\n    snprintf(regname::reg,0x40,"r%d (%s)",regno,pcVar1);\n    return regname::reg;\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* __regparm3 regname(uint regno,int row)" * (ERROR "__regparm3" identifier) (function_declarator "regname(uint regno,int row)" identifier (parameter_list "(uint regno,int row)" ( (parameter_declaration "uint regno" type_identifier identifier) , (parameter_declaration "int row" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (((dwarf_regnames == (char **)0x0) || (dwarf_regnames_count <= regno)) ||\n     (pcVar1 = dwarf_regnames[regno], pcVar1 == (char *)0x0)) {\n    pcVar1 = regname::reg;\n    snprintf(regname::reg,0x40,"r%d",regno);\n  }\n  else if (row == 0) {\n    snprintf(regname::reg,0x40,"r%d (%s)",regno,pcVar1);\n    return regname::reg;\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (((dwarf_regnames == (char **)0x0) || (dwarf_regnames_count <= regno)) ||\n     (pcVar1 = dwarf_regnames[regno], pcVar1 == (char *)0x0)) {\n    pcVar1 = regname::reg;\n    snprintf(regname::reg,0x40,"r%d",regno);\n  }\n  else if (row == 0) {\n    snprintf(regname::reg,0x40,"r%d (%s)",regno,pcVar1);\n    return regname::reg;\n  }" if (parenthesized_expression "(((dwarf_regnames == (char **)0x0) || (dwarf_regnames_count <= regno)) ||\n     (pcVar1 = dwarf_regnames[regno], pcVar1 == (char *)0x0))" ( (binary_expression "((dwarf_regnames == (char **)0x0) || (dwarf_regnames_count <= regno)) ||\n     (pcVar1 = dwarf_regnames[regno], pcVar1 == (char *)0x0)" (parenthesized_expression "((dwarf_regnames == (char **)0x0) || (dwarf_regnames_count <= regno))" ( (binary_expression "(dwarf_regnames == (char **)0x0) || (dwarf_regnames_count <= regno)" (parenthesized_expression "(dwarf_regnames == (char **)0x0)" ( (binary_expression "dwarf_regnames == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) || (parenthesized_expression "(dwarf_regnames_count <= regno)" ( (binary_expression "dwarf_regnames_count <= regno" identifier <= identifier) ))) )) || (parenthesized_expression "(pcVar1 = dwarf_regnames[regno], pcVar1 == (char *)0x0)" ( (comma_expression "pcVar1 = dwarf_regnames[regno], pcVar1 == (char *)0x0" (assignment_expression "pcVar1 = dwarf_regnames[regno]" identifier = (subscript_expression "dwarf_regnames[regno]" identifier [ identifier ])) , (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    pcVar1 = regname::reg;\n    snprintf(regname::reg,0x40,"r%d",regno);\n  }" { (expression_statement "pcVar1 = regname::reg;" (assignment_expression "pcVar1 = regname" identifier = identifier) (ERROR "::reg" : : identifier) ;) (labeled_statement "snprintf(regname::reg,0x40,"r%d",regno);" statement_identifier (ERROR "(regname:" ( (type_descriptor "regname" type_identifier) :) : (expression_statement "reg,0x40,"r%d",regno);" (comma_expression "reg,0x40,"r%d",regno" identifier , (comma_expression "0x40,"r%d",regno" number_literal , (comma_expression ""r%d",regno" (string_literal ""r%d"" " string_content ") , identifier))) (ERROR ")" )) ;)) }) (else_clause "else if (row == 0) {\n    snprintf(regname::reg,0x40,"r%d (%s)",regno,pcVar1);\n    return regname::reg;\n  }" else (if_statement "if (row == 0) {\n    snprintf(regname::reg,0x40,"r%d (%s)",regno,pcVar1);\n    return regname::reg;\n  }" if (parenthesized_expression "(row == 0)" ( (binary_expression "row == 0" identifier == number_literal) )) (compound_statement "{\n    snprintf(regname::reg,0x40,"r%d (%s)",regno,pcVar1);\n    return regname::reg;\n  }" { (labeled_statement "snprintf(regname::reg,0x40,"r%d (%s)",regno,pcVar1);" statement_identifier (ERROR "(regname:" ( (type_descriptor "regname" type_identifier) :) : (expression_statement "reg,0x40,"r%d (%s)",regno,pcVar1);" (comma_expression "reg,0x40,"r%d (%s)",regno,pcVar1" identifier , (comma_expression "0x40,"r%d (%s)",regno,pcVar1" number_literal , (comma_expression ""r%d (%s)",regno,pcVar1" (string_literal ""r%d (%s)"" " string_content ") , (comma_expression "regno,pcVar1" identifier , identifier)))) (ERROR ")" )) ;)) (return_statement "return regname::reg;" return identifier (ERROR "::reg" : : identifier) ;) })))) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "undefined * __regparm3 FUN_0001c8d0(uint param_1,int param_2)\n\n{\n  undefined *puVar1;\n  \n  if (((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||\n     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)) {\n    puVar1 = &DAT_000742c0;\n    snprintf(&DAT_000742c0,0x40,"r%d",param_1);\n  }\n  else if (param_2 == 0) {\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }\n  return puVar1;\n}\n\n" (ERROR "undefined * __regparm3 FUN_0001c8d0(uint param_1,int param_2)" (binary_expression "undefined * __regparm3 FUN_0001c8d0(uint param_1,int param_2)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_0001c8d0(uint param_1,int param_2)" identifier (argument_list "(uint param_1,int param_2)" ( (ERROR "uint" identifier) identifier , (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  undefined *puVar1;\n  \n  if (((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||\n     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)) {\n    puVar1 = &DAT_000742c0;\n    snprintf(&DAT_000742c0,0x40,"r%d",param_1);\n  }\n  else if (param_2 == 0) {\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }\n  return puVar1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||\n     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)) {\n    puVar1 = &DAT_000742c0;\n    snprintf(&DAT_000742c0,0x40,"r%d",param_1);\n  }\n  else if (param_2 == 0) {\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }" if (parenthesized_expression "(((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||\n     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0))" ( (binary_expression "((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||\n     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)" (parenthesized_expression "((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1))" ( (binary_expression "(DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)" (parenthesized_expression "(DAT_000768b4 == 0)" ( (binary_expression "DAT_000768b4 == 0" identifier == number_literal) )) || (parenthesized_expression "(DAT_000768b0 <= param_1)" ( (binary_expression "DAT_000768b0 <= param_1" identifier <= identifier) ))) )) || (parenthesized_expression "(puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)" ( (comma_expression "puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0" (assignment_expression "puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4)" identifier = (pointer_expression "*(undefined **)(DAT_000768b4 + param_1 * 4)" * (cast_expression "(undefined **)(DAT_000768b4 + param_1 * 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_000768b4 + param_1 * 4)" ( (binary_expression "DAT_000768b4 + param_1 * 4" identifier + (binary_expression "param_1 * 4" identifier * number_literal)) ))))) , (binary_expression "puVar1 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    puVar1 = &DAT_000742c0;\n    snprintf(&DAT_000742c0,0x40,"r%d",param_1);\n  }" { (expression_statement "puVar1 = &DAT_000742c0;" (assignment_expression "puVar1 = &DAT_000742c0" identifier = (pointer_expression "&DAT_000742c0" & identifier)) ;) (expression_statement "snprintf(&DAT_000742c0,0x40,"r%d",param_1);" (call_expression "snprintf(&DAT_000742c0,0x40,"r%d",param_1)" identifier (argument_list "(&DAT_000742c0,0x40,"r%d",param_1)" ( (pointer_expression "&DAT_000742c0" & identifier) , number_literal , (string_literal ""r%d"" " string_content ") , identifier ))) ;) }) (else_clause "else if (param_2 == 0) {\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }" else (if_statement "if (param_2 == 0) {\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }" { (expression_statement "snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);" (call_expression "snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1)" identifier (argument_list "(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1)" ( (pointer_expression "&DAT_000742c0" & identifier) , number_literal , (string_literal ""r%d (%s)"" " string_content ") , identifier , identifier ))) ;) (return_statement "return &DAT_000742c0;" return (pointer_expression "&DAT_000742c0" & identifier) ;) })))) (return_statement "return puVar1;" return identifier ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (ERROR IDENT) IDENT , (ERROR IDENT) IDENT ))))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT <= IDENT) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , (string_literal " string_content ") , IDENT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (return_statement return (pointer_expression & IDENT) ;) })))) (return_statement return IDENT ;) }))
(ERROR "undefined * __regparm3 FUN_0001c8d0(uint param_1,int param_2)" (binary_expression "undefined * __regparm3 FUN_0001c8d0(uint param_1,int param_2)" (identifier "undefined") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_0001c8d0(uint param_1,int param_2)" (identifier "FUN_0001c8d0") (argument_list "(uint param_1,int param_2)" (( "(") (ERROR "uint" (identifier "uint")) (identifier "param_1") (, ",") (ERROR "int" (identifier "int")) (identifier "param_2") () ")"))))) (compound_statement "{\n  undefined *puVar1;\n  \n  if (((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||\n     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)) {\n    puVar1 = &DAT_000742c0;\n    snprintf(&DAT_000742c0,0x40,"r%d",param_1);\n  }\n  else if (param_2 == 0) {\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }\n  return puVar1;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (if_statement "if (((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||\n     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)) {\n    puVar1 = &DAT_000742c0;\n    snprintf(&DAT_000742c0,0x40,"r%d",param_1);\n  }\n  else if (param_2 == 0) {\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }" (if "if") (parenthesized_expression "(((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||\n     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0))" (( "(") (binary_expression "((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||\n     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)" (parenthesized_expression "((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1))" (( "(") (binary_expression "(DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)" (parenthesized_expression "(DAT_000768b4 == 0)" (( "(") (binary_expression "DAT_000768b4 == 0" (identifier "DAT_000768b4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(DAT_000768b0 <= param_1)" (( "(") (binary_expression "DAT_000768b0 <= param_1" (identifier "DAT_000768b0") (<= "<=") (identifier "param_1")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)" (( "(") (comma_expression "puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0" (assignment_expression "puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined **)(DAT_000768b4 + param_1 * 4)" (* "*") (cast_expression "(undefined **)(DAT_000768b4 + param_1 * 4)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_000768b4 + param_1 * 4)" (( "(") (binary_expression "DAT_000768b4 + param_1 * 4" (identifier "DAT_000768b4") (+ "+") (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4"))) () ")"))))) (, ",") (binary_expression "puVar1 == (undefined *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    puVar1 = &DAT_000742c0;\n    snprintf(&DAT_000742c0,0x40,"r%d",param_1);\n  }" ({ "{") (expression_statement "puVar1 = &DAT_000742c0;" (assignment_expression "puVar1 = &DAT_000742c0" (identifier "puVar1") (= "=") (pointer_expression "&DAT_000742c0" (& "&") (identifier "DAT_000742c0"))) (; ";")) (expression_statement "snprintf(&DAT_000742c0,0x40,"r%d",param_1);" (call_expression "snprintf(&DAT_000742c0,0x40,"r%d",param_1)" (identifier "snprintf") (argument_list "(&DAT_000742c0,0x40,"r%d",param_1)" (( "(") (pointer_expression "&DAT_000742c0" (& "&") (identifier "DAT_000742c0")) (, ",") (number_literal "0x40") (, ",") (string_literal ""r%d"" (" """) (string_content "r%d") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")) (else_clause "else if (param_2 == 0) {\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }" (else "else") (if_statement "if (param_2 == 0) {\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);\n    return &DAT_000742c0;\n  }" ({ "{") (expression_statement "snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);" (call_expression "snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1)" (identifier "snprintf") (argument_list "(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1)" (( "(") (pointer_expression "&DAT_000742c0" (& "&") (identifier "DAT_000742c0")) (, ",") (number_literal "0x40") (, ",") (string_literal ""r%d (%s)"" (" """) (string_content "r%d (%s)") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "puVar1") () ")"))) (; ";")) (return_statement "return &DAT_000742c0;" (return "return") (pointer_expression "&DAT_000742c0" (& "&") (identifier "DAT_000742c0")) (; ";")) (} "}"))))) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}"))

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

char * __regparm3 function_1(type_1 var_3,int var_5)

{
  char *var_4;
  
  if (((var_1 == (char **)0x0) || (var_2 <= var_3)) ||
     (var_4 = var_1[var_3], var_4 == (char *)0x0)) {
    var_4 = function_1::reg;
    snprintf(function_1::reg,0x40,"r%d",var_3);
  }
  else if (var_5 == 0) {
    snprintf(function_1::reg,0x40,"r%d (%s)",var_3,var_4);
    return function_1::reg;
  }
  return var_4;
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (ERROR (identifier)) (identifier) (ERROR (identifier)) (identifier))))) (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (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: (binary_expression left: (identifier) right: (number_literal))))))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (string_literal (string_content)) (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (return_statement (pointer_expression argument: (identifier))))))) (return_statement (identifier))))

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

undefined * __regparm3 MASKED(uint param_1,int param_2)

{
  undefined *puVar1;
  
  if (((DAT_000768b4 == 0) || (DAT_000768b0 <= param_1)) ||
     (puVar1 = *(undefined **)(DAT_000768b4 + param_1 * 4), puVar1 == (undefined *)0x0)) {
    puVar1 = &DAT_000742c0;
    snprintf(&DAT_000742c0,0x40,"r%d",param_1);
  }
  else if (param_2 == 0) {
    snprintf(&DAT_000742c0,0x40,"r%d (%s)",param_1,puVar1);
    return &DAT_000742c0;
  }
  return puVar1;
}

