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

char * get_remote_username(Conf *conf)

{
  char *pcVar1;
  int iVar2;
  
  pcVar1 = conf_get_str(conf,0x34);
  if (*pcVar1 == '\0') {
    iVar2 = conf_get_int(conf,0x35);
    pcVar1 = (char *)0x0;
    if (iVar2 != 0) {
      pcVar1 = get_username();
    }
    return pcVar1;
  }
  pcVar1 = dupstr(pcVar1);
  return pcVar1;
}



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

undefined4 FUN_00035910(undefined4 param_1)

{
  char *pcVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  uVar4 = 0x35917;
  pcVar1 = (char *)FUN_0001fd20(param_1,0x34);
  if (*pcVar1 == '\0') {
    iVar2 = FUN_0001fb70(param_1,0x35);
    uVar3 = 0;
    if (iVar2 != 0) {
      uVar3 = FUN_00099590(uVar4);
    }
    return uVar3;
  }
  uVar4 = FUN_0002e890(pcVar1);
  return uVar4;
}


PUSH ESI
PUSH EBX
CALL 0x0001c4f0
ADD EBX,0xdae39
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x18]
PUSH 0x34
PUSH ESI
CALL 0x0001fd20
ADD ESP,0x10
CMP byte ptr [EAX],0x0
JNZ 0x00035958
SUB ESP,0x8
PUSH 0x35
PUSH ESI
CALL 0x0001fb70
ADD ESP,0x10
MOV EDX,EAX
XOR EAX,EAX
TEST EDX,EDX
JZ 0x0003594f
CALL 0x00099590
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH EAX
CALL 0x0002e890
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00035910(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar4 = 0x35917;\n  pcVar1 = (char *)FUN_0001fd20(param_1,0x34);\n  if (*pcVar1 == '\0') {\n    iVar2 = FUN_0001fb70(param_1,0x35);\n    uVar3 = 0;\n    if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }\n    return uVar3;\n  }\n  uVar4 = FUN_0002e890(pcVar1);\n  return uVar4;\n}\n\n" comment (function_definition "undefined4 FUN_00035910(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar4 = 0x35917;\n  pcVar1 = (char *)FUN_0001fd20(param_1,0x34);\n  if (*pcVar1 == '\0') {\n    iVar2 = FUN_0001fb70(param_1,0x35);\n    uVar3 = 0;\n    if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }\n    return uVar3;\n  }\n  uVar4 = FUN_0002e890(pcVar1);\n  return uVar4;\n}" type_identifier (function_declarator "FUN_00035910(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar4 = 0x35917;\n  pcVar1 = (char *)FUN_0001fd20(param_1,0x34);\n  if (*pcVar1 == '\0') {\n    iVar2 = FUN_0001fb70(param_1,0x35);\n    uVar3 = 0;\n    if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }\n    return uVar3;\n  }\n  uVar4 = FUN_0002e890(pcVar1);\n  return uVar4;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "uVar4 = 0x35917;" (assignment_expression "uVar4 = 0x35917" identifier = number_literal) ;) (expression_statement "pcVar1 = (char *)FUN_0001fd20(param_1,0x34);" (assignment_expression "pcVar1 = (char *)FUN_0001fd20(param_1,0x34)" identifier = (cast_expression "(char *)FUN_0001fd20(param_1,0x34)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001fd20(param_1,0x34)" identifier (argument_list "(param_1,0x34)" ( identifier , number_literal ))))) ;) (if_statement "if (*pcVar1 == '\0') {\n    iVar2 = FUN_0001fb70(param_1,0x35);\n    uVar3 = 0;\n    if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }\n    return uVar3;\n  }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = FUN_0001fb70(param_1,0x35);\n    uVar3 = 0;\n    if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }\n    return uVar3;\n  }" { (expression_statement "iVar2 = FUN_0001fb70(param_1,0x35);" (assignment_expression "iVar2 = FUN_0001fb70(param_1,0x35)" identifier = (call_expression "FUN_0001fb70(param_1,0x35)" identifier (argument_list "(param_1,0x35)" ( identifier , number_literal )))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = FUN_00099590(uVar4);\n    }" { (expression_statement "uVar3 = FUN_00099590(uVar4);" (assignment_expression "uVar3 = FUN_00099590(uVar4)" identifier = (call_expression "FUN_00099590(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) })) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "uVar4 = FUN_0002e890(pcVar1);" (assignment_expression "uVar4 = FUN_0002e890(pcVar1)" identifier = (call_expression "FUN_0002e890(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * get_remote_username(Conf *conf)\n\n{\n  char *pcVar1;\n  int iVar2;\n  \n  pcVar1 = conf_get_str(conf,0x34);\n  if (*pcVar1 == '\0') {\n    iVar2 = conf_get_int(conf,0x35);\n    pcVar1 = (char *)0x0;\n    if (iVar2 != 0) {\n      pcVar1 = get_username();\n    }\n    return pcVar1;\n  }\n  pcVar1 = dupstr(pcVar1);\n  return pcVar1;\n}\n\n" comment comment (function_definition "char * get_remote_username(Conf *conf)\n\n{\n  char *pcVar1;\n  int iVar2;\n  \n  pcVar1 = conf_get_str(conf,0x34);\n  if (*pcVar1 == '\0') {\n    iVar2 = conf_get_int(conf,0x35);\n    pcVar1 = (char *)0x0;\n    if (iVar2 != 0) {\n      pcVar1 = get_username();\n    }\n    return pcVar1;\n  }\n  pcVar1 = dupstr(pcVar1);\n  return pcVar1;\n}" primitive_type (pointer_declarator "* get_remote_username(Conf *conf)" * (function_declarator "get_remote_username(Conf *conf)" identifier (parameter_list "(Conf *conf)" ( (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  \n  pcVar1 = conf_get_str(conf,0x34);\n  if (*pcVar1 == '\0') {\n    iVar2 = conf_get_int(conf,0x35);\n    pcVar1 = (char *)0x0;\n    if (iVar2 != 0) {\n      pcVar1 = get_username();\n    }\n    return pcVar1;\n  }\n  pcVar1 = dupstr(pcVar1);\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "pcVar1 = conf_get_str(conf,0x34);" (assignment_expression "pcVar1 = conf_get_str(conf,0x34)" identifier = (call_expression "conf_get_str(conf,0x34)" identifier (argument_list "(conf,0x34)" ( identifier , number_literal )))) ;) (if_statement "if (*pcVar1 == '\0') {\n    iVar2 = conf_get_int(conf,0x35);\n    pcVar1 = (char *)0x0;\n    if (iVar2 != 0) {\n      pcVar1 = get_username();\n    }\n    return pcVar1;\n  }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = conf_get_int(conf,0x35);\n    pcVar1 = (char *)0x0;\n    if (iVar2 != 0) {\n      pcVar1 = get_username();\n    }\n    return pcVar1;\n  }" { (expression_statement "iVar2 = conf_get_int(conf,0x35);" (assignment_expression "iVar2 = conf_get_int(conf,0x35)" identifier = (call_expression "conf_get_int(conf,0x35)" identifier (argument_list "(conf,0x35)" ( identifier , number_literal )))) ;) (expression_statement "pcVar1 = (char *)0x0;" (assignment_expression "pcVar1 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar2 != 0) {\n      pcVar1 = get_username();\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar1 = get_username();\n    }" { (expression_statement "pcVar1 = get_username();" (assignment_expression "pcVar1 = get_username()" identifier = (call_expression "get_username()" identifier (argument_list "()" ( )))) ;) })) (return_statement "return pcVar1;" return identifier ;) })) (expression_statement "pcVar1 = dupstr(pcVar1);" (assignment_expression "pcVar1 = dupstr(pcVar1)" identifier = (call_expression "dupstr(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_00035910(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar4 = 0x35917;\n  pcVar1 = (char *)FUN_0001fd20(param_1,0x34);\n  if (*pcVar1 == '\0') {\n    iVar2 = FUN_0001fb70(param_1,0x35);\n    uVar3 = 0;\n    if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }\n    return uVar3;\n  }\n  uVar4 = FUN_0002e890(pcVar1);\n  return uVar4;\n}\n\n" (function_definition "undefined4 FUN_00035910(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar4 = 0x35917;\n  pcVar1 = (char *)FUN_0001fd20(param_1,0x34);\n  if (*pcVar1 == '\0') {\n    iVar2 = FUN_0001fb70(param_1,0x35);\n    uVar3 = 0;\n    if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }\n    return uVar3;\n  }\n  uVar4 = FUN_0002e890(pcVar1);\n  return uVar4;\n}" type_identifier (function_declarator "FUN_00035910(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar4 = 0x35917;\n  pcVar1 = (char *)FUN_0001fd20(param_1,0x34);\n  if (*pcVar1 == '\0') {\n    iVar2 = FUN_0001fb70(param_1,0x35);\n    uVar3 = 0;\n    if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }\n    return uVar3;\n  }\n  uVar4 = FUN_0002e890(pcVar1);\n  return uVar4;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "uVar4 = 0x35917;" (assignment_expression "uVar4 = 0x35917" identifier = number_literal) ;) (expression_statement "pcVar1 = (char *)FUN_0001fd20(param_1,0x34);" (assignment_expression "pcVar1 = (char *)FUN_0001fd20(param_1,0x34)" identifier = (cast_expression "(char *)FUN_0001fd20(param_1,0x34)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001fd20(param_1,0x34)" identifier (argument_list "(param_1,0x34)" ( identifier , number_literal ))))) ;) (if_statement "if (*pcVar1 == '\0') {\n    iVar2 = FUN_0001fb70(param_1,0x35);\n    uVar3 = 0;\n    if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }\n    return uVar3;\n  }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = FUN_0001fb70(param_1,0x35);\n    uVar3 = 0;\n    if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }\n    return uVar3;\n  }" { (expression_statement "iVar2 = FUN_0001fb70(param_1,0x35);" (assignment_expression "iVar2 = FUN_0001fb70(param_1,0x35)" identifier = (call_expression "FUN_0001fb70(param_1,0x35)" identifier (argument_list "(param_1,0x35)" ( identifier , number_literal )))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = FUN_00099590(uVar4);\n    }" { (expression_statement "uVar3 = FUN_00099590(uVar4);" (assignment_expression "uVar3 = FUN_00099590(uVar4)" identifier = (call_expression "FUN_00099590(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) })) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "uVar4 = FUN_0002e890(pcVar1);" (assignment_expression "uVar4 = FUN_0002e890(pcVar1)" identifier = (call_expression "FUN_0002e890(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00035910(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar4 = 0x35917;\n  pcVar1 = (char *)FUN_0001fd20(param_1,0x34);\n  if (*pcVar1 == '\0') {\n    iVar2 = FUN_0001fb70(param_1,0x35);\n    uVar3 = 0;\n    if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }\n    return uVar3;\n  }\n  uVar4 = FUN_0002e890(pcVar1);\n  return uVar4;\n}" (type_identifier "undefined4") (function_declarator "FUN_00035910(undefined4 param_1)" (identifier "FUN_00035910") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  uVar4 = 0x35917;\n  pcVar1 = (char *)FUN_0001fd20(param_1,0x34);\n  if (*pcVar1 == '\0') {\n    iVar2 = FUN_0001fb70(param_1,0x35);\n    uVar3 = 0;\n    if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }\n    return uVar3;\n  }\n  uVar4 = FUN_0002e890(pcVar1);\n  return uVar4;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "uVar4 = 0x35917;" (assignment_expression "uVar4 = 0x35917" (identifier "uVar4") (= "=") (number_literal "0x35917")) (; ";")) (expression_statement "pcVar1 = (char *)FUN_0001fd20(param_1,0x34);" (assignment_expression "pcVar1 = (char *)FUN_0001fd20(param_1,0x34)" (identifier "pcVar1") (= "=") (cast_expression "(char *)FUN_0001fd20(param_1,0x34)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001fd20(param_1,0x34)" (identifier "FUN_0001fd20") (argument_list "(param_1,0x34)" (( "(") (identifier "param_1") (, ",") (number_literal "0x34") () ")"))))) (; ";")) (if_statement "if (*pcVar1 == '\0') {\n    iVar2 = FUN_0001fb70(param_1,0x35);\n    uVar3 = 0;\n    if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(*pcVar1 == '\0')" (( "(") (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar2 = FUN_0001fb70(param_1,0x35);\n    uVar3 = 0;\n    if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }\n    return uVar3;\n  }" ({ "{") (expression_statement "iVar2 = FUN_0001fb70(param_1,0x35);" (assignment_expression "iVar2 = FUN_0001fb70(param_1,0x35)" (identifier "iVar2") (= "=") (call_expression "FUN_0001fb70(param_1,0x35)" (identifier "FUN_0001fb70") (argument_list "(param_1,0x35)" (( "(") (identifier "param_1") (, ",") (number_literal "0x35") () ")")))) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar2 != 0) {\n      uVar3 = FUN_00099590(uVar4);\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = FUN_00099590(uVar4);\n    }" ({ "{") (expression_statement "uVar3 = FUN_00099590(uVar4);" (assignment_expression "uVar3 = FUN_00099590(uVar4)" (identifier "uVar3") (= "=") (call_expression "FUN_00099590(uVar4)" (identifier "FUN_00099590") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "uVar4 = FUN_0002e890(pcVar1);" (assignment_expression "uVar4 = FUN_0002e890(pcVar1)" (identifier "uVar4") (= "=") (call_expression "FUN_0002e890(pcVar1)" (identifier "FUN_0002e890") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")")))) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))

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

char * function_1(type_1 *conf)

{
  char *pcVar1;
  int var_3;
  
  pcVar1 = var_1(conf,0x34);
  if (*pcVar1 == '\0') {
    var_3 = var_2(conf,0x35);
    pcVar1 = (char *)0x0;
    if (var_3 != 0) {
      pcVar1 = var_4();
    }
    return pcVar1;
  }
  pcVar1 = var_5(pcVar1);
  return pcVar1;
}


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

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

undefined4 MASKED(undefined4 param_1)

{
  char *pcVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  uVar4 = 0x35917;
  pcVar1 = (char *)FUN_0001fd20(param_1,0x34);
  if (*pcVar1 == '\0') {
    iVar2 = FUN_0001fb70(param_1,0x35);
    uVar3 = 0;
    if (iVar2 != 0) {
      uVar3 = FUN_00099590(uVar4);
    }
    return uVar3;
  }
  uVar4 = FUN_0002e890(pcVar1);
  return uVar4;
}

