
/* 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 */

CURLcode Curl_http2_setup(connectdata *conn)

{
  void *pvVar1;
  Curl_handler *pCVar2;
  connectbundle *pcVar3;
  Curl_handler *pCVar4;
  CURLcode CVar5;
  Curl_send_buffer *pCVar6;
  
  pvVar1 = (conn->data->req).protop;
  *(undefined4 *)((int)pvVar1 + 0x1a8) = 0xffffffff;
  if (*(int *)((int)pvVar1 + 0x1b0) == 0) {
    pCVar6 = Curl_add_buffer_init();
    *(Curl_send_buffer **)((int)pvVar1 + 0x1b0) = pCVar6;
    if (pCVar6 == (Curl_send_buffer *)0x0) {
      return CURLE_OUT_OF_MEMORY;
    }
  }
  pCVar2 = conn->handler;
  if ((pCVar2 != &Curl_handler_http2_ssl) && (pCVar2 != &Curl_handler_http2)) {
    pCVar4 = &Curl_handler_http2_ssl;
    if ((pCVar2->flags & 1) == 0) {
      pCVar4 = &Curl_handler_http2;
    }
    conn->handler = pCVar4;
    CVar5 = Curl_http2_init(conn);
    if (CVar5 == CURLE_OK) {
      Curl_infof(conn->data,"Using HTTP2, server supports multi-use\n");
      pcVar3 = conn->bundle;
      *(undefined4 *)((int)pvVar1 + 0x1e0) = 0;
      *(undefined4 *)((int)pvVar1 + 0x1e4) = 0;
      *(undefined4 *)((int)pvVar1 + 0x1d8) = 0;
      *(undefined4 *)((int)pvVar1 + 0x1dc) = 0;
      (conn->proto).ftpc.count1 = 0;
      (conn->proto).ftpc.count2 = 0;
      (conn->proto).ftpc.count3 = 0;
      (conn->proto).ftpc.state = FTP_STOP;
      (conn->bits).multiplex = true;
      conn->httpversion = 0x14;
      pcVar3->multiuse = 2;
      Curl_infof(conn->data,"Connection state changed (HTTP/2 confirmed)\n");
      Curl_multi_connchanged(conn->data->multi);
      return CURLE_OK;
    }
    Curl_add_buffer_free((Curl_send_buffer **)((int)pvVar1 + 0x1b0));
    return CVar5;
  }
  return CURLE_OK;
}



