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

MHD_Result
MHD_set_connection_value_n
          (MHD_Connection *connection,MHD_ValueKind kind,char *key,size_t key_size,char *value,
          size_t value_size)

{
  size_t sVar1;
  MHD_HTTP_Header *pMVar2;
  
  if (kind != MHD_GET_ARGUMENT_KIND) {
    sVar1 = 0;
    if (key != (char *)0x0) {
      sVar1 = strlen(key);
    }
    if (sVar1 != key_size) {
      return MHD_NO;
    }
    sVar1 = 0;
    if (value != (char *)0x0) {
      sVar1 = strlen(value);
    }
    if (sVar1 != value_size) {
      return MHD_NO;
    }
  }
  pMVar2 = (MHD_HTTP_Header *)MHD_pool_allocate(connection->pool,0x18,true);
  if (pMVar2 == (MHD_HTTP_Header *)0x0) {
    return MHD_NO;
  }
  pMVar2->header = key;
  pMVar2->next = (MHD_HTTP_Header *)0x0;
  pMVar2->header_size = key_size;
  pMVar2->value_size = value_size;
  pMVar2->value = value;
  pMVar2->kind = kind;
  if (connection->headers_received_tail != (MHD_HTTP_Header *)0x0) {
    connection->headers_received_tail->next = pMVar2;
    connection->headers_received_tail = pMVar2;
    return MHD_YES;
  }
  connection->headers_received = pMVar2;
  connection->headers_received_tail = pMVar2;
  return MHD_YES;
}



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

undefined4
MHD_set_connection_value_n
          (int param_1,int param_2,char *param_3,size_t param_4,char *param_5,size_t param_6)

{
  size_t sVar1;
  undefined4 *puVar2;
  
  if (param_2 != 8) {
    sVar1 = 0;
    if (param_3 != (char *)0x0) {
      sVar1 = strlen(param_3);
    }
    if (sVar1 != param_4) {
      return 0;
    }
    sVar1 = 0;
    if (param_5 != (char *)0x0) {
      sVar1 = strlen(param_5);
    }
    if (sVar1 != param_6) {
      return 0;
    }
  }
  puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);
  if (puVar2 == (undefined4 *)0x0) {
    return 0;
  }
  puVar2[1] = param_3;
  *puVar2 = 0;
  puVar2[2] = param_4;
  puVar2[4] = param_6;
  puVar2[3] = param_5;
  puVar2[5] = param_2;
  if (*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0) {
    **(undefined4 **)(param_1 + 0x20) = puVar2;
    *(undefined4 **)(param_1 + 0x20) = puVar2;
    return 1;
  }
  *(undefined4 **)(param_1 + 0x1c) = puVar2;
  *(undefined4 **)(param_1 + 0x20) = puVar2;
  return 1;
}


