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

char * __regparm3 define_directive(char *assignment,muscle_kind kind,char *value)

{
  char *pcVar1;
  size_t sVar2;
  char *pcVar3;
  char cVar4;
  int iVar5;
  size_t n;
  char *local_20;
  
  pcVar1 = strchr(assignment,0x3d);
  sVar2 = strlen(assignment);
  if ((pcVar1 == (char *)0x0) && (value != (char *)0x0)) {
    if (*value == '\0') {
      local_20 = "%%define %s";
      iVar5 = sVar2 + 0xb;
    }
    else if (kind == muscle_code) {
      local_20 = "%%define %s {%s}";
      iVar5 = sVar2 + 0x10;
    }
    else if (kind == muscle_string) {
      local_20 = "%%define %s \"%s\"";
      iVar5 = sVar2 + 0x10;
    }
    else {
      local_20 = "%%define %s %s";
      iVar5 = sVar2 + 0xe;
    }
    sVar2 = strlen(value);
    n = iVar5 + sVar2;
  }
  else {
    n = sVar2 + 0xb;
    local_20 = "%%define %s";
    if (value != (char *)0x0) {
      sVar2 = strlen(value);
      n = n + sVar2;
    }
  }
  pcVar1 = (char *)xmalloc(n);
  rpl_sprintf(pcVar1,local_20,assignment,value);
  pcVar3 = strchr(pcVar1,0x3d);
  if (pcVar3 != (char *)0x0) {
    cVar4 = pcVar3[1];
    if (cVar4 != '\0') {
      cVar4 = ' ';
    }
    *pcVar3 = cVar4;
  }
  return pcVar1;
}



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

char * __regparm3 FUN_00023770(char *param_1,int param_2,char *param_3)