int __regparm3 FUN_0006a5e0(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  undefined *puVar4;
  int iVar5;
  int unaff_EBX;
  int *unaff_retaddr;
  
  entry(param_2,0x6a5e9);
  iVar1 = *(int *)(*unaff_retaddr + 0x148);
  *(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff;
  if (*(int *)(iVar1 + 0x1b0) == 0) {
    iVar5 = FUN_00022d20();
    *(int *)(iVar1 + 0x1b0) = iVar5;
    if (iVar5 == 0) {
      return 0x1b;
    }
  }
  puVar2 = (undefined *)unaff_retaddr[0x9f];
  if ((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))) {
    puVar4 = &UNK_0004bf17 + unaff_EBX;
    if ((puVar2[0x44] & 1) == 0) {
      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);
    }
    unaff_retaddr[0x9f] = (int)puVar4;
    iVar5 = FUN_0006a250(unaff_retaddr);
    if (iVar5 == 0) {
      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);
      puVar3 = (undefined4 *)unaff_retaddr[0x15f];
      *(undefined4 *)(iVar1 + 0x1e0) = 0;
      *(undefined4 *)(iVar1 + 0x1e4) = 0;
      *(undefined4 *)(iVar1 + 0x1d8) = 0;
      *(undefined4 *)(iVar1 + 0x1dc) = 0;
      unaff_retaddr[0x142] = 0;
      unaff_retaddr[0x143] = 0;
      unaff_retaddr[0x144] = 0;
      unaff_retaddr[0x145] = 0;
      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;
      unaff_retaddr[0x5e] = 0x14;
      *puVar3 = 2;
      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);
      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));
      return 0;
    }
    FUN_00022d40(iVar1 + 0x1b0);
    return iVar5;
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x4c1f7
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [ESI]
MOV EDI,dword ptr [EAX + 0x148]
MOV dword ptr [EDI + 0x1a8],0xffffffff
MOV EBP,dword ptr [EDI + 0x1b0]
TEST EBP,EBP
JZ 0x0006a738
MOV EDX,dword ptr [ESI + 0x27c]
LEA EAX,[EBX + 0xfffffd20]
CMP EDX,EAX
JZ 0x0006a728
LEA ECX,[EBX + 0xfffffd80]
CMP EDX,ECX
JZ 0x0006a728
TEST byte ptr [EDX + 0x44],0x1
CMOVZ EAX,ECX
SUB ESP,0xc
MOV dword ptr [ESI + 0x27c],EAX
PUSH ESI
CALL 0x0006a250
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x0006a708
SUB ESP,0x8
LEA EAX,[EBX + 0xfffd6648]
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x00027c40
MOV EAX,dword ptr [ESI + 0x57c]
MOV dword ptr [EDI + 0x1e0],0x0
MOV dword ptr [EDI + 0x1e4],0x0
MOV dword ptr [EDI + 0x1d8],0x0
MOV dword ptr [EDI + 0x1dc],0x0
MOV dword ptr [ESI + 0x508],0x0
MOV dword ptr [ESI + 0x50c],0x0
MOV dword ptr [ESI + 0x510],0x0
MOV dword ptr [ESI + 0x514],0x0
MOV byte ptr [ESI + 0x265],0x1
MOV dword ptr [ESI + 0x178],0x14
MOV dword ptr [EAX],0x2
POP EAX
LEA EAX,[EBX + 0xfffd6670]
POP EDX
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x00027c40
MOV EAX,dword ptr [ESI]
POP ECX
PUSH dword ptr [EAX + 0x84]
CALL 0x00046740
ADD ESP,0x10
ADD ESP,0xc
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
ADD EDI,0x1b0
PUSH EDI
CALL 0x00022d40
ADD ESP,0x10
MOV EAX,EBP
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
XOR EBP,EBP
POP EBX
MOV EAX,EBP
POP ESI
POP EDI
POP EBP
RET
CALL 0x00022d20
MOV dword ptr [EDI + 0x1b0],EAX
TEST EAX,EAX
JNZ 0x0006a616
MOV EBP,0x1b
JMP 0x0006a6fa
(translation_unit "int __regparm3 FUN_0006a5e0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x6a5e9);\n  iVar1 = *(int *)(*unaff_retaddr + 0x148);\n  *(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff;\n  if (*(int *)(iVar1 + 0x1b0) == 0) {\n    iVar5 = FUN_00022d20();\n    *(int *)(iVar1 + 0x1b0) = iVar5;\n    if (iVar5 == 0) {\n      return 0x1b;\n    }\n  }\n  puVar2 = (undefined *)unaff_retaddr[0x9f];\n  if ((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))) {\n    puVar4 = &UNK_0004bf17 + unaff_EBX;\n    if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }\n    unaff_retaddr[0x9f] = (int)puVar4;\n    iVar5 = FUN_0006a250(unaff_retaddr);\n    if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }\n    FUN_00022d40(iVar1 + 0x1b0);\n    return iVar5;\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm3 FUN_0006a5e0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x6a5e9);\n  iVar1 = *(int *)(*unaff_retaddr + 0x148);\n  *(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff;\n  if (*(int *)(iVar1 + 0x1b0) == 0) {\n    iVar5 = FUN_00022d20();\n    *(int *)(iVar1 + 0x1b0) = iVar5;\n    if (iVar5 == 0) {\n      return 0x1b;\n    }\n  }\n  puVar2 = (undefined *)unaff_retaddr[0x9f];\n  if ((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))) {\n    puVar4 = &UNK_0004bf17 + unaff_EBX;\n    if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }\n    unaff_retaddr[0x9f] = (int)puVar4;\n    iVar5 = FUN_0006a250(unaff_retaddr);\n    if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }\n    FUN_00022d40(iVar1 + 0x1b0);\n    return iVar5;\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0006a5e0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x6a5e9);\n  iVar1 = *(int *)(*unaff_retaddr + 0x148);\n  *(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff;\n  if (*(int *)(iVar1 + 0x1b0) == 0) {\n    iVar5 = FUN_00022d20();\n    *(int *)(iVar1 + 0x1b0) = iVar5;\n    if (iVar5 == 0) {\n      return 0x1b;\n    }\n  }\n  puVar2 = (undefined *)unaff_retaddr[0x9f];\n  if ((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))) {\n    puVar4 = &UNK_0004bf17 + unaff_EBX;\n    if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }\n    unaff_retaddr[0x9f] = (int)puVar4;\n    iVar5 = FUN_0006a250(unaff_retaddr);\n    if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }\n    FUN_00022d40(iVar1 + 0x1b0);\n    return iVar5;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x6a5e9);" (call_expression "entry(param_2,0x6a5e9)" identifier (argument_list "(param_2,0x6a5e9)" ( identifier , number_literal ))) ;) (expression_statement "iVar1 = *(int *)(*unaff_retaddr + 0x148);" (assignment_expression "iVar1 = *(int *)(*unaff_retaddr + 0x148)" identifier = (pointer_expression "*(int *)(*unaff_retaddr + 0x148)" * (cast_expression "(int *)(*unaff_retaddr + 0x148)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*unaff_retaddr + 0x148)" ( (binary_expression "*unaff_retaddr + 0x148" (pointer_expression "*unaff_retaddr" * identifier) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar1 + 0x1a8)" * (cast_expression "(undefined4 *)(iVar1 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1a8)" ( (binary_expression "iVar1 + 0x1a8" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)(iVar1 + 0x1b0) == 0) {\n    iVar5 = FUN_00022d20();\n    *(int *)(iVar1 + 0x1b0) = iVar5;\n    if (iVar5 == 0) {\n      return 0x1b;\n    }\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x1b0) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x1b0) == 0" (pointer_expression "*(int *)(iVar1 + 0x1b0)" * (cast_expression "(int *)(iVar1 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1b0)" ( (binary_expression "iVar1 + 0x1b0" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar5 = FUN_00022d20();\n    *(int *)(iVar1 + 0x1b0) = iVar5;\n    if (iVar5 == 0) {\n      return 0x1b;\n    }\n  }" { (expression_statement "iVar5 = FUN_00022d20();" (assignment_expression "iVar5 = FUN_00022d20()" identifier = (call_expression "FUN_00022d20()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(iVar1 + 0x1b0) = iVar5;" (assignment_expression "*(int *)(iVar1 + 0x1b0) = iVar5" (pointer_expression "*(int *)(iVar1 + 0x1b0)" * (cast_expression "(int *)(iVar1 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1b0)" ( (binary_expression "iVar1 + 0x1b0" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar5 == 0) {\n      return 0x1b;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0x1b;\n    }" { (return_statement "return 0x1b;" return number_literal ;) })) })) (expression_statement "puVar2 = (undefined *)unaff_retaddr[0x9f];" (assignment_expression "puVar2 = (undefined *)unaff_retaddr[0x9f]" identifier = (cast_expression "(undefined *)unaff_retaddr[0x9f]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "unaff_retaddr[0x9f]" identifier [ number_literal ]))) ;) (if_statement "if ((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))) {\n    puVar4 = &UNK_0004bf17 + unaff_EBX;\n    if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }\n    unaff_retaddr[0x9f] = (int)puVar4;\n    iVar5 = FUN_0006a250(unaff_retaddr);\n    if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }\n    FUN_00022d40(iVar1 + 0x1b0);\n    return iVar5;\n  }" if (parenthesized_expression "((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77)))" ( (binary_expression "(puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))" (parenthesized_expression "(puVar2 != &UNK_0004bf17 + unaff_EBX)" ( (binary_expression "puVar2 != &UNK_0004bf17 + unaff_EBX" identifier != (binary_expression "&UNK_0004bf17 + unaff_EBX" (pointer_expression "&UNK_0004bf17" & identifier) + identifier)) )) && (parenthesized_expression "(puVar2 != (undefined *)(unaff_EBX + 0x4bf77))" ( (binary_expression "puVar2 != (undefined *)(unaff_EBX + 0x4bf77)" identifier != (cast_expression "(undefined *)(unaff_EBX + 0x4bf77)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBX + 0x4bf77)" ( (binary_expression "unaff_EBX + 0x4bf77" identifier + number_literal) )))) ))) )) (compound_statement "{\n    puVar4 = &UNK_0004bf17 + unaff_EBX;\n    if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }\n    unaff_retaddr[0x9f] = (int)puVar4;\n    iVar5 = FUN_0006a250(unaff_retaddr);\n    if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }\n    FUN_00022d40(iVar1 + 0x1b0);\n    return iVar5;\n  }" { (expression_statement "puVar4 = &UNK_0004bf17 + unaff_EBX;" (assignment_expression "puVar4 = &UNK_0004bf17 + unaff_EBX" identifier = (binary_expression "&UNK_0004bf17 + unaff_EBX" (pointer_expression "&UNK_0004bf17" & identifier) + identifier)) ;) (if_statement "if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }" if (parenthesized_expression "((puVar2[0x44] & 1) == 0)" ( (binary_expression "(puVar2[0x44] & 1) == 0" (parenthesized_expression "(puVar2[0x44] & 1)" ( (binary_expression "puVar2[0x44] & 1" (subscript_expression "puVar2[0x44]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }" { (expression_statement "puVar4 = (undefined *)(unaff_EBX + 0x4bf77);" (assignment_expression "puVar4 = (undefined *)(unaff_EBX + 0x4bf77)" identifier = (cast_expression "(undefined *)(unaff_EBX + 0x4bf77)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBX + 0x4bf77)" ( (binary_expression "unaff_EBX + 0x4bf77" identifier + number_literal) )))) ;) })) (expression_statement "unaff_retaddr[0x9f] = (int)puVar4;" (assignment_expression "unaff_retaddr[0x9f] = (int)puVar4" (subscript_expression "unaff_retaddr[0x9f]" identifier [ number_literal ]) = (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar5 = FUN_0006a250(unaff_retaddr);" (assignment_expression "iVar5 = FUN_0006a250(unaff_retaddr)" identifier = (call_expression "FUN_0006a250(unaff_retaddr)" identifier (argument_list "(unaff_retaddr)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }" { (expression_statement "FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);" (call_expression "FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f)" identifier (argument_list "(*unaff_retaddr,unaff_EBX + 0x2283f)" ( (pointer_expression "*unaff_retaddr" * identifier) , (binary_expression "unaff_EBX + 0x2283f" identifier + number_literal) ))) ;) (expression_statement "puVar3 = (undefined4 *)unaff_retaddr[0x15f];" (assignment_expression "puVar3 = (undefined4 *)unaff_retaddr[0x15f]" identifier = (cast_expression "(undefined4 *)unaff_retaddr[0x15f]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "unaff_retaddr[0x15f]" identifier [ number_literal ]))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1e0) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1e0) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1e0)" * (cast_expression "(undefined4 *)(iVar1 + 0x1e0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1e0)" ( (binary_expression "iVar1 + 0x1e0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1e4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1e4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1e4)" * (cast_expression "(undefined4 *)(iVar1 + 0x1e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1e4)" ( (binary_expression "iVar1 + 0x1e4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1d8) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1d8) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1d8)" * (cast_expression "(undefined4 *)(iVar1 + 0x1d8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1d8)" ( (binary_expression "iVar1 + 0x1d8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1dc) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1dc) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1dc)" * (cast_expression "(undefined4 *)(iVar1 + 0x1dc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1dc)" ( (binary_expression "iVar1 + 0x1dc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "unaff_retaddr[0x142] = 0;" (assignment_expression "unaff_retaddr[0x142] = 0" (subscript_expression "unaff_retaddr[0x142]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "unaff_retaddr[0x143] = 0;" (assignment_expression "unaff_retaddr[0x143] = 0" (subscript_expression "unaff_retaddr[0x143]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "unaff_retaddr[0x144] = 0;" (assignment_expression "unaff_retaddr[0x144] = 0" (subscript_expression "unaff_retaddr[0x144]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "unaff_retaddr[0x145] = 0;" (assignment_expression "unaff_retaddr[0x145] = 0" (subscript_expression "unaff_retaddr[0x145]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)((int)unaff_retaddr + 0x265) = 1;" (assignment_expression "*(undefined1 *)((int)unaff_retaddr + 0x265) = 1" (pointer_expression "*(undefined1 *)((int)unaff_retaddr + 0x265)" * (cast_expression "(undefined1 *)((int)unaff_retaddr + 0x265)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr + 0x265)" ( (binary_expression "(int)unaff_retaddr + 0x265" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "unaff_retaddr[0x5e] = 0x14;" (assignment_expression "unaff_retaddr[0x5e] = 0x14" (subscript_expression "unaff_retaddr[0x5e]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar3 = 2;" (assignment_expression "*puVar3 = 2" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);" (call_expression "FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867)" identifier (argument_list "(*unaff_retaddr,unaff_EBX + 0x22867)" ( (pointer_expression "*unaff_retaddr" * identifier) , (binary_expression "unaff_EBX + 0x22867" identifier + number_literal) ))) ;) (expression_statement "FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));" (call_expression "FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84))" identifier (argument_list "(*(undefined4 *)(*unaff_retaddr + 0x84))" ( (pointer_expression "*(undefined4 *)(*unaff_retaddr + 0x84)" * (cast_expression "(undefined4 *)(*unaff_retaddr + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*unaff_retaddr + 0x84)" ( (binary_expression "*unaff_retaddr + 0x84" (pointer_expression "*unaff_retaddr" * identifier) + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_00022d40(iVar1 + 0x1b0);" (call_expression "FUN_00022d40(iVar1 + 0x1b0)" identifier (argument_list "(iVar1 + 0x1b0)" ( (binary_expression "iVar1 + 0x1b0" identifier + number_literal) ))) ;) (return_statement "return iVar5;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(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\nCURLcode Curl_http2_setup(connectdata *conn)\n\n{\n  void *pvVar1;\n  Curl_handler *pCVar2;\n  connectbundle *pcVar3;\n  Curl_handler *pCVar4;\n  CURLcode CVar5;\n  Curl_send_buffer *pCVar6;\n  \n  pvVar1 = (conn->data->req).protop;\n  *(undefined4 *)((int)pvVar1 + 0x1a8) = 0xffffffff;\n  if (*(int *)((int)pvVar1 + 0x1b0) == 0) {\n    pCVar6 = Curl_add_buffer_init();\n    *(Curl_send_buffer **)((int)pvVar1 + 0x1b0) = pCVar6;\n    if (pCVar6 == (Curl_send_buffer *)0x0) {\n      return CURLE_OUT_OF_MEMORY;\n    }\n  }\n  pCVar2 = conn->handler;\n  if ((pCVar2 != &Curl_handler_http2_ssl) && (pCVar2 != &Curl_handler_http2)) {\n    pCVar4 = &Curl_handler_http2_ssl;\n    if ((pCVar2->flags & 1) == 0) {\n      pCVar4 = &Curl_handler_http2;\n    }\n    conn->handler = pCVar4;\n    CVar5 = Curl_http2_init(conn);\n    if (CVar5 == CURLE_OK) {\n      Curl_infof(conn->data,"Using HTTP2, server supports multi-use\n");\n      pcVar3 = conn->bundle;\n      *(undefined4 *)((int)pvVar1 + 0x1e0) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1e4) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1d8) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1dc) = 0;\n      (conn->proto).ftpc.count1 = 0;\n      (conn->proto).ftpc.count2 = 0;\n      (conn->proto).ftpc.count3 = 0;\n      (conn->proto).ftpc.state = FTP_STOP;\n      (conn->bits).multiplex = true;\n      conn->httpversion = 0x14;\n      pcVar3->multiuse = 2;\n      Curl_infof(conn->data,"Connection state changed (HTTP/2 confirmed)\n");\n      Curl_multi_connchanged(conn->data->multi);\n      return CURLE_OK;\n    }\n    Curl_add_buffer_free((Curl_send_buffer **)((int)pvVar1 + 0x1b0));\n    return CVar5;\n  }\n  return CURLE_OK;\n}\n\n" comment comment comment (function_definition "CURLcode Curl_http2_setup(connectdata *conn)\n\n{\n  void *pvVar1;\n  Curl_handler *pCVar2;\n  connectbundle *pcVar3;\n  Curl_handler *pCVar4;\n  CURLcode CVar5;\n  Curl_send_buffer *pCVar6;\n  \n  pvVar1 = (conn->data->req).protop;\n  *(undefined4 *)((int)pvVar1 + 0x1a8) = 0xffffffff;\n  if (*(int *)((int)pvVar1 + 0x1b0) == 0) {\n    pCVar6 = Curl_add_buffer_init();\n    *(Curl_send_buffer **)((int)pvVar1 + 0x1b0) = pCVar6;\n    if (pCVar6 == (Curl_send_buffer *)0x0) {\n      return CURLE_OUT_OF_MEMORY;\n    }\n  }\n  pCVar2 = conn->handler;\n  if ((pCVar2 != &Curl_handler_http2_ssl) && (pCVar2 != &Curl_handler_http2)) {\n    pCVar4 = &Curl_handler_http2_ssl;\n    if ((pCVar2->flags & 1) == 0) {\n      pCVar4 = &Curl_handler_http2;\n    }\n    conn->handler = pCVar4;\n    CVar5 = Curl_http2_init(conn);\n    if (CVar5 == CURLE_OK) {\n      Curl_infof(conn->data,"Using HTTP2, server supports multi-use\n");\n      pcVar3 = conn->bundle;\n      *(undefined4 *)((int)pvVar1 + 0x1e0) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1e4) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1d8) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1dc) = 0;\n      (conn->proto).ftpc.count1 = 0;\n      (conn->proto).ftpc.count2 = 0;\n      (conn->proto).ftpc.count3 = 0;\n      (conn->proto).ftpc.state = FTP_STOP;\n      (conn->bits).multiplex = true;\n      conn->httpversion = 0x14;\n      pcVar3->multiuse = 2;\n      Curl_infof(conn->data,"Connection state changed (HTTP/2 confirmed)\n");\n      Curl_multi_connchanged(conn->data->multi);\n      return CURLE_OK;\n    }\n    Curl_add_buffer_free((Curl_send_buffer **)((int)pvVar1 + 0x1b0));\n    return CVar5;\n  }\n  return CURLE_OK;\n}" type_identifier (function_declarator "Curl_http2_setup(connectdata *conn)" identifier (parameter_list "(connectdata *conn)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  Curl_handler *pCVar2;\n  connectbundle *pcVar3;\n  Curl_handler *pCVar4;\n  CURLcode CVar5;\n  Curl_send_buffer *pCVar6;\n  \n  pvVar1 = (conn->data->req).protop;\n  *(undefined4 *)((int)pvVar1 + 0x1a8) = 0xffffffff;\n  if (*(int *)((int)pvVar1 + 0x1b0) == 0) {\n    pCVar6 = Curl_add_buffer_init();\n    *(Curl_send_buffer **)((int)pvVar1 + 0x1b0) = pCVar6;\n    if (pCVar6 == (Curl_send_buffer *)0x0) {\n      return CURLE_OUT_OF_MEMORY;\n    }\n  }\n  pCVar2 = conn->handler;\n  if ((pCVar2 != &Curl_handler_http2_ssl) && (pCVar2 != &Curl_handler_http2)) {\n    pCVar4 = &Curl_handler_http2_ssl;\n    if ((pCVar2->flags & 1) == 0) {\n      pCVar4 = &Curl_handler_http2;\n    }\n    conn->handler = pCVar4;\n    CVar5 = Curl_http2_init(conn);\n    if (CVar5 == CURLE_OK) {\n      Curl_infof(conn->data,"Using HTTP2, server supports multi-use\n");\n      pcVar3 = conn->bundle;\n      *(undefined4 *)((int)pvVar1 + 0x1e0) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1e4) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1d8) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1dc) = 0;\n      (conn->proto).ftpc.count1 = 0;\n      (conn->proto).ftpc.count2 = 0;\n      (conn->proto).ftpc.count3 = 0;\n      (conn->proto).ftpc.state = FTP_STOP;\n      (conn->bits).multiplex = true;\n      conn->httpversion = 0x14;\n      pcVar3->multiuse = 2;\n      Curl_infof(conn->data,"Connection state changed (HTTP/2 confirmed)\n");\n      Curl_multi_connchanged(conn->data->multi);\n      return CURLE_OK;\n    }\n    Curl_add_buffer_free((Curl_send_buffer **)((int)pvVar1 + 0x1b0));\n    return CVar5;\n  }\n  return CURLE_OK;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "Curl_handler *pCVar2;" type_identifier (pointer_declarator "*pCVar2" * identifier) ;) (declaration "connectbundle *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "Curl_handler *pCVar4;" type_identifier (pointer_declarator "*pCVar4" * identifier) ;) (declaration "CURLcode CVar5;" type_identifier identifier ;) (declaration "Curl_send_buffer *pCVar6;" type_identifier (pointer_declarator "*pCVar6" * identifier) ;) (expression_statement "pvVar1 = (conn->data->req).protop;" (assignment_expression "pvVar1 = (conn->data->req).protop" identifier = (field_expression "(conn->data->req).protop" (parenthesized_expression "(conn->data->req)" ( (field_expression "conn->data->req" (field_expression "conn->data" identifier -> field_identifier) -> field_identifier) )) . field_identifier)) ;) (expression_statement "*(undefined4 *)((int)pvVar1 + 0x1a8) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)pvVar1 + 0x1a8) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)pvVar1 + 0x1a8)" * (cast_expression "(undefined4 *)((int)pvVar1 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x1a8)" ( (binary_expression "(int)pvVar1 + 0x1a8" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)((int)pvVar1 + 0x1b0) == 0) {\n    pCVar6 = Curl_add_buffer_init();\n    *(Curl_send_buffer **)((int)pvVar1 + 0x1b0) = pCVar6;\n    if (pCVar6 == (Curl_send_buffer *)0x0) {\n      return CURLE_OUT_OF_MEMORY;\n    }\n  }" if (parenthesized_expression "(*(int *)((int)pvVar1 + 0x1b0) == 0)" ( (binary_expression "*(int *)((int)pvVar1 + 0x1b0) == 0" (pointer_expression "*(int *)((int)pvVar1 + 0x1b0)" * (cast_expression "(int *)((int)pvVar1 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x1b0)" ( (binary_expression "(int)pvVar1 + 0x1b0" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    pCVar6 = Curl_add_buffer_init();\n    *(Curl_send_buffer **)((int)pvVar1 + 0x1b0) = pCVar6;\n    if (pCVar6 == (Curl_send_buffer *)0x0) {\n      return CURLE_OUT_OF_MEMORY;\n    }\n  }" { (expression_statement "pCVar6 = Curl_add_buffer_init();" (assignment_expression "pCVar6 = Curl_add_buffer_init()" identifier = (call_expression "Curl_add_buffer_init()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(Curl_send_buffer **)((int)pvVar1 + 0x1b0) = pCVar6;" (assignment_expression "*(Curl_send_buffer **)((int)pvVar1 + 0x1b0) = pCVar6" (pointer_expression "*(Curl_send_buffer **)((int)pvVar1 + 0x1b0)" * (cast_expression "(Curl_send_buffer **)((int)pvVar1 + 0x1b0)" ( (type_descriptor "Curl_send_buffer **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar1 + 0x1b0)" ( (binary_expression "(int)pvVar1 + 0x1b0" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (pCVar6 == (Curl_send_buffer *)0x0) {\n      return CURLE_OUT_OF_MEMORY;\n    }" if (parenthesized_expression "(pCVar6 == (Curl_send_buffer *)0x0)" ( (binary_expression "pCVar6 == (Curl_send_buffer *)0x0" identifier == (cast_expression "(Curl_send_buffer *)0x0" ( (type_descriptor "Curl_send_buffer *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return CURLE_OUT_OF_MEMORY;\n    }" { (return_statement "return CURLE_OUT_OF_MEMORY;" return identifier ;) })) })) (expression_statement "pCVar2 = conn->handler;" (assignment_expression "pCVar2 = conn->handler" identifier = (field_expression "conn->handler" identifier -> field_identifier)) ;) (if_statement "if ((pCVar2 != &Curl_handler_http2_ssl) && (pCVar2 != &Curl_handler_http2)) {\n    pCVar4 = &Curl_handler_http2_ssl;\n    if ((pCVar2->flags & 1) == 0) {\n      pCVar4 = &Curl_handler_http2;\n    }\n    conn->handler = pCVar4;\n    CVar5 = Curl_http2_init(conn);\n    if (CVar5 == CURLE_OK) {\n      Curl_infof(conn->data,"Using HTTP2, server supports multi-use\n");\n      pcVar3 = conn->bundle;\n      *(undefined4 *)((int)pvVar1 + 0x1e0) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1e4) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1d8) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1dc) = 0;\n      (conn->proto).ftpc.count1 = 0;\n      (conn->proto).ftpc.count2 = 0;\n      (conn->proto).ftpc.count3 = 0;\n      (conn->proto).ftpc.state = FTP_STOP;\n      (conn->bits).multiplex = true;\n      conn->httpversion = 0x14;\n      pcVar3->multiuse = 2;\n      Curl_infof(conn->data,"Connection state changed (HTTP/2 confirmed)\n");\n      Curl_multi_connchanged(conn->data->multi);\n      return CURLE_OK;\n    }\n    Curl_add_buffer_free((Curl_send_buffer **)((int)pvVar1 + 0x1b0));\n    return CVar5;\n  }" if (parenthesized_expression "((pCVar2 != &Curl_handler_http2_ssl) && (pCVar2 != &Curl_handler_http2))" ( (binary_expression "(pCVar2 != &Curl_handler_http2_ssl) && (pCVar2 != &Curl_handler_http2)" (parenthesized_expression "(pCVar2 != &Curl_handler_http2_ssl)" ( (binary_expression "pCVar2 != &Curl_handler_http2_ssl" identifier != (pointer_expression "&Curl_handler_http2_ssl" & identifier)) )) && (parenthesized_expression "(pCVar2 != &Curl_handler_http2)" ( (binary_expression "pCVar2 != &Curl_handler_http2" identifier != (pointer_expression "&Curl_handler_http2" & identifier)) ))) )) (compound_statement "{\n    pCVar4 = &Curl_handler_http2_ssl;\n    if ((pCVar2->flags & 1) == 0) {\n      pCVar4 = &Curl_handler_http2;\n    }\n    conn->handler = pCVar4;\n    CVar5 = Curl_http2_init(conn);\n    if (CVar5 == CURLE_OK) {\n      Curl_infof(conn->data,"Using HTTP2, server supports multi-use\n");\n      pcVar3 = conn->bundle;\n      *(undefined4 *)((int)pvVar1 + 0x1e0) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1e4) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1d8) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1dc) = 0;\n      (conn->proto).ftpc.count1 = 0;\n      (conn->proto).ftpc.count2 = 0;\n      (conn->proto).ftpc.count3 = 0;\n      (conn->proto).ftpc.state = FTP_STOP;\n      (conn->bits).multiplex = true;\n      conn->httpversion = 0x14;\n      pcVar3->multiuse = 2;\n      Curl_infof(conn->data,"Connection state changed (HTTP/2 confirmed)\n");\n      Curl_multi_connchanged(conn->data->multi);\n      return CURLE_OK;\n    }\n    Curl_add_buffer_free((Curl_send_buffer **)((int)pvVar1 + 0x1b0));\n    return CVar5;\n  }" { (expression_statement "pCVar4 = &Curl_handler_http2_ssl;" (assignment_expression "pCVar4 = &Curl_handler_http2_ssl" identifier = (pointer_expression "&Curl_handler_http2_ssl" & identifier)) ;) (if_statement "if ((pCVar2->flags & 1) == 0) {\n      pCVar4 = &Curl_handler_http2;\n    }" if (parenthesized_expression "((pCVar2->flags & 1) == 0)" ( (binary_expression "(pCVar2->flags & 1) == 0" (parenthesized_expression "(pCVar2->flags & 1)" ( (binary_expression "pCVar2->flags & 1" (field_expression "pCVar2->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      pCVar4 = &Curl_handler_http2;\n    }" { (expression_statement "pCVar4 = &Curl_handler_http2;" (assignment_expression "pCVar4 = &Curl_handler_http2" identifier = (pointer_expression "&Curl_handler_http2" & identifier)) ;) })) (expression_statement "conn->handler = pCVar4;" (assignment_expression "conn->handler = pCVar4" (field_expression "conn->handler" identifier -> field_identifier) = identifier) ;) (expression_statement "CVar5 = Curl_http2_init(conn);" (assignment_expression "CVar5 = Curl_http2_init(conn)" identifier = (call_expression "Curl_http2_init(conn)" identifier (argument_list "(conn)" ( identifier )))) ;) (if_statement "if (CVar5 == CURLE_OK) {\n      Curl_infof(conn->data,"Using HTTP2, server supports multi-use\n");\n      pcVar3 = conn->bundle;\n      *(undefined4 *)((int)pvVar1 + 0x1e0) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1e4) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1d8) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1dc) = 0;\n      (conn->proto).ftpc.count1 = 0;\n      (conn->proto).ftpc.count2 = 0;\n      (conn->proto).ftpc.count3 = 0;\n      (conn->proto).ftpc.state = FTP_STOP;\n      (conn->bits).multiplex = true;\n      conn->httpversion = 0x14;\n      pcVar3->multiuse = 2;\n      Curl_infof(conn->data,"Connection state changed (HTTP/2 confirmed)\n");\n      Curl_multi_connchanged(conn->data->multi);\n      return CURLE_OK;\n    }" if (parenthesized_expression "(CVar5 == CURLE_OK)" ( (binary_expression "CVar5 == CURLE_OK" identifier == identifier) )) (compound_statement "{\n      Curl_infof(conn->data,"Using HTTP2, server supports multi-use\n");\n      pcVar3 = conn->bundle;\n      *(undefined4 *)((int)pvVar1 + 0x1e0) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1e4) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1d8) = 0;\n      *(undefined4 *)((int)pvVar1 + 0x1dc) = 0;\n      (conn->proto).ftpc.count1 = 0;\n      (conn->proto).ftpc.count2 = 0;\n      (conn->proto).ftpc.count3 = 0;\n      (conn->proto).ftpc.state = FTP_STOP;\n      (conn->bits).multiplex = true;\n      conn->httpversion = 0x14;\n      pcVar3->multiuse = 2;\n      Curl_infof(conn->data,"Connection state changed (HTTP/2 confirmed)\n");\n      Curl_multi_connchanged(conn->data->multi);\n      return CURLE_OK;\n    }" { (expression_statement "Curl_infof(conn->data,"Using HTTP2, server supports multi-use\n");" (call_expression "Curl_infof(conn->data,"Using HTTP2, server supports multi-use\n")" identifier (argument_list "(conn->data,"Using HTTP2, server supports multi-use\n")" ( (field_expression "conn->data" identifier -> field_identifier) , (string_literal ""Using HTTP2, server supports multi-use\n"" " string_content escape_sequence ") ))) ;) (expression_statement "pcVar3 = conn->bundle;" (assignment_expression "pcVar3 = conn->bundle" identifier = (field_expression "conn->bundle" identifier -> field_identifier)) ;) (expression_statement "*(undefined4 *)((int)pvVar1 + 0x1e0) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar1 + 0x1e0) = 0" (pointer_expression "*(undefined4 *)((int)pvVar1 + 0x1e0)" * (cast_expression "(undefined4 *)((int)pvVar1 + 0x1e0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x1e0)" ( (binary_expression "(int)pvVar1 + 0x1e0" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar1 + 0x1e4) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar1 + 0x1e4) = 0" (pointer_expression "*(undefined4 *)((int)pvVar1 + 0x1e4)" * (cast_expression "(undefined4 *)((int)pvVar1 + 0x1e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x1e4)" ( (binary_expression "(int)pvVar1 + 0x1e4" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar1 + 0x1d8) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar1 + 0x1d8) = 0" (pointer_expression "*(undefined4 *)((int)pvVar1 + 0x1d8)" * (cast_expression "(undefined4 *)((int)pvVar1 + 0x1d8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x1d8)" ( (binary_expression "(int)pvVar1 + 0x1d8" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar1 + 0x1dc) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar1 + 0x1dc) = 0" (pointer_expression "*(undefined4 *)((int)pvVar1 + 0x1dc)" * (cast_expression "(undefined4 *)((int)pvVar1 + 0x1dc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x1dc)" ( (binary_expression "(int)pvVar1 + 0x1dc" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "(conn->proto).ftpc.count1 = 0;" (assignment_expression "(conn->proto).ftpc.count1 = 0" (field_expression "(conn->proto).ftpc.count1" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "(conn->proto).ftpc.count2 = 0;" (assignment_expression "(conn->proto).ftpc.count2 = 0" (field_expression "(conn->proto).ftpc.count2" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "(conn->proto).ftpc.count3 = 0;" (assignment_expression "(conn->proto).ftpc.count3 = 0" (field_expression "(conn->proto).ftpc.count3" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "(conn->proto).ftpc.state = FTP_STOP;" (assignment_expression "(conn->proto).ftpc.state = FTP_STOP" (field_expression "(conn->proto).ftpc.state" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(conn->bits).multiplex = true;" (assignment_expression "(conn->bits).multiplex = true" (field_expression "(conn->bits).multiplex" (parenthesized_expression "(conn->bits)" ( (field_expression "conn->bits" identifier -> field_identifier) )) . field_identifier) = true) ;) (expression_statement "conn->httpversion = 0x14;" (assignment_expression "conn->httpversion = 0x14" (field_expression "conn->httpversion" identifier -> field_identifier) = number_literal) ;) (expression_statement "pcVar3->multiuse = 2;" (assignment_expression "pcVar3->multiuse = 2" (field_expression "pcVar3->multiuse" identifier -> field_identifier) = number_literal) ;) (expression_statement "Curl_infof(conn->data,"Connection state changed (HTTP/2 confirmed)\n");" (call_expression "Curl_infof(conn->data,"Connection state changed (HTTP/2 confirmed)\n")" identifier (argument_list "(conn->data,"Connection state changed (HTTP/2 confirmed)\n")" ( (field_expression "conn->data" identifier -> field_identifier) , (string_literal ""Connection state changed (HTTP/2 confirmed)\n"" " string_content escape_sequence ") ))) ;) (expression_statement "Curl_multi_connchanged(conn->data->multi);" (call_expression "Curl_multi_connchanged(conn->data->multi)" identifier (argument_list "(conn->data->multi)" ( (field_expression "conn->data->multi" (field_expression "conn->data" identifier -> field_identifier) -> field_identifier) ))) ;) (return_statement "return CURLE_OK;" return identifier ;) })) (expression_statement "Curl_add_buffer_free((Curl_send_buffer **)((int)pvVar1 + 0x1b0));" (call_expression "Curl_add_buffer_free((Curl_send_buffer **)((int)pvVar1 + 0x1b0))" identifier (argument_list "((Curl_send_buffer **)((int)pvVar1 + 0x1b0))" ( (cast_expression "(Curl_send_buffer **)((int)pvVar1 + 0x1b0)" ( (type_descriptor "Curl_send_buffer **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar1 + 0x1b0)" ( (binary_expression "(int)pvVar1 + 0x1b0" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) ))) ;) (return_statement "return CVar5;" return identifier ;) })) (return_statement "return CURLE_OK;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_0006a5e0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x6a5e9);\n  iVar1 = *(int *)(*unaff_retaddr + 0x148);\n  *(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff;\n  if (*(int *)(iVar1 + 0x1b0) == 0) {\n    iVar5 = FUN_00022d20();\n    *(int *)(iVar1 + 0x1b0) = iVar5;\n    if (iVar5 == 0) {\n      return 0x1b;\n    }\n  }\n  puVar2 = (undefined *)unaff_retaddr[0x9f];\n  if ((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))) {\n    puVar4 = &UNK_0004bf17 + unaff_EBX;\n    if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }\n    unaff_retaddr[0x9f] = (int)puVar4;\n    iVar5 = FUN_0006a250(unaff_retaddr);\n    if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }\n    FUN_00022d40(iVar1 + 0x1b0);\n    return iVar5;\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm3 FUN_0006a5e0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x6a5e9);\n  iVar1 = *(int *)(*unaff_retaddr + 0x148);\n  *(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff;\n  if (*(int *)(iVar1 + 0x1b0) == 0) {\n    iVar5 = FUN_00022d20();\n    *(int *)(iVar1 + 0x1b0) = iVar5;\n    if (iVar5 == 0) {\n      return 0x1b;\n    }\n  }\n  puVar2 = (undefined *)unaff_retaddr[0x9f];\n  if ((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))) {\n    puVar4 = &UNK_0004bf17 + unaff_EBX;\n    if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }\n    unaff_retaddr[0x9f] = (int)puVar4;\n    iVar5 = FUN_0006a250(unaff_retaddr);\n    if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }\n    FUN_00022d40(iVar1 + 0x1b0);\n    return iVar5;\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0006a5e0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x6a5e9);\n  iVar1 = *(int *)(*unaff_retaddr + 0x148);\n  *(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff;\n  if (*(int *)(iVar1 + 0x1b0) == 0) {\n    iVar5 = FUN_00022d20();\n    *(int *)(iVar1 + 0x1b0) = iVar5;\n    if (iVar5 == 0) {\n      return 0x1b;\n    }\n  }\n  puVar2 = (undefined *)unaff_retaddr[0x9f];\n  if ((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))) {\n    puVar4 = &UNK_0004bf17 + unaff_EBX;\n    if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }\n    unaff_retaddr[0x9f] = (int)puVar4;\n    iVar5 = FUN_0006a250(unaff_retaddr);\n    if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }\n    FUN_00022d40(iVar1 + 0x1b0);\n    return iVar5;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x6a5e9);" (call_expression "entry(param_2,0x6a5e9)" identifier (argument_list "(param_2,0x6a5e9)" ( identifier , number_literal ))) ;) (expression_statement "iVar1 = *(int *)(*unaff_retaddr + 0x148);" (assignment_expression "iVar1 = *(int *)(*unaff_retaddr + 0x148)" identifier = (pointer_expression "*(int *)(*unaff_retaddr + 0x148)" * (cast_expression "(int *)(*unaff_retaddr + 0x148)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*unaff_retaddr + 0x148)" ( (binary_expression "*unaff_retaddr + 0x148" (pointer_expression "*unaff_retaddr" * identifier) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar1 + 0x1a8)" * (cast_expression "(undefined4 *)(iVar1 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1a8)" ( (binary_expression "iVar1 + 0x1a8" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)(iVar1 + 0x1b0) == 0) {\n    iVar5 = FUN_00022d20();\n    *(int *)(iVar1 + 0x1b0) = iVar5;\n    if (iVar5 == 0) {\n      return 0x1b;\n    }\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x1b0) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x1b0) == 0" (pointer_expression "*(int *)(iVar1 + 0x1b0)" * (cast_expression "(int *)(iVar1 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1b0)" ( (binary_expression "iVar1 + 0x1b0" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar5 = FUN_00022d20();\n    *(int *)(iVar1 + 0x1b0) = iVar5;\n    if (iVar5 == 0) {\n      return 0x1b;\n    }\n  }" { (expression_statement "iVar5 = FUN_00022d20();" (assignment_expression "iVar5 = FUN_00022d20()" identifier = (call_expression "FUN_00022d20()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(iVar1 + 0x1b0) = iVar5;" (assignment_expression "*(int *)(iVar1 + 0x1b0) = iVar5" (pointer_expression "*(int *)(iVar1 + 0x1b0)" * (cast_expression "(int *)(iVar1 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1b0)" ( (binary_expression "iVar1 + 0x1b0" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar5 == 0) {\n      return 0x1b;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0x1b;\n    }" { (return_statement "return 0x1b;" return number_literal ;) })) })) (expression_statement "puVar2 = (undefined *)unaff_retaddr[0x9f];" (assignment_expression "puVar2 = (undefined *)unaff_retaddr[0x9f]" identifier = (cast_expression "(undefined *)unaff_retaddr[0x9f]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "unaff_retaddr[0x9f]" identifier [ number_literal ]))) ;) (if_statement "if ((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))) {\n    puVar4 = &UNK_0004bf17 + unaff_EBX;\n    if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }\n    unaff_retaddr[0x9f] = (int)puVar4;\n    iVar5 = FUN_0006a250(unaff_retaddr);\n    if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }\n    FUN_00022d40(iVar1 + 0x1b0);\n    return iVar5;\n  }" if (parenthesized_expression "((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77)))" ( (binary_expression "(puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))" (parenthesized_expression "(puVar2 != &UNK_0004bf17 + unaff_EBX)" ( (binary_expression "puVar2 != &UNK_0004bf17 + unaff_EBX" identifier != (binary_expression "&UNK_0004bf17 + unaff_EBX" (pointer_expression "&UNK_0004bf17" & identifier) + identifier)) )) && (parenthesized_expression "(puVar2 != (undefined *)(unaff_EBX + 0x4bf77))" ( (binary_expression "puVar2 != (undefined *)(unaff_EBX + 0x4bf77)" identifier != (cast_expression "(undefined *)(unaff_EBX + 0x4bf77)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBX + 0x4bf77)" ( (binary_expression "unaff_EBX + 0x4bf77" identifier + number_literal) )))) ))) )) (compound_statement "{\n    puVar4 = &UNK_0004bf17 + unaff_EBX;\n    if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }\n    unaff_retaddr[0x9f] = (int)puVar4;\n    iVar5 = FUN_0006a250(unaff_retaddr);\n    if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }\n    FUN_00022d40(iVar1 + 0x1b0);\n    return iVar5;\n  }" { (expression_statement "puVar4 = &UNK_0004bf17 + unaff_EBX;" (assignment_expression "puVar4 = &UNK_0004bf17 + unaff_EBX" identifier = (binary_expression "&UNK_0004bf17 + unaff_EBX" (pointer_expression "&UNK_0004bf17" & identifier) + identifier)) ;) (if_statement "if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }" if (parenthesized_expression "((puVar2[0x44] & 1) == 0)" ( (binary_expression "(puVar2[0x44] & 1) == 0" (parenthesized_expression "(puVar2[0x44] & 1)" ( (binary_expression "puVar2[0x44] & 1" (subscript_expression "puVar2[0x44]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }" { (expression_statement "puVar4 = (undefined *)(unaff_EBX + 0x4bf77);" (assignment_expression "puVar4 = (undefined *)(unaff_EBX + 0x4bf77)" identifier = (cast_expression "(undefined *)(unaff_EBX + 0x4bf77)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBX + 0x4bf77)" ( (binary_expression "unaff_EBX + 0x4bf77" identifier + number_literal) )))) ;) })) (expression_statement "unaff_retaddr[0x9f] = (int)puVar4;" (assignment_expression "unaff_retaddr[0x9f] = (int)puVar4" (subscript_expression "unaff_retaddr[0x9f]" identifier [ number_literal ]) = (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar5 = FUN_0006a250(unaff_retaddr);" (assignment_expression "iVar5 = FUN_0006a250(unaff_retaddr)" identifier = (call_expression "FUN_0006a250(unaff_retaddr)" identifier (argument_list "(unaff_retaddr)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }" { (expression_statement "FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);" (call_expression "FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f)" identifier (argument_list "(*unaff_retaddr,unaff_EBX + 0x2283f)" ( (pointer_expression "*unaff_retaddr" * identifier) , (binary_expression "unaff_EBX + 0x2283f" identifier + number_literal) ))) ;) (expression_statement "puVar3 = (undefined4 *)unaff_retaddr[0x15f];" (assignment_expression "puVar3 = (undefined4 *)unaff_retaddr[0x15f]" identifier = (cast_expression "(undefined4 *)unaff_retaddr[0x15f]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "unaff_retaddr[0x15f]" identifier [ number_literal ]))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1e0) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1e0) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1e0)" * (cast_expression "(undefined4 *)(iVar1 + 0x1e0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1e0)" ( (binary_expression "iVar1 + 0x1e0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1e4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1e4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1e4)" * (cast_expression "(undefined4 *)(iVar1 + 0x1e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1e4)" ( (binary_expression "iVar1 + 0x1e4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1d8) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1d8) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1d8)" * (cast_expression "(undefined4 *)(iVar1 + 0x1d8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1d8)" ( (binary_expression "iVar1 + 0x1d8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1dc) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1dc) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1dc)" * (cast_expression "(undefined4 *)(iVar1 + 0x1dc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1dc)" ( (binary_expression "iVar1 + 0x1dc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "unaff_retaddr[0x142] = 0;" (assignment_expression "unaff_retaddr[0x142] = 0" (subscript_expression "unaff_retaddr[0x142]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "unaff_retaddr[0x143] = 0;" (assignment_expression "unaff_retaddr[0x143] = 0" (subscript_expression "unaff_retaddr[0x143]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "unaff_retaddr[0x144] = 0;" (assignment_expression "unaff_retaddr[0x144] = 0" (subscript_expression "unaff_retaddr[0x144]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "unaff_retaddr[0x145] = 0;" (assignment_expression "unaff_retaddr[0x145] = 0" (subscript_expression "unaff_retaddr[0x145]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)((int)unaff_retaddr + 0x265) = 1;" (assignment_expression "*(undefined1 *)((int)unaff_retaddr + 0x265) = 1" (pointer_expression "*(undefined1 *)((int)unaff_retaddr + 0x265)" * (cast_expression "(undefined1 *)((int)unaff_retaddr + 0x265)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)unaff_retaddr + 0x265)" ( (binary_expression "(int)unaff_retaddr + 0x265" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "unaff_retaddr[0x5e] = 0x14;" (assignment_expression "unaff_retaddr[0x5e] = 0x14" (subscript_expression "unaff_retaddr[0x5e]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar3 = 2;" (assignment_expression "*puVar3 = 2" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);" (call_expression "FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867)" identifier (argument_list "(*unaff_retaddr,unaff_EBX + 0x22867)" ( (pointer_expression "*unaff_retaddr" * identifier) , (binary_expression "unaff_EBX + 0x22867" identifier + number_literal) ))) ;) (expression_statement "FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));" (call_expression "FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84))" identifier (argument_list "(*(undefined4 *)(*unaff_retaddr + 0x84))" ( (pointer_expression "*(undefined4 *)(*unaff_retaddr + 0x84)" * (cast_expression "(undefined4 *)(*unaff_retaddr + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*unaff_retaddr + 0x84)" ( (binary_expression "*unaff_retaddr + 0x84" (pointer_expression "*unaff_retaddr" * identifier) + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_00022d40(iVar1 + 0x1b0);" (call_expression "FUN_00022d40(iVar1 + 0x1b0)" identifier (argument_list "(iVar1 + 0x1b0)" ( (binary_expression "iVar1 + 0x1b0" identifier + number_literal) ))) ;) (return_statement "return iVar5;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (binary_expression (pointer_expression & IDENT) + IDENT)) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression & IDENT) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "int __regparm3 FUN_0006a5e0(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x6a5e9);\n  iVar1 = *(int *)(*unaff_retaddr + 0x148);\n  *(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff;\n  if (*(int *)(iVar1 + 0x1b0) == 0) {\n    iVar5 = FUN_00022d20();\n    *(int *)(iVar1 + 0x1b0) = iVar5;\n    if (iVar5 == 0) {\n      return 0x1b;\n    }\n  }\n  puVar2 = (undefined *)unaff_retaddr[0x9f];\n  if ((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))) {\n    puVar4 = &UNK_0004bf17 + unaff_EBX;\n    if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }\n    unaff_retaddr[0x9f] = (int)puVar4;\n    iVar5 = FUN_0006a250(unaff_retaddr);\n    if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }\n    FUN_00022d40(iVar1 + 0x1b0);\n    return iVar5;\n  }\n  return 0;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0006a5e0(undefined4 param_1,undefined4 param_2)" (identifier "FUN_0006a5e0") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int unaff_EBX;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x6a5e9);\n  iVar1 = *(int *)(*unaff_retaddr + 0x148);\n  *(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff;\n  if (*(int *)(iVar1 + 0x1b0) == 0) {\n    iVar5 = FUN_00022d20();\n    *(int *)(iVar1 + 0x1b0) = iVar5;\n    if (iVar5 == 0) {\n      return 0x1b;\n    }\n  }\n  puVar2 = (undefined *)unaff_retaddr[0x9f];\n  if ((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))) {\n    puVar4 = &UNK_0004bf17 + unaff_EBX;\n    if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }\n    unaff_retaddr[0x9f] = (int)puVar4;\n    iVar5 = FUN_0006a250(unaff_retaddr);\n    if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }\n    FUN_00022d40(iVar1 + 0x1b0);\n    return iVar5;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "int *unaff_retaddr;" (primitive_type "int") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (expression_statement "entry(param_2,0x6a5e9);" (call_expression "entry(param_2,0x6a5e9)" (identifier "entry") (argument_list "(param_2,0x6a5e9)" (( "(") (identifier "param_2") (, ",") (number_literal "0x6a5e9") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(*unaff_retaddr + 0x148);" (assignment_expression "iVar1 = *(int *)(*unaff_retaddr + 0x148)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*unaff_retaddr + 0x148)" (* "*") (cast_expression "(int *)(*unaff_retaddr + 0x148)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*unaff_retaddr + 0x148)" (( "(") (binary_expression "*unaff_retaddr + 0x148" (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (+ "+") (number_literal "0x148")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar1 + 0x1a8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x1a8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1a8)" (( "(") (binary_expression "iVar1 + 0x1a8" (identifier "iVar1") (+ "+") (number_literal "0x1a8")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x1b0) == 0) {\n    iVar5 = FUN_00022d20();\n    *(int *)(iVar1 + 0x1b0) = iVar5;\n    if (iVar5 == 0) {\n      return 0x1b;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x1b0) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x1b0) == 0" (pointer_expression "*(int *)(iVar1 + 0x1b0)" (* "*") (cast_expression "(int *)(iVar1 + 0x1b0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1b0)" (( "(") (binary_expression "iVar1 + 0x1b0" (identifier "iVar1") (+ "+") (number_literal "0x1b0")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar5 = FUN_00022d20();\n    *(int *)(iVar1 + 0x1b0) = iVar5;\n    if (iVar5 == 0) {\n      return 0x1b;\n    }\n  }" ({ "{") (expression_statement "iVar5 = FUN_00022d20();" (assignment_expression "iVar5 = FUN_00022d20()" (identifier "iVar5") (= "=") (call_expression "FUN_00022d20()" (identifier "FUN_00022d20") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(int *)(iVar1 + 0x1b0) = iVar5;" (assignment_expression "*(int *)(iVar1 + 0x1b0) = iVar5" (pointer_expression "*(int *)(iVar1 + 0x1b0)" (* "*") (cast_expression "(int *)(iVar1 + 0x1b0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1b0)" (( "(") (binary_expression "iVar1 + 0x1b0" (identifier "iVar1") (+ "+") (number_literal "0x1b0")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (iVar5 == 0) {\n      return 0x1b;\n    }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0x1b;\n    }" ({ "{") (return_statement "return 0x1b;" (return "return") (number_literal "0x1b") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar2 = (undefined *)unaff_retaddr[0x9f];" (assignment_expression "puVar2 = (undefined *)unaff_retaddr[0x9f]" (identifier "puVar2") (= "=") (cast_expression "(undefined *)unaff_retaddr[0x9f]" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "unaff_retaddr[0x9f]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x9f") (] "]")))) (; ";")) (if_statement "if ((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))) {\n    puVar4 = &UNK_0004bf17 + unaff_EBX;\n    if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }\n    unaff_retaddr[0x9f] = (int)puVar4;\n    iVar5 = FUN_0006a250(unaff_retaddr);\n    if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }\n    FUN_00022d40(iVar1 + 0x1b0);\n    return iVar5;\n  }" (if "if") (parenthesized_expression "((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77)))" (( "(") (binary_expression "(puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))" (parenthesized_expression "(puVar2 != &UNK_0004bf17 + unaff_EBX)" (( "(") (binary_expression "puVar2 != &UNK_0004bf17 + unaff_EBX" (identifier "puVar2") (!= "!=") (binary_expression "&UNK_0004bf17 + unaff_EBX" (pointer_expression "&UNK_0004bf17" (& "&") (identifier "UNK_0004bf17")) (+ "+") (identifier "unaff_EBX"))) () ")")) (&& "&&") (parenthesized_expression "(puVar2 != (undefined *)(unaff_EBX + 0x4bf77))" (( "(") (binary_expression "puVar2 != (undefined *)(unaff_EBX + 0x4bf77)" (identifier "puVar2") (!= "!=") (cast_expression "(undefined *)(unaff_EBX + 0x4bf77)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBX + 0x4bf77)" (( "(") (binary_expression "unaff_EBX + 0x4bf77" (identifier "unaff_EBX") (+ "+") (number_literal "0x4bf77")) () ")")))) () ")"))) () ")")) (compound_statement "{\n    puVar4 = &UNK_0004bf17 + unaff_EBX;\n    if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }\n    unaff_retaddr[0x9f] = (int)puVar4;\n    iVar5 = FUN_0006a250(unaff_retaddr);\n    if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }\n    FUN_00022d40(iVar1 + 0x1b0);\n    return iVar5;\n  }" ({ "{") (expression_statement "puVar4 = &UNK_0004bf17 + unaff_EBX;" (assignment_expression "puVar4 = &UNK_0004bf17 + unaff_EBX" (identifier "puVar4") (= "=") (binary_expression "&UNK_0004bf17 + unaff_EBX" (pointer_expression "&UNK_0004bf17" (& "&") (identifier "UNK_0004bf17")) (+ "+") (identifier "unaff_EBX"))) (; ";")) (if_statement "if ((puVar2[0x44] & 1) == 0) {\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }" (if "if") (parenthesized_expression "((puVar2[0x44] & 1) == 0)" (( "(") (binary_expression "(puVar2[0x44] & 1) == 0" (parenthesized_expression "(puVar2[0x44] & 1)" (( "(") (binary_expression "puVar2[0x44] & 1" (subscript_expression "puVar2[0x44]" (identifier "puVar2") ([ "[") (number_literal "0x44") (] "]")) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);\n    }" ({ "{") (expression_statement "puVar4 = (undefined *)(unaff_EBX + 0x4bf77);" (assignment_expression "puVar4 = (undefined *)(unaff_EBX + 0x4bf77)" (identifier "puVar4") (= "=") (cast_expression "(undefined *)(unaff_EBX + 0x4bf77)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBX + 0x4bf77)" (( "(") (binary_expression "unaff_EBX + 0x4bf77" (identifier "unaff_EBX") (+ "+") (number_literal "0x4bf77")) () ")")))) (; ";")) (} "}"))) (expression_statement "unaff_retaddr[0x9f] = (int)puVar4;" (assignment_expression "unaff_retaddr[0x9f] = (int)puVar4" (subscript_expression "unaff_retaddr[0x9f]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x9f") (] "]")) (= "=") (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4"))) (; ";")) (expression_statement "iVar5 = FUN_0006a250(unaff_retaddr);" (assignment_expression "iVar5 = FUN_0006a250(unaff_retaddr)" (identifier "iVar5") (= "=") (call_expression "FUN_0006a250(unaff_retaddr)" (identifier "FUN_0006a250") (argument_list "(unaff_retaddr)" (( "(") (identifier "unaff_retaddr") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);\n      puVar3 = (undefined4 *)unaff_retaddr[0x15f];\n      *(undefined4 *)(iVar1 + 0x1e0) = 0;\n      *(undefined4 *)(iVar1 + 0x1e4) = 0;\n      *(undefined4 *)(iVar1 + 0x1d8) = 0;\n      *(undefined4 *)(iVar1 + 0x1dc) = 0;\n      unaff_retaddr[0x142] = 0;\n      unaff_retaddr[0x143] = 0;\n      unaff_retaddr[0x144] = 0;\n      unaff_retaddr[0x145] = 0;\n      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;\n      unaff_retaddr[0x5e] = 0x14;\n      *puVar3 = 2;\n      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);\n      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));\n      return 0;\n    }" ({ "{") (expression_statement "FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);" (call_expression "FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f)" (identifier "FUN_00027c40") (argument_list "(*unaff_retaddr,unaff_EBX + 0x2283f)" (( "(") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (, ",") (binary_expression "unaff_EBX + 0x2283f" (identifier "unaff_EBX") (+ "+") (number_literal "0x2283f")) () ")"))) (; ";")) (expression_statement "puVar3 = (undefined4 *)unaff_retaddr[0x15f];" (assignment_expression "puVar3 = (undefined4 *)unaff_retaddr[0x15f]" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)unaff_retaddr[0x15f]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "unaff_retaddr[0x15f]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x15f") (] "]")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x1e0) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1e0) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1e0)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x1e0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1e0)" (( "(") (binary_expression "iVar1 + 0x1e0" (identifier "iVar1") (+ "+") (number_literal "0x1e0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x1e4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1e4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1e4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x1e4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1e4)" (( "(") (binary_expression "iVar1 + 0x1e4" (identifier "iVar1") (+ "+") (number_literal "0x1e4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x1d8) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1d8) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1d8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x1d8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1d8)" (( "(") (binary_expression "iVar1 + 0x1d8" (identifier "iVar1") (+ "+") (number_literal "0x1d8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x1dc) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1dc) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1dc)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x1dc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1dc)" (( "(") (binary_expression "iVar1 + 0x1dc" (identifier "iVar1") (+ "+") (number_literal "0x1dc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "unaff_retaddr[0x142] = 0;" (assignment_expression "unaff_retaddr[0x142] = 0" (subscript_expression "unaff_retaddr[0x142]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x142") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "unaff_retaddr[0x143] = 0;" (assignment_expression "unaff_retaddr[0x143] = 0" (subscript_expression "unaff_retaddr[0x143]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x143") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "unaff_retaddr[0x144] = 0;" (assignment_expression "unaff_retaddr[0x144] = 0" (subscript_expression "unaff_retaddr[0x144]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x144") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "unaff_retaddr[0x145] = 0;" (assignment_expression "unaff_retaddr[0x145] = 0" (subscript_expression "unaff_retaddr[0x145]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x145") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)unaff_retaddr + 0x265) = 1;" (assignment_expression "*(undefined1 *)((int)unaff_retaddr + 0x265) = 1" (pointer_expression "*(undefined1 *)((int)unaff_retaddr + 0x265)" (* "*") (cast_expression "(undefined1 *)((int)unaff_retaddr + 0x265)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)unaff_retaddr + 0x265)" (( "(") (binary_expression "(int)unaff_retaddr + 0x265" (cast_expression "(int)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_retaddr")) (+ "+") (number_literal "0x265")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "unaff_retaddr[0x5e] = 0x14;" (assignment_expression "unaff_retaddr[0x5e] = 0x14" (subscript_expression "unaff_retaddr[0x5e]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x5e") (] "]")) (= "=") (number_literal "0x14")) (; ";")) (expression_statement "*puVar3 = 2;" (assignment_expression "*puVar3 = 2" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "2")) (; ";")) (expression_statement "FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);" (call_expression "FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867)" (identifier "FUN_00027c40") (argument_list "(*unaff_retaddr,unaff_EBX + 0x22867)" (( "(") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (, ",") (binary_expression "unaff_EBX + 0x22867" (identifier "unaff_EBX") (+ "+") (number_literal "0x22867")) () ")"))) (; ";")) (expression_statement "FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));" (call_expression "FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84))" (identifier "FUN_00046740") (argument_list "(*(undefined4 *)(*unaff_retaddr + 0x84))" (( "(") (pointer_expression "*(undefined4 *)(*unaff_retaddr + 0x84)" (* "*") (cast_expression "(undefined4 *)(*unaff_retaddr + 0x84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*unaff_retaddr + 0x84)" (( "(") (binary_expression "*unaff_retaddr + 0x84" (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (+ "+") (number_literal "0x84")) () ")")))) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "FUN_00022d40(iVar1 + 0x1b0);" (call_expression "FUN_00022d40(iVar1 + 0x1b0)" (identifier "FUN_00022d40") (argument_list "(iVar1 + 0x1b0)" (( "(") (binary_expression "iVar1 + 0x1b0" (identifier "iVar1") (+ "+") (number_literal "0x1b0")) () ")"))) (; ";")) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* 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(type_2 *conn)

{
  void *pvVar1;
  type_3 *var_3;
  type_4 *pcVar3;
  type_3 *pCVar4;
  type_1 var_5;
  type_5 *var_2;
  
  pvVar1 = (conn->data->req).protop;
  *(type_6 *)((int)pvVar1 + 0x1a8) = 0xffffffff;
  if (*(int *)((int)pvVar1 + 0x1b0) == 0) {
    var_2 = var_1();
    *(type_5 **)((int)pvVar1 + 0x1b0) = var_2;
    if (var_2 == (type_5 *)0x0) {
      return CURLE_OUT_OF_MEMORY;
    }
  }
  var_3 = conn->handler;
  if ((var_3 != &Curl_handler_http2_ssl) && (var_3 != &Curl_handler_http2)) {
    pCVar4 = &Curl_handler_http2_ssl;
    if ((var_3->flags & 1) == 0) {
      pCVar4 = &Curl_handler_http2;
    }
    conn->handler = pCVar4;
    var_5 = var_4(conn);
    if (var_5 == var_6) {
      var_7(conn->data,"Using HTTP2, server supports multi-use\n");
      pcVar3 = conn->bundle;
      *(type_6 *)((int)pvVar1 + 0x1e0) = 0;
      *(type_6 *)((int)pvVar1 + 0x1e4) = 0;
      *(type_6 *)((int)pvVar1 + 0x1d8) = 0;
      *(type_6 *)((int)pvVar1 + 0x1dc) = 0;
      (conn->proto).ftpc.count1 = 0;
      (conn->proto).ftpc.count2 = 0;
      (conn->proto).ftpc.count3 = 0;
      (conn->proto).ftpc.state = FTP_STOP;
      (conn->bits).multiplex = true;
      conn->httpversion = 0x14;
      pcVar3->multiuse = 2;
      var_7(conn->data,"Connection state changed (HTTP/2 confirmed)\n");
      var_8(conn->data->multi);
      return var_6;
    }
    var_9((type_5 **)((int)pvVar1 + 0x1b0));
    return var_5;
  }
  return var_6;
}


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

int __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  undefined *puVar4;
  int iVar5;
  int unaff_EBX;
  int *unaff_retaddr;
  
  entry(param_2,0x6a5e9);
  iVar1 = *(int *)(*unaff_retaddr + 0x148);
  *(undefined4 *)(iVar1 + 0x1a8) = 0xffffffff;
  if (*(int *)(iVar1 + 0x1b0) == 0) {
    iVar5 = FUN_00022d20();
    *(int *)(iVar1 + 0x1b0) = iVar5;
    if (iVar5 == 0) {
      return 0x1b;
    }
  }
  puVar2 = (undefined *)unaff_retaddr[0x9f];
  if ((puVar2 != &UNK_0004bf17 + unaff_EBX) && (puVar2 != (undefined *)(unaff_EBX + 0x4bf77))) {
    puVar4 = &UNK_0004bf17 + unaff_EBX;
    if ((puVar2[0x44] & 1) == 0) {
      puVar4 = (undefined *)(unaff_EBX + 0x4bf77);
    }
    unaff_retaddr[0x9f] = (int)puVar4;
    iVar5 = FUN_0006a250(unaff_retaddr);
    if (iVar5 == 0) {
      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x2283f);
      puVar3 = (undefined4 *)unaff_retaddr[0x15f];
      *(undefined4 *)(iVar1 + 0x1e0) = 0;
      *(undefined4 *)(iVar1 + 0x1e4) = 0;
      *(undefined4 *)(iVar1 + 0x1d8) = 0;
      *(undefined4 *)(iVar1 + 0x1dc) = 0;
      unaff_retaddr[0x142] = 0;
      unaff_retaddr[0x143] = 0;
      unaff_retaddr[0x144] = 0;
      unaff_retaddr[0x145] = 0;
      *(undefined1 *)((int)unaff_retaddr + 0x265) = 1;
      unaff_retaddr[0x5e] = 0x14;
      *puVar3 = 2;
      FUN_00027c40(*unaff_retaddr,unaff_EBX + 0x22867);
      FUN_00046740(*(undefined4 *)(*unaff_retaddr + 0x84));
      return 0;
    }
    FUN_00022d40(iVar1 + 0x1b0);
    return iVar5;
  }
  return 0;
}

