
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

urlpos * get_urls_css_file(char *file,char *url)

{
  int iVar1;
  file_memory *fm;
  int buf_length;
  char *pcVar2;
  int *piVar3;
  urlpos *puVar4;
  int in_GS_OFFSET;
  map_context ctx;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  fm = wget_read_file(file);
  if (fm == (file_memory *)0x0) {
    piVar3 = __errno_location();
    pcVar2 = rpl_strerror(*piVar3);
    logprintf(LOG_NOTQUIET,"%s: %s\n",file,pcVar2);
    puVar4 = (urlpos *)0x0;
  }
  else {
    buf_length = fm->length;
    if (opt.debug != false) {
      pcVar2 = number_to_static_string((longlong)buf_length);
      debug_logprintf("Loaded %s (size %s).\n",file,pcVar2);
      buf_length = fm->length;
    }
    ctx.text = fm->content;
    ctx.head = (urlpos *)0x0;
    ctx.base = (char *)0x0;
    if (url == (char *)0x0) {
      url = opt.base_href;
    }
    ctx.document_file = file;
    ctx.nofollow = false;
    ctx.parent_base = url;
    get_urls_css(&ctx,0,buf_length);
    wget_read_file_free(fm);
    puVar4 = ctx.head;
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined4 FUN_00024bb0(undefined4 param_1,int param_2)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  int *piVar4;
  int in_GS_OFFSET;
  undefined4 local_38;
  undefined4 local_34;
  int local_30;
  undefined4 local_2c;
  undefined1 local_28;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x24bb9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  puVar1 = (undefined4 *)FUN_0004a740(param_1);
  if (puVar1 == (undefined4 *)0x0) {
    piVar4 = __errno_location();
    uVar3 = FUN_0006d0d0(*piVar4);
    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);
    uVar3 = 0;
  }
  else {
    iVar2 = puVar1[1];
    if (DAT_000a8b9b != '\0') {
      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);
      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);
      iVar2 = puVar1[1];
    }
    local_38 = *puVar1;
    local_24 = 0;
    local_34 = 0;
    if (param_2 == 0) {
      param_2 = DAT_000a8b40;
    }
    local_2c = param_1;
    local_28 = 0;
    local_30 = param_2;
    FUN_00024920(&local_38,0,iVar2);
    FUN_0004a910(puVar1);
    uVar3 = local_24;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006da50();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019070