{
  char *pcVar1;
  size_t sVar2;
  char *pcVar3;
  char cVar4;
  int iVar5;
  char *local_20;
  
  pcVar1 = strchr(param_1,0x3d);
  sVar2 = strlen(param_1);
  if ((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)) {
    if (*param_3 == '\0') {
      local_20 = "%%define %s";
      iVar5 = sVar2 + 0xb;
    }
    else if (param_2 == 0) {
      local_20 = "%%define %s {%s}";
      iVar5 = sVar2 + 0x10;
    }
    else if (param_2 == 2) {
      local_20 = "%%define %s \"%s\"";
      iVar5 = sVar2 + 0x10;
    }
    else {
      local_20 = "%%define %s %s";
      iVar5 = sVar2 + 0xe;
    }
    sVar2 = strlen(param_3);
    iVar5 = iVar5 + sVar2;
  }
  else {
    iVar5 = sVar2 + 0xb;
    local_20 = "%%define %s";
    if (param_3 != (char *)0x0) {
      sVar2 = strlen(param_3);
      iVar5 = iVar5 + sVar2;
    }
  }
  pcVar1 = (char *)FUN_00066c20(iVar5);
  FUN_00068ed0(pcVar1,local_20,param_1,param_3);
  pcVar3 = strchr(pcVar1,0x3d);
  if (pcVar3 != (char *)0x0) {
    cVar4 = pcVar3[1];
    if (cVar4 != '\0') {
      cVar4 = ' ';
    }
    *pcVar3 = cVar4;
  }
  return pcVar1;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
MOV ESI,ECX
PUSH EBX
CALL 0x00013d10
ADD EBX,0x72883
SUB ESP,0x24
MOV dword ptr [ESP + 0x14],EDX
PUSH 0x3d
PUSH EAX
CALL 0x00013370
MOV dword ptr [ESP],EBP
MOV EDI,EAX
CALL 0x00013380
ADD ESP,0x10
TEST EDI,EDI
JNZ 0x00023838
TEST ESI,ESI
JZ 0x00023838
CMP byte ptr [ESI],0x0
JZ 0x00023860
MOV ECX,dword ptr [ESP + 0xc]
TEST ECX,ECX
JZ 0x00023880
CMP ECX,0x2
JZ 0x000238a0
LEA EDX,[EBX + 0xfffd9d87]
MOV EDI,0xe
MOV dword ptr [ESP + 0xc],EDX
ADD EDI,EAX
NOP
SUB ESP,0xc
PUSH ESI
CALL 0x00013380
ADD ESP,0x10
ADD EDI,EAX
SUB ESP,0xc
PUSH EDI
CALL 0x00066c20
PUSH ESI
PUSH EBP
MOV EDI,EAX
PUSH dword ptr [ESP + 0x24]
PUSH EAX
CALL 0x00068ed0
ADD ESP,0x18
PUSH 0x3d
PUSH EDI
CALL 0x00013370
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00023827
MOVZX EDX,byte ptr [EAX + 0x1]
MOV ECX,0x20
TEST DL,DL
CMOVNZ EDX,ECX
MOV byte ptr [EAX],DL
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EDI,[EAX + 0xb]
LEA EAX,[EBX + 0xfffd9d59]
MOV dword ptr [ESP + 0xc],EAX
TEST ESI,ESI
JZ 0x000237ee
SUB ESP,0xc
PUSH ESI
CALL 0x00013380
ADD ESP,0x10
ADD EDI,EAX
JMP 0x000237ee
MOV EDI,0xb
LEA ECX,[EBX + 0xfffd9d59]
MOV dword ptr [ESP + 0xc],ECX
ADD EDI,EAX
JMP 0x000237e0
MOV EDI,0x10
LEA EDX,[EBX + 0xfffd9d65]
MOV dword ptr [ESP + 0xc],EDX
ADD EDI,EAX
JMP 0x000237e0
MOV EDI,0x10
LEA EDX,[EBX + 0xfffd9d76]
MOV dword ptr [ESP + 0xc],EDX
ADD EDI,EAX
JMP 0x000237e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 FUN_00023770(char *param_1,int param_2,char *param_3)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char cVar4;\n  int iVar5;\n  char *local_20;\n  \n  pcVar1 = strchr(param_1,0x3d);\n  sVar2 = strlen(param_1);\n  if ((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)) {\n    if (*param_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(param_3);\n    iVar5 = iVar5 + sVar2;\n  }\n  else {\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }\n  pcVar1 = (char *)FUN_00066c20(iVar5);\n  FUN_00068ed0(pcVar1,local_20,param_1,param_3);\n  pcVar3 = strchr(pcVar1,0x3d);\n  if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }\n  return pcVar1;\n}\n\n" comment (function_definition "char * __regparm3 FUN_00023770(char *param_1,int param_2,char *param_3)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char cVar4;\n  int iVar5;\n  char *local_20;\n  \n  pcVar1 = strchr(param_1,0x3d);\n  sVar2 = strlen(param_1);\n  if ((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)) {\n    if (*param_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(param_3);\n    iVar5 = iVar5 + sVar2;\n  }\n  else {\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }\n  pcVar1 = (char *)FUN_00066c20(iVar5);\n  FUN_00068ed0(pcVar1,local_20,param_1,param_3);\n  pcVar3 = strchr(pcVar1,0x3d);\n  if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00023770(char *param_1,int param_2,char *param_3)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00023770(char *param_1,int param_2,char *param_3)" identifier (parameter_list "(char *param_1,int param_2,char *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char cVar4;\n  int iVar5;\n  char *local_20;\n  \n  pcVar1 = strchr(param_1,0x3d);\n  sVar2 = strlen(param_1);\n  if ((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)) {\n    if (*param_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(param_3);\n    iVar5 = iVar5 + sVar2;\n  }\n  else {\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }\n  pcVar1 = (char *)FUN_00066c20(iVar5);\n  FUN_00068ed0(pcVar1,local_20,param_1,param_3);\n  pcVar3 = strchr(pcVar1,0x3d);\n  if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *local_20;" primitive_type (pointer_declarator "*local_20" * identifier) ;) (expression_statement "pcVar1 = strchr(param_1,0x3d);" (assignment_expression "pcVar1 = strchr(param_1,0x3d)" identifier = (call_expression "strchr(param_1,0x3d)" identifier (argument_list "(param_1,0x3d)" ( identifier , number_literal )))) ;) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)) {\n    if (*param_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(param_3);\n    iVar5 = iVar5 + sVar2;\n  }\n  else {\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }" if (parenthesized_expression "((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0))" ( (binary_expression "(pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)" (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (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_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(param_3);\n    iVar5 = iVar5 + sVar2;\n  }" { (if_statement "if (*param_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" if (parenthesized_expression "(*param_3 == '\0')" ( (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }" { (expression_statement "local_20 = "%%define %s";" (assignment_expression "local_20 = "%%define %s"" identifier = (string_literal ""%%define %s"" " string_content ")) ;) (expression_statement "iVar5 = sVar2 + 0xb;" (assignment_expression "iVar5 = sVar2 + 0xb" identifier = (binary_expression "sVar2 + 0xb" identifier + number_literal)) ;) }) (else_clause "else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" else (if_statement "if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }" { (expression_statement "local_20 = "%%define %s {%s}";" (assignment_expression "local_20 = "%%define %s {%s}"" identifier = (string_literal ""%%define %s {%s}"" " string_content ")) ;) (expression_statement "iVar5 = sVar2 + 0x10;" (assignment_expression "iVar5 = sVar2 + 0x10" identifier = (binary_expression "sVar2 + 0x10" identifier + number_literal)) ;) }) (else_clause "else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" else (if_statement "if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }" { (expression_statement "local_20 = "%%define %s \"%s\"";" (assignment_expression "local_20 = "%%define %s \"%s\""" identifier = (string_literal ""%%define %s \"%s\""" " string_content escape_sequence string_content escape_sequence ")) ;) (expression_statement "iVar5 = sVar2 + 0x10;" (assignment_expression "iVar5 = sVar2 + 0x10" identifier = (binary_expression "sVar2 + 0x10" identifier + number_literal)) ;) }) (else_clause "else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" else (compound_statement "{\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" { (expression_statement "local_20 = "%%define %s %s";" (assignment_expression "local_20 = "%%define %s %s"" identifier = (string_literal ""%%define %s %s"" " string_content ")) ;) (expression_statement "iVar5 = sVar2 + 0xe;" (assignment_expression "iVar5 = sVar2 + 0xe" identifier = (binary_expression "sVar2 + 0xe" identifier + number_literal)) ;) }))))))) (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "iVar5 = iVar5 + sVar2;" (assignment_expression "iVar5 = iVar5 + sVar2" identifier = (binary_expression "iVar5 + sVar2" identifier + identifier)) ;) }) (else_clause "else {\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }" else (compound_statement "{\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }" { (expression_statement "iVar5 = sVar2 + 0xb;" (assignment_expression "iVar5 = sVar2 + 0xb" identifier = (binary_expression "sVar2 + 0xb" identifier + number_literal)) ;) (expression_statement "local_20 = "%%define %s";" (assignment_expression "local_20 = "%%define %s"" identifier = (string_literal ""%%define %s"" " string_content ")) ;) (if_statement "if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\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      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }" { (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "iVar5 = iVar5 + sVar2;" (assignment_expression "iVar5 = iVar5 + sVar2" identifier = (binary_expression "iVar5 + sVar2" identifier + identifier)) ;) })) }))) (expression_statement "pcVar1 = (char *)FUN_00066c20(iVar5);" (assignment_expression "pcVar1 = (char *)FUN_00066c20(iVar5)" identifier = (cast_expression "(char *)FUN_00066c20(iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00066c20(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))))) ;) (expression_statement "FUN_00068ed0(pcVar1,local_20,param_1,param_3);" (call_expression "FUN_00068ed0(pcVar1,local_20,param_1,param_3)" identifier (argument_list "(pcVar1,local_20,param_1,param_3)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "pcVar3 = strchr(pcVar1,0x3d);" (assignment_expression "pcVar3 = strchr(pcVar1,0x3d)" identifier = (call_expression "strchr(pcVar1,0x3d)" identifier (argument_list "(pcVar1,0x3d)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }" { (expression_statement "cVar4 = pcVar3[1];" (assignment_expression "cVar4 = pcVar3[1]" identifier = (subscript_expression "pcVar3[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }" if (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      cVar4 = ' ';\n    }" { (expression_statement "cVar4 = ' ';" (assignment_expression "cVar4 = ' '" identifier = (char_literal "' '" ' character ')) ;) })) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" * identifier) = identifier) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 define_directive(char *assignment,muscle_kind kind,char *value)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char cVar4;\n  int iVar5;\n  size_t n;\n  char *local_20;\n  \n  pcVar1 = strchr(assignment,0x3d);\n  sVar2 = strlen(assignment);\n  if ((pcVar1 == (char *)0x0) && (value != (char *)0x0)) {\n    if (*value == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (kind == muscle_code) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (kind == muscle_string) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(value);\n    n = iVar5 + sVar2;\n  }\n  else {\n    n = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (value != (char *)0x0) {\n      sVar2 = strlen(value);\n      n = n + sVar2;\n    }\n  }\n  pcVar1 = (char *)xmalloc(n);\n  rpl_sprintf(pcVar1,local_20,assignment,value);\n  pcVar3 = strchr(pcVar1,0x3d);\n  if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }\n  return pcVar1;\n}\n\n" comment (function_definition "char * __regparm3 define_directive(char *assignment,muscle_kind kind,char *value)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char cVar4;\n  int iVar5;\n  size_t n;\n  char *local_20;\n  \n  pcVar1 = strchr(assignment,0x3d);\n  sVar2 = strlen(assignment);\n  if ((pcVar1 == (char *)0x0) && (value != (char *)0x0)) {\n    if (*value == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (kind == muscle_code) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (kind == muscle_string) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(value);\n    n = iVar5 + sVar2;\n  }\n  else {\n    n = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (value != (char *)0x0) {\n      sVar2 = strlen(value);\n      n = n + sVar2;\n    }\n  }\n  pcVar1 = (char *)xmalloc(n);\n  rpl_sprintf(pcVar1,local_20,assignment,value);\n  pcVar3 = strchr(pcVar1,0x3d);\n  if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* __regparm3 define_directive(char *assignment,muscle_kind kind,char *value)" * (ERROR "__regparm3" identifier) (function_declarator "define_directive(char *assignment,muscle_kind kind,char *value)" identifier (parameter_list "(char *assignment,muscle_kind kind,char *value)" ( (parameter_declaration "char *assignment" primitive_type (pointer_declarator "*assignment" * identifier)) , (parameter_declaration "muscle_kind kind" type_identifier identifier) , (parameter_declaration "char *value" primitive_type (pointer_declarator "*value" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char cVar4;\n  int iVar5;\n  size_t n;\n  char *local_20;\n  \n  pcVar1 = strchr(assignment,0x3d);\n  sVar2 = strlen(assignment);\n  if ((pcVar1 == (char *)0x0) && (value != (char *)0x0)) {\n    if (*value == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (kind == muscle_code) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (kind == muscle_string) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(value);\n    n = iVar5 + sVar2;\n  }\n  else {\n    n = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (value != (char *)0x0) {\n      sVar2 = strlen(value);\n      n = n + sVar2;\n    }\n  }\n  pcVar1 = (char *)xmalloc(n);\n  rpl_sprintf(pcVar1,local_20,assignment,value);\n  pcVar3 = strchr(pcVar1,0x3d);\n  if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "size_t n;" primitive_type identifier ;) (declaration "char *local_20;" primitive_type (pointer_declarator "*local_20" * identifier) ;) (expression_statement "pcVar1 = strchr(assignment,0x3d);" (assignment_expression "pcVar1 = strchr(assignment,0x3d)" identifier = (call_expression "strchr(assignment,0x3d)" identifier (argument_list "(assignment,0x3d)" ( identifier , number_literal )))) ;) (expression_statement "sVar2 = strlen(assignment);" (assignment_expression "sVar2 = strlen(assignment)" identifier = (call_expression "strlen(assignment)" identifier (argument_list "(assignment)" ( identifier )))) ;) (if_statement "if ((pcVar1 == (char *)0x0) && (value != (char *)0x0)) {\n    if (*value == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (kind == muscle_code) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (kind == muscle_string) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(value);\n    n = iVar5 + sVar2;\n  }\n  else {\n    n = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (value != (char *)0x0) {\n      sVar2 = strlen(value);\n      n = n + sVar2;\n    }\n  }" if (parenthesized_expression "((pcVar1 == (char *)0x0) && (value != (char *)0x0))" ( (binary_expression "(pcVar1 == (char *)0x0) && (value != (char *)0x0)" (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (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    if (*value == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (kind == muscle_code) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (kind == muscle_string) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(value);\n    n = iVar5 + sVar2;\n  }" { (if_statement "if (*value == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (kind == muscle_code) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (kind == muscle_string) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" if (parenthesized_expression "(*value == '\0')" ( (binary_expression "*value == '\0'" (pointer_expression "*value" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }" { (expression_statement "local_20 = "%%define %s";" (assignment_expression "local_20 = "%%define %s"" identifier = (string_literal ""%%define %s"" " string_content ")) ;) (expression_statement "iVar5 = sVar2 + 0xb;" (assignment_expression "iVar5 = sVar2 + 0xb" identifier = (binary_expression "sVar2 + 0xb" identifier + number_literal)) ;) }) (else_clause "else if (kind == muscle_code) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (kind == muscle_string) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" else (if_statement "if (kind == muscle_code) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (kind == muscle_string) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" if (parenthesized_expression "(kind == muscle_code)" ( (binary_expression "kind == muscle_code" identifier == identifier) )) (compound_statement "{\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }" { (expression_statement "local_20 = "%%define %s {%s}";" (assignment_expression "local_20 = "%%define %s {%s}"" identifier = (string_literal ""%%define %s {%s}"" " string_content ")) ;) (expression_statement "iVar5 = sVar2 + 0x10;" (assignment_expression "iVar5 = sVar2 + 0x10" identifier = (binary_expression "sVar2 + 0x10" identifier + number_literal)) ;) }) (else_clause "else if (kind == muscle_string) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" else (if_statement "if (kind == muscle_string) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" if (parenthesized_expression "(kind == muscle_string)" ( (binary_expression "kind == muscle_string" identifier == identifier) )) (compound_statement "{\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }" { (expression_statement "local_20 = "%%define %s \"%s\"";" (assignment_expression "local_20 = "%%define %s \"%s\""" identifier = (string_literal ""%%define %s \"%s\""" " string_content escape_sequence string_content escape_sequence ")) ;) (expression_statement "iVar5 = sVar2 + 0x10;" (assignment_expression "iVar5 = sVar2 + 0x10" identifier = (binary_expression "sVar2 + 0x10" identifier + number_literal)) ;) }) (else_clause "else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" else (compound_statement "{\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" { (expression_statement "local_20 = "%%define %s %s";" (assignment_expression "local_20 = "%%define %s %s"" identifier = (string_literal ""%%define %s %s"" " string_content ")) ;) (expression_statement "iVar5 = sVar2 + 0xe;" (assignment_expression "iVar5 = sVar2 + 0xe" identifier = (binary_expression "sVar2 + 0xe" identifier + number_literal)) ;) }))))))) (expression_statement "sVar2 = strlen(value);" (assignment_expression "sVar2 = strlen(value)" identifier = (call_expression "strlen(value)" identifier (argument_list "(value)" ( identifier )))) ;) (expression_statement "n = iVar5 + sVar2;" (assignment_expression "n = iVar5 + sVar2" identifier = (binary_expression "iVar5 + sVar2" identifier + identifier)) ;) }) (else_clause "else {\n    n = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (value != (char *)0x0) {\n      sVar2 = strlen(value);\n      n = n + sVar2;\n    }\n  }" else (compound_statement "{\n    n = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (value != (char *)0x0) {\n      sVar2 = strlen(value);\n      n = n + sVar2;\n    }\n  }" { (expression_statement "n = sVar2 + 0xb;" (assignment_expression "n = sVar2 + 0xb" identifier = (binary_expression "sVar2 + 0xb" identifier + number_literal)) ;) (expression_statement "local_20 = "%%define %s";" (assignment_expression "local_20 = "%%define %s"" identifier = (string_literal ""%%define %s"" " string_content ")) ;) (if_statement "if (value != (char *)0x0) {\n      sVar2 = strlen(value);\n      n = n + sVar2;\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      sVar2 = strlen(value);\n      n = n + sVar2;\n    }" { (expression_statement "sVar2 = strlen(value);" (assignment_expression "sVar2 = strlen(value)" identifier = (call_expression "strlen(value)" identifier (argument_list "(value)" ( identifier )))) ;) (expression_statement "n = n + sVar2;" (assignment_expression "n = n + sVar2" identifier = (binary_expression "n + sVar2" identifier + identifier)) ;) })) }))) (expression_statement "pcVar1 = (char *)xmalloc(n);" (assignment_expression "pcVar1 = (char *)xmalloc(n)" identifier = (cast_expression "(char *)xmalloc(n)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(n)" identifier (argument_list "(n)" ( identifier ))))) ;) (expression_statement "rpl_sprintf(pcVar1,local_20,assignment,value);" (call_expression "rpl_sprintf(pcVar1,local_20,assignment,value)" identifier (argument_list "(pcVar1,local_20,assignment,value)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "pcVar3 = strchr(pcVar1,0x3d);" (assignment_expression "pcVar3 = strchr(pcVar1,0x3d)" identifier = (call_expression "strchr(pcVar1,0x3d)" identifier (argument_list "(pcVar1,0x3d)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }" { (expression_statement "cVar4 = pcVar3[1];" (assignment_expression "cVar4 = pcVar3[1]" identifier = (subscript_expression "pcVar3[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }" if (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      cVar4 = ' ';\n    }" { (expression_statement "cVar4 = ' ';" (assignment_expression "cVar4 = ' '" identifier = (char_literal "' '" ' character ')) ;) })) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" * identifier) = identifier) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "char * __regparm3 FUN_00023770(char *param_1,int param_2,char *param_3)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char cVar4;\n  int iVar5;\n  char *local_20;\n  \n  pcVar1 = strchr(param_1,0x3d);\n  sVar2 = strlen(param_1);\n  if ((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)) {\n    if (*param_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(param_3);\n    iVar5 = iVar5 + sVar2;\n  }\n  else {\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }\n  pcVar1 = (char *)FUN_00066c20(iVar5);\n  FUN_00068ed0(pcVar1,local_20,param_1,param_3);\n  pcVar3 = strchr(pcVar1,0x3d);\n  if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }\n  return pcVar1;\n}\n\n" (function_definition "char * __regparm3 FUN_00023770(char *param_1,int param_2,char *param_3)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char cVar4;\n  int iVar5;\n  char *local_20;\n  \n  pcVar1 = strchr(param_1,0x3d);\n  sVar2 = strlen(param_1);\n  if ((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)) {\n    if (*param_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(param_3);\n    iVar5 = iVar5 + sVar2;\n  }\n  else {\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }\n  pcVar1 = (char *)FUN_00066c20(iVar5);\n  FUN_00068ed0(pcVar1,local_20,param_1,param_3);\n  pcVar3 = strchr(pcVar1,0x3d);\n  if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00023770(char *param_1,int param_2,char *param_3)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00023770(char *param_1,int param_2,char *param_3)" identifier (parameter_list "(char *param_1,int param_2,char *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char cVar4;\n  int iVar5;\n  char *local_20;\n  \n  pcVar1 = strchr(param_1,0x3d);\n  sVar2 = strlen(param_1);\n  if ((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)) {\n    if (*param_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(param_3);\n    iVar5 = iVar5 + sVar2;\n  }\n  else {\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }\n  pcVar1 = (char *)FUN_00066c20(iVar5);\n  FUN_00068ed0(pcVar1,local_20,param_1,param_3);\n  pcVar3 = strchr(pcVar1,0x3d);\n  if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *local_20;" primitive_type (pointer_declarator "*local_20" * identifier) ;) (expression_statement "pcVar1 = strchr(param_1,0x3d);" (assignment_expression "pcVar1 = strchr(param_1,0x3d)" identifier = (call_expression "strchr(param_1,0x3d)" identifier (argument_list "(param_1,0x3d)" ( identifier , number_literal )))) ;) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)) {\n    if (*param_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(param_3);\n    iVar5 = iVar5 + sVar2;\n  }\n  else {\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }" if (parenthesized_expression "((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0))" ( (binary_expression "(pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)" (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (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_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(param_3);\n    iVar5 = iVar5 + sVar2;\n  }" { (if_statement "if (*param_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" if (parenthesized_expression "(*param_3 == '\0')" ( (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }" { (expression_statement "local_20 = "%%define %s";" (assignment_expression "local_20 = "%%define %s"" identifier = (string_literal ""%%define %s"" " string_content ")) ;) (expression_statement "iVar5 = sVar2 + 0xb;" (assignment_expression "iVar5 = sVar2 + 0xb" identifier = (binary_expression "sVar2 + 0xb" identifier + number_literal)) ;) }) (else_clause "else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" else (if_statement "if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }" { (expression_statement "local_20 = "%%define %s {%s}";" (assignment_expression "local_20 = "%%define %s {%s}"" identifier = (string_literal ""%%define %s {%s}"" " string_content ")) ;) (expression_statement "iVar5 = sVar2 + 0x10;" (assignment_expression "iVar5 = sVar2 + 0x10" identifier = (binary_expression "sVar2 + 0x10" identifier + number_literal)) ;) }) (else_clause "else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" else (if_statement "if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }" { (expression_statement "local_20 = "%%define %s \"%s\"";" (assignment_expression "local_20 = "%%define %s \"%s\""" identifier = (string_literal ""%%define %s \"%s\""" " string_content escape_sequence string_content escape_sequence ")) ;) (expression_statement "iVar5 = sVar2 + 0x10;" (assignment_expression "iVar5 = sVar2 + 0x10" identifier = (binary_expression "sVar2 + 0x10" identifier + number_literal)) ;) }) (else_clause "else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" else (compound_statement "{\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" { (expression_statement "local_20 = "%%define %s %s";" (assignment_expression "local_20 = "%%define %s %s"" identifier = (string_literal ""%%define %s %s"" " string_content ")) ;) (expression_statement "iVar5 = sVar2 + 0xe;" (assignment_expression "iVar5 = sVar2 + 0xe" identifier = (binary_expression "sVar2 + 0xe" identifier + number_literal)) ;) }))))))) (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "iVar5 = iVar5 + sVar2;" (assignment_expression "iVar5 = iVar5 + sVar2" identifier = (binary_expression "iVar5 + sVar2" identifier + identifier)) ;) }) (else_clause "else {\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }" else (compound_statement "{\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }" { (expression_statement "iVar5 = sVar2 + 0xb;" (assignment_expression "iVar5 = sVar2 + 0xb" identifier = (binary_expression "sVar2 + 0xb" identifier + number_literal)) ;) (expression_statement "local_20 = "%%define %s";" (assignment_expression "local_20 = "%%define %s"" identifier = (string_literal ""%%define %s"" " string_content ")) ;) (if_statement "if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\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      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }" { (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "iVar5 = iVar5 + sVar2;" (assignment_expression "iVar5 = iVar5 + sVar2" identifier = (binary_expression "iVar5 + sVar2" identifier + identifier)) ;) })) }))) (expression_statement "pcVar1 = (char *)FUN_00066c20(iVar5);" (assignment_expression "pcVar1 = (char *)FUN_00066c20(iVar5)" identifier = (cast_expression "(char *)FUN_00066c20(iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00066c20(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))))) ;) (expression_statement "FUN_00068ed0(pcVar1,local_20,param_1,param_3);" (call_expression "FUN_00068ed0(pcVar1,local_20,param_1,param_3)" identifier (argument_list "(pcVar1,local_20,param_1,param_3)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "pcVar3 = strchr(pcVar1,0x3d);" (assignment_expression "pcVar3 = strchr(pcVar1,0x3d)" identifier = (call_expression "strchr(pcVar1,0x3d)" identifier (argument_list "(pcVar1,0x3d)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }" { (expression_statement "cVar4 = pcVar3[1];" (assignment_expression "cVar4 = pcVar3[1]" identifier = (subscript_expression "pcVar3[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }" if (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      cVar4 = ' ';\n    }" { (expression_statement "cVar4 = ' ';" (assignment_expression "cVar4 = ' '" identifier = (char_literal "' '" ' character ')) ;) })) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" * identifier) = identifier) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence string_content escape_sequence ")) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))))))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (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 )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "char * __regparm3 FUN_00023770(char *param_1,int param_2,char *param_3)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char cVar4;\n  int iVar5;\n  char *local_20;\n  \n  pcVar1 = strchr(param_1,0x3d);\n  sVar2 = strlen(param_1);\n  if ((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)) {\n    if (*param_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(param_3);\n    iVar5 = iVar5 + sVar2;\n  }\n  else {\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }\n  pcVar1 = (char *)FUN_00066c20(iVar5);\n  FUN_00068ed0(pcVar1,local_20,param_1,param_3);\n  pcVar3 = strchr(pcVar1,0x3d);\n  if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }\n  return pcVar1;\n}" (primitive_type "char") (pointer_declarator "* __regparm3 FUN_00023770(char *param_1,int param_2,char *param_3)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00023770(char *param_1,int param_2,char *param_3)" (identifier "FUN_00023770") (parameter_list "(char *param_1,int param_2,char *param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (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"))) () ")")))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char cVar4;\n  int iVar5;\n  char *local_20;\n  \n  pcVar1 = strchr(param_1,0x3d);\n  sVar2 = strlen(param_1);\n  if ((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)) {\n    if (*param_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(param_3);\n    iVar5 = iVar5 + sVar2;\n  }\n  else {\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }\n  pcVar1 = (char *)FUN_00066c20(iVar5);\n  FUN_00068ed0(pcVar1,local_20,param_1,param_3);\n  pcVar3 = strchr(pcVar1,0x3d);\n  if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }\n  return pcVar1;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "char *local_20;" (primitive_type "char") (pointer_declarator "*local_20" (* "*") (identifier "local_20")) (; ";")) (expression_statement "pcVar1 = strchr(param_1,0x3d);" (assignment_expression "pcVar1 = strchr(param_1,0x3d)" (identifier "pcVar1") (= "=") (call_expression "strchr(param_1,0x3d)" (identifier "strchr") (argument_list "(param_1,0x3d)" (( "(") (identifier "param_1") (, ",") (number_literal "0x3d") () ")")))) (; ";")) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" (identifier "sVar2") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if ((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)) {\n    if (*param_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(param_3);\n    iVar5 = iVar5 + sVar2;\n  }\n  else {\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }" (if "if") (parenthesized_expression "((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0))" (( "(") (binary_expression "(pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)" (parenthesized_expression "(pcVar1 == (char *)0x0)" (( "(") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (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_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }\n    sVar2 = strlen(param_3);\n    iVar5 = iVar5 + sVar2;\n  }" ({ "{") (if_statement "if (*param_3 == '\0') {\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }\n    else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" (if "if") (parenthesized_expression "(*param_3 == '\0')" (( "(") (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      local_20 = "%%define %s";\n      iVar5 = sVar2 + 0xb;\n    }" ({ "{") (expression_statement "local_20 = "%%define %s";" (assignment_expression "local_20 = "%%define %s"" (identifier "local_20") (= "=") (string_literal ""%%define %s"" (" """) (string_content "%%define %s") (" """))) (; ";")) (expression_statement "iVar5 = sVar2 + 0xb;" (assignment_expression "iVar5 = sVar2 + 0xb" (identifier "iVar5") (= "=") (binary_expression "sVar2 + 0xb" (identifier "sVar2") (+ "+") (number_literal "0xb"))) (; ";")) (} "}")) (else_clause "else if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" (else "else") (if_statement "if (param_2 == 0) {\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }\n    else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_20 = "%%define %s {%s}";\n      iVar5 = sVar2 + 0x10;\n    }" ({ "{") (expression_statement "local_20 = "%%define %s {%s}";" (assignment_expression "local_20 = "%%define %s {%s}"" (identifier "local_20") (= "=") (string_literal ""%%define %s {%s}"" (" """) (string_content "%%define %s {%s}") (" """))) (; ";")) (expression_statement "iVar5 = sVar2 + 0x10;" (assignment_expression "iVar5 = sVar2 + 0x10" (identifier "iVar5") (= "=") (binary_expression "sVar2 + 0x10" (identifier "sVar2") (+ "+") (number_literal "0x10"))) (; ";")) (} "}")) (else_clause "else if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" (else "else") (if_statement "if (param_2 == 2) {\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }\n    else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" (if "if") (parenthesized_expression "(param_2 == 2)" (( "(") (binary_expression "param_2 == 2" (identifier "param_2") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      local_20 = "%%define %s \"%s\"";\n      iVar5 = sVar2 + 0x10;\n    }" ({ "{") (expression_statement "local_20 = "%%define %s \"%s\"";" (assignment_expression "local_20 = "%%define %s \"%s\""" (identifier "local_20") (= "=") (string_literal ""%%define %s \"%s\""" (" """) (string_content "%%define %s ") (escape_sequence "\"") (string_content "%s") (escape_sequence "\"") (" """))) (; ";")) (expression_statement "iVar5 = sVar2 + 0x10;" (assignment_expression "iVar5 = sVar2 + 0x10" (identifier "iVar5") (= "=") (binary_expression "sVar2 + 0x10" (identifier "sVar2") (+ "+") (number_literal "0x10"))) (; ";")) (} "}")) (else_clause "else {\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" (else "else") (compound_statement "{\n      local_20 = "%%define %s %s";\n      iVar5 = sVar2 + 0xe;\n    }" ({ "{") (expression_statement "local_20 = "%%define %s %s";" (assignment_expression "local_20 = "%%define %s %s"" (identifier "local_20") (= "=") (string_literal ""%%define %s %s"" (" """) (string_content "%%define %s %s") (" """))) (; ";")) (expression_statement "iVar5 = sVar2 + 0xe;" (assignment_expression "iVar5 = sVar2 + 0xe" (identifier "iVar5") (= "=") (binary_expression "sVar2 + 0xe" (identifier "sVar2") (+ "+") (number_literal "0xe"))) (; ";")) (} "}")))))))) (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" (identifier "sVar2") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "iVar5 = iVar5 + sVar2;" (assignment_expression "iVar5 = iVar5 + sVar2" (identifier "iVar5") (= "=") (binary_expression "iVar5 + sVar2" (identifier "iVar5") (+ "+") (identifier "sVar2"))) (; ";")) (} "}")) (else_clause "else {\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }" (else "else") (compound_statement "{\n    iVar5 = sVar2 + 0xb;\n    local_20 = "%%define %s";\n    if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }\n  }" ({ "{") (expression_statement "iVar5 = sVar2 + 0xb;" (assignment_expression "iVar5 = sVar2 + 0xb" (identifier "iVar5") (= "=") (binary_expression "sVar2 + 0xb" (identifier "sVar2") (+ "+") (number_literal "0xb"))) (; ";")) (expression_statement "local_20 = "%%define %s";" (assignment_expression "local_20 = "%%define %s"" (identifier "local_20") (= "=") (string_literal ""%%define %s"" (" """) (string_content "%%define %s") (" """))) (; ";")) (if_statement "if (param_3 != (char *)0x0) {\n      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\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      sVar2 = strlen(param_3);\n      iVar5 = iVar5 + sVar2;\n    }" ({ "{") (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" (identifier "sVar2") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "iVar5 = iVar5 + sVar2;" (assignment_expression "iVar5 = iVar5 + sVar2" (identifier "iVar5") (= "=") (binary_expression "iVar5 + sVar2" (identifier "iVar5") (+ "+") (identifier "sVar2"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "pcVar1 = (char *)FUN_00066c20(iVar5);" (assignment_expression "pcVar1 = (char *)FUN_00066c20(iVar5)" (identifier "pcVar1") (= "=") (cast_expression "(char *)FUN_00066c20(iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00066c20(iVar5)" (identifier "FUN_00066c20") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")"))))) (; ";")) (expression_statement "FUN_00068ed0(pcVar1,local_20,param_1,param_3);" (call_expression "FUN_00068ed0(pcVar1,local_20,param_1,param_3)" (identifier "FUN_00068ed0") (argument_list "(pcVar1,local_20,param_1,param_3)" (( "(") (identifier "pcVar1") (, ",") (identifier "local_20") (, ",") (identifier "param_1") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "pcVar3 = strchr(pcVar1,0x3d);" (assignment_expression "pcVar3 = strchr(pcVar1,0x3d)" (identifier "pcVar3") (= "=") (call_expression "strchr(pcVar1,0x3d)" (identifier "strchr") (argument_list "(pcVar1,0x3d)" (( "(") (identifier "pcVar1") (, ",") (number_literal "0x3d") () ")")))) (; ";")) (if_statement "if (pcVar3 != (char *)0x0) {\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }" (if "if") (parenthesized_expression "(pcVar3 != (char *)0x0)" (( "(") (binary_expression "pcVar3 != (char *)0x0" (identifier "pcVar3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    cVar4 = pcVar3[1];\n    if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }\n    *pcVar3 = cVar4;\n  }" ({ "{") (expression_statement "cVar4 = pcVar3[1];" (assignment_expression "cVar4 = pcVar3[1]" (identifier "cVar4") (= "=") (subscript_expression "pcVar3[1]" (identifier "pcVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (cVar4 != '\0') {\n      cVar4 = ' ';\n    }" (if "if") (parenthesized_expression "(cVar4 != '\0')" (( "(") (binary_expression "cVar4 != '\0'" (identifier "cVar4") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      cVar4 = ' ';\n    }" ({ "{") (expression_statement "cVar4 = ' ';" (assignment_expression "cVar4 = ' '" (identifier "cVar4") (= "=") (char_literal "' '" (' "'") (character " ") (' "'"))) (; ";")) (} "}"))) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (identifier "cVar4")) (; ";")) (} "}"))) (return_statement "return pcVar1;" (return "return") (identifier "pcVar1") (; ";")) (} "}")))

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

char * __regparm3 function_1(char *assignment,type_1 var_6,char *var_4)

{
  char *var_3;
  size_t var_5;
  char *var_13;
  char var_14;
  int var_9;
  size_t var_10;
  char *local_20;
  
  var_3 = var_1(assignment,0x3d);
  var_5 = var_2(assignment);
  if ((var_3 == (char *)0x0) && (var_4 != (char *)0x0)) {
    if (*var_4 == '\0') {
      local_20 = "%%define %s";
      var_9 = var_5 + 0xb;
    }
    else if (var_6 == var_7) {
      local_20 = "%%define %s {%s}";
      var_9 = var_5 + 0x10;
    }
    else if (var_6 == var_8) {
      local_20 = "%%define %s \"%s\"";
      var_9 = var_5 + 0x10;
    }
    else {
      local_20 = "%%define %s %s";
      var_9 = var_5 + 0xe;
    }
    var_5 = var_2(var_4);
    var_10 = var_9 + var_5;
  }
  else {
    var_10 = var_5 + 0xb;
    local_20 = "%%define %s";
    if (var_4 != (char *)0x0) {
      var_5 = var_2(var_4);
      var_10 = var_10 + var_5;
    }
  }
  var_3 = (char *)var_11(var_10);
  var_12(var_3,local_20,assignment,var_4);
  var_13 = var_1(var_3,0x3d);
  if (var_13 != (char *)0x0) {
    var_14 = var_13[1];
    if (var_14 != '\0') {
      var_14 = ' ';
    }
    *var_13 = var_14;
  }
  return var_3;
}


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

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

char * __regparm3 MASKED(char *param_1,int param_2,char *param_3)

{
  char *pcVar1;
  size_t sVar2;
  char *pcVar3;
  char cVar4;
  int iVar5;
  char *local_20;
  
  pcVar1 = strchr(param_1,0x3d);
  sVar2 = strlen(param_1);
  if ((pcVar1 == (char *)0x0) && (param_3 != (char *)0x0)) {
    if (*param_3 == '\0') {
      local_20 = "%%define %s";
      iVar5 = sVar2 + 0xb;
    }
    else if (param_2 == 0) {
      local_20 = "%%define %s {%s}";
      iVar5 = sVar2 + 0x10;
    }
    else if (param_2 == 2) {
      local_20 = "%%define %s \"%s\"";
      iVar5 = sVar2 + 0x10;
    }
    else {
      local_20 = "%%define %s %s";
      iVar5 = sVar2 + 0xe;
    }
    sVar2 = strlen(param_3);
    iVar5 = iVar5 + sVar2;
  }
  else {
    iVar5 = sVar2 + 0xb;
    local_20 = "%%define %s";
    if (param_3 != (char *)0x0) {
      sVar2 = strlen(param_3);
      iVar5 = iVar5 + sVar2;
    }
  }
  pcVar1 = (char *)FUN_00066c20(iVar5);
  FUN_00068ed0(pcVar1,local_20,param_1,param_3);
  pcVar3 = strchr(pcVar1,0x3d);
  if (pcVar3 != (char *)0x0) {
    cVar4 = pcVar3[1];
    if (cVar4 != '\0') {
      cVar4 = ' ';
    }
    *pcVar3 = cVar4;
  }
  return pcVar1;
}

