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

char * conf_get_str_strs(Conf *conf,int primary,char *subkeyin,char **subkeyout)

{
  int iVar1;
  int *piVar2;
  int in_GS_OFFSET;
  code *cmp;
  int relation;
  constkey key;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (subkeytypes[primary] != 2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");
  }
  if (valuetypes[primary] == 2) {
    key.primary = primary;
    if (subkeyin == (char *)0x0) {
      key.secondary.s = "";
      cmp = conf_cmp_constkey;
      relation = 4;
    }
    else {
      key.secondary.s = subkeyin;
      relation = 3;
      cmp = (cmpfn234)0x0;
    }
    piVar2 = (int *)findrel234(conf->tree,&key,cmp,relation);
    if (piVar2 != (int *)0x0) {
      if (*piVar2 == primary) {
        *subkeyout = (char *)piVar2[1];
        piVar2 = (int *)piVar2[2];
      }
      else {
        piVar2 = (int *)0x0;
      }
    }
    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
      return (char *)piVar2;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");
}



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

int * FUN_00017700(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)

{
  int *piVar1;
  int in_GS_OFFSET;
  code *pcVar2;
  undefined4 uVar3;
  int local_18;
  undefined *local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");
  }
  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 2) {
    local_18 = param_2;
    if (param_3 == (undefined *)0x0) {
      local_14 = &DAT_000712ce;
      pcVar2 = FUN_00016f90;
      uVar3 = 4;
    }
    else {
      local_14 = param_3;
      uVar3 = 3;
      pcVar2 = (code *)0x0;
    }
    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);
    if (piVar1 != (int *)0x0) {
      if (*piVar1 == param_2) {
        *param_4 = piVar1[1];
        piVar1 = (int *)piVar1[2];
      }
      else {
        piVar1 = (int *)0x0;
      }
    }
    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
      return piVar1;
    }
                    /* WARNING: Subroutine does not return */
    FUN_0006f430();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x92688
