
/* 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_mime_data(curl_mimepart *part,char *data,size_t datasize)

{
  CURLcode CVar1;
  char *__dest;
  
  if (part != (curl_mimepart *)0x0) {
    if (part->freefunc != (curl_free_callback)0x0) {
      (*part->freefunc)(part->arg);
    }
    part->readfunc = (curl_read_callback)0x0;
    CVar1 = CURLE_OK;
    part->seekfunc = (curl_seek_callback)0x0;
    part->freefunc = (curl_free_callback)0x0;
    part->arg = part;
    part->data = (char *)0x0;
    part->fp = (FILE *)0x0;
    *(undefined4 *)&part->datasize = 0;
    *(undefined4 *)((int)&part->datasize + 4) = 0;
    (part->encstate).pos = 0;
    (part->encstate).bufbeg = 0;
    (part->encstate).bufend = 0;
    part->kind = MIMEKIND_NONE;
    if (data != (char *)0x0) {
      if (datasize == 0xffffffff) {
        datasize = strlen(data);
      }
      __dest = (char *)(*Curl_cmalloc)(datasize + 1);
      part->data = __dest;
      if (__dest == (char *)0x0) {
        CVar1 = CURLE_OUT_OF_MEMORY;
      }
      else {
        *(size_t *)&part->datasize = datasize;
        *(undefined4 *)((int)&part->datasize + 4) = 0;
        if (datasize != 0) {
          memcpy(__dest,data,datasize);
          __dest = part->data;
        }
        __dest[datasize] = '\0';
        part->readfunc = mime_mem_read;
        part->kind = MIMEKIND_DATA;
        part->seekfunc = mime_mem_seek;
        part->freefunc = mime_mem_free;
        CVar1 = CURLE_OK;
      }
    }
    return CVar1;
  }
  return CURLE_BAD_FUNCTION_ARGUMENT;
}



undefined4 __regparm2
curl_mime_data(undefined4 param_1,undefined4 param_2,char *param_3,size_t param_4)

{
  undefined4 uVar1;
  void *__dest;
  int unaff_EBX;
  int unaff_retaddr;
  
  entry(param_2,0x67c39);
  if (unaff_retaddr != 0) {
    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {
      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));
    }
    *(undefined4 *)(unaff_retaddr + 0x14) = 0;
    uVar1 = 0;
    *(undefined4 *)(unaff_retaddr + 0x18) = 0;
    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;
    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;
    *(undefined4 *)(unaff_retaddr + 0x10) = 0;
    *(undefined4 *)(unaff_retaddr + 0x24) = 0;
    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;
    *(undefined4 *)(unaff_retaddr + 0x40) = 0;
    *(undefined4 *)(unaff_retaddr + 0x58) = 0;
    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;
    *(undefined4 *)(unaff_retaddr + 0x60) = 0;
    *(undefined4 *)(unaff_retaddr + 0xc) = 0;
    if (param_3 != (char *)0x0) {
      if (param_4 == 0xffffffff) {
        param_4 = strlen(param_3);
      }
      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);
      *(void **)(unaff_retaddr + 0x10) = __dest;
      if (__dest == (void *)0x0) {
        uVar1 = 0x1b;
      }
      else {
        *(size_t *)(unaff_retaddr + 0x3c) = param_4;
        *(undefined4 *)(unaff_retaddr + 0x40) = 0;
        if (param_4 != 0) {
          memcpy(__dest,param_3,param_4);
          __dest = *(void **)(unaff_retaddr + 0x10);
        }
        *(undefined1 *)((int)__dest + param_4) = 0;
        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;
        *(undefined4 *)(unaff_retaddr + 0xc) = 1;
        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;
        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;
        uVar1 = 0;
      }
    }
    return uVar1;
  }
  return 0x2b;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x48ba7
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
MOV EBP,dword ptr [ESP + 0x24]
MOV EDI,dword ptr [ESP + 0x28]
TEST ESI,ESI
JZ 0x00067d48
MOV EAX,dword ptr [ESI + 0x1c]
TEST EAX,EAX
JZ 0x00067c68
SUB ESP,0xc
PUSH dword ptr [ESI + 0x20]
CALL EAX
ADD ESP,0x10
MOV dword ptr [ESI + 0x14],0x0
XOR EAX,EAX
MOV dword ptr [ESI + 0x18],0x0
MOV dword ptr [ESI + 0x1c],0x0
MOV dword ptr [ESI + 0x20],ESI
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [ESI + 0x24],0x0
MOV dword ptr [ESI + 0x3c],0x0
MOV dword ptr [ESI + 0x40],0x0
MOV dword ptr [ESI + 0x58],0x0
MOV dword ptr [ESI + 0x5c],0x0
MOV dword ptr [ESI + 0x60],0x0
MOV dword ptr [ESI + 0xc],0x0
TEST EBP,EBP
JZ 0x00067d12
CMP EDI,-0x1
JZ 0x00067d20
SUB ESP,0xc
LEA EAX,[EDI + 0x1]
PUSH EAX
LEA EAX,[EBX + 0x890]
CALL dword ptr [EAX]
MOV dword ptr [ESI + 0x10],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00067d58
MOV dword ptr [ESI + 0x3c],EDI
MOV dword ptr [ESI + 0x40],0x0
TEST EDI,EDI
JNZ 0x00067d30
MOV byte ptr [EAX + EDI*0x1],0x0
LEA EAX,[EBX + 0xfffb65d0]
MOV dword ptr [ESI + 0x14],EAX
LEA EAX,[EBX + 0xfffb61c0]
MOV dword ptr [ESI + 0xc],0x1
MOV dword ptr [ESI + 0x18],EAX
LEA EAX,[EBX + 0xfffb6210]
MOV dword ptr [ESI + 0x1c],EAX
XOR EAX,EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EBP
CALL 0x00018850
ADD ESP,0x10
MOV EDI,EAX
JMP 0x00067cc3
SUB ESP,0x4
PUSH EDI
PUSH EBP
PUSH EAX
CALL 0x00018750
MOV EAX,dword ptr [ESI + 0x10]
ADD ESP,0x10
JMP 0x00067cea
ADD ESP,0xc
MOV EAX,0x2b
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,0x1b
JMP 0x00067d12
(translation_unit "undefined4 __regparm2\ncurl_mime_data(undefined4 param_1,undefined4 param_2,char *param_3,size_t param_4)\n\n{\n  undefined4 uVar1;\n  void *__dest;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x67c39);\n  if (unaff_retaddr != 0) {\n    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }\n    *(undefined4 *)(unaff_retaddr + 0x14) = 0;\n    uVar1 = 0;\n    *(undefined4 *)(unaff_retaddr + 0x18) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;\n    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;\n    *(undefined4 *)(unaff_retaddr + 0x10) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x24) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x58) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x60) = 0;\n    *(undefined4 *)(unaff_retaddr + 0xc) = 0;\n    if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }\n    return uVar1;\n  }\n  return 0x2b;\n}\n\n" (function_definition "undefined4 __regparm2\ncurl_mime_data(undefined4 param_1,undefined4 param_2,char *param_3,size_t param_4)\n\n{\n  undefined4 uVar1;\n  void *__dest;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x67c39);\n  if (unaff_retaddr != 0) {\n    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }\n    *(undefined4 *)(unaff_retaddr + 0x14) = 0;\n    uVar1 = 0;\n    *(undefined4 *)(unaff_retaddr + 0x18) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;\n    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;\n    *(undefined4 *)(unaff_retaddr + 0x10) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x24) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x58) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x60) = 0;\n    *(undefined4 *)(unaff_retaddr + 0xc) = 0;\n    if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }\n    return uVar1;\n  }\n  return 0x2b;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "curl_mime_data(undefined4 param_1,undefined4 param_2,char *param_3,size_t param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,char *param_3,size_t param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "size_t param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  void *__dest;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x67c39);\n  if (unaff_retaddr != 0) {\n    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }\n    *(undefined4 *)(unaff_retaddr + 0x14) = 0;\n    uVar1 = 0;\n    *(undefined4 *)(unaff_retaddr + 0x18) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;\n    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;\n    *(undefined4 *)(unaff_retaddr + 0x10) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x24) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x58) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x60) = 0;\n    *(undefined4 *)(unaff_retaddr + 0xc) = 0;\n    if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }\n    return uVar1;\n  }\n  return 0x2b;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x67c39);" (call_expression "entry(param_2,0x67c39)" identifier (argument_list "(param_2,0x67c39)" ( identifier , number_literal ))) ;) (if_statement "if (unaff_retaddr != 0) {\n    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }\n    *(undefined4 *)(unaff_retaddr + 0x14) = 0;\n    uVar1 = 0;\n    *(undefined4 *)(unaff_retaddr + 0x18) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;\n    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;\n    *(undefined4 *)(unaff_retaddr + 0x10) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x24) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x58) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x60) = 0;\n    *(undefined4 *)(unaff_retaddr + 0xc) = 0;\n    if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }\n    return uVar1;\n  }" if (parenthesized_expression "(unaff_retaddr != 0)" ( (binary_expression "unaff_retaddr != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }\n    *(undefined4 *)(unaff_retaddr + 0x14) = 0;\n    uVar1 = 0;\n    *(undefined4 *)(unaff_retaddr + 0x18) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;\n    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;\n    *(undefined4 *)(unaff_retaddr + 0x10) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x24) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x58) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x60) = 0;\n    *(undefined4 *)(unaff_retaddr + 0xc) = 0;\n    if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }\n    return uVar1;\n  }" { (if_statement "if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }" if (parenthesized_expression "(*(code **)(unaff_retaddr + 0x1c) != (code *)0x0)" ( (binary_expression "*(code **)(unaff_retaddr + 0x1c) != (code *)0x0" (pointer_expression "*(code **)(unaff_retaddr + 0x1c)" * (cast_expression "(code **)(unaff_retaddr + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0x1c)" ( (binary_expression "unaff_retaddr + 0x1c" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }" { (expression_statement "(**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));" (call_expression "(**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20))" (parenthesized_expression "(**(code **)(unaff_retaddr + 0x1c))" ( (pointer_expression "**(code **)(unaff_retaddr + 0x1c)" * (pointer_expression "*(code **)(unaff_retaddr + 0x1c)" * (cast_expression "(code **)(unaff_retaddr + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0x1c)" ( (binary_expression "unaff_retaddr + 0x1c" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(unaff_retaddr + 0x20))" ( (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x20)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x20)" ( (binary_expression "unaff_retaddr + 0x20" identifier + number_literal) )))) ))) ;) })) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x14) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x14) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x14)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x14)" ( (binary_expression "unaff_retaddr + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x18) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x18) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x18)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x18)" ( (binary_expression "unaff_retaddr + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x1c) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x1c)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x1c)" ( (binary_expression "unaff_retaddr + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(unaff_retaddr + 0x20) = unaff_retaddr;" (assignment_expression "*(int *)(unaff_retaddr + 0x20) = unaff_retaddr" (pointer_expression "*(int *)(unaff_retaddr + 0x20)" * (cast_expression "(int *)(unaff_retaddr + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x20)" ( (binary_expression "unaff_retaddr + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x10) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x10) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x10)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x10)" ( (binary_expression "unaff_retaddr + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x24) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x24) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x24)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x24)" ( (binary_expression "unaff_retaddr + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x3c) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x3c) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x3c)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x3c)" ( (binary_expression "unaff_retaddr + 0x3c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x40) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x40) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x40)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x40)" ( (binary_expression "unaff_retaddr + 0x40" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x58) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x58) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x58)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x58)" ( (binary_expression "unaff_retaddr + 0x58" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x5c) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x5c) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x5c)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x5c)" ( (binary_expression "unaff_retaddr + 0x5c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x60) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x60) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x60)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x60)" ( (binary_expression "unaff_retaddr + 0x60" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0xc) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0xc) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0xc)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0xc)" ( (binary_expression "unaff_retaddr + 0xc" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }" if (parenthesized_expression "(param_3 != (char *)0x0)" ( (binary_expression "param_3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }" { (if_statement "if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }" if (parenthesized_expression "(param_4 == 0xffffffff)" ( (binary_expression "param_4 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n        param_4 = strlen(param_3);\n      }" { (expression_statement "param_4 = strlen(param_3);" (assignment_expression "param_4 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) })) (expression_statement "__dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);" (assignment_expression "__dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1)" identifier = (cast_expression "(void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1)" (parenthesized_expression "(**(code **)(FUN_00049430 + unaff_EBX + 7))" ( (pointer_expression "**(code **)(FUN_00049430 + unaff_EBX + 7)" * (pointer_expression "*(code **)(FUN_00049430 + unaff_EBX + 7)" * (cast_expression "(code **)(FUN_00049430 + unaff_EBX + 7)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(FUN_00049430 + unaff_EBX + 7)" ( (binary_expression "FUN_00049430 + unaff_EBX + 7" (binary_expression "FUN_00049430 + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(param_4 + 1)" ( (binary_expression "param_4 + 1" identifier + number_literal) ))))) ;) (expression_statement "*(void **)(unaff_retaddr + 0x10) = __dest;" (assignment_expression "*(void **)(unaff_retaddr + 0x10) = __dest" (pointer_expression "*(void **)(unaff_retaddr + 0x10)" * (cast_expression "(void **)(unaff_retaddr + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0x10)" ( (binary_expression "unaff_retaddr + 0x10" identifier + number_literal) )))) = identifier) ;) (if_statement "if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }" if (parenthesized_expression "(__dest == (void *)0x0)" ( (binary_expression "__dest == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar1 = 0x1b;\n      }" { (expression_statement "uVar1 = 0x1b;" (assignment_expression "uVar1 = 0x1b" identifier = number_literal) ;) }) (else_clause "else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }" else (compound_statement "{\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }" { (expression_statement "*(size_t *)(unaff_retaddr + 0x3c) = param_4;" (assignment_expression "*(size_t *)(unaff_retaddr + 0x3c) = param_4" (pointer_expression "*(size_t *)(unaff_retaddr + 0x3c)" * (cast_expression "(size_t *)(unaff_retaddr + 0x3c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x3c)" ( (binary_expression "unaff_retaddr + 0x3c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x40) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x40) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x40)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x40)" ( (binary_expression "unaff_retaddr + 0x40" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }" { (expression_statement "memcpy(__dest,param_3,param_4);" (call_expression "memcpy(__dest,param_3,param_4)" identifier (argument_list "(__dest,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (expression_statement "__dest = *(void **)(unaff_retaddr + 0x10);" (assignment_expression "__dest = *(void **)(unaff_retaddr + 0x10)" identifier = (pointer_expression "*(void **)(unaff_retaddr + 0x10)" * (cast_expression "(void **)(unaff_retaddr + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0x10)" ( (binary_expression "unaff_retaddr + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "*(undefined1 *)((int)__dest + param_4) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + param_4) = 0" (pointer_expression "*(undefined1 *)((int)__dest + param_4)" * (cast_expression "(undefined1 *)((int)__dest + param_4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_4)" ( (binary_expression "(int)__dest + param_4" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;" (assignment_expression "*(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89" (pointer_expression "*(int *)(unaff_retaddr + 0x14)" * (cast_expression "(int *)(unaff_retaddr + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x14)" ( (binary_expression "unaff_retaddr + 0x14" identifier + number_literal) )))) = (binary_expression "unaff_EBX + -0xe89" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0xc) = 1;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0xc) = 1" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0xc)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0xc)" ( (binary_expression "unaff_retaddr + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;" (assignment_expression "*(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299" (pointer_expression "*(int *)(unaff_retaddr + 0x18)" * (cast_expression "(int *)(unaff_retaddr + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x18)" ( (binary_expression "unaff_retaddr + 0x18" identifier + number_literal) )))) = (binary_expression "unaff_EBX + -0x1299" identifier + number_literal)) ;) (expression_statement "*(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;" (assignment_expression "*(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249" (pointer_expression "*(int *)(unaff_retaddr + 0x1c)" * (cast_expression "(int *)(unaff_retaddr + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x1c)" ( (binary_expression "unaff_retaddr + 0x1c" identifier + number_literal) )))) = (binary_expression "unaff_EBX + -0x1249" identifier + number_literal)) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }))) })) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0x2b;" 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_mime_data(curl_mimepart *part,char *data,size_t datasize)\n\n{\n  CURLcode CVar1;\n  char *__dest;\n  \n  if (part != (curl_mimepart *)0x0) {\n    if (part->freefunc != (curl_free_callback)0x0) {\n      (*part->freefunc)(part->arg);\n    }\n    part->readfunc = (curl_read_callback)0x0;\n    CVar1 = CURLE_OK;\n    part->seekfunc = (curl_seek_callback)0x0;\n    part->freefunc = (curl_free_callback)0x0;\n    part->arg = part;\n    part->data = (char *)0x0;\n    part->fp = (FILE *)0x0;\n    *(undefined4 *)&part->datasize = 0;\n    *(undefined4 *)((int)&part->datasize + 4) = 0;\n    (part->encstate).pos = 0;\n    (part->encstate).bufbeg = 0;\n    (part->encstate).bufend = 0;\n    part->kind = MIMEKIND_NONE;\n    if (data != (char *)0x0) {\n      if (datasize == 0xffffffff) {\n        datasize = strlen(data);\n      }\n      __dest = (char *)(*Curl_cmalloc)(datasize + 1);\n      part->data = __dest;\n      if (__dest == (char *)0x0) {\n        CVar1 = CURLE_OUT_OF_MEMORY;\n      }\n      else {\n        *(size_t *)&part->datasize = datasize;\n        *(undefined4 *)((int)&part->datasize + 4) = 0;\n        if (datasize != 0) {\n          memcpy(__dest,data,datasize);\n          __dest = part->data;\n        }\n        __dest[datasize] = '\0';\n        part->readfunc = mime_mem_read;\n        part->kind = MIMEKIND_DATA;\n        part->seekfunc = mime_mem_seek;\n        part->freefunc = mime_mem_free;\n        CVar1 = CURLE_OK;\n      }\n    }\n    return CVar1;\n  }\n  return CURLE_BAD_FUNCTION_ARGUMENT;\n}\n\n" comment comment comment (function_definition "CURLcode curl_mime_data(curl_mimepart *part,char *data,size_t datasize)\n\n{\n  CURLcode CVar1;\n  char *__dest;\n  \n  if (part != (curl_mimepart *)0x0) {\n    if (part->freefunc != (curl_free_callback)0x0) {\n      (*part->freefunc)(part->arg);\n    }\n    part->readfunc = (curl_read_callback)0x0;\n    CVar1 = CURLE_OK;\n    part->seekfunc = (curl_seek_callback)0x0;\n    part->freefunc = (curl_free_callback)0x0;\n    part->arg = part;\n    part->data = (char *)0x0;\n    part->fp = (FILE *)0x0;\n    *(undefined4 *)&part->datasize = 0;\n    *(undefined4 *)((int)&part->datasize + 4) = 0;\n    (part->encstate).pos = 0;\n    (part->encstate).bufbeg = 0;\n    (part->encstate).bufend = 0;\n    part->kind = MIMEKIND_NONE;\n    if (data != (char *)0x0) {\n      if (datasize == 0xffffffff) {\n        datasize = strlen(data);\n      }\n      __dest = (char *)(*Curl_cmalloc)(datasize + 1);\n      part->data = __dest;\n      if (__dest == (char *)0x0) {\n        CVar1 = CURLE_OUT_OF_MEMORY;\n      }\n      else {\n        *(size_t *)&part->datasize = datasize;\n        *(undefined4 *)((int)&part->datasize + 4) = 0;\n        if (datasize != 0) {\n          memcpy(__dest,data,datasize);\n          __dest = part->data;\n        }\n        __dest[datasize] = '\0';\n        part->readfunc = mime_mem_read;\n        part->kind = MIMEKIND_DATA;\n        part->seekfunc = mime_mem_seek;\n        part->freefunc = mime_mem_free;\n        CVar1 = CURLE_OK;\n      }\n    }\n    return CVar1;\n  }\n  return CURLE_BAD_FUNCTION_ARGUMENT;\n}" type_identifier (function_declarator "curl_mime_data(curl_mimepart *part,char *data,size_t datasize)" identifier (parameter_list "(curl_mimepart *part,char *data,size_t datasize)" ( (parameter_declaration "curl_mimepart *part" type_identifier (pointer_declarator "*part" * identifier)) , (parameter_declaration "char *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "size_t datasize" primitive_type identifier) ))) (compound_statement "{\n  CURLcode CVar1;\n  char *__dest;\n  \n  if (part != (curl_mimepart *)0x0) {\n    if (part->freefunc != (curl_free_callback)0x0) {\n      (*part->freefunc)(part->arg);\n    }\n    part->readfunc = (curl_read_callback)0x0;\n    CVar1 = CURLE_OK;\n    part->seekfunc = (curl_seek_callback)0x0;\n    part->freefunc = (curl_free_callback)0x0;\n    part->arg = part;\n    part->data = (char *)0x0;\n    part->fp = (FILE *)0x0;\n    *(undefined4 *)&part->datasize = 0;\n    *(undefined4 *)((int)&part->datasize + 4) = 0;\n    (part->encstate).pos = 0;\n    (part->encstate).bufbeg = 0;\n    (part->encstate).bufend = 0;\n    part->kind = MIMEKIND_NONE;\n    if (data != (char *)0x0) {\n      if (datasize == 0xffffffff) {\n        datasize = strlen(data);\n      }\n      __dest = (char *)(*Curl_cmalloc)(datasize + 1);\n      part->data = __dest;\n      if (__dest == (char *)0x0) {\n        CVar1 = CURLE_OUT_OF_MEMORY;\n      }\n      else {\n        *(size_t *)&part->datasize = datasize;\n        *(undefined4 *)((int)&part->datasize + 4) = 0;\n        if (datasize != 0) {\n          memcpy(__dest,data,datasize);\n          __dest = part->data;\n        }\n        __dest[datasize] = '\0';\n        part->readfunc = mime_mem_read;\n        part->kind = MIMEKIND_DATA;\n        part->seekfunc = mime_mem_seek;\n        part->freefunc = mime_mem_free;\n        CVar1 = CURLE_OK;\n      }\n    }\n    return CVar1;\n  }\n  return CURLE_BAD_FUNCTION_ARGUMENT;\n}" { (declaration "CURLcode CVar1;" type_identifier identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (if_statement "if (part != (curl_mimepart *)0x0) {\n    if (part->freefunc != (curl_free_callback)0x0) {\n      (*part->freefunc)(part->arg);\n    }\n    part->readfunc = (curl_read_callback)0x0;\n    CVar1 = CURLE_OK;\n    part->seekfunc = (curl_seek_callback)0x0;\n    part->freefunc = (curl_free_callback)0x0;\n    part->arg = part;\n    part->data = (char *)0x0;\n    part->fp = (FILE *)0x0;\n    *(undefined4 *)&part->datasize = 0;\n    *(undefined4 *)((int)&part->datasize + 4) = 0;\n    (part->encstate).pos = 0;\n    (part->encstate).bufbeg = 0;\n    (part->encstate).bufend = 0;\n    part->kind = MIMEKIND_NONE;\n    if (data != (char *)0x0) {\n      if (datasize == 0xffffffff) {\n        datasize = strlen(data);\n      }\n      __dest = (char *)(*Curl_cmalloc)(datasize + 1);\n      part->data = __dest;\n      if (__dest == (char *)0x0) {\n        CVar1 = CURLE_OUT_OF_MEMORY;\n      }\n      else {\n        *(size_t *)&part->datasize = datasize;\n        *(undefined4 *)((int)&part->datasize + 4) = 0;\n        if (datasize != 0) {\n          memcpy(__dest,data,datasize);\n          __dest = part->data;\n        }\n        __dest[datasize] = '\0';\n        part->readfunc = mime_mem_read;\n        part->kind = MIMEKIND_DATA;\n        part->seekfunc = mime_mem_seek;\n        part->freefunc = mime_mem_free;\n        CVar1 = CURLE_OK;\n      }\n    }\n    return CVar1;\n  }" if (parenthesized_expression "(part != (curl_mimepart *)0x0)" ( (binary_expression "part != (curl_mimepart *)0x0" identifier != (cast_expression "(curl_mimepart *)0x0" ( (type_descriptor "curl_mimepart *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (part->freefunc != (curl_free_callback)0x0) {\n      (*part->freefunc)(part->arg);\n    }\n    part->readfunc = (curl_read_callback)0x0;\n    CVar1 = CURLE_OK;\n    part->seekfunc = (curl_seek_callback)0x0;\n    part->freefunc = (curl_free_callback)0x0;\n    part->arg = part;\n    part->data = (char *)0x0;\n    part->fp = (FILE *)0x0;\n    *(undefined4 *)&part->datasize = 0;\n    *(undefined4 *)((int)&part->datasize + 4) = 0;\n    (part->encstate).pos = 0;\n    (part->encstate).bufbeg = 0;\n    (part->encstate).bufend = 0;\n    part->kind = MIMEKIND_NONE;\n    if (data != (char *)0x0) {\n      if (datasize == 0xffffffff) {\n        datasize = strlen(data);\n      }\n      __dest = (char *)(*Curl_cmalloc)(datasize + 1);\n      part->data = __dest;\n      if (__dest == (char *)0x0) {\n        CVar1 = CURLE_OUT_OF_MEMORY;\n      }\n      else {\n        *(size_t *)&part->datasize = datasize;\n        *(undefined4 *)((int)&part->datasize + 4) = 0;\n        if (datasize != 0) {\n          memcpy(__dest,data,datasize);\n          __dest = part->data;\n        }\n        __dest[datasize] = '\0';\n        part->readfunc = mime_mem_read;\n        part->kind = MIMEKIND_DATA;\n        part->seekfunc = mime_mem_seek;\n        part->freefunc = mime_mem_free;\n        CVar1 = CURLE_OK;\n      }\n    }\n    return CVar1;\n  }" { (if_statement "if (part->freefunc != (curl_free_callback)0x0) {\n      (*part->freefunc)(part->arg);\n    }" if (parenthesized_expression "(part->freefunc != (curl_free_callback)0x0)" ( (binary_expression "part->freefunc != (curl_free_callback)0x0" (field_expression "part->freefunc" identifier -> field_identifier) != (cast_expression "(curl_free_callback)0x0" ( (type_descriptor "curl_free_callback" type_identifier) ) number_literal)) )) (compound_statement "{\n      (*part->freefunc)(part->arg);\n    }" { (expression_statement "(*part->freefunc)(part->arg);" (call_expression "(*part->freefunc)(part->arg)" (parenthesized_expression "(*part->freefunc)" ( (pointer_expression "*part->freefunc" * (field_expression "part->freefunc" identifier -> field_identifier)) )) (argument_list "(part->arg)" ( (field_expression "part->arg" identifier -> field_identifier) ))) ;) })) (expression_statement "part->readfunc = (curl_read_callback)0x0;" (assignment_expression "part->readfunc = (curl_read_callback)0x0" (field_expression "part->readfunc" identifier -> field_identifier) = (cast_expression "(curl_read_callback)0x0" ( (type_descriptor "curl_read_callback" type_identifier) ) number_literal)) ;) (expression_statement "CVar1 = CURLE_OK;" (assignment_expression "CVar1 = CURLE_OK" identifier = identifier) ;) (expression_statement "part->seekfunc = (curl_seek_callback)0x0;" (assignment_expression "part->seekfunc = (curl_seek_callback)0x0" (field_expression "part->seekfunc" identifier -> field_identifier) = (cast_expression "(curl_seek_callback)0x0" ( (type_descriptor "curl_seek_callback" type_identifier) ) number_literal)) ;) (expression_statement "part->freefunc = (curl_free_callback)0x0;" (assignment_expression "part->freefunc = (curl_free_callback)0x0" (field_expression "part->freefunc" identifier -> field_identifier) = (cast_expression "(curl_free_callback)0x0" ( (type_descriptor "curl_free_callback" type_identifier) ) number_literal)) ;) (expression_statement "part->arg = part;" (assignment_expression "part->arg = part" (field_expression "part->arg" identifier -> field_identifier) = identifier) ;) (expression_statement "part->data = (char *)0x0;" (assignment_expression "part->data = (char *)0x0" (field_expression "part->data" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "part->fp = (FILE *)0x0;" (assignment_expression "part->fp = (FILE *)0x0" (field_expression "part->fp" identifier -> field_identifier) = (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*(undefined4 *)&part->datasize = 0;" (assignment_expression "*(undefined4 *)&part->datasize = 0" (pointer_expression "*(undefined4 *)&part->datasize" * (cast_expression "(undefined4 *)&part->datasize" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&part->datasize" & (field_expression "part->datasize" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&part->datasize + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&part->datasize + 4) = 0" (pointer_expression "*(undefined4 *)((int)&part->datasize + 4)" * (cast_expression "(undefined4 *)((int)&part->datasize + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&part->datasize + 4)" ( (binary_expression "(int)&part->datasize + 4" (cast_expression "(int)&part->datasize" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&part->datasize" & (field_expression "part->datasize" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "(part->encstate).pos = 0;" (assignment_expression "(part->encstate).pos = 0" (field_expression "(part->encstate).pos" (parenthesized_expression "(part->encstate)" ( (field_expression "part->encstate" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(part->encstate).bufbeg = 0;" (assignment_expression "(part->encstate).bufbeg = 0" (field_expression "(part->encstate).bufbeg" (parenthesized_expression "(part->encstate)" ( (field_expression "part->encstate" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(part->encstate).bufend = 0;" (assignment_expression "(part->encstate).bufend = 0" (field_expression "(part->encstate).bufend" (parenthesized_expression "(part->encstate)" ( (field_expression "part->encstate" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "part->kind = MIMEKIND_NONE;" (assignment_expression "part->kind = MIMEKIND_NONE" (field_expression "part->kind" identifier -> field_identifier) = identifier) ;) (if_statement "if (data != (char *)0x0) {\n      if (datasize == 0xffffffff) {\n        datasize = strlen(data);\n      }\n      __dest = (char *)(*Curl_cmalloc)(datasize + 1);\n      part->data = __dest;\n      if (__dest == (char *)0x0) {\n        CVar1 = CURLE_OUT_OF_MEMORY;\n      }\n      else {\n        *(size_t *)&part->datasize = datasize;\n        *(undefined4 *)((int)&part->datasize + 4) = 0;\n        if (datasize != 0) {\n          memcpy(__dest,data,datasize);\n          __dest = part->data;\n        }\n        __dest[datasize] = '\0';\n        part->readfunc = mime_mem_read;\n        part->kind = MIMEKIND_DATA;\n        part->seekfunc = mime_mem_seek;\n        part->freefunc = mime_mem_free;\n        CVar1 = CURLE_OK;\n      }\n    }" if (parenthesized_expression "(data != (char *)0x0)" ( (binary_expression "data != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (datasize == 0xffffffff) {\n        datasize = strlen(data);\n      }\n      __dest = (char *)(*Curl_cmalloc)(datasize + 1);\n      part->data = __dest;\n      if (__dest == (char *)0x0) {\n        CVar1 = CURLE_OUT_OF_MEMORY;\n      }\n      else {\n        *(size_t *)&part->datasize = datasize;\n        *(undefined4 *)((int)&part->datasize + 4) = 0;\n        if (datasize != 0) {\n          memcpy(__dest,data,datasize);\n          __dest = part->data;\n        }\n        __dest[datasize] = '\0';\n        part->readfunc = mime_mem_read;\n        part->kind = MIMEKIND_DATA;\n        part->seekfunc = mime_mem_seek;\n        part->freefunc = mime_mem_free;\n        CVar1 = CURLE_OK;\n      }\n    }" { (if_statement "if (datasize == 0xffffffff) {\n        datasize = strlen(data);\n      }" if (parenthesized_expression "(datasize == 0xffffffff)" ( (binary_expression "datasize == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n        datasize = strlen(data);\n      }" { (expression_statement "datasize = strlen(data);" (assignment_expression "datasize = strlen(data)" identifier = (call_expression "strlen(data)" identifier (argument_list "(data)" ( identifier )))) ;) })) (expression_statement "__dest = (char *)(*Curl_cmalloc)(datasize + 1);" (assignment_expression "__dest = (char *)(*Curl_cmalloc)(datasize + 1)" identifier = (cast_expression "(char *)(*Curl_cmalloc)(datasize + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*Curl_cmalloc)(datasize + 1)" (parenthesized_expression "(*Curl_cmalloc)" ( (pointer_expression "*Curl_cmalloc" * identifier) )) (argument_list "(datasize + 1)" ( (binary_expression "datasize + 1" identifier + number_literal) ))))) ;) (expression_statement "part->data = __dest;" (assignment_expression "part->data = __dest" (field_expression "part->data" identifier -> field_identifier) = identifier) ;) (if_statement "if (__dest == (char *)0x0) {\n        CVar1 = CURLE_OUT_OF_MEMORY;\n      }\n      else {\n        *(size_t *)&part->datasize = datasize;\n        *(undefined4 *)((int)&part->datasize + 4) = 0;\n        if (datasize != 0) {\n          memcpy(__dest,data,datasize);\n          __dest = part->data;\n        }\n        __dest[datasize] = '\0';\n        part->readfunc = mime_mem_read;\n        part->kind = MIMEKIND_DATA;\n        part->seekfunc = mime_mem_seek;\n        part->freefunc = mime_mem_free;\n        CVar1 = CURLE_OK;\n      }" if (parenthesized_expression "(__dest == (char *)0x0)" ( (binary_expression "__dest == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        CVar1 = CURLE_OUT_OF_MEMORY;\n      }" { (expression_statement "CVar1 = CURLE_OUT_OF_MEMORY;" (assignment_expression "CVar1 = CURLE_OUT_OF_MEMORY" identifier = identifier) ;) }) (else_clause "else {\n        *(size_t *)&part->datasize = datasize;\n        *(undefined4 *)((int)&part->datasize + 4) = 0;\n        if (datasize != 0) {\n          memcpy(__dest,data,datasize);\n          __dest = part->data;\n        }\n        __dest[datasize] = '\0';\n        part->readfunc = mime_mem_read;\n        part->kind = MIMEKIND_DATA;\n        part->seekfunc = mime_mem_seek;\n        part->freefunc = mime_mem_free;\n        CVar1 = CURLE_OK;\n      }" else (compound_statement "{\n        *(size_t *)&part->datasize = datasize;\n        *(undefined4 *)((int)&part->datasize + 4) = 0;\n        if (datasize != 0) {\n          memcpy(__dest,data,datasize);\n          __dest = part->data;\n        }\n        __dest[datasize] = '\0';\n        part->readfunc = mime_mem_read;\n        part->kind = MIMEKIND_DATA;\n        part->seekfunc = mime_mem_seek;\n        part->freefunc = mime_mem_free;\n        CVar1 = CURLE_OK;\n      }" { (expression_statement "*(size_t *)&part->datasize = datasize;" (assignment_expression "*(size_t *)&part->datasize = datasize" (pointer_expression "*(size_t *)&part->datasize" * (cast_expression "(size_t *)&part->datasize" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&part->datasize" & (field_expression "part->datasize" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&part->datasize + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&part->datasize + 4) = 0" (pointer_expression "*(undefined4 *)((int)&part->datasize + 4)" * (cast_expression "(undefined4 *)((int)&part->datasize + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&part->datasize + 4)" ( (binary_expression "(int)&part->datasize + 4" (cast_expression "(int)&part->datasize" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&part->datasize" & (field_expression "part->datasize" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (if_statement "if (datasize != 0) {\n          memcpy(__dest,data,datasize);\n          __dest = part->data;\n        }" if (parenthesized_expression "(datasize != 0)" ( (binary_expression "datasize != 0" identifier != number_literal) )) (compound_statement "{\n          memcpy(__dest,data,datasize);\n          __dest = part->data;\n        }" { (expression_statement "memcpy(__dest,data,datasize);" (call_expression "memcpy(__dest,data,datasize)" identifier (argument_list "(__dest,data,datasize)" ( identifier , identifier , identifier ))) ;) (expression_statement "__dest = part->data;" (assignment_expression "__dest = part->data" identifier = (field_expression "part->data" identifier -> field_identifier)) ;) })) (expression_statement "__dest[datasize] = '\0';" (assignment_expression "__dest[datasize] = '\0'" (subscript_expression "__dest[datasize]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "part->readfunc = mime_mem_read;" (assignment_expression "part->readfunc = mime_mem_read" (field_expression "part->readfunc" identifier -> field_identifier) = identifier) ;) (expression_statement "part->kind = MIMEKIND_DATA;" (assignment_expression "part->kind = MIMEKIND_DATA" (field_expression "part->kind" identifier -> field_identifier) = identifier) ;) (expression_statement "part->seekfunc = mime_mem_seek;" (assignment_expression "part->seekfunc = mime_mem_seek" (field_expression "part->seekfunc" identifier -> field_identifier) = identifier) ;) (expression_statement "part->freefunc = mime_mem_free;" (assignment_expression "part->freefunc = mime_mem_free" (field_expression "part->freefunc" identifier -> field_identifier) = identifier) ;) (expression_statement "CVar1 = CURLE_OK;" (assignment_expression "CVar1 = CURLE_OK" identifier = identifier) ;) }))) })) (return_statement "return CVar1;" return identifier ;) })) (return_statement "return CURLE_BAD_FUNCTION_ARGUMENT;" return identifier ;) })))
(translation_unit "undefined4 __regparm2\ncurl_mime_data(undefined4 param_1,undefined4 param_2,char *param_3,size_t param_4)\n\n{\n  undefined4 uVar1;\n  void *__dest;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x67c39);\n  if (unaff_retaddr != 0) {\n    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }\n    *(undefined4 *)(unaff_retaddr + 0x14) = 0;\n    uVar1 = 0;\n    *(undefined4 *)(unaff_retaddr + 0x18) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;\n    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;\n    *(undefined4 *)(unaff_retaddr + 0x10) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x24) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x58) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x60) = 0;\n    *(undefined4 *)(unaff_retaddr + 0xc) = 0;\n    if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }\n    return uVar1;\n  }\n  return 0x2b;\n}\n\n" (function_definition "undefined4 __regparm2\ncurl_mime_data(undefined4 param_1,undefined4 param_2,char *param_3,size_t param_4)\n\n{\n  undefined4 uVar1;\n  void *__dest;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x67c39);\n  if (unaff_retaddr != 0) {\n    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }\n    *(undefined4 *)(unaff_retaddr + 0x14) = 0;\n    uVar1 = 0;\n    *(undefined4 *)(unaff_retaddr + 0x18) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;\n    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;\n    *(undefined4 *)(unaff_retaddr + 0x10) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x24) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x58) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x60) = 0;\n    *(undefined4 *)(unaff_retaddr + 0xc) = 0;\n    if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }\n    return uVar1;\n  }\n  return 0x2b;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "curl_mime_data(undefined4 param_1,undefined4 param_2,char *param_3,size_t param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,char *param_3,size_t param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "size_t param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  void *__dest;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x67c39);\n  if (unaff_retaddr != 0) {\n    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }\n    *(undefined4 *)(unaff_retaddr + 0x14) = 0;\n    uVar1 = 0;\n    *(undefined4 *)(unaff_retaddr + 0x18) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;\n    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;\n    *(undefined4 *)(unaff_retaddr + 0x10) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x24) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x58) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x60) = 0;\n    *(undefined4 *)(unaff_retaddr + 0xc) = 0;\n    if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }\n    return uVar1;\n  }\n  return 0x2b;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x67c39);" (call_expression "entry(param_2,0x67c39)" identifier (argument_list "(param_2,0x67c39)" ( identifier , number_literal ))) ;) (if_statement "if (unaff_retaddr != 0) {\n    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }\n    *(undefined4 *)(unaff_retaddr + 0x14) = 0;\n    uVar1 = 0;\n    *(undefined4 *)(unaff_retaddr + 0x18) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;\n    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;\n    *(undefined4 *)(unaff_retaddr + 0x10) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x24) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x58) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x60) = 0;\n    *(undefined4 *)(unaff_retaddr + 0xc) = 0;\n    if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }\n    return uVar1;\n  }" if (parenthesized_expression "(unaff_retaddr != 0)" ( (binary_expression "unaff_retaddr != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }\n    *(undefined4 *)(unaff_retaddr + 0x14) = 0;\n    uVar1 = 0;\n    *(undefined4 *)(unaff_retaddr + 0x18) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;\n    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;\n    *(undefined4 *)(unaff_retaddr + 0x10) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x24) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x58) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x60) = 0;\n    *(undefined4 *)(unaff_retaddr + 0xc) = 0;\n    if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }\n    return uVar1;\n  }" { (if_statement "if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }" if (parenthesized_expression "(*(code **)(unaff_retaddr + 0x1c) != (code *)0x0)" ( (binary_expression "*(code **)(unaff_retaddr + 0x1c) != (code *)0x0" (pointer_expression "*(code **)(unaff_retaddr + 0x1c)" * (cast_expression "(code **)(unaff_retaddr + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0x1c)" ( (binary_expression "unaff_retaddr + 0x1c" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }" { (expression_statement "(**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));" (call_expression "(**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20))" (parenthesized_expression "(**(code **)(unaff_retaddr + 0x1c))" ( (pointer_expression "**(code **)(unaff_retaddr + 0x1c)" * (pointer_expression "*(code **)(unaff_retaddr + 0x1c)" * (cast_expression "(code **)(unaff_retaddr + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0x1c)" ( (binary_expression "unaff_retaddr + 0x1c" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(unaff_retaddr + 0x20))" ( (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x20)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x20)" ( (binary_expression "unaff_retaddr + 0x20" identifier + number_literal) )))) ))) ;) })) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x14) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x14) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x14)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x14)" ( (binary_expression "unaff_retaddr + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x18) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x18) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x18)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x18)" ( (binary_expression "unaff_retaddr + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x1c) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x1c)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x1c)" ( (binary_expression "unaff_retaddr + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(unaff_retaddr + 0x20) = unaff_retaddr;" (assignment_expression "*(int *)(unaff_retaddr + 0x20) = unaff_retaddr" (pointer_expression "*(int *)(unaff_retaddr + 0x20)" * (cast_expression "(int *)(unaff_retaddr + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x20)" ( (binary_expression "unaff_retaddr + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x10) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x10) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x10)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x10)" ( (binary_expression "unaff_retaddr + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x24) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x24) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x24)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x24)" ( (binary_expression "unaff_retaddr + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x3c) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x3c) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x3c)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x3c)" ( (binary_expression "unaff_retaddr + 0x3c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x40) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x40) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x40)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x40)" ( (binary_expression "unaff_retaddr + 0x40" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x58) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x58) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x58)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x58)" ( (binary_expression "unaff_retaddr + 0x58" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x5c) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x5c) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x5c)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x5c)" ( (binary_expression "unaff_retaddr + 0x5c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x60) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x60) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x60)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x60)" ( (binary_expression "unaff_retaddr + 0x60" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0xc) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0xc) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0xc)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0xc)" ( (binary_expression "unaff_retaddr + 0xc" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }" if (parenthesized_expression "(param_3 != (char *)0x0)" ( (binary_expression "param_3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }" { (if_statement "if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }" if (parenthesized_expression "(param_4 == 0xffffffff)" ( (binary_expression "param_4 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n        param_4 = strlen(param_3);\n      }" { (expression_statement "param_4 = strlen(param_3);" (assignment_expression "param_4 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) })) (expression_statement "__dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);" (assignment_expression "__dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1)" identifier = (cast_expression "(void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1)" (parenthesized_expression "(**(code **)(FUN_00049430 + unaff_EBX + 7))" ( (pointer_expression "**(code **)(FUN_00049430 + unaff_EBX + 7)" * (pointer_expression "*(code **)(FUN_00049430 + unaff_EBX + 7)" * (cast_expression "(code **)(FUN_00049430 + unaff_EBX + 7)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(FUN_00049430 + unaff_EBX + 7)" ( (binary_expression "FUN_00049430 + unaff_EBX + 7" (binary_expression "FUN_00049430 + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(param_4 + 1)" ( (binary_expression "param_4 + 1" identifier + number_literal) ))))) ;) (expression_statement "*(void **)(unaff_retaddr + 0x10) = __dest;" (assignment_expression "*(void **)(unaff_retaddr + 0x10) = __dest" (pointer_expression "*(void **)(unaff_retaddr + 0x10)" * (cast_expression "(void **)(unaff_retaddr + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0x10)" ( (binary_expression "unaff_retaddr + 0x10" identifier + number_literal) )))) = identifier) ;) (if_statement "if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }" if (parenthesized_expression "(__dest == (void *)0x0)" ( (binary_expression "__dest == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar1 = 0x1b;\n      }" { (expression_statement "uVar1 = 0x1b;" (assignment_expression "uVar1 = 0x1b" identifier = number_literal) ;) }) (else_clause "else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }" else (compound_statement "{\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }" { (expression_statement "*(size_t *)(unaff_retaddr + 0x3c) = param_4;" (assignment_expression "*(size_t *)(unaff_retaddr + 0x3c) = param_4" (pointer_expression "*(size_t *)(unaff_retaddr + 0x3c)" * (cast_expression "(size_t *)(unaff_retaddr + 0x3c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x3c)" ( (binary_expression "unaff_retaddr + 0x3c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x40) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x40) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x40)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x40)" ( (binary_expression "unaff_retaddr + 0x40" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }" { (expression_statement "memcpy(__dest,param_3,param_4);" (call_expression "memcpy(__dest,param_3,param_4)" identifier (argument_list "(__dest,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (expression_statement "__dest = *(void **)(unaff_retaddr + 0x10);" (assignment_expression "__dest = *(void **)(unaff_retaddr + 0x10)" identifier = (pointer_expression "*(void **)(unaff_retaddr + 0x10)" * (cast_expression "(void **)(unaff_retaddr + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0x10)" ( (binary_expression "unaff_retaddr + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "*(undefined1 *)((int)__dest + param_4) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + param_4) = 0" (pointer_expression "*(undefined1 *)((int)__dest + param_4)" * (cast_expression "(undefined1 *)((int)__dest + param_4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_4)" ( (binary_expression "(int)__dest + param_4" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;" (assignment_expression "*(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89" (pointer_expression "*(int *)(unaff_retaddr + 0x14)" * (cast_expression "(int *)(unaff_retaddr + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x14)" ( (binary_expression "unaff_retaddr + 0x14" identifier + number_literal) )))) = (binary_expression "unaff_EBX + -0xe89" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0xc) = 1;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0xc) = 1" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0xc)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0xc)" ( (binary_expression "unaff_retaddr + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;" (assignment_expression "*(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299" (pointer_expression "*(int *)(unaff_retaddr + 0x18)" * (cast_expression "(int *)(unaff_retaddr + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x18)" ( (binary_expression "unaff_retaddr + 0x18" identifier + number_literal) )))) = (binary_expression "unaff_EBX + -0x1299" identifier + number_literal)) ;) (expression_statement "*(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;" (assignment_expression "*(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249" (pointer_expression "*(int *)(unaff_retaddr + 0x1c)" * (cast_expression "(int *)(unaff_retaddr + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x1c)" ( (binary_expression "unaff_retaddr + 0x1c" identifier + number_literal) )))) = (binary_expression "unaff_EBX + -0x1249" identifier + number_literal)) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }))) })) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0x2b;" 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)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 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) )))) = IDENT) ;) (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 (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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) ))))) )) (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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 IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + 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) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_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) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) })) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm2\ncurl_mime_data(undefined4 param_1,undefined4 param_2,char *param_3,size_t param_4)\n\n{\n  undefined4 uVar1;\n  void *__dest;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x67c39);\n  if (unaff_retaddr != 0) {\n    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }\n    *(undefined4 *)(unaff_retaddr + 0x14) = 0;\n    uVar1 = 0;\n    *(undefined4 *)(unaff_retaddr + 0x18) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;\n    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;\n    *(undefined4 *)(unaff_retaddr + 0x10) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x24) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x58) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x60) = 0;\n    *(undefined4 *)(unaff_retaddr + 0xc) = 0;\n    if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }\n    return uVar1;\n  }\n  return 0x2b;\n}" (type_identifier "undefined4") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "curl_mime_data(undefined4 param_1,undefined4 param_2,char *param_3,size_t param_4)" (identifier "curl_mime_data") (parameter_list "(undefined4 param_1,undefined4 param_2,char *param_3,size_t param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "size_t param_4" (primitive_type "size_t") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  void *__dest;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x67c39);\n  if (unaff_retaddr != 0) {\n    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }\n    *(undefined4 *)(unaff_retaddr + 0x14) = 0;\n    uVar1 = 0;\n    *(undefined4 *)(unaff_retaddr + 0x18) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;\n    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;\n    *(undefined4 *)(unaff_retaddr + 0x10) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x24) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x58) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x60) = 0;\n    *(undefined4 *)(unaff_retaddr + 0xc) = 0;\n    if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }\n    return uVar1;\n  }\n  return 0x2b;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "int unaff_retaddr;" (primitive_type "int") (identifier "unaff_retaddr") (; ";")) (expression_statement "entry(param_2,0x67c39);" (call_expression "entry(param_2,0x67c39)" (identifier "entry") (argument_list "(param_2,0x67c39)" (( "(") (identifier "param_2") (, ",") (number_literal "0x67c39") () ")"))) (; ";")) (if_statement "if (unaff_retaddr != 0) {\n    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }\n    *(undefined4 *)(unaff_retaddr + 0x14) = 0;\n    uVar1 = 0;\n    *(undefined4 *)(unaff_retaddr + 0x18) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;\n    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;\n    *(undefined4 *)(unaff_retaddr + 0x10) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x24) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x58) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x60) = 0;\n    *(undefined4 *)(unaff_retaddr + 0xc) = 0;\n    if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(unaff_retaddr != 0)" (( "(") (binary_expression "unaff_retaddr != 0" (identifier "unaff_retaddr") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }\n    *(undefined4 *)(unaff_retaddr + 0x14) = 0;\n    uVar1 = 0;\n    *(undefined4 *)(unaff_retaddr + 0x18) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;\n    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;\n    *(undefined4 *)(unaff_retaddr + 0x10) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x24) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x58) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;\n    *(undefined4 *)(unaff_retaddr + 0x60) = 0;\n    *(undefined4 *)(unaff_retaddr + 0xc) = 0;\n    if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }\n    return uVar1;\n  }" ({ "{") (if_statement "if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }" (if "if") (parenthesized_expression "(*(code **)(unaff_retaddr + 0x1c) != (code *)0x0)" (( "(") (binary_expression "*(code **)(unaff_retaddr + 0x1c) != (code *)0x0" (pointer_expression "*(code **)(unaff_retaddr + 0x1c)" (* "*") (cast_expression "(code **)(unaff_retaddr + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr + 0x1c)" (( "(") (binary_expression "unaff_retaddr + 0x1c" (identifier "unaff_retaddr") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));\n    }" ({ "{") (expression_statement "(**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));" (call_expression "(**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20))" (parenthesized_expression "(**(code **)(unaff_retaddr + 0x1c))" (( "(") (pointer_expression "**(code **)(unaff_retaddr + 0x1c)" (* "*") (pointer_expression "*(code **)(unaff_retaddr + 0x1c)" (* "*") (cast_expression "(code **)(unaff_retaddr + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr + 0x1c)" (( "(") (binary_expression "unaff_retaddr + 0x1c" (identifier "unaff_retaddr") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(unaff_retaddr + 0x20))" (( "(") (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x20)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x20)" (( "(") (binary_expression "unaff_retaddr + 0x20" (identifier "unaff_retaddr") (+ "+") (number_literal "0x20")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x14) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x14) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x14)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x14)" (( "(") (binary_expression "unaff_retaddr + 0x14" (identifier "unaff_retaddr") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x18) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x18) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x18)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x18)" (( "(") (binary_expression "unaff_retaddr + 0x18" (identifier "unaff_retaddr") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x1c) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x1c)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x1c)" (( "(") (binary_expression "unaff_retaddr + 0x1c" (identifier "unaff_retaddr") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(unaff_retaddr + 0x20) = unaff_retaddr;" (assignment_expression "*(int *)(unaff_retaddr + 0x20) = unaff_retaddr" (pointer_expression "*(int *)(unaff_retaddr + 0x20)" (* "*") (cast_expression "(int *)(unaff_retaddr + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x20)" (( "(") (binary_expression "unaff_retaddr + 0x20" (identifier "unaff_retaddr") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "unaff_retaddr")) (; ";")) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x10) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x10) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x10)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x10)" (( "(") (binary_expression "unaff_retaddr + 0x10" (identifier "unaff_retaddr") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x24) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x24) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x24)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x24)" (( "(") (binary_expression "unaff_retaddr + 0x24" (identifier "unaff_retaddr") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x3c) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x3c) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x3c)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x3c)" (( "(") (binary_expression "unaff_retaddr + 0x3c" (identifier "unaff_retaddr") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x40) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x40) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x40)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x40)" (( "(") (binary_expression "unaff_retaddr + 0x40" (identifier "unaff_retaddr") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x58) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x58) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x58)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x58)" (( "(") (binary_expression "unaff_retaddr + 0x58" (identifier "unaff_retaddr") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x5c) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x5c) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x5c)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x5c)" (( "(") (binary_expression "unaff_retaddr + 0x5c" (identifier "unaff_retaddr") (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x60) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x60) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x60)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0x60)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x60)" (( "(") (binary_expression "unaff_retaddr + 0x60" (identifier "unaff_retaddr") (+ "+") (number_literal "0x60")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(unaff_retaddr + 0xc) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0xc) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0xc)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0xc)" (( "(") (binary_expression "unaff_retaddr + 0xc" (identifier "unaff_retaddr") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 != (char *)0x0) {\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }" (if "if") (parenthesized_expression "(param_3 != (char *)0x0)" (( "(") (binary_expression "param_3 != (char *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }\n      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);\n      *(void **)(unaff_retaddr + 0x10) = __dest;\n      if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }\n    }" ({ "{") (if_statement "if (param_4 == 0xffffffff) {\n        param_4 = strlen(param_3);\n      }" (if "if") (parenthesized_expression "(param_4 == 0xffffffff)" (( "(") (binary_expression "param_4 == 0xffffffff" (identifier "param_4") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n        param_4 = strlen(param_3);\n      }" ({ "{") (expression_statement "param_4 = strlen(param_3);" (assignment_expression "param_4 = strlen(param_3)" (identifier "param_4") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (} "}"))) (expression_statement "__dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);" (assignment_expression "__dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1)" (identifier "__dest") (= "=") (cast_expression "(void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1)" (parenthesized_expression "(**(code **)(FUN_00049430 + unaff_EBX + 7))" (( "(") (pointer_expression "**(code **)(FUN_00049430 + unaff_EBX + 7)" (* "*") (pointer_expression "*(code **)(FUN_00049430 + unaff_EBX + 7)" (* "*") (cast_expression "(code **)(FUN_00049430 + unaff_EBX + 7)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(FUN_00049430 + unaff_EBX + 7)" (( "(") (binary_expression "FUN_00049430 + unaff_EBX + 7" (binary_expression "FUN_00049430 + unaff_EBX" (identifier "FUN_00049430") (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "7")) () ")"))))) () ")")) (argument_list "(param_4 + 1)" (( "(") (binary_expression "param_4 + 1" (identifier "param_4") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "*(void **)(unaff_retaddr + 0x10) = __dest;" (assignment_expression "*(void **)(unaff_retaddr + 0x10) = __dest" (pointer_expression "*(void **)(unaff_retaddr + 0x10)" (* "*") (cast_expression "(void **)(unaff_retaddr + 0x10)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr + 0x10)" (( "(") (binary_expression "unaff_retaddr + 0x10" (identifier "unaff_retaddr") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "__dest")) (; ";")) (if_statement "if (__dest == (void *)0x0) {\n        uVar1 = 0x1b;\n      }\n      else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }" (if "if") (parenthesized_expression "(__dest == (void *)0x0)" (( "(") (binary_expression "__dest == (void *)0x0" (identifier "__dest") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        uVar1 = 0x1b;\n      }" ({ "{") (expression_statement "uVar1 = 0x1b;" (assignment_expression "uVar1 = 0x1b" (identifier "uVar1") (= "=") (number_literal "0x1b")) (; ";")) (} "}")) (else_clause "else {\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }" (else "else") (compound_statement "{\n        *(size_t *)(unaff_retaddr + 0x3c) = param_4;\n        *(undefined4 *)(unaff_retaddr + 0x40) = 0;\n        if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }\n        *(undefined1 *)((int)__dest + param_4) = 0;\n        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;\n        *(undefined4 *)(unaff_retaddr + 0xc) = 1;\n        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;\n        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;\n        uVar1 = 0;\n      }" ({ "{") (expression_statement "*(size_t *)(unaff_retaddr + 0x3c) = param_4;" (assignment_expression "*(size_t *)(unaff_retaddr + 0x3c) = param_4" (pointer_expression "*(size_t *)(unaff_retaddr + 0x3c)" (* "*") (cast_expression "(size_t *)(unaff_retaddr + 0x3c)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x3c)" (( "(") (binary_expression "unaff_retaddr + 0x3c" (identifier "unaff_retaddr") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x40) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x40) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x40)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x40)" (( "(") (binary_expression "unaff_retaddr + 0x40" (identifier "unaff_retaddr") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_4 != 0) {\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          memcpy(__dest,param_3,param_4);\n          __dest = *(void **)(unaff_retaddr + 0x10);\n        }" ({ "{") (expression_statement "memcpy(__dest,param_3,param_4);" (call_expression "memcpy(__dest,param_3,param_4)" (identifier "memcpy") (argument_list "(__dest,param_3,param_4)" (( "(") (identifier "__dest") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "__dest = *(void **)(unaff_retaddr + 0x10);" (assignment_expression "__dest = *(void **)(unaff_retaddr + 0x10)" (identifier "__dest") (= "=") (pointer_expression "*(void **)(unaff_retaddr + 0x10)" (* "*") (cast_expression "(void **)(unaff_retaddr + 0x10)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr + 0x10)" (( "(") (binary_expression "unaff_retaddr + 0x10" (identifier "unaff_retaddr") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)((int)__dest + param_4) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + param_4) = 0" (pointer_expression "*(undefined1 *)((int)__dest + param_4)" (* "*") (cast_expression "(undefined1 *)((int)__dest + param_4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + param_4)" (( "(") (binary_expression "(int)__dest + param_4" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "param_4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;" (assignment_expression "*(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89" (pointer_expression "*(int *)(unaff_retaddr + 0x14)" (* "*") (cast_expression "(int *)(unaff_retaddr + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x14)" (( "(") (binary_expression "unaff_retaddr + 0x14" (identifier "unaff_retaddr") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "unaff_EBX + -0xe89" (identifier "unaff_EBX") (+ "+") (number_literal "-0xe89"))) (; ";")) (expression_statement "*(undefined4 *)(unaff_retaddr + 0xc) = 1;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0xc) = 1" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0xc)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0xc)" (( "(") (binary_expression "unaff_retaddr + 0xc" (identifier "unaff_retaddr") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;" (assignment_expression "*(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299" (pointer_expression "*(int *)(unaff_retaddr + 0x18)" (* "*") (cast_expression "(int *)(unaff_retaddr + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x18)" (( "(") (binary_expression "unaff_retaddr + 0x18" (identifier "unaff_retaddr") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "unaff_EBX + -0x1299" (identifier "unaff_EBX") (+ "+") (number_literal "-0x1299"))) (; ";")) (expression_statement "*(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;" (assignment_expression "*(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249" (pointer_expression "*(int *)(unaff_retaddr + 0x1c)" (* "*") (cast_expression "(int *)(unaff_retaddr + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x1c)" (( "(") (binary_expression "unaff_retaddr + 0x1c" (identifier "unaff_retaddr") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "unaff_EBX + -0x1249" (identifier "unaff_EBX") (+ "+") (number_literal "-0x1249"))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 0x2b;" (return "return") (number_literal "0x2b") (; ";")) (} "}")))

/* 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,char *var_2,size_t var_3)

{
  type_1 CVar1;
  char *var_5;
  
  if (var_1 != (type_2 *)0x0) {
    if (var_1->freefunc != (type_3)0x0) {
      (*var_1->freefunc)(var_1->arg);
    }
    var_1->readfunc = (type_4)0x0;
    CVar1 = CURLE_OK;
    var_1->seekfunc = (type_5)0x0;
    var_1->freefunc = (type_3)0x0;
    var_1->arg = var_1;
    var_1->var_2 = (char *)0x0;
    var_1->fp = (type_6 *)0x0;
    *(type_7 *)&var_1->var_3 = 0;
    *(type_7 *)((int)&var_1->var_3 + 4) = 0;
    (var_1->encstate).pos = 0;
    (var_1->encstate).bufbeg = 0;
    (var_1->encstate).bufend = 0;
    var_1->kind = MIMEKIND_NONE;
    if (var_2 != (char *)0x0) {
      if (var_3 == 0xffffffff) {
        var_3 = var_4(var_2);
      }
      var_5 = (char *)(*Curl_cmalloc)(var_3 + 1);
      var_1->var_2 = var_5;
      if (var_5 == (char *)0x0) {
        CVar1 = CURLE_OUT_OF_MEMORY;
      }
      else {
        *(size_t *)&var_1->var_3 = var_3;
        *(type_7 *)((int)&var_1->var_3 + 4) = 0;
        if (var_3 != 0) {
          var_6(var_5,var_2,var_3);
          var_5 = var_1->var_2;
        }
        var_5[var_3] = '\0';
        var_1->readfunc = mime_mem_read;
        var_1->kind = MIMEKIND_DATA;
        var_1->seekfunc = mime_mem_seek;
        var_1->freefunc = mime_mem_free;
        CVar1 = CURLE_OK;
      }
    }
    return CVar1;
  }
  return CURLE_BAD_FUNCTION_ARGUMENT;
}


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

undefined4 __regparm2
MASKED(undefined4 param_1,undefined4 param_2,char *param_3,size_t param_4)

{
  undefined4 uVar1;
  void *__dest;
  int unaff_EBX;
  int unaff_retaddr;
  
  entry(param_2,0x67c39);
  if (unaff_retaddr != 0) {
    if (*(code **)(unaff_retaddr + 0x1c) != (code *)0x0) {
      (**(code **)(unaff_retaddr + 0x1c))(*(undefined4 *)(unaff_retaddr + 0x20));
    }
    *(undefined4 *)(unaff_retaddr + 0x14) = 0;
    uVar1 = 0;
    *(undefined4 *)(unaff_retaddr + 0x18) = 0;
    *(undefined4 *)(unaff_retaddr + 0x1c) = 0;
    *(int *)(unaff_retaddr + 0x20) = unaff_retaddr;
    *(undefined4 *)(unaff_retaddr + 0x10) = 0;
    *(undefined4 *)(unaff_retaddr + 0x24) = 0;
    *(undefined4 *)(unaff_retaddr + 0x3c) = 0;
    *(undefined4 *)(unaff_retaddr + 0x40) = 0;
    *(undefined4 *)(unaff_retaddr + 0x58) = 0;
    *(undefined4 *)(unaff_retaddr + 0x5c) = 0;
    *(undefined4 *)(unaff_retaddr + 0x60) = 0;
    *(undefined4 *)(unaff_retaddr + 0xc) = 0;
    if (param_3 != (char *)0x0) {
      if (param_4 == 0xffffffff) {
        param_4 = strlen(param_3);
      }
      __dest = (void *)(**(code **)(FUN_00049430 + unaff_EBX + 7))(param_4 + 1);
      *(void **)(unaff_retaddr + 0x10) = __dest;
      if (__dest == (void *)0x0) {
        uVar1 = 0x1b;
      }
      else {
        *(size_t *)(unaff_retaddr + 0x3c) = param_4;
        *(undefined4 *)(unaff_retaddr + 0x40) = 0;
        if (param_4 != 0) {
          memcpy(__dest,param_3,param_4);
          __dest = *(void **)(unaff_retaddr + 0x10);
        }
        *(undefined1 *)((int)__dest + param_4) = 0;
        *(int *)(unaff_retaddr + 0x14) = unaff_EBX + -0xe89;
        *(undefined4 *)(unaff_retaddr + 0xc) = 1;
        *(int *)(unaff_retaddr + 0x18) = unaff_EBX + -0x1299;
        *(int *)(unaff_retaddr + 0x1c) = unaff_EBX + -0x1249;
        uVar1 = 0;
      }
    }
    return uVar1;
  }
  return 0x2b;
}