PUSH ESI
PUSH EBX
CALL 0x00012570
ADD EBX,0x1f229
SUB ESP,0x4
CMP dword ptr [ESP + 0x14],0x8
MOV ESI,dword ptr [ESP + 0x18]
JZ 0x00013e2f
XOR EAX,EAX
TEST ESI,ESI
JZ 0x00013dfd
SUB ESP,0xc
PUSH ESI
CALL 0x00012100
ADD ESP,0x10
CMP EAX,dword ptr [ESP + 0x1c]
JZ 0x00013e10
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EDX,dword ptr [ESP + 0x20]
XOR EAX,EAX
TEST EDX,EDX
JZ 0x00013e29
SUB ESP,0xc
PUSH dword ptr [ESP + 0x2c]
CALL 0x00012100
ADD ESP,0x10
CMP EAX,dword ptr [ESP + 0x24]
JNZ 0x00013e03
SUB ESP,0x4
PUSH 0x1
PUSH 0x18
MOV EAX,dword ptr [ESP + 0x1c]
PUSH dword ptr [EAX + 0x28]
CALL 0x0001fce0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00013e03
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [ESP + 0x24]
MOV dword ptr [EAX + 0x4],ESI
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x8],ECX
MOV ECX,dword ptr [ESP + 0x20]
MOV dword ptr [EAX + 0x10],EDX
MOV EDX,dword ptr [ESP + 0x10]
MOV dword ptr [EAX + 0xc],ECX
MOV ECX,dword ptr [ESP + 0x14]
MOV dword ptr [EAX + 0x14],ECX
MOV EDX,dword ptr [EDX + 0x20]
TEST EDX,EDX
JZ 0x00013e90
MOV ECX,dword ptr [ESP + 0x10]
MOV dword ptr [EDX],EAX
MOV dword ptr [ECX + 0x20],EAX
ADD ESP,0x4
MOV EAX,0x1
POP EBX
POP ESI
RET
MOV EDX,dword ptr [ESP + 0x10]
MOV dword ptr [EDX + 0x1c],EAX
MOV dword ptr [EDX + 0x20],EAX
MOV EAX,0x1
JMP 0x00013e05
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4\nMHD_set_connection_value_n\n          (int param_1,int param_2,char *param_3,size_t param_4,char *param_5,size_t param_6)\n\n{\n  size_t sVar1;\n  undefined4 *puVar2;\n  \n  if (param_2 != 8) {\n    sVar1 = 0;\n    if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\n    }\n    if (sVar1 != param_4) {\n      return 0;\n    }\n    sVar1 = 0;\n    if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }\n    if (sVar1 != param_6) {\n      return 0;\n    }\n  }\n  puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  if (puVar2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  puVar2[1] = param_3;\n  *puVar2 = 0;\n  puVar2[2] = param_4;\n  puVar2[4] = param_6;\n  puVar2[3] = param_5;\n  puVar2[5] = param_2;\n  if (*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0) {\n    **(undefined4 **)(param_1 + 0x20) = puVar2;\n    *(undefined4 **)(param_1 + 0x20) = puVar2;\n    return 1;\n  }\n  *(undefined4 **)(param_1 + 0x1c) = puVar2;\n  *(undefined4 **)(param_1 + 0x20) = puVar2;\n  return 1;\n}\n\n" comment (function_definition "undefined4\nMHD_set_connection_value_n\n          (int param_1,int param_2,char *param_3,size_t param_4,char *param_5,size_t param_6)\n\n{\n  size_t sVar1;\n  undefined4 *puVar2;\n  \n  if (param_2 != 8) {\n    sVar1 = 0;\n    if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\n    }\n    if (sVar1 != param_4) {\n      return 0;\n    }\n    sVar1 = 0;\n    if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }\n    if (sVar1 != param_6) {\n      return 0;\n    }\n  }\n  puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  if (puVar2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  puVar2[1] = param_3;\n  *puVar2 = 0;\n  puVar2[2] = param_4;\n  puVar2[4] = param_6;\n  puVar2[3] = param_5;\n  puVar2[5] = param_2;\n  if (*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0) {\n    **(undefined4 **)(param_1 + 0x20) = puVar2;\n    *(undefined4 **)(param_1 + 0x20) = puVar2;\n    return 1;\n  }\n  *(undefined4 **)(param_1 + 0x1c) = puVar2;\n  *(undefined4 **)(param_1 + 0x20) = puVar2;\n  return 1;\n}" type_identifier (function_declarator "MHD_set_connection_value_n\n          (int param_1,int param_2,char *param_3,size_t param_4,char *param_5,size_t param_6)" identifier (parameter_list "(int param_1,int param_2,char *param_3,size_t param_4,char *param_5,size_t param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "size_t param_4" primitive_type identifier) , (parameter_declaration "char *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "size_t param_6" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  undefined4 *puVar2;\n  \n  if (param_2 != 8) {\n    sVar1 = 0;\n    if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\n    }\n    if (sVar1 != param_4) {\n      return 0;\n    }\n    sVar1 = 0;\n    if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }\n    if (sVar1 != param_6) {\n      return 0;\n    }\n  }\n  puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  if (puVar2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  puVar2[1] = param_3;\n  *puVar2 = 0;\n  puVar2[2] = param_4;\n  puVar2[4] = param_6;\n  puVar2[3] = param_5;\n  puVar2[5] = param_2;\n  if (*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0) {\n    **(undefined4 **)(param_1 + 0x20) = puVar2;\n    *(undefined4 **)(param_1 + 0x20) = puVar2;\n    return 1;\n  }\n  *(undefined4 **)(param_1 + 0x1c) = puVar2;\n  *(undefined4 **)(param_1 + 0x20) = puVar2;\n  return 1;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_2 != 8) {\n    sVar1 = 0;\n    if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\n    }\n    if (sVar1 != param_4) {\n      return 0;\n    }\n    sVar1 = 0;\n    if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }\n    if (sVar1 != param_6) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(param_2 != 8)" ( (binary_expression "param_2 != 8" identifier != number_literal) )) (compound_statement "{\n    sVar1 = 0;\n    if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\n    }\n    if (sVar1 != param_4) {\n      return 0;\n    }\n    sVar1 = 0;\n    if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }\n    if (sVar1 != param_6) {\n      return 0;\n    }\n  }" { (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\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      sVar1 = strlen(param_3);\n    }" { (expression_statement "sVar1 = strlen(param_3);" (assignment_expression "sVar1 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) })) (if_statement "if (sVar1 != param_4) {\n      return 0;\n    }" if (parenthesized_expression "(sVar1 != param_4)" ( (binary_expression "sVar1 != param_4" identifier != identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }" if (parenthesized_expression "(param_5 != (char *)0x0)" ( (binary_expression "param_5 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar1 = strlen(param_5);\n    }" { (expression_statement "sVar1 = strlen(param_5);" (assignment_expression "sVar1 = strlen(param_5)" identifier = (call_expression "strlen(param_5)" identifier (argument_list "(param_5)" ( identifier )))) ;) })) (if_statement "if (sVar1 != param_6) {\n      return 0;\n    }" if (parenthesized_expression "(sVar1 != param_6)" ( (binary_expression "sVar1 != param_6" identifier != identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);" (assignment_expression "puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" identifier = (cast_expression "(undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x28),0x18,1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , number_literal , number_literal ))))) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar2[1] = param_3;" (assignment_expression "puVar2[1] = param_3" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[2] = param_4;" (assignment_expression "puVar2[2] = param_4" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = param_6;" (assignment_expression "puVar2[4] = param_6" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[3] = param_5;" (assignment_expression "puVar2[3] = param_5" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[5] = param_2;" (assignment_expression "puVar2[5] = param_2" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0) {\n    **(undefined4 **)(param_1 + 0x20) = puVar2;\n    *(undefined4 **)(param_1 + 0x20) = puVar2;\n    return 1;\n  }" if (parenthesized_expression "(*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0)" ( (binary_expression "*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    **(undefined4 **)(param_1 + 0x20) = puVar2;\n    *(undefined4 **)(param_1 + 0x20) = puVar2;\n    return 1;\n  }" { (expression_statement "**(undefined4 **)(param_1 + 0x20) = puVar2;" (assignment_expression "**(undefined4 **)(param_1 + 0x20) = puVar2" (pointer_expression "**(undefined4 **)(param_1 + 0x20)" * (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 0x20) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0x20) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*(undefined4 **)(param_1 + 0x1c) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0x1c) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" * (cast_expression "(undefined4 **)(param_1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 0x20) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0x20) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" 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 "MHD_FLAG": Some values do not have unique names */\n\nMHD_Result\nMHD_set_connection_value_n\n          (MHD_Connection *connection,MHD_ValueKind kind,char *key,size_t key_size,char *value,\n          size_t value_size)\n\n{\n  size_t sVar1;\n  MHD_HTTP_Header *pMVar2;\n  \n  if (kind != MHD_GET_ARGUMENT_KIND) {\n    sVar1 = 0;\n    if (key != (char *)0x0) {\n      sVar1 = strlen(key);\n    }\n    if (sVar1 != key_size) {\n      return MHD_NO;\n    }\n    sVar1 = 0;\n    if (value != (char *)0x0) {\n      sVar1 = strlen(value);\n    }\n    if (sVar1 != value_size) {\n      return MHD_NO;\n    }\n  }\n  pMVar2 = (MHD_HTTP_Header *)MHD_pool_allocate(connection->pool,0x18,true);\n  if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n    return MHD_NO;\n  }\n  pMVar2->header = key;\n  pMVar2->next = (MHD_HTTP_Header *)0x0;\n  pMVar2->header_size = key_size;\n  pMVar2->value_size = value_size;\n  pMVar2->value = value;\n  pMVar2->kind = kind;\n  if (connection->headers_received_tail != (MHD_HTTP_Header *)0x0) {\n    connection->headers_received_tail->next = pMVar2;\n    connection->headers_received_tail = pMVar2;\n    return MHD_YES;\n  }\n  connection->headers_received = pMVar2;\n  connection->headers_received_tail = pMVar2;\n  return MHD_YES;\n}\n\n" comment comment comment (function_definition "MHD_Result\nMHD_set_connection_value_n\n          (MHD_Connection *connection,MHD_ValueKind kind,char *key,size_t key_size,char *value,\n          size_t value_size)\n\n{\n  size_t sVar1;\n  MHD_HTTP_Header *pMVar2;\n  \n  if (kind != MHD_GET_ARGUMENT_KIND) {\n    sVar1 = 0;\n    if (key != (char *)0x0) {\n      sVar1 = strlen(key);\n    }\n    if (sVar1 != key_size) {\n      return MHD_NO;\n    }\n    sVar1 = 0;\n    if (value != (char *)0x0) {\n      sVar1 = strlen(value);\n    }\n    if (sVar1 != value_size) {\n      return MHD_NO;\n    }\n  }\n  pMVar2 = (MHD_HTTP_Header *)MHD_pool_allocate(connection->pool,0x18,true);\n  if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n    return MHD_NO;\n  }\n  pMVar2->header = key;\n  pMVar2->next = (MHD_HTTP_Header *)0x0;\n  pMVar2->header_size = key_size;\n  pMVar2->value_size = value_size;\n  pMVar2->value = value;\n  pMVar2->kind = kind;\n  if (connection->headers_received_tail != (MHD_HTTP_Header *)0x0) {\n    connection->headers_received_tail->next = pMVar2;\n    connection->headers_received_tail = pMVar2;\n    return MHD_YES;\n  }\n  connection->headers_received = pMVar2;\n  connection->headers_received_tail = pMVar2;\n  return MHD_YES;\n}" type_identifier (function_declarator "MHD_set_connection_value_n\n          (MHD_Connection *connection,MHD_ValueKind kind,char *key,size_t key_size,char *value,\n          size_t value_size)" identifier (parameter_list "(MHD_Connection *connection,MHD_ValueKind kind,char *key,size_t key_size,char *value,\n          size_t value_size)" ( (parameter_declaration "MHD_Connection *connection" type_identifier (pointer_declarator "*connection" * identifier)) , (parameter_declaration "MHD_ValueKind kind" type_identifier identifier) , (parameter_declaration "char *key" primitive_type (pointer_declarator "*key" * identifier)) , (parameter_declaration "size_t key_size" primitive_type identifier) , (parameter_declaration "char *value" primitive_type (pointer_declarator "*value" * identifier)) , (parameter_declaration "size_t value_size" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  MHD_HTTP_Header *pMVar2;\n  \n  if (kind != MHD_GET_ARGUMENT_KIND) {\n    sVar1 = 0;\n    if (key != (char *)0x0) {\n      sVar1 = strlen(key);\n    }\n    if (sVar1 != key_size) {\n      return MHD_NO;\n    }\n    sVar1 = 0;\n    if (value != (char *)0x0) {\n      sVar1 = strlen(value);\n    }\n    if (sVar1 != value_size) {\n      return MHD_NO;\n    }\n  }\n  pMVar2 = (MHD_HTTP_Header *)MHD_pool_allocate(connection->pool,0x18,true);\n  if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n    return MHD_NO;\n  }\n  pMVar2->header = key;\n  pMVar2->next = (MHD_HTTP_Header *)0x0;\n  pMVar2->header_size = key_size;\n  pMVar2->value_size = value_size;\n  pMVar2->value = value;\n  pMVar2->kind = kind;\n  if (connection->headers_received_tail != (MHD_HTTP_Header *)0x0) {\n    connection->headers_received_tail->next = pMVar2;\n    connection->headers_received_tail = pMVar2;\n    return MHD_YES;\n  }\n  connection->headers_received = pMVar2;\n  connection->headers_received_tail = pMVar2;\n  return MHD_YES;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "MHD_HTTP_Header *pMVar2;" type_identifier (pointer_declarator "*pMVar2" * identifier) ;) (if_statement "if (kind != MHD_GET_ARGUMENT_KIND) {\n    sVar1 = 0;\n    if (key != (char *)0x0) {\n      sVar1 = strlen(key);\n    }\n    if (sVar1 != key_size) {\n      return MHD_NO;\n    }\n    sVar1 = 0;\n    if (value != (char *)0x0) {\n      sVar1 = strlen(value);\n    }\n    if (sVar1 != value_size) {\n      return MHD_NO;\n    }\n  }" if (parenthesized_expression "(kind != MHD_GET_ARGUMENT_KIND)" ( (binary_expression "kind != MHD_GET_ARGUMENT_KIND" identifier != identifier) )) (compound_statement "{\n    sVar1 = 0;\n    if (key != (char *)0x0) {\n      sVar1 = strlen(key);\n    }\n    if (sVar1 != key_size) {\n      return MHD_NO;\n    }\n    sVar1 = 0;\n    if (value != (char *)0x0) {\n      sVar1 = strlen(value);\n    }\n    if (sVar1 != value_size) {\n      return MHD_NO;\n    }\n  }" { (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" identifier = number_literal) ;) (if_statement "if (key != (char *)0x0) {\n      sVar1 = strlen(key);\n    }" if (parenthesized_expression "(key != (char *)0x0)" ( (binary_expression "key != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar1 = strlen(key);\n    }" { (expression_statement "sVar1 = strlen(key);" (assignment_expression "sVar1 = strlen(key)" identifier = (call_expression "strlen(key)" identifier (argument_list "(key)" ( identifier )))) ;) })) (if_statement "if (sVar1 != key_size) {\n      return MHD_NO;\n    }" if (parenthesized_expression "(sVar1 != key_size)" ( (binary_expression "sVar1 != key_size" identifier != identifier) )) (compound_statement "{\n      return MHD_NO;\n    }" { (return_statement "return MHD_NO;" return identifier ;) })) (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" identifier = number_literal) ;) (if_statement "if (value != (char *)0x0) {\n      sVar1 = strlen(value);\n    }" if (parenthesized_expression "(value != (char *)0x0)" ( (binary_expression "value != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar1 = strlen(value);\n    }" { (expression_statement "sVar1 = strlen(value);" (assignment_expression "sVar1 = strlen(value)" identifier = (call_expression "strlen(value)" identifier (argument_list "(value)" ( identifier )))) ;) })) (if_statement "if (sVar1 != value_size) {\n      return MHD_NO;\n    }" if (parenthesized_expression "(sVar1 != value_size)" ( (binary_expression "sVar1 != value_size" identifier != identifier) )) (compound_statement "{\n      return MHD_NO;\n    }" { (return_statement "return MHD_NO;" return identifier ;) })) })) (expression_statement "pMVar2 = (MHD_HTTP_Header *)MHD_pool_allocate(connection->pool,0x18,true);" (assignment_expression "pMVar2 = (MHD_HTTP_Header *)MHD_pool_allocate(connection->pool,0x18,true)" identifier = (cast_expression "(MHD_HTTP_Header *)MHD_pool_allocate(connection->pool,0x18,true)" ( (type_descriptor "MHD_HTTP_Header *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "MHD_pool_allocate(connection->pool,0x18,true)" identifier (argument_list "(connection->pool,0x18,true)" ( (field_expression "connection->pool" identifier -> field_identifier) , number_literal , true ))))) ;) (if_statement "if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n    return MHD_NO;\n  }" if (parenthesized_expression "(pMVar2 == (MHD_HTTP_Header *)0x0)" ( (binary_expression "pMVar2 == (MHD_HTTP_Header *)0x0" identifier == (cast_expression "(MHD_HTTP_Header *)0x0" ( (type_descriptor "MHD_HTTP_Header *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return MHD_NO;\n  }" { (return_statement "return MHD_NO;" return identifier ;) })) (expression_statement "pMVar2->header = key;" (assignment_expression "pMVar2->header = key" (field_expression "pMVar2->header" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar2->next = (MHD_HTTP_Header *)0x0;" (assignment_expression "pMVar2->next = (MHD_HTTP_Header *)0x0" (field_expression "pMVar2->next" identifier -> field_identifier) = (cast_expression "(MHD_HTTP_Header *)0x0" ( (type_descriptor "MHD_HTTP_Header *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pMVar2->header_size = key_size;" (assignment_expression "pMVar2->header_size = key_size" (field_expression "pMVar2->header_size" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar2->value_size = value_size;" (assignment_expression "pMVar2->value_size = value_size" (field_expression "pMVar2->value_size" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar2->value = value;" (assignment_expression "pMVar2->value = value" (field_expression "pMVar2->value" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar2->kind = kind;" (assignment_expression "pMVar2->kind = kind" (field_expression "pMVar2->kind" identifier -> field_identifier) = identifier) ;) (if_statement "if (connection->headers_received_tail != (MHD_HTTP_Header *)0x0) {\n    connection->headers_received_tail->next = pMVar2;\n    connection->headers_received_tail = pMVar2;\n    return MHD_YES;\n  }" if (parenthesized_expression "(connection->headers_received_tail != (MHD_HTTP_Header *)0x0)" ( (binary_expression "connection->headers_received_tail != (MHD_HTTP_Header *)0x0" (field_expression "connection->headers_received_tail" identifier -> field_identifier) != (cast_expression "(MHD_HTTP_Header *)0x0" ( (type_descriptor "MHD_HTTP_Header *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    connection->headers_received_tail->next = pMVar2;\n    connection->headers_received_tail = pMVar2;\n    return MHD_YES;\n  }" { (expression_statement "connection->headers_received_tail->next = pMVar2;" (assignment_expression "connection->headers_received_tail->next = pMVar2" (field_expression "connection->headers_received_tail->next" (field_expression "connection->headers_received_tail" identifier -> field_identifier) -> field_identifier) = identifier) ;) (expression_statement "connection->headers_received_tail = pMVar2;" (assignment_expression "connection->headers_received_tail = pMVar2" (field_expression "connection->headers_received_tail" identifier -> field_identifier) = identifier) ;) (return_statement "return MHD_YES;" return identifier ;) })) (expression_statement "connection->headers_received = pMVar2;" (assignment_expression "connection->headers_received = pMVar2" (field_expression "connection->headers_received" identifier -> field_identifier) = identifier) ;) (expression_statement "connection->headers_received_tail = pMVar2;" (assignment_expression "connection->headers_received_tail = pMVar2" (field_expression "connection->headers_received_tail" identifier -> field_identifier) = identifier) ;) (return_statement "return MHD_YES;" return identifier ;) })))
(translation_unit "undefined4\nMHD_set_connection_value_n\n          (int param_1,int param_2,char *param_3,size_t param_4,char *param_5,size_t param_6)\n\n{\n  size_t sVar1;\n  undefined4 *puVar2;\n  \n  if (param_2 != 8) {\n    sVar1 = 0;\n    if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\n    }\n    if (sVar1 != param_4) {\n      return 0;\n    }\n    sVar1 = 0;\n    if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }\n    if (sVar1 != param_6) {\n      return 0;\n    }\n  }\n  puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  if (puVar2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  puVar2[1] = param_3;\n  *puVar2 = 0;\n  puVar2[2] = param_4;\n  puVar2[4] = param_6;\n  puVar2[3] = param_5;\n  puVar2[5] = param_2;\n  if (*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0) {\n    **(undefined4 **)(param_1 + 0x20) = puVar2;\n    *(undefined4 **)(param_1 + 0x20) = puVar2;\n    return 1;\n  }\n  *(undefined4 **)(param_1 + 0x1c) = puVar2;\n  *(undefined4 **)(param_1 + 0x20) = puVar2;\n  return 1;\n}\n\n" (function_definition "undefined4\nMHD_set_connection_value_n\n          (int param_1,int param_2,char *param_3,size_t param_4,char *param_5,size_t param_6)\n\n{\n  size_t sVar1;\n  undefined4 *puVar2;\n  \n  if (param_2 != 8) {\n    sVar1 = 0;\n    if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\n    }\n    if (sVar1 != param_4) {\n      return 0;\n    }\n    sVar1 = 0;\n    if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }\n    if (sVar1 != param_6) {\n      return 0;\n    }\n  }\n  puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  if (puVar2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  puVar2[1] = param_3;\n  *puVar2 = 0;\n  puVar2[2] = param_4;\n  puVar2[4] = param_6;\n  puVar2[3] = param_5;\n  puVar2[5] = param_2;\n  if (*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0) {\n    **(undefined4 **)(param_1 + 0x20) = puVar2;\n    *(undefined4 **)(param_1 + 0x20) = puVar2;\n    return 1;\n  }\n  *(undefined4 **)(param_1 + 0x1c) = puVar2;\n  *(undefined4 **)(param_1 + 0x20) = puVar2;\n  return 1;\n}" type_identifier (function_declarator "MHD_set_connection_value_n\n          (int param_1,int param_2,char *param_3,size_t param_4,char *param_5,size_t param_6)" identifier (parameter_list "(int param_1,int param_2,char *param_3,size_t param_4,char *param_5,size_t param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "size_t param_4" primitive_type identifier) , (parameter_declaration "char *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "size_t param_6" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  undefined4 *puVar2;\n  \n  if (param_2 != 8) {\n    sVar1 = 0;\n    if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\n    }\n    if (sVar1 != param_4) {\n      return 0;\n    }\n    sVar1 = 0;\n    if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }\n    if (sVar1 != param_6) {\n      return 0;\n    }\n  }\n  puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  if (puVar2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  puVar2[1] = param_3;\n  *puVar2 = 0;\n  puVar2[2] = param_4;\n  puVar2[4] = param_6;\n  puVar2[3] = param_5;\n  puVar2[5] = param_2;\n  if (*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0) {\n    **(undefined4 **)(param_1 + 0x20) = puVar2;\n    *(undefined4 **)(param_1 + 0x20) = puVar2;\n    return 1;\n  }\n  *(undefined4 **)(param_1 + 0x1c) = puVar2;\n  *(undefined4 **)(param_1 + 0x20) = puVar2;\n  return 1;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_2 != 8) {\n    sVar1 = 0;\n    if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\n    }\n    if (sVar1 != param_4) {\n      return 0;\n    }\n    sVar1 = 0;\n    if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }\n    if (sVar1 != param_6) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(param_2 != 8)" ( (binary_expression "param_2 != 8" identifier != number_literal) )) (compound_statement "{\n    sVar1 = 0;\n    if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\n    }\n    if (sVar1 != param_4) {\n      return 0;\n    }\n    sVar1 = 0;\n    if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }\n    if (sVar1 != param_6) {\n      return 0;\n    }\n  }" { (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\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      sVar1 = strlen(param_3);\n    }" { (expression_statement "sVar1 = strlen(param_3);" (assignment_expression "sVar1 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) })) (if_statement "if (sVar1 != param_4) {\n      return 0;\n    }" if (parenthesized_expression "(sVar1 != param_4)" ( (binary_expression "sVar1 != param_4" identifier != identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }" if (parenthesized_expression "(param_5 != (char *)0x0)" ( (binary_expression "param_5 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar1 = strlen(param_5);\n    }" { (expression_statement "sVar1 = strlen(param_5);" (assignment_expression "sVar1 = strlen(param_5)" identifier = (call_expression "strlen(param_5)" identifier (argument_list "(param_5)" ( identifier )))) ;) })) (if_statement "if (sVar1 != param_6) {\n      return 0;\n    }" if (parenthesized_expression "(sVar1 != param_6)" ( (binary_expression "sVar1 != param_6" identifier != identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);" (assignment_expression "puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" identifier = (cast_expression "(undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x28),0x18,1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , number_literal , number_literal ))))) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar2[1] = param_3;" (assignment_expression "puVar2[1] = param_3" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[2] = param_4;" (assignment_expression "puVar2[2] = param_4" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = param_6;" (assignment_expression "puVar2[4] = param_6" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[3] = param_5;" (assignment_expression "puVar2[3] = param_5" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[5] = param_2;" (assignment_expression "puVar2[5] = param_2" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0) {\n    **(undefined4 **)(param_1 + 0x20) = puVar2;\n    *(undefined4 **)(param_1 + 0x20) = puVar2;\n    return 1;\n  }" if (parenthesized_expression "(*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0)" ( (binary_expression "*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    **(undefined4 **)(param_1 + 0x20) = puVar2;\n    *(undefined4 **)(param_1 + 0x20) = puVar2;\n    return 1;\n  }" { (expression_statement "**(undefined4 **)(param_1 + 0x20) = puVar2;" (assignment_expression "**(undefined4 **)(param_1 + 0x20) = puVar2" (pointer_expression "**(undefined4 **)(param_1 + 0x20)" * (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 0x20) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0x20) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*(undefined4 **)(param_1 + 0x1c) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0x1c) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" * (cast_expression "(undefined4 **)(param_1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 0x20) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0x20) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * 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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return 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) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4\nMHD_set_connection_value_n\n          (int param_1,int param_2,char *param_3,size_t param_4,char *param_5,size_t param_6)\n\n{\n  size_t sVar1;\n  undefined4 *puVar2;\n  \n  if (param_2 != 8) {\n    sVar1 = 0;\n    if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\n    }\n    if (sVar1 != param_4) {\n      return 0;\n    }\n    sVar1 = 0;\n    if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }\n    if (sVar1 != param_6) {\n      return 0;\n    }\n  }\n  puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  if (puVar2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  puVar2[1] = param_3;\n  *puVar2 = 0;\n  puVar2[2] = param_4;\n  puVar2[4] = param_6;\n  puVar2[3] = param_5;\n  puVar2[5] = param_2;\n  if (*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0) {\n    **(undefined4 **)(param_1 + 0x20) = puVar2;\n    *(undefined4 **)(param_1 + 0x20) = puVar2;\n    return 1;\n  }\n  *(undefined4 **)(param_1 + 0x1c) = puVar2;\n  *(undefined4 **)(param_1 + 0x20) = puVar2;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "MHD_set_connection_value_n\n          (int param_1,int param_2,char *param_3,size_t param_4,char *param_5,size_t param_6)" (identifier "MHD_set_connection_value_n") (parameter_list "(int param_1,int param_2,char *param_3,size_t param_4,char *param_5,size_t param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (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")) (, ",") (parameter_declaration "char *param_5" (primitive_type "char") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "size_t param_6" (primitive_type "size_t") (identifier "param_6")) () ")"))) (compound_statement "{\n  size_t sVar1;\n  undefined4 *puVar2;\n  \n  if (param_2 != 8) {\n    sVar1 = 0;\n    if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\n    }\n    if (sVar1 != param_4) {\n      return 0;\n    }\n    sVar1 = 0;\n    if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }\n    if (sVar1 != param_6) {\n      return 0;\n    }\n  }\n  puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  if (puVar2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  puVar2[1] = param_3;\n  *puVar2 = 0;\n  puVar2[2] = param_4;\n  puVar2[4] = param_6;\n  puVar2[3] = param_5;\n  puVar2[5] = param_2;\n  if (*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0) {\n    **(undefined4 **)(param_1 + 0x20) = puVar2;\n    *(undefined4 **)(param_1 + 0x20) = puVar2;\n    return 1;\n  }\n  *(undefined4 **)(param_1 + 0x1c) = puVar2;\n  *(undefined4 **)(param_1 + 0x20) = puVar2;\n  return 1;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (param_2 != 8) {\n    sVar1 = 0;\n    if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\n    }\n    if (sVar1 != param_4) {\n      return 0;\n    }\n    sVar1 = 0;\n    if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }\n    if (sVar1 != param_6) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 != 8)" (( "(") (binary_expression "param_2 != 8" (identifier "param_2") (!= "!=") (number_literal "8")) () ")")) (compound_statement "{\n    sVar1 = 0;\n    if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\n    }\n    if (sVar1 != param_4) {\n      return 0;\n    }\n    sVar1 = 0;\n    if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }\n    if (sVar1 != param_6) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" (identifier "sVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 != (char *)0x0) {\n      sVar1 = strlen(param_3);\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      sVar1 = strlen(param_3);\n    }" ({ "{") (expression_statement "sVar1 = strlen(param_3);" (assignment_expression "sVar1 = strlen(param_3)" (identifier "sVar1") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (} "}"))) (if_statement "if (sVar1 != param_4) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(sVar1 != param_4)" (( "(") (binary_expression "sVar1 != param_4" (identifier "sVar1") (!= "!=") (identifier "param_4")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" (identifier "sVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_5 != (char *)0x0) {\n      sVar1 = strlen(param_5);\n    }" (if "if") (parenthesized_expression "(param_5 != (char *)0x0)" (( "(") (binary_expression "param_5 != (char *)0x0" (identifier "param_5") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      sVar1 = strlen(param_5);\n    }" ({ "{") (expression_statement "sVar1 = strlen(param_5);" (assignment_expression "sVar1 = strlen(param_5)" (identifier "sVar1") (= "=") (call_expression "strlen(param_5)" (identifier "strlen") (argument_list "(param_5)" (( "(") (identifier "param_5") () ")")))) (; ";")) (} "}"))) (if_statement "if (sVar1 != param_6) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(sVar1 != param_6)" (( "(") (binary_expression "sVar1 != param_6" (identifier "sVar1") (!= "!=") (identifier "param_6")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);" (assignment_expression "puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" (identifier "FUN_0001fce0") (argument_list "(*(undefined4 *)(param_1 + 0x28),0x18,1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (number_literal "0x18") (, ",") (number_literal "1") () ")"))))) (; ";")) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "puVar2[1] = param_3;" (assignment_expression "puVar2[1] = param_3" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[2] = param_4;" (assignment_expression "puVar2[2] = param_4" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "puVar2[4] = param_6;" (assignment_expression "puVar2[4] = param_6" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_6")) (; ";")) (expression_statement "puVar2[3] = param_5;" (assignment_expression "puVar2[3] = param_5" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "puVar2[5] = param_2;" (assignment_expression "puVar2[5] = param_2" (subscript_expression "puVar2[5]" (identifier "puVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "param_2")) (; ";")) (if_statement "if (*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0) {\n    **(undefined4 **)(param_1 + 0x20) = puVar2;\n    *(undefined4 **)(param_1 + 0x20) = puVar2;\n    return 1;\n  }" (if "if") (parenthesized_expression "(*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0)" (( "(") (binary_expression "*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    **(undefined4 **)(param_1 + 0x20) = puVar2;\n    *(undefined4 **)(param_1 + 0x20) = puVar2;\n    return 1;\n  }" ({ "{") (expression_statement "**(undefined4 **)(param_1 + 0x20) = puVar2;" (assignment_expression "**(undefined4 **)(param_1 + 0x20) = puVar2" (pointer_expression "**(undefined4 **)(param_1 + 0x20)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0x20) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0x20) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "puVar2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "*(undefined4 **)(param_1 + 0x1c) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0x1c) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0x20) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0x20) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "puVar2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1
function_1
          (type_2 *connection,type_3 var_1,char *var_3,size_t var_6,char *var_7,
          size_t var_8)

{
  size_t var_5;
  type_4 *var_10;
  
  if (var_1 != var_2) {
    var_5 = 0;
    if (var_3 != (char *)0x0) {
      var_5 = var_4(var_3);
    }
    if (var_5 != var_6) {
      return MHD_NO;
    }
    var_5 = 0;
    if (var_7 != (char *)0x0) {
      var_5 = var_4(var_7);
    }
    if (var_5 != var_8) {
      return MHD_NO;
    }
  }
  var_10 = (type_4 *)var_9(connection->pool,0x18,true);
  if (var_10 == (type_4 *)0x0) {
    return MHD_NO;
  }
  var_10->header = var_3;
  var_10->next = (type_4 *)0x0;
  var_10->header_size = var_6;
  var_10->var_8 = var_8;
  var_10->var_7 = var_7;
  var_10->var_1 = var_1;
  if (connection->headers_received_tail != (type_4 *)0x0) {
    connection->headers_received_tail->next = var_10;
    connection->headers_received_tail = var_10;
    return MHD_YES;
  }
  connection->headers_received = var_10;
  connection->headers_received_tail = var_10;
  return MHD_YES;
}


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

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

undefined4
MASKED
          (int param_1,int param_2,char *param_3,size_t param_4,char *param_5,size_t param_6)

{
  size_t sVar1;
  undefined4 *puVar2;
  
  if (param_2 != 8) {
    sVar1 = 0;
    if (param_3 != (char *)0x0) {
      sVar1 = strlen(param_3);
    }
    if (sVar1 != param_4) {
      return 0;
    }
    sVar1 = 0;
    if (param_5 != (char *)0x0) {
      sVar1 = strlen(param_5);
    }
    if (sVar1 != param_6) {
      return 0;
    }
  }
  puVar2 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);
  if (puVar2 == (undefined4 *)0x0) {
    return 0;
  }
  puVar2[1] = param_3;
  *puVar2 = 0;
  puVar2[2] = param_4;
  puVar2[4] = param_6;
  puVar2[3] = param_5;
  puVar2[5] = param_2;
  if (*(undefined4 **)(param_1 + 0x20) != (undefined4 *)0x0) {
    **(undefined4 **)(param_1 + 0x20) = puVar2;
    *(undefined4 **)(param_1 + 0x20) = puVar2;
    return 1;
  }
  *(undefined4 **)(param_1 + 0x1c) = puVar2;
  *(undefined4 **)(param_1 + 0x20) = puVar2;
  return 1;
}