ADD EBX,0x7c017
SUB ESP,0x48
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x38],EAX
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0x5c]
MOV EDI,dword ptr [ESP + 0x60]
PUSH EBP
CALL 0x0004a740
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00024ca0
LEA ECX,[EBX + 0x7e70]
MOV EAX,dword ptr [EAX + 0x4]
CMP byte ptr [ECX + 0x15b],0x0
JNZ 0x00024c70
MOV EDX,dword ptr [ESI]
MOV dword ptr [ESP + 0x28],0x0
MOV dword ptr [ESP + 0x18],0x0
MOV dword ptr [ESP + 0x14],EDX
TEST EDI,EDI
JZ 0x00024c60
MOV dword ptr [ESP + 0x1c],EDI
SUB ESP,0x4
MOV dword ptr [ESP + 0x24],EBP
MOV byte ptr [ESP + 0x28],0x0
PUSH EAX
PUSH 0x0
LEA EAX,[ESP + 0x20]
PUSH EAX
CALL 0x00024920
MOV dword ptr [ESP],ESI
CALL 0x0004a910
MOV ESI,dword ptr [ESP + 0x38]
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x2c]
XOR EDX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x00024cc7
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [ECX + 0x100]
JMP 0x00024c15
MOV dword ptr [ESP + 0xc],ECX
CDQ
SUB ESP,0x8
PUSH EDX
PUSH EAX
CALL 0x0004d760
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xfffd7d6f]
PUSH EBP
PUSH EAX
CALL 0x0003b070
ADD ESP,0x10
MOV EAX,dword ptr [ESI + 0x4]
MOV ECX,dword ptr [ESP + 0xc]
JMP 0x00024bfb
CALL 0x00016080
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x0006d0d0
PUSH EAX
LEA EAX,[EBX + 0xfffdaec5]
PUSH EBP
PUSH EAX
PUSH 0x1
CALL 0x0003af00
ADD ESP,0x20
JMP 0x00024c41
CALL 0x0006da50
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00024bb0(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  undefined4 local_2c;\n  undefined1 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)FUN_0004a740(param_1);\n  if (puVar1 == (undefined4 *)0x0) {\n    piVar4 = __errno_location();\n    uVar3 = FUN_0006d0d0(*piVar4);\n    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006da50();\n}\n\n" comment (function_definition "undefined4 FUN_00024bb0(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  undefined4 local_2c;\n  undefined1 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)FUN_0004a740(param_1);\n  if (puVar1 == (undefined4 *)0x0) {\n    piVar4 = __errno_location();\n    uVar3 = FUN_0006d0d0(*piVar4);\n    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006da50();\n}" type_identifier (function_declarator "FUN_00024bb0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  undefined4 local_2c;\n  undefined1 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)FUN_0004a740(param_1);\n  if (puVar1 == (undefined4 *)0x0) {\n    piVar4 = __errno_location();\n    uVar3 = FUN_0006d0d0(*piVar4);\n    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006da50();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined1 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x24bb9;" (assignment_expression "uStack_14 = 0x24bb9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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) ))))) ;) (expression_statement "puVar1 = (undefined4 *)FUN_0004a740(param_1);" (assignment_expression "puVar1 = (undefined4 *)FUN_0004a740(param_1)" identifier = (cast_expression "(undefined4 *)FUN_0004a740(param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004a740(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    piVar4 = __errno_location();\n    uVar3 = FUN_0006d0d0(*piVar4);\n    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar4 = __errno_location();\n    uVar3 = FUN_0006d0d0(*piVar4);\n    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);\n    uVar3 = 0;\n  }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = FUN_0006d0d0(*piVar4);" (assignment_expression "uVar3 = FUN_0006d0d0(*piVar4)" identifier = (call_expression "FUN_0006d0d0(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "FUN_0003af00(1,"%s: %s\n",param_1,uVar3);" (call_expression "FUN_0003af00(1,"%s: %s\n",param_1,uVar3)" identifier (argument_list "(1,"%s: %s\n",param_1,uVar3)" ( number_literal , (string_literal ""%s: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }" else (compound_statement "{\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }" { (expression_statement "iVar2 = puVar1[1];" (assignment_expression "iVar2 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (if_statement "if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }" if (parenthesized_expression "(DAT_000a8b9b != '\0')" ( (binary_expression "DAT_000a8b9b != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }" { (expression_statement "uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);" (assignment_expression "uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f)" identifier = (call_expression "FUN_0004d760(iVar2,iVar2 >> 0x1f)" identifier (argument_list "(iVar2,iVar2 >> 0x1f)" ( identifier , (binary_expression "iVar2 >> 0x1f" identifier >> number_literal) )))) ;) (expression_statement "FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);" (call_expression "FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3)" identifier (argument_list "("Loaded %s (size %s).\n",param_1,uVar3)" ( (string_literal ""Loaded %s (size %s).\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "iVar2 = puVar1[1];" (assignment_expression "iVar2 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) })) (expression_statement "local_38 = *puVar1;" (assignment_expression "local_38 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      param_2 = DAT_000a8b40;\n    }" { (expression_statement "param_2 = DAT_000a8b40;" (assignment_expression "param_2 = DAT_000a8b40" identifier = identifier) ;) })) (expression_statement "local_2c = param_1;" (assignment_expression "local_2c = param_1" identifier = identifier) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_30 = param_2;" (assignment_expression "local_30 = param_2" identifier = identifier) ;) (expression_statement "FUN_00024920(&local_38,0,iVar2);" (call_expression "FUN_00024920(&local_38,0,iVar2)" identifier (argument_list "(&local_38,0,iVar2)" ( (pointer_expression "&local_38" & identifier) , number_literal , identifier ))) ;) (expression_statement "FUN_0004a910(puVar1);" (call_expression "FUN_0004a910(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "uVar3 = local_24;" (assignment_expression "uVar3 = local_24" identifier = identifier) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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 uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) })) comment (expression_statement "FUN_0006da50();" (call_expression "FUN_0006da50()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nurlpos * get_urls_css_file(char *file,char *url)\n\n{\n  int iVar1;\n  file_memory *fm;\n  int buf_length;\n  char *pcVar2;\n  int *piVar3;\n  urlpos *puVar4;\n  int in_GS_OFFSET;\n  map_context ctx;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  fm = wget_read_file(file);\n  if (fm == (file_memory *)0x0) {\n    piVar3 = __errno_location();\n    pcVar2 = rpl_strerror(*piVar3);\n    logprintf(LOG_NOTQUIET,"%s: %s\n",file,pcVar2);\n    puVar4 = (urlpos *)0x0;\n  }\n  else {\n    buf_length = fm->length;\n    if (opt.debug != false) {\n      pcVar2 = number_to_static_string((longlong)buf_length);\n      debug_logprintf("Loaded %s (size %s).\n",file,pcVar2);\n      buf_length = fm->length;\n    }\n    ctx.text = fm->content;\n    ctx.head = (urlpos *)0x0;\n    ctx.base = (char *)0x0;\n    if (url == (char *)0x0) {\n      url = opt.base_href;\n    }\n    ctx.document_file = file;\n    ctx.nofollow = false;\n    ctx.parent_base = url;\n    get_urls_css(&ctx,0,buf_length);\n    wget_read_file_free(fm);\n    puVar4 = ctx.head;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment comment (function_definition "urlpos * get_urls_css_file(char *file,char *url)\n\n{\n  int iVar1;\n  file_memory *fm;\n  int buf_length;\n  char *pcVar2;\n  int *piVar3;\n  urlpos *puVar4;\n  int in_GS_OFFSET;\n  map_context ctx;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  fm = wget_read_file(file);\n  if (fm == (file_memory *)0x0) {\n    piVar3 = __errno_location();\n    pcVar2 = rpl_strerror(*piVar3);\n    logprintf(LOG_NOTQUIET,"%s: %s\n",file,pcVar2);\n    puVar4 = (urlpos *)0x0;\n  }\n  else {\n    buf_length = fm->length;\n    if (opt.debug != false) {\n      pcVar2 = number_to_static_string((longlong)buf_length);\n      debug_logprintf("Loaded %s (size %s).\n",file,pcVar2);\n      buf_length = fm->length;\n    }\n    ctx.text = fm->content;\n    ctx.head = (urlpos *)0x0;\n    ctx.base = (char *)0x0;\n    if (url == (char *)0x0) {\n      url = opt.base_href;\n    }\n    ctx.document_file = file;\n    ctx.nofollow = false;\n    ctx.parent_base = url;\n    get_urls_css(&ctx,0,buf_length);\n    wget_read_file_free(fm);\n    puVar4 = ctx.head;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (pointer_declarator "* get_urls_css_file(char *file,char *url)" * (function_declarator "get_urls_css_file(char *file,char *url)" identifier (parameter_list "(char *file,char *url)" ( (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) , (parameter_declaration "char *url" primitive_type (pointer_declarator "*url" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  file_memory *fm;\n  int buf_length;\n  char *pcVar2;\n  int *piVar3;\n  urlpos *puVar4;\n  int in_GS_OFFSET;\n  map_context ctx;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  fm = wget_read_file(file);\n  if (fm == (file_memory *)0x0) {\n    piVar3 = __errno_location();\n    pcVar2 = rpl_strerror(*piVar3);\n    logprintf(LOG_NOTQUIET,"%s: %s\n",file,pcVar2);\n    puVar4 = (urlpos *)0x0;\n  }\n  else {\n    buf_length = fm->length;\n    if (opt.debug != false) {\n      pcVar2 = number_to_static_string((longlong)buf_length);\n      debug_logprintf("Loaded %s (size %s).\n",file,pcVar2);\n      buf_length = fm->length;\n    }\n    ctx.text = fm->content;\n    ctx.head = (urlpos *)0x0;\n    ctx.base = (char *)0x0;\n    if (url == (char *)0x0) {\n      url = opt.base_href;\n    }\n    ctx.document_file = file;\n    ctx.nofollow = false;\n    ctx.parent_base = url;\n    get_urls_css(&ctx,0,buf_length);\n    wget_read_file_free(fm);\n    puVar4 = ctx.head;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "file_memory *fm;" type_identifier (pointer_declarator "*fm" * identifier) ;) (declaration "int buf_length;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "urlpos *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "map_context ctx;" 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) ))))) ;) (expression_statement "fm = wget_read_file(file);" (assignment_expression "fm = wget_read_file(file)" identifier = (call_expression "wget_read_file(file)" identifier (argument_list "(file)" ( identifier )))) ;) (if_statement "if (fm == (file_memory *)0x0) {\n    piVar3 = __errno_location();\n    pcVar2 = rpl_strerror(*piVar3);\n    logprintf(LOG_NOTQUIET,"%s: %s\n",file,pcVar2);\n    puVar4 = (urlpos *)0x0;\n  }\n  else {\n    buf_length = fm->length;\n    if (opt.debug != false) {\n      pcVar2 = number_to_static_string((longlong)buf_length);\n      debug_logprintf("Loaded %s (size %s).\n",file,pcVar2);\n      buf_length = fm->length;\n    }\n    ctx.text = fm->content;\n    ctx.head = (urlpos *)0x0;\n    ctx.base = (char *)0x0;\n    if (url == (char *)0x0) {\n      url = opt.base_href;\n    }\n    ctx.document_file = file;\n    ctx.nofollow = false;\n    ctx.parent_base = url;\n    get_urls_css(&ctx,0,buf_length);\n    wget_read_file_free(fm);\n    puVar4 = ctx.head;\n  }" if (parenthesized_expression "(fm == (file_memory *)0x0)" ( (binary_expression "fm == (file_memory *)0x0" identifier == (cast_expression "(file_memory *)0x0" ( (type_descriptor "file_memory *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar3 = __errno_location();\n    pcVar2 = rpl_strerror(*piVar3);\n    logprintf(LOG_NOTQUIET,"%s: %s\n",file,pcVar2);\n    puVar4 = (urlpos *)0x0;\n  }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = rpl_strerror(*piVar3);" (assignment_expression "pcVar2 = rpl_strerror(*piVar3)" identifier = (call_expression "rpl_strerror(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (expression_statement "logprintf(LOG_NOTQUIET,"%s: %s\n",file,pcVar2);" (call_expression "logprintf(LOG_NOTQUIET,"%s: %s\n",file,pcVar2)" identifier (argument_list "(LOG_NOTQUIET,"%s: %s\n",file,pcVar2)" ( identifier , (string_literal ""%s: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "puVar4 = (urlpos *)0x0;" (assignment_expression "puVar4 = (urlpos *)0x0" identifier = (cast_expression "(urlpos *)0x0" ( (type_descriptor "urlpos *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    buf_length = fm->length;\n    if (opt.debug != false) {\n      pcVar2 = number_to_static_string((longlong)buf_length);\n      debug_logprintf("Loaded %s (size %s).\n",file,pcVar2);\n      buf_length = fm->length;\n    }\n    ctx.text = fm->content;\n    ctx.head = (urlpos *)0x0;\n    ctx.base = (char *)0x0;\n    if (url == (char *)0x0) {\n      url = opt.base_href;\n    }\n    ctx.document_file = file;\n    ctx.nofollow = false;\n    ctx.parent_base = url;\n    get_urls_css(&ctx,0,buf_length);\n    wget_read_file_free(fm);\n    puVar4 = ctx.head;\n  }" else (compound_statement "{\n    buf_length = fm->length;\n    if (opt.debug != false) {\n      pcVar2 = number_to_static_string((longlong)buf_length);\n      debug_logprintf("Loaded %s (size %s).\n",file,pcVar2);\n      buf_length = fm->length;\n    }\n    ctx.text = fm->content;\n    ctx.head = (urlpos *)0x0;\n    ctx.base = (char *)0x0;\n    if (url == (char *)0x0) {\n      url = opt.base_href;\n    }\n    ctx.document_file = file;\n    ctx.nofollow = false;\n    ctx.parent_base = url;\n    get_urls_css(&ctx,0,buf_length);\n    wget_read_file_free(fm);\n    puVar4 = ctx.head;\n  }" { (expression_statement "buf_length = fm->length;" (assignment_expression "buf_length = fm->length" identifier = (field_expression "fm->length" identifier -> field_identifier)) ;) (if_statement "if (opt.debug != false) {\n      pcVar2 = number_to_static_string((longlong)buf_length);\n      debug_logprintf("Loaded %s (size %s).\n",file,pcVar2);\n      buf_length = fm->length;\n    }" if (parenthesized_expression "(opt.debug != false)" ( (binary_expression "opt.debug != false" (field_expression "opt.debug" identifier . field_identifier) != false) )) (compound_statement "{\n      pcVar2 = number_to_static_string((longlong)buf_length);\n      debug_logprintf("Loaded %s (size %s).\n",file,pcVar2);\n      buf_length = fm->length;\n    }" { (expression_statement "pcVar2 = number_to_static_string((longlong)buf_length);" (assignment_expression "pcVar2 = number_to_static_string((longlong)buf_length)" identifier = (call_expression "number_to_static_string((longlong)buf_length)" identifier (argument_list "((longlong)buf_length)" ( (cast_expression "(longlong)buf_length" ( (type_descriptor "longlong" type_identifier) ) identifier) )))) ;) (expression_statement "debug_logprintf("Loaded %s (size %s).\n",file,pcVar2);" (call_expression "debug_logprintf("Loaded %s (size %s).\n",file,pcVar2)" identifier (argument_list "("Loaded %s (size %s).\n",file,pcVar2)" ( (string_literal ""Loaded %s (size %s).\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "buf_length = fm->length;" (assignment_expression "buf_length = fm->length" identifier = (field_expression "fm->length" identifier -> field_identifier)) ;) })) (expression_statement "ctx.text = fm->content;" (assignment_expression "ctx.text = fm->content" (field_expression "ctx.text" identifier . field_identifier) = (field_expression "fm->content" identifier -> field_identifier)) ;) (expression_statement "ctx.head = (urlpos *)0x0;" (assignment_expression "ctx.head = (urlpos *)0x0" (field_expression "ctx.head" identifier . field_identifier) = (cast_expression "(urlpos *)0x0" ( (type_descriptor "urlpos *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ctx.base = (char *)0x0;" (assignment_expression "ctx.base = (char *)0x0" (field_expression "ctx.base" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (url == (char *)0x0) {\n      url = opt.base_href;\n    }" if (parenthesized_expression "(url == (char *)0x0)" ( (binary_expression "url == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      url = opt.base_href;\n    }" { (expression_statement "url = opt.base_href;" (assignment_expression "url = opt.base_href" identifier = (field_expression "opt.base_href" identifier . field_identifier)) ;) })) (expression_statement "ctx.document_file = file;" (assignment_expression "ctx.document_file = file" (field_expression "ctx.document_file" identifier . field_identifier) = identifier) ;) (expression_statement "ctx.nofollow = false;" (assignment_expression "ctx.nofollow = false" (field_expression "ctx.nofollow" identifier . field_identifier) = false) ;) (expression_statement "ctx.parent_base = url;" (assignment_expression "ctx.parent_base = url" (field_expression "ctx.parent_base" identifier . field_identifier) = identifier) ;) (expression_statement "get_urls_css(&ctx,0,buf_length);" (call_expression "get_urls_css(&ctx,0,buf_length)" identifier (argument_list "(&ctx,0,buf_length)" ( (pointer_expression "&ctx" & identifier) , number_literal , identifier ))) ;) (expression_statement "wget_read_file_free(fm);" (call_expression "wget_read_file_free(fm)" identifier (argument_list "(fm)" ( identifier ))) ;) (expression_statement "puVar4 = ctx.head;" (assignment_expression "puVar4 = ctx.head" identifier = (field_expression "ctx.head" identifier . field_identifier)) ;) }))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar4;\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 puVar4;\n  }" { (return_statement "return puVar4;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_00024bb0(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  undefined4 local_2c;\n  undefined1 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)FUN_0004a740(param_1);\n  if (puVar1 == (undefined4 *)0x0) {\n    piVar4 = __errno_location();\n    uVar3 = FUN_0006d0d0(*piVar4);\n    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_0006da50();\n}\n\n" (function_definition "undefined4 FUN_00024bb0(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  undefined4 local_2c;\n  undefined1 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)FUN_0004a740(param_1);\n  if (puVar1 == (undefined4 *)0x0) {\n    piVar4 = __errno_location();\n    uVar3 = FUN_0006d0d0(*piVar4);\n    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_0006da50();\n}" type_identifier (function_declarator "FUN_00024bb0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  undefined4 local_2c;\n  undefined1 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)FUN_0004a740(param_1);\n  if (puVar1 == (undefined4 *)0x0) {\n    piVar4 = __errno_location();\n    uVar3 = FUN_0006d0d0(*piVar4);\n    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_0006da50();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined1 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x24bb9;" (assignment_expression "uStack_14 = 0x24bb9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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) ))))) ;) (expression_statement "puVar1 = (undefined4 *)FUN_0004a740(param_1);" (assignment_expression "puVar1 = (undefined4 *)FUN_0004a740(param_1)" identifier = (cast_expression "(undefined4 *)FUN_0004a740(param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004a740(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    piVar4 = __errno_location();\n    uVar3 = FUN_0006d0d0(*piVar4);\n    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar4 = __errno_location();\n    uVar3 = FUN_0006d0d0(*piVar4);\n    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);\n    uVar3 = 0;\n  }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = FUN_0006d0d0(*piVar4);" (assignment_expression "uVar3 = FUN_0006d0d0(*piVar4)" identifier = (call_expression "FUN_0006d0d0(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "FUN_0003af00(1,"%s: %s\n",param_1,uVar3);" (call_expression "FUN_0003af00(1,"%s: %s\n",param_1,uVar3)" identifier (argument_list "(1,"%s: %s\n",param_1,uVar3)" ( number_literal , (string_literal ""%s: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }" else (compound_statement "{\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }" { (expression_statement "iVar2 = puVar1[1];" (assignment_expression "iVar2 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (if_statement "if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }" if (parenthesized_expression "(DAT_000a8b9b != '\0')" ( (binary_expression "DAT_000a8b9b != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }" { (expression_statement "uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);" (assignment_expression "uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f)" identifier = (call_expression "FUN_0004d760(iVar2,iVar2 >> 0x1f)" identifier (argument_list "(iVar2,iVar2 >> 0x1f)" ( identifier , (binary_expression "iVar2 >> 0x1f" identifier >> number_literal) )))) ;) (expression_statement "FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);" (call_expression "FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3)" identifier (argument_list "("Loaded %s (size %s).\n",param_1,uVar3)" ( (string_literal ""Loaded %s (size %s).\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "iVar2 = puVar1[1];" (assignment_expression "iVar2 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) })) (expression_statement "local_38 = *puVar1;" (assignment_expression "local_38 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      param_2 = DAT_000a8b40;\n    }" { (expression_statement "param_2 = DAT_000a8b40;" (assignment_expression "param_2 = DAT_000a8b40" identifier = identifier) ;) })) (expression_statement "local_2c = param_1;" (assignment_expression "local_2c = param_1" identifier = identifier) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_30 = param_2;" (assignment_expression "local_30 = param_2" identifier = identifier) ;) (expression_statement "FUN_00024920(&local_38,0,iVar2);" (call_expression "FUN_00024920(&local_38,0,iVar2)" identifier (argument_list "(&local_38,0,iVar2)" ( (pointer_expression "&local_38" & identifier) , number_literal , identifier ))) ;) (expression_statement "FUN_0004a910(puVar1);" (call_expression "FUN_0004a910(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "uVar3 = local_24;" (assignment_expression "uVar3 = local_24" identifier = identifier) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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 uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) })) (expression_statement "FUN_0006da50();" (call_expression "FUN_0006da50()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( 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 = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT >> LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (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 ( ))) ;) })))
(function_definition "undefined4 FUN_00024bb0(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  undefined4 local_2c;\n  undefined1 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)FUN_0004a740(param_1);\n  if (puVar1 == (undefined4 *)0x0) {\n    piVar4 = __errno_location();\n    uVar3 = FUN_0006d0d0(*piVar4);\n    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_0006da50();\n}" (type_identifier "undefined4") (function_declarator "FUN_00024bb0(undefined4 param_1,int param_2)" (identifier "FUN_00024bb0") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  undefined4 local_2c;\n  undefined1 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x24bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar1 = (undefined4 *)FUN_0004a740(param_1);\n  if (puVar1 == (undefined4 *)0x0) {\n    piVar4 = __errno_location();\n    uVar3 = FUN_0006d0d0(*piVar4);\n    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_0006da50();\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_38;" (type_identifier "undefined4") (identifier "local_38") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "undefined1 local_28;" (type_identifier "undefined1") (identifier "local_28") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x24bb9;" (assignment_expression "uStack_14 = 0x24bb9" (identifier "uStack_14") (= "=") (number_literal "0x24bb9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "puVar1 = (undefined4 *)FUN_0004a740(param_1);" (assignment_expression "puVar1 = (undefined4 *)FUN_0004a740(param_1)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_0004a740(param_1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004a740(param_1)" (identifier "FUN_0004a740") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";")) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    piVar4 = __errno_location();\n    uVar3 = FUN_0006d0d0(*piVar4);\n    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar4 = __errno_location();\n    uVar3 = FUN_0006d0d0(*piVar4);\n    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);\n    uVar3 = 0;\n  }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = FUN_0006d0d0(*piVar4);" (assignment_expression "uVar3 = FUN_0006d0d0(*piVar4)" (identifier "uVar3") (= "=") (call_expression "FUN_0006d0d0(*piVar4)" (identifier "FUN_0006d0d0") (argument_list "(*piVar4)" (( "(") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) () ")")))) (; ";")) (expression_statement "FUN_0003af00(1,"%s: %s\n",param_1,uVar3);" (call_expression "FUN_0003af00(1,"%s: %s\n",param_1,uVar3)" (identifier "FUN_0003af00") (argument_list "(1,"%s: %s\n",param_1,uVar3)" (( "(") (number_literal "1") (, ",") (string_literal ""%s: %s\n"" (" """) (string_content "%s: %s") (escape_sequence "\n") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }" (else "else") (compound_statement "{\n    iVar2 = puVar1[1];\n    if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }\n    local_38 = *puVar1;\n    local_24 = 0;\n    local_34 = 0;\n    if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }\n    local_2c = param_1;\n    local_28 = 0;\n    local_30 = param_2;\n    FUN_00024920(&local_38,0,iVar2);\n    FUN_0004a910(puVar1);\n    uVar3 = local_24;\n  }" ({ "{") (expression_statement "iVar2 = puVar1[1];" (assignment_expression "iVar2 = puVar1[1]" (identifier "iVar2") (= "=") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (DAT_000a8b9b != '\0') {\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }" (if "if") (parenthesized_expression "(DAT_000a8b9b != '\0')" (( "(") (binary_expression "DAT_000a8b9b != '\0'" (identifier "DAT_000a8b9b") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);\n      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);\n      iVar2 = puVar1[1];\n    }" ({ "{") (expression_statement "uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);" (assignment_expression "uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f)" (identifier "uVar3") (= "=") (call_expression "FUN_0004d760(iVar2,iVar2 >> 0x1f)" (identifier "FUN_0004d760") (argument_list "(iVar2,iVar2 >> 0x1f)" (( "(") (identifier "iVar2") (, ",") (binary_expression "iVar2 >> 0x1f" (identifier "iVar2") (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);" (call_expression "FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3)" (identifier "FUN_0003b070") (argument_list "("Loaded %s (size %s).\n",param_1,uVar3)" (( "(") (string_literal ""Loaded %s (size %s).\n"" (" """) (string_content "Loaded %s (size %s).") (escape_sequence "\n") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "iVar2 = puVar1[1];" (assignment_expression "iVar2 = puVar1[1]" (identifier "iVar2") (= "=") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (expression_statement "local_38 = *puVar1;" (assignment_expression "local_38 = *puVar1" (identifier "local_38") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 == 0) {\n      param_2 = DAT_000a8b40;\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      param_2 = DAT_000a8b40;\n    }" ({ "{") (expression_statement "param_2 = DAT_000a8b40;" (assignment_expression "param_2 = DAT_000a8b40" (identifier "param_2") (= "=") (identifier "DAT_000a8b40")) (; ";")) (} "}"))) (expression_statement "local_2c = param_1;" (assignment_expression "local_2c = param_1" (identifier "local_2c") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_30 = param_2;" (assignment_expression "local_30 = param_2" (identifier "local_30") (= "=") (identifier "param_2")) (; ";")) (expression_statement "FUN_00024920(&local_38,0,iVar2);" (call_expression "FUN_00024920(&local_38,0,iVar2)" (identifier "FUN_00024920") (argument_list "(&local_38,0,iVar2)" (( "(") (pointer_expression "&local_38" (& "&") (identifier "local_38")) (, ",") (number_literal "0") (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "FUN_0004a910(puVar1);" (call_expression "FUN_0004a910(puVar1)" (identifier "FUN_0004a910") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (expression_statement "uVar3 = local_24;" (assignment_expression "uVar3 = local_24" (identifier "uVar3") (= "=") (identifier "local_24")) (; ";")) (} "}")))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (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 uVar3;\n  }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "FUN_0006da50();" (call_expression "FUN_0006da50()" (identifier "FUN_0006da50") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 * function_1(char *file,char *var_9)

{
  int var_12;
  type_2 *var_3;
  int buf_length;
  char *pcVar2;
  int *piVar3;
  type_1 *puVar4;
  int var_1;
  type_3 ctx;
  
  var_12 = *(int *)(var_1 + 0x14);
  var_3 = var_2(file);
  if (var_3 == (type_2 *)0x0) {
    piVar3 = var_4();
    pcVar2 = var_5(*piVar3);
    var_6(LOG_NOTQUIET,"%s: %s\n",file,pcVar2);
    puVar4 = (type_1 *)0x0;
  }
  else {
    buf_length = var_3->length;
    if (opt.debug != false) {
      pcVar2 = var_7((type_4)buf_length);
      var_8("Loaded %s (size %s).\n",file,pcVar2);
      buf_length = var_3->length;
    }
    ctx.text = var_3->content;
    ctx.head = (type_1 *)0x0;
    ctx.base = (char *)0x0;
    if (var_9 == (char *)0x0) {
      var_9 = opt.base_href;
    }
    ctx.document_file = file;
    ctx.nofollow = false;
    ctx.parent_base = var_9;
    var_10(&ctx,0,buf_length);
    var_11(var_3);
    puVar4 = ctx.head;
  }
  if (var_12 == *(int *)(var_1 + 0x14)) {
    return puVar4;
  }
                    /* WARNING: Subroutine does not return */
  var_13();
}


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

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

undefined4 MASKED(undefined4 param_1,int param_2)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  int *piVar4;
  int in_GS_OFFSET;
  undefined4 local_38;
  undefined4 local_34;
  int local_30;
  undefined4 local_2c;
  undefined1 local_28;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x24bb9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  puVar1 = (undefined4 *)FUN_0004a740(param_1);
  if (puVar1 == (undefined4 *)0x0) {
    piVar4 = __errno_location();
    uVar3 = FUN_0006d0d0(*piVar4);
    FUN_0003af00(1,"%s: %s\n",param_1,uVar3);
    uVar3 = 0;
  }
  else {
    iVar2 = puVar1[1];
    if (DAT_000a8b9b != '\0') {
      uVar3 = FUN_0004d760(iVar2,iVar2 >> 0x1f);
      FUN_0003b070("Loaded %s (size %s).\n",param_1,uVar3);
      iVar2 = puVar1[1];
    }
    local_38 = *puVar1;
    local_24 = 0;
    local_34 = 0;
    if (param_2 == 0) {
      param_2 = DAT_000a8b40;
    }
    local_2c = param_1;
    local_28 = 0;
    local_30 = param_2;
    FUN_00024920(&local_38,0,iVar2);
    FUN_0004a910(puVar1);
    uVar3 = local_24;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006da50();
}

