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

CURLMsg * curl_multi_info_read(Curl_multi *multi,int *msgs_in_queue)

{
  curl_llist *list;
  curl_llist_element *e;
  void *pvVar1;
  size_t sVar2;
  int iVar3;
  
  *msgs_in_queue = 0;
  if (((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)) && (multi->in_callback == false)) {
    list = &multi->msglist;
    sVar2 = Curl_llist_count(list);
    if (sVar2 != 0) {
      e = (multi->msglist).head;
      pvVar1 = e->ptr;
      Curl_llist_remove(list,e,(void *)0x0);
      sVar2 = Curl_llist_count(list);
      iVar3 = curlx_uztosi(sVar2);
      *msgs_in_queue = iVar3;
      return (CURLMsg *)((int)pvVar1 + 0xc);
    }
  }
  return (CURLMsg *)0x0;
}



int __regparm2 curl_multi_info_read(undefined4 param_1,undefined4 param_2,undefined4 *param_3)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  int *unaff_retaddr;
  
  entry(param_2,0x42ec9);
  *param_3 = 0;
  if (((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&
     ((char)unaff_retaddr[0x40] == '\0')) {
    piVar1 = unaff_retaddr + 5;
    iVar2 = FUN_00041720(piVar1);
    if (iVar2 != 0) {
      iVar2 = *(int *)unaff_retaddr[5];
      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);
      uVar3 = FUN_00041720(piVar1);
      uVar3 = FUN_0005a1d0(uVar3);
      *param_3 = uVar3;
      return iVar2 + 0xc;
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x6d917
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x24]
MOV ESI,dword ptr [ESP + 0x20]
MOV dword ptr [EDI],0x0
TEST ESI,ESI
JZ 0x00042f10
CMP dword ptr [ESI],0xbab1e
JNZ 0x00042f10
CMP byte ptr [ESI + 0x100],0x0
JNZ 0x00042f10
SUB ESP,0xc
LEA EBP,[ESI + 0x14]
PUSH EBP
CALL 0x00041720
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00042f20
LEA ESI,[ESI]
NOP
XOR EAX,EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI + 0x14]
SUB ESP,0x4
MOV ESI,dword ptr [EAX]
PUSH 0x0
PUSH EAX
PUSH EBP
CALL 0x00041640
MOV dword ptr [ESP],EBP
CALL 0x00041720
MOV dword ptr [ESP],EAX
CALL 0x0005a1d0
ADD ESP,0x10
MOV dword ptr [EDI],EAX
LEA EAX,[ESI + 0xc]
JMP 0x00042f12
(translation_unit "int __regparm2 curl_multi_info_read(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x42ec9);\n  *param_3 = 0;\n  if (((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0')) {\n    piVar1 = unaff_retaddr + 5;\n    iVar2 = FUN_00041720(piVar1);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm2 curl_multi_info_read(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x42ec9);\n  *param_3 = 0;\n  if (((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0')) {\n    piVar1 = unaff_retaddr + 5;\n    iVar2 = FUN_00041720(piVar1);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "curl_multi_info_read(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x42ec9);\n  *param_3 = 0;\n  if (((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0')) {\n    piVar1 = unaff_retaddr + 5;\n    iVar2 = FUN_00041720(piVar1);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x42ec9);" (call_expression "entry(param_2,0x42ec9)" identifier (argument_list "(param_2,0x42ec9)" ( identifier , number_literal ))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (if_statement "if (((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0')) {\n    piVar1 = unaff_retaddr + 5;\n    iVar2 = FUN_00041720(piVar1);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }\n  }" if (parenthesized_expression "(((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0'))" ( (binary_expression "((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0')" (parenthesized_expression "((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e))" ( (binary_expression "(unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)" (parenthesized_expression "(unaff_retaddr != (int *)0x0)" ( (binary_expression "unaff_retaddr != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*unaff_retaddr == 0xbab1e)" ( (binary_expression "*unaff_retaddr == 0xbab1e" (pointer_expression "*unaff_retaddr" * identifier) == number_literal) ))) )) && (parenthesized_expression "((char)unaff_retaddr[0x40] == '\0')" ( (binary_expression "(char)unaff_retaddr[0x40] == '\0'" (cast_expression "(char)unaff_retaddr[0x40]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "unaff_retaddr[0x40]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    piVar1 = unaff_retaddr + 5;\n    iVar2 = FUN_00041720(piVar1);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }\n  }" { (expression_statement "piVar1 = unaff_retaddr + 5;" (assignment_expression "piVar1 = unaff_retaddr + 5" identifier = (binary_expression "unaff_retaddr + 5" identifier + number_literal)) ;) (expression_statement "iVar2 = FUN_00041720(piVar1);" (assignment_expression "iVar2 = FUN_00041720(piVar1)" identifier = (call_expression "FUN_00041720(piVar1)" identifier (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }" { (expression_statement "iVar2 = *(int *)unaff_retaddr[5];" (assignment_expression "iVar2 = *(int *)unaff_retaddr[5]" identifier = (pointer_expression "*(int *)unaff_retaddr[5]" * (cast_expression "(int *)unaff_retaddr[5]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "unaff_retaddr[5]" identifier [ number_literal ])))) ;) (expression_statement "FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);" (call_expression "FUN_00041640(piVar1,(int *)unaff_retaddr[5],0)" identifier (argument_list "(piVar1,(int *)unaff_retaddr[5],0)" ( identifier , (cast_expression "(int *)unaff_retaddr[5]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "unaff_retaddr[5]" identifier [ number_literal ])) , number_literal ))) ;) (expression_statement "uVar3 = FUN_00041720(piVar1);" (assignment_expression "uVar3 = FUN_00041720(piVar1)" identifier = (call_expression "FUN_00041720(piVar1)" identifier (argument_list "(piVar1)" ( identifier )))) ;) (expression_statement "uVar3 = FUN_0005a1d0(uVar3);" (assignment_expression "uVar3 = FUN_0005a1d0(uVar3)" identifier = (call_expression "FUN_0005a1d0(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "*param_3 = uVar3;" (assignment_expression "*param_3 = uVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return iVar2 + 0xc;" return (binary_expression "iVar2 + 0xc" identifier + number_literal) ;) })) })) (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\nCURLMsg * curl_multi_info_read(Curl_multi *multi,int *msgs_in_queue)\n\n{\n  curl_llist *list;\n  curl_llist_element *e;\n  void *pvVar1;\n  size_t sVar2;\n  int iVar3;\n  \n  *msgs_in_queue = 0;\n  if (((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)) && (multi->in_callback == false)) {\n    list = &multi->msglist;\n    sVar2 = Curl_llist_count(list);\n    if (sVar2 != 0) {\n      e = (multi->msglist).head;\n      pvVar1 = e->ptr;\n      Curl_llist_remove(list,e,(void *)0x0);\n      sVar2 = Curl_llist_count(list);\n      iVar3 = curlx_uztosi(sVar2);\n      *msgs_in_queue = iVar3;\n      return (CURLMsg *)((int)pvVar1 + 0xc);\n    }\n  }\n  return (CURLMsg *)0x0;\n}\n\n" comment comment comment (function_definition "CURLMsg * curl_multi_info_read(Curl_multi *multi,int *msgs_in_queue)\n\n{\n  curl_llist *list;\n  curl_llist_element *e;\n  void *pvVar1;\n  size_t sVar2;\n  int iVar3;\n  \n  *msgs_in_queue = 0;\n  if (((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)) && (multi->in_callback == false)) {\n    list = &multi->msglist;\n    sVar2 = Curl_llist_count(list);\n    if (sVar2 != 0) {\n      e = (multi->msglist).head;\n      pvVar1 = e->ptr;\n      Curl_llist_remove(list,e,(void *)0x0);\n      sVar2 = Curl_llist_count(list);\n      iVar3 = curlx_uztosi(sVar2);\n      *msgs_in_queue = iVar3;\n      return (CURLMsg *)((int)pvVar1 + 0xc);\n    }\n  }\n  return (CURLMsg *)0x0;\n}" type_identifier (pointer_declarator "* curl_multi_info_read(Curl_multi *multi,int *msgs_in_queue)" * (function_declarator "curl_multi_info_read(Curl_multi *multi,int *msgs_in_queue)" identifier (parameter_list "(Curl_multi *multi,int *msgs_in_queue)" ( (parameter_declaration "Curl_multi *multi" type_identifier (pointer_declarator "*multi" * identifier)) , (parameter_declaration "int *msgs_in_queue" primitive_type (pointer_declarator "*msgs_in_queue" * identifier)) )))) (compound_statement "{\n  curl_llist *list;\n  curl_llist_element *e;\n  void *pvVar1;\n  size_t sVar2;\n  int iVar3;\n  \n  *msgs_in_queue = 0;\n  if (((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)) && (multi->in_callback == false)) {\n    list = &multi->msglist;\n    sVar2 = Curl_llist_count(list);\n    if (sVar2 != 0) {\n      e = (multi->msglist).head;\n      pvVar1 = e->ptr;\n      Curl_llist_remove(list,e,(void *)0x0);\n      sVar2 = Curl_llist_count(list);\n      iVar3 = curlx_uztosi(sVar2);\n      *msgs_in_queue = iVar3;\n      return (CURLMsg *)((int)pvVar1 + 0xc);\n    }\n  }\n  return (CURLMsg *)0x0;\n}" { (declaration "curl_llist *list;" type_identifier (pointer_declarator "*list" * identifier) ;) (declaration "curl_llist_element *e;" type_identifier (pointer_declarator "*e" * identifier) ;) (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "*msgs_in_queue = 0;" (assignment_expression "*msgs_in_queue = 0" (pointer_expression "*msgs_in_queue" * identifier) = number_literal) ;) (if_statement "if (((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)) && (multi->in_callback == false)) {\n    list = &multi->msglist;\n    sVar2 = Curl_llist_count(list);\n    if (sVar2 != 0) {\n      e = (multi->msglist).head;\n      pvVar1 = e->ptr;\n      Curl_llist_remove(list,e,(void *)0x0);\n      sVar2 = Curl_llist_count(list);\n      iVar3 = curlx_uztosi(sVar2);\n      *msgs_in_queue = iVar3;\n      return (CURLMsg *)((int)pvVar1 + 0xc);\n    }\n  }" if (parenthesized_expression "(((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)) && (multi->in_callback == false))" ( (binary_expression "((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)) && (multi->in_callback == false)" (parenthesized_expression "((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e))" ( (binary_expression "(multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)" (parenthesized_expression "(multi != (Curl_multi *)0x0)" ( (binary_expression "multi != (Curl_multi *)0x0" identifier != (cast_expression "(Curl_multi *)0x0" ( (type_descriptor "Curl_multi *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(multi->type == 0xbab1e)" ( (binary_expression "multi->type == 0xbab1e" (field_expression "multi->type" identifier -> field_identifier) == number_literal) ))) )) && (parenthesized_expression "(multi->in_callback == false)" ( (binary_expression "multi->in_callback == false" (field_expression "multi->in_callback" identifier -> field_identifier) == false) ))) )) (compound_statement "{\n    list = &multi->msglist;\n    sVar2 = Curl_llist_count(list);\n    if (sVar2 != 0) {\n      e = (multi->msglist).head;\n      pvVar1 = e->ptr;\n      Curl_llist_remove(list,e,(void *)0x0);\n      sVar2 = Curl_llist_count(list);\n      iVar3 = curlx_uztosi(sVar2);\n      *msgs_in_queue = iVar3;\n      return (CURLMsg *)((int)pvVar1 + 0xc);\n    }\n  }" { (expression_statement "list = &multi->msglist;" (assignment_expression "list = &multi->msglist" identifier = (pointer_expression "&multi->msglist" & (field_expression "multi->msglist" identifier -> field_identifier))) ;) (expression_statement "sVar2 = Curl_llist_count(list);" (assignment_expression "sVar2 = Curl_llist_count(list)" identifier = (call_expression "Curl_llist_count(list)" identifier (argument_list "(list)" ( identifier )))) ;) (if_statement "if (sVar2 != 0) {\n      e = (multi->msglist).head;\n      pvVar1 = e->ptr;\n      Curl_llist_remove(list,e,(void *)0x0);\n      sVar2 = Curl_llist_count(list);\n      iVar3 = curlx_uztosi(sVar2);\n      *msgs_in_queue = iVar3;\n      return (CURLMsg *)((int)pvVar1 + 0xc);\n    }" if (parenthesized_expression "(sVar2 != 0)" ( (binary_expression "sVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      e = (multi->msglist).head;\n      pvVar1 = e->ptr;\n      Curl_llist_remove(list,e,(void *)0x0);\n      sVar2 = Curl_llist_count(list);\n      iVar3 = curlx_uztosi(sVar2);\n      *msgs_in_queue = iVar3;\n      return (CURLMsg *)((int)pvVar1 + 0xc);\n    }" { (expression_statement "e = (multi->msglist).head;" (assignment_expression "e = (multi->msglist).head" identifier = (field_expression "(multi->msglist).head" (parenthesized_expression "(multi->msglist)" ( (field_expression "multi->msglist" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pvVar1 = e->ptr;" (assignment_expression "pvVar1 = e->ptr" identifier = (field_expression "e->ptr" identifier -> field_identifier)) ;) (expression_statement "Curl_llist_remove(list,e,(void *)0x0);" (call_expression "Curl_llist_remove(list,e,(void *)0x0)" identifier (argument_list "(list,e,(void *)0x0)" ( identifier , identifier , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "sVar2 = Curl_llist_count(list);" (assignment_expression "sVar2 = Curl_llist_count(list)" identifier = (call_expression "Curl_llist_count(list)" identifier (argument_list "(list)" ( identifier )))) ;) (expression_statement "iVar3 = curlx_uztosi(sVar2);" (assignment_expression "iVar3 = curlx_uztosi(sVar2)" identifier = (call_expression "curlx_uztosi(sVar2)" identifier (argument_list "(sVar2)" ( identifier )))) ;) (expression_statement "*msgs_in_queue = iVar3;" (assignment_expression "*msgs_in_queue = iVar3" (pointer_expression "*msgs_in_queue" * identifier) = identifier) ;) (return_statement "return (CURLMsg *)((int)pvVar1 + 0xc);" return (cast_expression "(CURLMsg *)((int)pvVar1 + 0xc)" ( (type_descriptor "CURLMsg *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0xc)" ( (binary_expression "(int)pvVar1 + 0xc" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) ;) })) })) (return_statement "return (CURLMsg *)0x0;" return (cast_expression "(CURLMsg *)0x0" ( (type_descriptor "CURLMsg *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int __regparm2 curl_multi_info_read(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x42ec9);\n  *param_3 = 0;\n  if (((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0')) {\n    piVar1 = unaff_retaddr + 5;\n    iVar2 = FUN_00041720(piVar1);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm2 curl_multi_info_read(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x42ec9);\n  *param_3 = 0;\n  if (((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0')) {\n    piVar1 = unaff_retaddr + 5;\n    iVar2 = FUN_00041720(piVar1);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "curl_multi_info_read(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x42ec9);\n  *param_3 = 0;\n  if (((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0')) {\n    piVar1 = unaff_retaddr + 5;\n    iVar2 = FUN_00041720(piVar1);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x42ec9);" (call_expression "entry(param_2,0x42ec9)" identifier (argument_list "(param_2,0x42ec9)" ( identifier , number_literal ))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (if_statement "if (((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0')) {\n    piVar1 = unaff_retaddr + 5;\n    iVar2 = FUN_00041720(piVar1);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }\n  }" if (parenthesized_expression "(((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0'))" ( (binary_expression "((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0')" (parenthesized_expression "((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e))" ( (binary_expression "(unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)" (parenthesized_expression "(unaff_retaddr != (int *)0x0)" ( (binary_expression "unaff_retaddr != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*unaff_retaddr == 0xbab1e)" ( (binary_expression "*unaff_retaddr == 0xbab1e" (pointer_expression "*unaff_retaddr" * identifier) == number_literal) ))) )) && (parenthesized_expression "((char)unaff_retaddr[0x40] == '\0')" ( (binary_expression "(char)unaff_retaddr[0x40] == '\0'" (cast_expression "(char)unaff_retaddr[0x40]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "unaff_retaddr[0x40]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    piVar1 = unaff_retaddr + 5;\n    iVar2 = FUN_00041720(piVar1);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }\n  }" { (expression_statement "piVar1 = unaff_retaddr + 5;" (assignment_expression "piVar1 = unaff_retaddr + 5" identifier = (binary_expression "unaff_retaddr + 5" identifier + number_literal)) ;) (expression_statement "iVar2 = FUN_00041720(piVar1);" (assignment_expression "iVar2 = FUN_00041720(piVar1)" identifier = (call_expression "FUN_00041720(piVar1)" identifier (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }" { (expression_statement "iVar2 = *(int *)unaff_retaddr[5];" (assignment_expression "iVar2 = *(int *)unaff_retaddr[5]" identifier = (pointer_expression "*(int *)unaff_retaddr[5]" * (cast_expression "(int *)unaff_retaddr[5]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "unaff_retaddr[5]" identifier [ number_literal ])))) ;) (expression_statement "FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);" (call_expression "FUN_00041640(piVar1,(int *)unaff_retaddr[5],0)" identifier (argument_list "(piVar1,(int *)unaff_retaddr[5],0)" ( identifier , (cast_expression "(int *)unaff_retaddr[5]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "unaff_retaddr[5]" identifier [ number_literal ])) , number_literal ))) ;) (expression_statement "uVar3 = FUN_00041720(piVar1);" (assignment_expression "uVar3 = FUN_00041720(piVar1)" identifier = (call_expression "FUN_00041720(piVar1)" identifier (argument_list "(piVar1)" ( identifier )))) ;) (expression_statement "uVar3 = FUN_0005a1d0(uVar3);" (assignment_expression "uVar3 = FUN_0005a1d0(uVar3)" identifier = (call_expression "FUN_0005a1d0(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "*param_3 = uVar3;" (assignment_expression "*param_3 = uVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return iVar2 + 0xc;" return (binary_expression "iVar2 + 0xc" identifier + number_literal) ;) })) })) (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) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (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 (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) ))) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return (binary_expression IDENT + LIT) ;) })) })) (return_statement return LIT ;) })))
(function_definition "int __regparm2 curl_multi_info_read(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x42ec9);\n  *param_3 = 0;\n  if (((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0')) {\n    piVar1 = unaff_retaddr + 5;\n    iVar2 = FUN_00041720(piVar1);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }\n  }\n  return 0;\n}" (primitive_type "int") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "curl_multi_info_read(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (identifier "curl_multi_info_read") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x42ec9);\n  *param_3 = 0;\n  if (((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0')) {\n    piVar1 = unaff_retaddr + 5;\n    iVar2 = FUN_00041720(piVar1);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int *unaff_retaddr;" (primitive_type "int") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (expression_statement "entry(param_2,0x42ec9);" (call_expression "entry(param_2,0x42ec9)" (identifier "entry") (argument_list "(param_2,0x42ec9)" (( "(") (identifier "param_2") (, ",") (number_literal "0x42ec9") () ")"))) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0')) {\n    piVar1 = unaff_retaddr + 5;\n    iVar2 = FUN_00041720(piVar1);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }\n  }" (if "if") (parenthesized_expression "(((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0'))" (( "(") (binary_expression "((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&\n     ((char)unaff_retaddr[0x40] == '\0')" (parenthesized_expression "((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e))" (( "(") (binary_expression "(unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)" (parenthesized_expression "(unaff_retaddr != (int *)0x0)" (( "(") (binary_expression "unaff_retaddr != (int *)0x0" (identifier "unaff_retaddr") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*unaff_retaddr == 0xbab1e)" (( "(") (binary_expression "*unaff_retaddr == 0xbab1e" (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (== "==") (number_literal "0xbab1e")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((char)unaff_retaddr[0x40] == '\0')" (( "(") (binary_expression "(char)unaff_retaddr[0x40] == '\0'" (cast_expression "(char)unaff_retaddr[0x40]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "unaff_retaddr[0x40]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x40") (] "]"))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    piVar1 = unaff_retaddr + 5;\n    iVar2 = FUN_00041720(piVar1);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }\n  }" ({ "{") (expression_statement "piVar1 = unaff_retaddr + 5;" (assignment_expression "piVar1 = unaff_retaddr + 5" (identifier "piVar1") (= "=") (binary_expression "unaff_retaddr + 5" (identifier "unaff_retaddr") (+ "+") (number_literal "5"))) (; ";")) (expression_statement "iVar2 = FUN_00041720(piVar1);" (assignment_expression "iVar2 = FUN_00041720(piVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_00041720(piVar1)" (identifier "FUN_00041720") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = *(int *)unaff_retaddr[5];\n      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);\n      uVar3 = FUN_00041720(piVar1);\n      uVar3 = FUN_0005a1d0(uVar3);\n      *param_3 = uVar3;\n      return iVar2 + 0xc;\n    }" ({ "{") (expression_statement "iVar2 = *(int *)unaff_retaddr[5];" (assignment_expression "iVar2 = *(int *)unaff_retaddr[5]" (identifier "iVar2") (= "=") (pointer_expression "*(int *)unaff_retaddr[5]" (* "*") (cast_expression "(int *)unaff_retaddr[5]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "unaff_retaddr[5]" (identifier "unaff_retaddr") ([ "[") (number_literal "5") (] "]"))))) (; ";")) (expression_statement "FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);" (call_expression "FUN_00041640(piVar1,(int *)unaff_retaddr[5],0)" (identifier "FUN_00041640") (argument_list "(piVar1,(int *)unaff_retaddr[5],0)" (( "(") (identifier "piVar1") (, ",") (cast_expression "(int *)unaff_retaddr[5]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "unaff_retaddr[5]" (identifier "unaff_retaddr") ([ "[") (number_literal "5") (] "]"))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar3 = FUN_00041720(piVar1);" (assignment_expression "uVar3 = FUN_00041720(piVar1)" (identifier "uVar3") (= "=") (call_expression "FUN_00041720(piVar1)" (identifier "FUN_00041720") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (expression_statement "uVar3 = FUN_0005a1d0(uVar3);" (assignment_expression "uVar3 = FUN_0005a1d0(uVar3)" (identifier "uVar3") (= "=") (call_expression "FUN_0005a1d0(uVar3)" (identifier "FUN_0005a1d0") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "*param_3 = uVar3;" (assignment_expression "*param_3 = uVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return iVar2 + 0xc;" (return "return") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) (; ";")) (} "}"))) (} "}"))) (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 *var_1,int *msgs_in_queue)

{
  type_3 *list;
  type_4 *e;
  void *pvVar1;
  size_t var_3;
  int iVar3;
  
  *msgs_in_queue = 0;
  if (((var_1 != (type_2 *)0x0) && (var_1->type == 0xbab1e)) && (var_1->in_callback == false)) {
    list = &var_1->msglist;
    var_3 = var_2(list);
    if (var_3 != 0) {
      e = (var_1->msglist).head;
      pvVar1 = e->ptr;
      var_4(list,e,(void *)0x0);
      var_3 = var_2(list);
      iVar3 = var_5(var_3);
      *msgs_in_queue = iVar3;
      return (type_1 *)((int)pvVar1 + 0xc);
    }
  }
  return (type_1 *)0x0;
}


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

int __regparm2 MASKED(undefined4 param_1,undefined4 param_2,undefined4 *param_3)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  int *unaff_retaddr;
  
  entry(param_2,0x42ec9);
  *param_3 = 0;
  if (((unaff_retaddr != (int *)0x0) && (*unaff_retaddr == 0xbab1e)) &&
     ((char)unaff_retaddr[0x40] == '\0')) {
    piVar1 = unaff_retaddr + 5;
    iVar2 = FUN_00041720(piVar1);
    if (iVar2 != 0) {
      iVar2 = *(int *)unaff_retaddr[5];
      FUN_00041640(piVar1,(int *)unaff_retaddr[5],0);
      uVar3 = FUN_00041720(piVar1);
      uVar3 = FUN_0005a1d0(uVar3);
      *param_3 = uVar3;
      return iVar2 + 0xc;
    }
  }
  return 0;
}