SUB ESP,0x10
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0xc],ECX
XOR ECX,ECX
MOV ESI,dword ptr [ESP + 0x24]
MOV EDX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [ESP + 0x28]
MOV EDI,dword ptr [ESP + 0x2c]
CMP dword ptr [EBX + ESI*0x4 + 0xfffc6c30],0x2
JNZ 0x000177d0
CMP dword ptr [EBX + ESI*0x4 + 0xfffc6950],0x2
JNZ 0x000177b1
MOV dword ptr [ESP + 0x4],ESI
MOV EDX,dword ptr [EDX]
TEST EAX,EAX
JZ 0x00017790
MOV dword ptr [ESP + 0x8],EAX
PUSH 0x3
PUSH 0x0
LEA EAX,[ESP + 0xc]
PUSH EAX
PUSH EDX
CALL 0x00063fa0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00017776
CMP dword ptr [EAX],ESI
JNZ 0x000177a8
MOV EDX,dword ptr [EAX + 0x4]
MOV dword ptr [EDI],EDX
MOV EAX,dword ptr [EAX + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x000177ac
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[EBX + 0xfffc753e]
MOV dword ptr [ESP + 0x8],EAX
LEA EAX,[EBX + 0xfff6d200]
PUSH 0x4
PUSH EAX
JMP 0x00017758
XOR EAX,EAX
JMP 0x00017776
CALL 0x0006f430
LEA EAX,[EBX + 0xfffc68c0]
PUSH EAX
LEA EAX,[EBX + 0xfffc66d0]
PUSH 0x146
PUSH EAX
LEA EAX,[EBX + 0xfffc6758]
PUSH EAX
CALL 0x00014870
LEA EAX,[EBX + 0xfffc68c0]
PUSH EAX
LEA EAX,[EBX + 0xfffc66d0]
PUSH 0x145
PUSH EAX
LEA EAX,[EBX + 0xfffc6778]
PUSH EAX
CALL 0x00014870
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_00017700(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)\n\n{\n  int *piVar1;\n  int in_GS_OFFSET;\n  code *pcVar2;\n  undefined4 uVar3;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 2) {\n    local_18 = param_2;\n    if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }\n    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0006f430();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");\n}\n\n" comment (function_definition "int * FUN_00017700(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)\n\n{\n  int *piVar1;\n  int in_GS_OFFSET;\n  code *pcVar2;\n  undefined4 uVar3;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 2) {\n    local_18 = param_2;\n    if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }\n    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0006f430();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");\n}" primitive_type (pointer_declarator "* FUN_00017700(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)" * (function_declarator "FUN_00017700(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)" identifier (parameter_list "(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  int in_GS_OFFSET;\n  code *pcVar2;\n  undefined4 uVar3;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 2) {\n    local_18 = param_2;\n    if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }\n    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0006f430();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "undefined *local_14;" type_identifier (pointer_declarator "*local_14" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }" if (parenthesized_expression "(*(int *)(&DAT_000709c0 + param_2 * 4) != 2)" ( (binary_expression "*(int *)(&DAT_000709c0 + param_2 * 4) != 2" (pointer_expression "*(int *)(&DAT_000709c0 + param_2 * 4)" * (cast_expression "(int *)(&DAT_000709c0 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000709c0 + param_2 * 4)" ( (binary_expression "&DAT_000709c0 + param_2 * 4" (pointer_expression "&DAT_000709c0" & identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }" { comment (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs")" identifier (argument_list "("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs")" ( (string_literal ""subkeytypes[primary] == TYPE_STR"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_str_strs"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(&DAT_000706e0 + param_2 * 4) == 2) {\n    local_18 = param_2;\n    if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }\n    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0006f430();\n  }" if (parenthesized_expression "(*(int *)(&DAT_000706e0 + param_2 * 4) == 2)" ( (binary_expression "*(int *)(&DAT_000706e0 + param_2 * 4) == 2" (pointer_expression "*(int *)(&DAT_000706e0 + param_2 * 4)" * (cast_expression "(int *)(&DAT_000706e0 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000706e0 + param_2 * 4)" ( (binary_expression "&DAT_000706e0 + param_2 * 4" (pointer_expression "&DAT_000706e0" & identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) == number_literal) )) (compound_statement "{\n    local_18 = param_2;\n    if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }\n    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0006f430();\n  }" { (expression_statement "local_18 = param_2;" (assignment_expression "local_18 = param_2" identifier = identifier) ;) (if_statement "if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }" if (parenthesized_expression "(param_3 == (undefined *)0x0)" ( (binary_expression "param_3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }" { (expression_statement "local_14 = &DAT_000712ce;" (assignment_expression "local_14 = &DAT_000712ce" identifier = (pointer_expression "&DAT_000712ce" & identifier)) ;) (expression_statement "pcVar2 = FUN_00016f90;" (assignment_expression "pcVar2 = FUN_00016f90" identifier = identifier) ;) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }" else (compound_statement "{\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }" { (expression_statement "local_14 = param_3;" (assignment_expression "local_14 = param_3" identifier = identifier) ;) (expression_statement "uVar3 = 3;" (assignment_expression "uVar3 = 3" identifier = number_literal) ;) (expression_statement "pcVar2 = (code *)0x0;" (assignment_expression "pcVar2 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (expression_statement "piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);" (assignment_expression "piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3)" identifier = (cast_expression "(int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3)" identifier (argument_list "(*param_1,&local_18,pcVar2,uVar3)" ( (pointer_expression "*param_1" * identifier) , (pointer_expression "&local_18" & identifier) , identifier , identifier ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }" { (if_statement "if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }" if (parenthesized_expression "(*piVar1 == param_2)" ( (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" * identifier) == identifier) )) (compound_statement "{\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }" { (expression_statement "*param_4 = piVar1[1];" (assignment_expression "*param_4 = piVar1[1]" (pointer_expression "*param_4" * identifier) = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (expression_statement "piVar1 = (int *)piVar1[2];" (assignment_expression "piVar1 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n        piVar1 = (int *)0x0;\n      }" else (compound_statement "{\n        piVar1 = (int *)0x0;\n      }" { (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      return piVar1;\n    }" { (return_statement "return piVar1;" return identifier ;) })) comment (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs")" identifier (argument_list "("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs")" ( (string_literal ""valuetypes[primary] == TYPE_STR"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_str_strs"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * conf_get_str_strs(Conf *conf,int primary,char *subkeyin,char **subkeyout)\n\n{\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  code *cmp;\n  int relation;\n  constkey key;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (subkeytypes[primary] != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }\n  if (valuetypes[primary] == 2) {\n    key.primary = primary;\n    if (subkeyin == (char *)0x0) {\n      key.secondary.s = "";\n      cmp = conf_cmp_constkey;\n      relation = 4;\n    }\n    else {\n      key.secondary.s = subkeyin;\n      relation = 3;\n      cmp = (cmpfn234)0x0;\n    }\n    piVar2 = (int *)findrel234(conf->tree,&key,cmp,relation);\n    if (piVar2 != (int *)0x0) {\n      if (*piVar2 == primary) {\n        *subkeyout = (char *)piVar2[1];\n        piVar2 = (int *)piVar2[2];\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return (char *)piVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");\n}\n\n" comment comment (function_definition "char * conf_get_str_strs(Conf *conf,int primary,char *subkeyin,char **subkeyout)\n\n{\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  code *cmp;\n  int relation;\n  constkey key;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (subkeytypes[primary] != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }\n  if (valuetypes[primary] == 2) {\n    key.primary = primary;\n    if (subkeyin == (char *)0x0) {\n      key.secondary.s = "";\n      cmp = conf_cmp_constkey;\n      relation = 4;\n    }\n    else {\n      key.secondary.s = subkeyin;\n      relation = 3;\n      cmp = (cmpfn234)0x0;\n    }\n    piVar2 = (int *)findrel234(conf->tree,&key,cmp,relation);\n    if (piVar2 != (int *)0x0) {\n      if (*piVar2 == primary) {\n        *subkeyout = (char *)piVar2[1];\n        piVar2 = (int *)piVar2[2];\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return (char *)piVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");\n}" primitive_type (pointer_declarator "* conf_get_str_strs(Conf *conf,int primary,char *subkeyin,char **subkeyout)" * (function_declarator "conf_get_str_strs(Conf *conf,int primary,char *subkeyin,char **subkeyout)" identifier (parameter_list "(Conf *conf,int primary,char *subkeyin,char **subkeyout)" ( (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) , (parameter_declaration "int primary" primitive_type identifier) , (parameter_declaration "char *subkeyin" primitive_type (pointer_declarator "*subkeyin" * identifier)) , (parameter_declaration "char **subkeyout" primitive_type (pointer_declarator "**subkeyout" * (pointer_declarator "*subkeyout" * identifier))) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  code *cmp;\n  int relation;\n  constkey key;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (subkeytypes[primary] != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }\n  if (valuetypes[primary] == 2) {\n    key.primary = primary;\n    if (subkeyin == (char *)0x0) {\n      key.secondary.s = "";\n      cmp = conf_cmp_constkey;\n      relation = 4;\n    }\n    else {\n      key.secondary.s = subkeyin;\n      relation = 3;\n      cmp = (cmpfn234)0x0;\n    }\n    piVar2 = (int *)findrel234(conf->tree,&key,cmp,relation);\n    if (piVar2 != (int *)0x0) {\n      if (*piVar2 == primary) {\n        *subkeyout = (char *)piVar2[1];\n        piVar2 = (int *)piVar2[2];\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return (char *)piVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "code *cmp;" type_identifier (pointer_declarator "*cmp" * identifier) ;) (declaration "int relation;" primitive_type identifier ;) (declaration "constkey key;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (subkeytypes[primary] != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }" if (parenthesized_expression "(subkeytypes[primary] != 2)" ( (binary_expression "subkeytypes[primary] != 2" (subscript_expression "subkeytypes[primary]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }" { comment (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs")" identifier (argument_list "("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs")" ( (string_literal ""subkeytypes[primary] == TYPE_STR"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_str_strs"" " string_content ") ))) ;) })) (if_statement "if (valuetypes[primary] == 2) {\n    key.primary = primary;\n    if (subkeyin == (char *)0x0) {\n      key.secondary.s = "";\n      cmp = conf_cmp_constkey;\n      relation = 4;\n    }\n    else {\n      key.secondary.s = subkeyin;\n      relation = 3;\n      cmp = (cmpfn234)0x0;\n    }\n    piVar2 = (int *)findrel234(conf->tree,&key,cmp,relation);\n    if (piVar2 != (int *)0x0) {\n      if (*piVar2 == primary) {\n        *subkeyout = (char *)piVar2[1];\n        piVar2 = (int *)piVar2[2];\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return (char *)piVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(valuetypes[primary] == 2)" ( (binary_expression "valuetypes[primary] == 2" (subscript_expression "valuetypes[primary]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n    key.primary = primary;\n    if (subkeyin == (char *)0x0) {\n      key.secondary.s = "";\n      cmp = conf_cmp_constkey;\n      relation = 4;\n    }\n    else {\n      key.secondary.s = subkeyin;\n      relation = 3;\n      cmp = (cmpfn234)0x0;\n    }\n    piVar2 = (int *)findrel234(conf->tree,&key,cmp,relation);\n    if (piVar2 != (int *)0x0) {\n      if (*piVar2 == primary) {\n        *subkeyout = (char *)piVar2[1];\n        piVar2 = (int *)piVar2[2];\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return (char *)piVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { (expression_statement "key.primary = primary;" (assignment_expression "key.primary = primary" (field_expression "key.primary" identifier . field_identifier) = identifier) ;) (if_statement "if (subkeyin == (char *)0x0) {\n      key.secondary.s = "";\n      cmp = conf_cmp_constkey;\n      relation = 4;\n    }\n    else {\n      key.secondary.s = subkeyin;\n      relation = 3;\n      cmp = (cmpfn234)0x0;\n    }" if (parenthesized_expression "(subkeyin == (char *)0x0)" ( (binary_expression "subkeyin == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      key.secondary.s = "";\n      cmp = conf_cmp_constkey;\n      relation = 4;\n    }" { (expression_statement "key.secondary.s = "";" (assignment_expression "key.secondary.s = """ (field_expression "key.secondary.s" (field_expression "key.secondary" identifier . field_identifier) . field_identifier) = (string_literal """" " ")) ;) (expression_statement "cmp = conf_cmp_constkey;" (assignment_expression "cmp = conf_cmp_constkey" identifier = identifier) ;) (expression_statement "relation = 4;" (assignment_expression "relation = 4" identifier = number_literal) ;) }) (else_clause "else {\n      key.secondary.s = subkeyin;\n      relation = 3;\n      cmp = (cmpfn234)0x0;\n    }" else (compound_statement "{\n      key.secondary.s = subkeyin;\n      relation = 3;\n      cmp = (cmpfn234)0x0;\n    }" { (expression_statement "key.secondary.s = subkeyin;" (assignment_expression "key.secondary.s = subkeyin" (field_expression "key.secondary.s" (field_expression "key.secondary" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "relation = 3;" (assignment_expression "relation = 3" identifier = number_literal) ;) (expression_statement "cmp = (cmpfn234)0x0;" (assignment_expression "cmp = (cmpfn234)0x0" identifier = (cast_expression "(cmpfn234)0x0" ( (type_descriptor "cmpfn234" type_identifier) ) number_literal)) ;) }))) (expression_statement "piVar2 = (int *)findrel234(conf->tree,&key,cmp,relation);" (assignment_expression "piVar2 = (int *)findrel234(conf->tree,&key,cmp,relation)" identifier = (cast_expression "(int *)findrel234(conf->tree,&key,cmp,relation)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "findrel234(conf->tree,&key,cmp,relation)" identifier (argument_list "(conf->tree,&key,cmp,relation)" ( (field_expression "conf->tree" identifier -> field_identifier) , (pointer_expression "&key" & identifier) , identifier , identifier ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n      if (*piVar2 == primary) {\n        *subkeyout = (char *)piVar2[1];\n        piVar2 = (int *)piVar2[2];\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }\n    }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (*piVar2 == primary) {\n        *subkeyout = (char *)piVar2[1];\n        piVar2 = (int *)piVar2[2];\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }\n    }" { (if_statement "if (*piVar2 == primary) {\n        *subkeyout = (char *)piVar2[1];\n        piVar2 = (int *)piVar2[2];\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }" if (parenthesized_expression "(*piVar2 == primary)" ( (binary_expression "*piVar2 == primary" (pointer_expression "*piVar2" * identifier) == identifier) )) (compound_statement "{\n        *subkeyout = (char *)piVar2[1];\n        piVar2 = (int *)piVar2[2];\n      }" { (expression_statement "*subkeyout = (char *)piVar2[1];" (assignment_expression "*subkeyout = (char *)piVar2[1]" (pointer_expression "*subkeyout" * identifier) = (cast_expression "(char *)piVar2[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar2 = (int *)piVar2[2];" (assignment_expression "piVar2 = (int *)piVar2[2]" identifier = (cast_expression "(int *)piVar2[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[2]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n        piVar2 = (int *)0x0;\n      }" else (compound_statement "{\n        piVar2 = (int *)0x0;\n      }" { (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return (char *)piVar2;\n    }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      return (char *)piVar2;\n    }" { (return_statement "return (char *)piVar2;" return (cast_expression "(char *)piVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs")" identifier (argument_list "("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs")" ( (string_literal ""valuetypes[primary] == TYPE_STR"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_str_strs"" " string_content ") ))) ;) })))
(translation_unit "int * FUN_00017700(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)\n\n{\n  int *piVar1;\n  int in_GS_OFFSET;\n  code *pcVar2;\n  undefined4 uVar3;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 2) {\n    local_18 = param_2;\n    if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }\n    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }\n                    \n    FUN_0006f430();\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");\n}\n\n" (function_definition "int * FUN_00017700(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)\n\n{\n  int *piVar1;\n  int in_GS_OFFSET;\n  code *pcVar2;\n  undefined4 uVar3;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 2) {\n    local_18 = param_2;\n    if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }\n    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }\n                    \n    FUN_0006f430();\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");\n}" primitive_type (pointer_declarator "* FUN_00017700(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)" * (function_declarator "FUN_00017700(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)" identifier (parameter_list "(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  int in_GS_OFFSET;\n  code *pcVar2;\n  undefined4 uVar3;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 2) {\n    local_18 = param_2;\n    if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }\n    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }\n                    \n    FUN_0006f430();\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "undefined *local_14;" type_identifier (pointer_declarator "*local_14" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }" if (parenthesized_expression "(*(int *)(&DAT_000709c0 + param_2 * 4) != 2)" ( (binary_expression "*(int *)(&DAT_000709c0 + param_2 * 4) != 2" (pointer_expression "*(int *)(&DAT_000709c0 + param_2 * 4)" * (cast_expression "(int *)(&DAT_000709c0 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000709c0 + param_2 * 4)" ( (binary_expression "&DAT_000709c0 + param_2 * 4" (pointer_expression "&DAT_000709c0" & identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }" { (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs")" identifier (argument_list "("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs")" ( (string_literal ""subkeytypes[primary] == TYPE_STR"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_str_strs"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(&DAT_000706e0 + param_2 * 4) == 2) {\n    local_18 = param_2;\n    if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }\n    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }\n                    \n    FUN_0006f430();\n  }" if (parenthesized_expression "(*(int *)(&DAT_000706e0 + param_2 * 4) == 2)" ( (binary_expression "*(int *)(&DAT_000706e0 + param_2 * 4) == 2" (pointer_expression "*(int *)(&DAT_000706e0 + param_2 * 4)" * (cast_expression "(int *)(&DAT_000706e0 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000706e0 + param_2 * 4)" ( (binary_expression "&DAT_000706e0 + param_2 * 4" (pointer_expression "&DAT_000706e0" & identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) == number_literal) )) (compound_statement "{\n    local_18 = param_2;\n    if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }\n    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }\n                    \n    FUN_0006f430();\n  }" { (expression_statement "local_18 = param_2;" (assignment_expression "local_18 = param_2" identifier = identifier) ;) (if_statement "if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }" if (parenthesized_expression "(param_3 == (undefined *)0x0)" ( (binary_expression "param_3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }" { (expression_statement "local_14 = &DAT_000712ce;" (assignment_expression "local_14 = &DAT_000712ce" identifier = (pointer_expression "&DAT_000712ce" & identifier)) ;) (expression_statement "pcVar2 = FUN_00016f90;" (assignment_expression "pcVar2 = FUN_00016f90" identifier = identifier) ;) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }" else (compound_statement "{\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }" { (expression_statement "local_14 = param_3;" (assignment_expression "local_14 = param_3" identifier = identifier) ;) (expression_statement "uVar3 = 3;" (assignment_expression "uVar3 = 3" identifier = number_literal) ;) (expression_statement "pcVar2 = (code *)0x0;" (assignment_expression "pcVar2 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (expression_statement "piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);" (assignment_expression "piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3)" identifier = (cast_expression "(int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3)" identifier (argument_list "(*param_1,&local_18,pcVar2,uVar3)" ( (pointer_expression "*param_1" * identifier) , (pointer_expression "&local_18" & identifier) , identifier , identifier ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }" { (if_statement "if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }" if (parenthesized_expression "(*piVar1 == param_2)" ( (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" * identifier) == identifier) )) (compound_statement "{\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }" { (expression_statement "*param_4 = piVar1[1];" (assignment_expression "*param_4 = piVar1[1]" (pointer_expression "*param_4" * identifier) = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (expression_statement "piVar1 = (int *)piVar1[2];" (assignment_expression "piVar1 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n        piVar1 = (int *)0x0;\n      }" else (compound_statement "{\n        piVar1 = (int *)0x0;\n      }" { (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      return piVar1;\n    }" { (return_statement "return piVar1;" return identifier ;) })) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs")" identifier (argument_list "("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs")" ( (string_literal ""valuetypes[primary] == TYPE_STR"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_str_strs"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (pointer_expression & IDENT) , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "int * FUN_00017700(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)\n\n{\n  int *piVar1;\n  int in_GS_OFFSET;\n  code *pcVar2;\n  undefined4 uVar3;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 2) {\n    local_18 = param_2;\n    if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }\n    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }\n                    \n    FUN_0006f430();\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");\n}" (primitive_type "int") (pointer_declarator "* FUN_00017700(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)" (* "*") (function_declarator "FUN_00017700(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)" (identifier "FUN_00017700") (parameter_list "(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined *param_3" (type_identifier "undefined") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")")))) (compound_statement "{\n  int *piVar1;\n  int in_GS_OFFSET;\n  code *pcVar2;\n  undefined4 uVar3;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 2) {\n    local_18 = param_2;\n    if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }\n    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }\n                    \n    FUN_0006f430();\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "code *pcVar2;" (type_identifier "code") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int local_18;" (primitive_type "int") (identifier "local_18") (; ";")) (declaration "undefined *local_14;" (type_identifier "undefined") (pointer_declarator "*local_14" (* "*") (identifier "local_14")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }" (if "if") (parenthesized_expression "(*(int *)(&DAT_000709c0 + param_2 * 4) != 2)" (( "(") (binary_expression "*(int *)(&DAT_000709c0 + param_2 * 4) != 2" (pointer_expression "*(int *)(&DAT_000709c0 + param_2 * 4)" (* "*") (cast_expression "(int *)(&DAT_000709c0 + param_2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000709c0 + param_2 * 4)" (( "(") (binary_expression "&DAT_000709c0 + param_2 * 4" (pointer_expression "&DAT_000709c0" (& "&") (identifier "DAT_000709c0")) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")")))) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");\n  }" ({ "{") (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs")" (identifier "__assert_fail") (argument_list "("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs")" (( "(") (string_literal ""subkeytypes[primary] == TYPE_STR"" (" """) (string_content "subkeytypes[primary] == TYPE_STR") (" """)) (, ",") (string_literal ""conf.c"" (" """) (string_content "conf.c") (" """)) (, ",") (number_literal "0x145") (, ",") (string_literal ""conf_get_str_strs"" (" """) (string_content "conf_get_str_strs") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(&DAT_000706e0 + param_2 * 4) == 2) {\n    local_18 = param_2;\n    if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }\n    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }\n                    \n    FUN_0006f430();\n  }" (if "if") (parenthesized_expression "(*(int *)(&DAT_000706e0 + param_2 * 4) == 2)" (( "(") (binary_expression "*(int *)(&DAT_000706e0 + param_2 * 4) == 2" (pointer_expression "*(int *)(&DAT_000706e0 + param_2 * 4)" (* "*") (cast_expression "(int *)(&DAT_000706e0 + param_2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000706e0 + param_2 * 4)" (( "(") (binary_expression "&DAT_000706e0 + param_2 * 4" (pointer_expression "&DAT_000706e0" (& "&") (identifier "DAT_000706e0")) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    local_18 = param_2;\n    if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }\n    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }\n                    \n    FUN_0006f430();\n  }" ({ "{") (expression_statement "local_18 = param_2;" (assignment_expression "local_18 = param_2" (identifier "local_18") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_3 == (undefined *)0x0) {\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }\n    else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }" (if "if") (parenthesized_expression "(param_3 == (undefined *)0x0)" (( "(") (binary_expression "param_3 == (undefined *)0x0" (identifier "param_3") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      local_14 = &DAT_000712ce;\n      pcVar2 = FUN_00016f90;\n      uVar3 = 4;\n    }" ({ "{") (expression_statement "local_14 = &DAT_000712ce;" (assignment_expression "local_14 = &DAT_000712ce" (identifier "local_14") (= "=") (pointer_expression "&DAT_000712ce" (& "&") (identifier "DAT_000712ce"))) (; ";")) (expression_statement "pcVar2 = FUN_00016f90;" (assignment_expression "pcVar2 = FUN_00016f90" (identifier "pcVar2") (= "=") (identifier "FUN_00016f90")) (; ";")) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" (identifier "uVar3") (= "=") (number_literal "4")) (; ";")) (} "}")) (else_clause "else {\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }" (else "else") (compound_statement "{\n      local_14 = param_3;\n      uVar3 = 3;\n      pcVar2 = (code *)0x0;\n    }" ({ "{") (expression_statement "local_14 = param_3;" (assignment_expression "local_14 = param_3" (identifier "local_14") (= "=") (identifier "param_3")) (; ";")) (expression_statement "uVar3 = 3;" (assignment_expression "uVar3 = 3" (identifier "uVar3") (= "=") (number_literal "3")) (; ";")) (expression_statement "pcVar2 = (code *)0x0;" (assignment_expression "pcVar2 = (code *)0x0" (identifier "pcVar2") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")))) (expression_statement "piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);" (assignment_expression "piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3)" (identifier "FUN_00063fa0") (argument_list "(*param_1,&local_18,pcVar2,uVar3)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (pointer_expression "&local_18" (& "&") (identifier "local_18")) (, ",") (identifier "pcVar2") (, ",") (identifier "uVar3") () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }" (if "if") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }" ({ "{") (if_statement "if (*piVar1 == param_2) {\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }" (if "if") (parenthesized_expression "(*piVar1 == param_2)" (( "(") (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n        *param_4 = piVar1[1];\n        piVar1 = (int *)piVar1[2];\n      }" ({ "{") (expression_statement "*param_4 = piVar1[1];" (assignment_expression "*param_4 = piVar1[1]" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar1 = (int *)piVar1[2];" (assignment_expression "piVar1 = (int *)piVar1[2]" (identifier "piVar1") (= "=") (cast_expression "(int *)piVar1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}")) (else_clause "else {\n        piVar1 = (int *)0x0;\n      }" (else "else") (compound_statement "{\n        piVar1 = (int *)0x0;\n      }" ({ "{") (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" (identifier "piVar1") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return piVar1;\n    }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n      return piVar1;\n    }" ({ "{") (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}"))) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" (identifier "FUN_0006f430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs")" (identifier "__assert_fail") (argument_list "("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs")" (( "(") (string_literal ""valuetypes[primary] == TYPE_STR"" (" """) (string_content "valuetypes[primary] == TYPE_STR") (" """)) (, ",") (string_literal ""conf.c"" (" """) (string_content "conf.c") (" """)) (, ",") (number_literal "0x146") (, ",") (string_literal ""conf_get_str_strs"" (" """) (string_content "conf_get_str_strs") (" """)) () ")"))) (; ";")) (} "}")))

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

char * function_1(type_1 *conf,int var_6,char *var_3,char **subkeyout)

{
  int var_7;
  int *var_5;
  int var_1;
  type_2 *cmp;
  int relation;
  type_3 key;
  
  var_7 = *(int *)(var_1 + 0x14);
  if (subkeytypes[var_6] != 2) {
                    /* WARNING: Subroutine does not return */
    var_2("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");
  }
  if (valuetypes[var_6] == 2) {
    key.var_6 = var_6;
    if (var_3 == (char *)0x0) {
      key.secondary.s = "";
      cmp = conf_cmp_constkey;
      relation = 4;
    }
    else {
      key.secondary.s = var_3;
      relation = 3;
      cmp = (type_4)0x0;
    }
    var_5 = (int *)var_4(conf->tree,&key,cmp,relation);
    if (var_5 != (int *)0x0) {
      if (*var_5 == var_6) {
        *subkeyout = (char *)var_5[1];
        var_5 = (int *)var_5[2];
      }
      else {
        var_5 = (int *)0x0;
      }
    }
    if (var_7 == *(int *)(var_1 + 0x14)) {
      return (char *)var_5;
    }
                    /* WARNING: Subroutine does not return */
    var_8();
  }
                    /* WARNING: Subroutine does not return */
  var_2("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");
}


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

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

int * MASKED(undefined4 *param_1,int param_2,undefined *param_3,int *param_4)

{
  int *piVar1;
  int in_GS_OFFSET;
  code *pcVar2;
  undefined4 uVar3;
  int local_18;
  undefined *local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x145,"conf_get_str_strs");
  }
  if (*(int *)(&DAT_000706e0 + param_2 * 4) == 2) {
    local_18 = param_2;
    if (param_3 == (undefined *)0x0) {
      local_14 = &DAT_000712ce;
      pcVar2 = FUN_00016f90;
      uVar3 = 4;
    }
    else {
      local_14 = param_3;
      uVar3 = 3;
      pcVar2 = (code *)0x0;
    }
    piVar1 = (int *)FUN_00063fa0(*param_1,&local_18,pcVar2,uVar3);
    if (piVar1 != (int *)0x0) {
      if (*piVar1 == param_2) {
        *param_4 = piVar1[1];
        piVar1 = (int *)piVar1[2];
      }
      else {
        piVar1 = (int *)0x0;
      }
    }
    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
      return piVar1;
    }
                    /* WARNING: Subroutine does not return */
    FUN_0006f430();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x146,"conf_get_str_strs");
}

