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

char * __regparm3 gpps_raw(void *handle,char *name,char *def)

{
  char *pcVar1;
  
  pcVar1 = read_setting_s(handle,name);
  if (pcVar1 == (char *)0x0) {
    pcVar1 = platform_default_s(name);
    if ((pcVar1 == (char *)0x0) && (def != (char *)0x0)) {
      pcVar1 = dupstr(def);
      return pcVar1;
    }
  }
  return pcVar1;
}



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

void __regparm3 FUN_0002de40(undefined4 param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  
  iVar1 = FUN_0005ab90(param_1,param_2);
  if (iVar1 == 0) {
    iVar1 = FUN_000519e0(param_2);
    if ((iVar1 == 0) && (param_3 != 0)) {
      FUN_0002bf20(param_3);
      return;
    }
  }
  return;
}


PUSH EDI
MOV EDI,EDX
PUSH ESI
MOV ESI,ECX
PUSH EBX
CALL 0x0001a360
ADD EBX,0x73998
SUB ESP,0x8
PUSH EDX
PUSH EAX
CALL 0x0005ab90
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002de70
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH EDI
CALL 0x000519e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0002de63
TEST ESI,ESI
JZ 0x0002de63
SUB ESP,0xc
PUSH ESI
CALL 0x0002bf20
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0002de40(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0005ab90(param_1,param_2);\n  if (iVar1 == 0) {\n    iVar1 = FUN_000519e0(param_2);\n    if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0002de40(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0005ab90(param_1,param_2);\n  if (iVar1 == 0) {\n    iVar1 = FUN_000519e0(param_2);\n    if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002de40(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0005ab90(param_1,param_2);\n  if (iVar1 == 0) {\n    iVar1 = FUN_000519e0(param_2);\n    if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0005ab90(param_1,param_2);" (assignment_expression "iVar1 = FUN_0005ab90(param_1,param_2)" identifier = (call_expression "FUN_0005ab90(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_000519e0(param_2);\n    if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_000519e0(param_2);\n    if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }\n  }" { (expression_statement "iVar1 = FUN_000519e0(param_2);" (assignment_expression "iVar1 = FUN_000519e0(param_2)" identifier = (call_expression "FUN_000519e0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }" if (parenthesized_expression "((iVar1 == 0) && (param_3 != 0))" ( (binary_expression "(iVar1 == 0) && (param_3 != 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      FUN_0002bf20(param_3);\n      return;\n    }" { (expression_statement "FUN_0002bf20(param_3);" (call_expression "FUN_0002bf20(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 gpps_raw(void *handle,char *name,char *def)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = read_setting_s(handle,name);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = platform_default_s(name);\n    if ((pcVar1 == (char *)0x0) && (def != (char *)0x0)) {\n      pcVar1 = dupstr(def);\n      return pcVar1;\n    }\n  }\n  return pcVar1;\n}\n\n" comment (function_definition "char * __regparm3 gpps_raw(void *handle,char *name,char *def)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = read_setting_s(handle,name);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = platform_default_s(name);\n    if ((pcVar1 == (char *)0x0) && (def != (char *)0x0)) {\n      pcVar1 = dupstr(def);\n      return pcVar1;\n    }\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* __regparm3 gpps_raw(void *handle,char *name,char *def)" * (ERROR "__regparm3" identifier) (function_declarator "gpps_raw(void *handle,char *name,char *def)" identifier (parameter_list "(void *handle,char *name,char *def)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "char *def" primitive_type (pointer_declarator "*def" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = read_setting_s(handle,name);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = platform_default_s(name);\n    if ((pcVar1 == (char *)0x0) && (def != (char *)0x0)) {\n      pcVar1 = dupstr(def);\n      return pcVar1;\n    }\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = read_setting_s(handle,name);" (assignment_expression "pcVar1 = read_setting_s(handle,name)" identifier = (call_expression "read_setting_s(handle,name)" identifier (argument_list "(handle,name)" ( identifier , identifier )))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    pcVar1 = platform_default_s(name);\n    if ((pcVar1 == (char *)0x0) && (def != (char *)0x0)) {\n      pcVar1 = dupstr(def);\n      return pcVar1;\n    }\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = platform_default_s(name);\n    if ((pcVar1 == (char *)0x0) && (def != (char *)0x0)) {\n      pcVar1 = dupstr(def);\n      return pcVar1;\n    }\n  }" { (expression_statement "pcVar1 = platform_default_s(name);" (assignment_expression "pcVar1 = platform_default_s(name)" identifier = (call_expression "platform_default_s(name)" identifier (argument_list "(name)" ( identifier )))) ;) (if_statement "if ((pcVar1 == (char *)0x0) && (def != (char *)0x0)) {\n      pcVar1 = dupstr(def);\n      return pcVar1;\n    }" if (parenthesized_expression "((pcVar1 == (char *)0x0) && (def != (char *)0x0))" ( (binary_expression "(pcVar1 == (char *)0x0) && (def != (char *)0x0)" (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(def != (char *)0x0)" ( (binary_expression "def != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      pcVar1 = dupstr(def);\n      return pcVar1;\n    }" { (expression_statement "pcVar1 = dupstr(def);" (assignment_expression "pcVar1 = dupstr(def)" identifier = (call_expression "dupstr(def)" identifier (argument_list "(def)" ( identifier )))) ;) (return_statement "return pcVar1;" return identifier ;) })) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "void __regparm3 FUN_0002de40(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0005ab90(param_1,param_2);\n  if (iVar1 == 0) {\n    iVar1 = FUN_000519e0(param_2);\n    if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002de40(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0005ab90(param_1,param_2);\n  if (iVar1 == 0) {\n    iVar1 = FUN_000519e0(param_2);\n    if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002de40(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0005ab90(param_1,param_2);\n  if (iVar1 == 0) {\n    iVar1 = FUN_000519e0(param_2);\n    if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0005ab90(param_1,param_2);" (assignment_expression "iVar1 = FUN_0005ab90(param_1,param_2)" identifier = (call_expression "FUN_0005ab90(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_000519e0(param_2);\n    if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_000519e0(param_2);\n    if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }\n  }" { (expression_statement "iVar1 = FUN_000519e0(param_2);" (assignment_expression "iVar1 = FUN_000519e0(param_2)" identifier = (call_expression "FUN_000519e0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }" if (parenthesized_expression "((iVar1 == 0) && (param_3 != 0))" ( (binary_expression "(iVar1 == 0) && (param_3 != 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      FUN_0002bf20(param_3);\n      return;\n    }" { (expression_statement "FUN_0002bf20(param_3);" (call_expression "FUN_0002bf20(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0002de40(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0005ab90(param_1,param_2);\n  if (iVar1 == 0) {\n    iVar1 = FUN_000519e0(param_2);\n    if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002de40(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_0002de40") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0005ab90(param_1,param_2);\n  if (iVar1 == 0) {\n    iVar1 = FUN_000519e0(param_2);\n    if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_0005ab90(param_1,param_2);" (assignment_expression "iVar1 = FUN_0005ab90(param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_0005ab90(param_1,param_2)" (identifier "FUN_0005ab90") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_000519e0(param_2);\n    if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_000519e0(param_2);\n    if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_000519e0(param_2);" (assignment_expression "iVar1 = FUN_000519e0(param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_000519e0(param_2)" (identifier "FUN_000519e0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if ((iVar1 == 0) && (param_3 != 0)) {\n      FUN_0002bf20(param_3);\n      return;\n    }" (if "if") (parenthesized_expression "((iVar1 == 0) && (param_3 != 0))" (( "(") (binary_expression "(iVar1 == 0) && (param_3 != 0)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      FUN_0002bf20(param_3);\n      return;\n    }" ({ "{") (expression_statement "FUN_0002bf20(param_3);" (call_expression "FUN_0002bf20(param_3)" (identifier "FUN_0002bf20") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

char * __regparm3 function_1(void *handle,char *name,char *var_4)

{
  char *var_2;
  
  var_2 = var_1(handle,name);
  if (var_2 == (char *)0x0) {
    var_2 = var_3(name);
    if ((var_2 == (char *)0x0) && (var_4 != (char *)0x0)) {
      var_2 = var_5(var_4);
      return var_2;
    }
  }
  return var_2;
}


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

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

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

{
  int iVar1;
  
  iVar1 = FUN_0005ab90(param_1,param_2);
  if (iVar1 == 0) {
    iVar1 = FUN_000519e0(param_2);
    if ((iVar1 == 0) && (param_3 != 0)) {
      FUN_0002bf20(param_3);
      return;
    }
  }
  return;
}

