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

void x11_free_fake_auth(X11FakeAuth *auth)

{
  uchar *b;
  tree234 *t;
  void *ptr;
  
  b = auth->data;
  if (b != (uchar *)0x0) {
    smemclr(b,auth->datalen);
    b = auth->data;
  }
  safefree(b);
  safefree(auth->protoname);
  safefree(auth->datastring);
  safefree(auth->xa1_firstblock);
  t = auth->xdmseen;
  if (t != (tree234 *)0x0) {
    while (ptr = delpos234(t,0), ptr != (void *)0x0) {
      safefree(ptr);
      t = auth->xdmseen;
    }
    freetree234(auth->xdmseen);
  }
  safefree(auth);
  return;
}



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

void FUN_0006c1c0(int param_1)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 4);
  if (iVar1 != 0) {
    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));
    iVar1 = *(int *)(param_1 + 4);
  }
  FUN_0001d220(iVar1);
  FUN_0001d220(*(undefined4 *)(param_1 + 0xc));
  FUN_0001d220(*(undefined4 *)(param_1 + 0x10));
  FUN_0001d220(*(undefined4 *)(param_1 + 0x14));
  iVar1 = *(int *)(param_1 + 0x18);
  if (iVar1 != 0) {
    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {
      FUN_0001d220(iVar1);
      iVar1 = *(int *)(param_1 + 0x18);
    }
    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));
  }
  FUN_0001d220(param_1);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00015fa0
ADD EBX,0x38ba9
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESI + 0x4]
TEST EAX,EAX
JZ 0x0006c1ed
SUB ESP,0x8
PUSH dword ptr [ESI + 0x8]
PUSH EAX
CALL 0x0001d300
MOV EAX,dword ptr [ESI + 0x4]
ADD ESP,0x10
SUB ESP,0xc
PUSH EAX
CALL 0x0001d220
POP EAX
PUSH dword ptr [ESI + 0xc]
CALL 0x0001d220
POP EDX
PUSH dword ptr [ESI + 0x10]
CALL 0x0001d220
POP ECX
PUSH dword ptr [ESI + 0x14]
CALL 0x0001d220
MOV EAX,dword ptr [ESI + 0x18]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0006c22f
JMP 0x0006c24f
SUB ESP,0xc
PUSH EAX
CALL 0x0001d220
MOV EAX,dword ptr [ESI + 0x18]
ADD ESP,0x10
SUB ESP,0x8
PUSH 0x0
PUSH EAX
CALL 0x00061600
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0006c220
SUB ESP,0xc
PUSH dword ptr [ESI + 0x18]
CALL 0x000612d0
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x0001d220
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0006c1c0(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 != 0) {\n    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));\n    iVar1 = *(int *)(param_1 + 4);\n  }\n  FUN_0001d220(iVar1);\n  FUN_0001d220(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x10));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x14));\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 != 0) {\n    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }\n    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));\n  }\n  FUN_0001d220(param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_0006c1c0(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 != 0) {\n    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));\n    iVar1 = *(int *)(param_1 + 4);\n  }\n  FUN_0001d220(iVar1);\n  FUN_0001d220(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x10));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x14));\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 != 0) {\n    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }\n    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));\n  }\n  FUN_0001d220(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0006c1c0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 != 0) {\n    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));\n    iVar1 = *(int *)(param_1 + 4);\n  }\n  FUN_0001d220(iVar1);\n  FUN_0001d220(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x10));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x14));\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 != 0) {\n    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }\n    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));\n  }\n  FUN_0001d220(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));\n    iVar1 = *(int *)(param_1 + 4);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));\n    iVar1 = *(int *)(param_1 + 4);\n  }" { (expression_statement "FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));" (call_expression "FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8))" identifier (argument_list "(iVar1,*(undefined4 *)(param_1 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_0001d220(iVar1);" (call_expression "FUN_0001d220(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_0001d220(*(undefined4 *)(param_1 + 0xc));" (call_expression "FUN_0001d220(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0001d220(*(undefined4 *)(param_1 + 0x10));" (call_expression "FUN_0001d220(*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0001d220(*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_0001d220(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }\n    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }\n    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));\n  }" { (while_statement "while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }" while (parenthesized_expression "(iVar1 = FUN_00061600(iVar1,0), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00061600(iVar1,0), iVar1 != 0" (assignment_expression "iVar1 = FUN_00061600(iVar1,0)" identifier = (call_expression "FUN_00061600(iVar1,0)" identifier (argument_list "(iVar1,0)" ( identifier , number_literal )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) )) (compound_statement "{\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }" { (expression_statement "FUN_0001d220(iVar1);" (call_expression "FUN_0001d220(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_000612d0(*(undefined4 *)(param_1 + 0x18));" (call_expression "FUN_000612d0(*(undefined4 *)(param_1 + 0x18))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ))) ;) })) (expression_statement "FUN_0001d220(param_1);" (call_expression "FUN_0001d220(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid x11_free_fake_auth(X11FakeAuth *auth)\n\n{\n  uchar *b;\n  tree234 *t;\n  void *ptr;\n  \n  b = auth->data;\n  if (b != (uchar *)0x0) {\n    smemclr(b,auth->datalen);\n    b = auth->data;\n  }\n  safefree(b);\n  safefree(auth->protoname);\n  safefree(auth->datastring);\n  safefree(auth->xa1_firstblock);\n  t = auth->xdmseen;\n  if (t != (tree234 *)0x0) {\n    while (ptr = delpos234(t,0), ptr != (void *)0x0) {\n      safefree(ptr);\n      t = auth->xdmseen;\n    }\n    freetree234(auth->xdmseen);\n  }\n  safefree(auth);\n  return;\n}\n\n" comment comment comment (function_definition "void x11_free_fake_auth(X11FakeAuth *auth)\n\n{\n  uchar *b;\n  tree234 *t;\n  void *ptr;\n  \n  b = auth->data;\n  if (b != (uchar *)0x0) {\n    smemclr(b,auth->datalen);\n    b = auth->data;\n  }\n  safefree(b);\n  safefree(auth->protoname);\n  safefree(auth->datastring);\n  safefree(auth->xa1_firstblock);\n  t = auth->xdmseen;\n  if (t != (tree234 *)0x0) {\n    while (ptr = delpos234(t,0), ptr != (void *)0x0) {\n      safefree(ptr);\n      t = auth->xdmseen;\n    }\n    freetree234(auth->xdmseen);\n  }\n  safefree(auth);\n  return;\n}" primitive_type (function_declarator "x11_free_fake_auth(X11FakeAuth *auth)" identifier (parameter_list "(X11FakeAuth *auth)" ( (parameter_declaration "X11FakeAuth *auth" type_identifier (pointer_declarator "*auth" * identifier)) ))) (compound_statement "{\n  uchar *b;\n  tree234 *t;\n  void *ptr;\n  \n  b = auth->data;\n  if (b != (uchar *)0x0) {\n    smemclr(b,auth->datalen);\n    b = auth->data;\n  }\n  safefree(b);\n  safefree(auth->protoname);\n  safefree(auth->datastring);\n  safefree(auth->xa1_firstblock);\n  t = auth->xdmseen;\n  if (t != (tree234 *)0x0) {\n    while (ptr = delpos234(t,0), ptr != (void *)0x0) {\n      safefree(ptr);\n      t = auth->xdmseen;\n    }\n    freetree234(auth->xdmseen);\n  }\n  safefree(auth);\n  return;\n}" { (declaration "uchar *b;" type_identifier (pointer_declarator "*b" * identifier) ;) (declaration "tree234 *t;" type_identifier (pointer_declarator "*t" * identifier) ;) (declaration "void *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) (expression_statement "b = auth->data;" (assignment_expression "b = auth->data" identifier = (field_expression "auth->data" identifier -> field_identifier)) ;) (if_statement "if (b != (uchar *)0x0) {\n    smemclr(b,auth->datalen);\n    b = auth->data;\n  }" if (parenthesized_expression "(b != (uchar *)0x0)" ( (binary_expression "b != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    smemclr(b,auth->datalen);\n    b = auth->data;\n  }" { (expression_statement "smemclr(b,auth->datalen);" (call_expression "smemclr(b,auth->datalen)" identifier (argument_list "(b,auth->datalen)" ( identifier , (field_expression "auth->datalen" identifier -> field_identifier) ))) ;) (expression_statement "b = auth->data;" (assignment_expression "b = auth->data" identifier = (field_expression "auth->data" identifier -> field_identifier)) ;) })) (expression_statement "safefree(b);" (call_expression "safefree(b)" identifier (argument_list "(b)" ( identifier ))) ;) (expression_statement "safefree(auth->protoname);" (call_expression "safefree(auth->protoname)" identifier (argument_list "(auth->protoname)" ( (field_expression "auth->protoname" identifier -> field_identifier) ))) ;) (expression_statement "safefree(auth->datastring);" (call_expression "safefree(auth->datastring)" identifier (argument_list "(auth->datastring)" ( (field_expression "auth->datastring" identifier -> field_identifier) ))) ;) (expression_statement "safefree(auth->xa1_firstblock);" (call_expression "safefree(auth->xa1_firstblock)" identifier (argument_list "(auth->xa1_firstblock)" ( (field_expression "auth->xa1_firstblock" identifier -> field_identifier) ))) ;) (expression_statement "t = auth->xdmseen;" (assignment_expression "t = auth->xdmseen" identifier = (field_expression "auth->xdmseen" identifier -> field_identifier)) ;) (if_statement "if (t != (tree234 *)0x0) {\n    while (ptr = delpos234(t,0), ptr != (void *)0x0) {\n      safefree(ptr);\n      t = auth->xdmseen;\n    }\n    freetree234(auth->xdmseen);\n  }" if (parenthesized_expression "(t != (tree234 *)0x0)" ( (binary_expression "t != (tree234 *)0x0" identifier != (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    while (ptr = delpos234(t,0), ptr != (void *)0x0) {\n      safefree(ptr);\n      t = auth->xdmseen;\n    }\n    freetree234(auth->xdmseen);\n  }" { (while_statement "while (ptr = delpos234(t,0), ptr != (void *)0x0) {\n      safefree(ptr);\n      t = auth->xdmseen;\n    }" while (parenthesized_expression "(ptr = delpos234(t,0), ptr != (void *)0x0)" ( (comma_expression "ptr = delpos234(t,0), ptr != (void *)0x0" (assignment_expression "ptr = delpos234(t,0)" identifier = (call_expression "delpos234(t,0)" identifier (argument_list "(t,0)" ( identifier , number_literal )))) , (binary_expression "ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      safefree(ptr);\n      t = auth->xdmseen;\n    }" { (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (expression_statement "t = auth->xdmseen;" (assignment_expression "t = auth->xdmseen" identifier = (field_expression "auth->xdmseen" identifier -> field_identifier)) ;) })) (expression_statement "freetree234(auth->xdmseen);" (call_expression "freetree234(auth->xdmseen)" identifier (argument_list "(auth->xdmseen)" ( (field_expression "auth->xdmseen" identifier -> field_identifier) ))) ;) })) (expression_statement "safefree(auth);" (call_expression "safefree(auth)" identifier (argument_list "(auth)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0006c1c0(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 != 0) {\n    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));\n    iVar1 = *(int *)(param_1 + 4);\n  }\n  FUN_0001d220(iVar1);\n  FUN_0001d220(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x10));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x14));\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 != 0) {\n    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }\n    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));\n  }\n  FUN_0001d220(param_1);\n  return;\n}\n\n" (function_definition "void FUN_0006c1c0(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 != 0) {\n    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));\n    iVar1 = *(int *)(param_1 + 4);\n  }\n  FUN_0001d220(iVar1);\n  FUN_0001d220(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x10));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x14));\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 != 0) {\n    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }\n    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));\n  }\n  FUN_0001d220(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0006c1c0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 != 0) {\n    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));\n    iVar1 = *(int *)(param_1 + 4);\n  }\n  FUN_0001d220(iVar1);\n  FUN_0001d220(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x10));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x14));\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 != 0) {\n    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }\n    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));\n  }\n  FUN_0001d220(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));\n    iVar1 = *(int *)(param_1 + 4);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));\n    iVar1 = *(int *)(param_1 + 4);\n  }" { (expression_statement "FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));" (call_expression "FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8))" identifier (argument_list "(iVar1,*(undefined4 *)(param_1 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_0001d220(iVar1);" (call_expression "FUN_0001d220(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_0001d220(*(undefined4 *)(param_1 + 0xc));" (call_expression "FUN_0001d220(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0001d220(*(undefined4 *)(param_1 + 0x10));" (call_expression "FUN_0001d220(*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0001d220(*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_0001d220(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }\n    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }\n    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));\n  }" { (while_statement "while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }" while (parenthesized_expression "(iVar1 = FUN_00061600(iVar1,0), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00061600(iVar1,0), iVar1 != 0" (assignment_expression "iVar1 = FUN_00061600(iVar1,0)" identifier = (call_expression "FUN_00061600(iVar1,0)" identifier (argument_list "(iVar1,0)" ( identifier , number_literal )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) )) (compound_statement "{\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }" { (expression_statement "FUN_0001d220(iVar1);" (call_expression "FUN_0001d220(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_000612d0(*(undefined4 *)(param_1 + 0x18));" (call_expression "FUN_000612d0(*(undefined4 *)(param_1 + 0x18))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ))) ;) })) (expression_statement "FUN_0001d220(param_1);" (call_expression "FUN_0001d220(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0006c1c0(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 != 0) {\n    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));\n    iVar1 = *(int *)(param_1 + 4);\n  }\n  FUN_0001d220(iVar1);\n  FUN_0001d220(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x10));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x14));\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 != 0) {\n    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }\n    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));\n  }\n  FUN_0001d220(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0006c1c0(int param_1)" (identifier "FUN_0006c1c0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 != 0) {\n    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));\n    iVar1 = *(int *)(param_1 + 4);\n  }\n  FUN_0001d220(iVar1);\n  FUN_0001d220(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x10));\n  FUN_0001d220(*(undefined4 *)(param_1 + 0x14));\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (iVar1 != 0) {\n    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }\n    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));\n  }\n  FUN_0001d220(param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));\n    iVar1 = *(int *)(param_1 + 4);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));\n    iVar1 = *(int *)(param_1 + 4);\n  }" ({ "{") (expression_statement "FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));" (call_expression "FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8))" (identifier "FUN_0001d300") (argument_list "(iVar1,*(undefined4 *)(param_1 + 8))" (( "(") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (expression_statement "FUN_0001d220(iVar1);" (call_expression "FUN_0001d220(iVar1)" (identifier "FUN_0001d220") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "FUN_0001d220(*(undefined4 *)(param_1 + 0xc));" (call_expression "FUN_0001d220(*(undefined4 *)(param_1 + 0xc))" (identifier "FUN_0001d220") (argument_list "(*(undefined4 *)(param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_0001d220(*(undefined4 *)(param_1 + 0x10));" (call_expression "FUN_0001d220(*(undefined4 *)(param_1 + 0x10))" (identifier "FUN_0001d220") (argument_list "(*(undefined4 *)(param_1 + 0x10))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_0001d220(*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_0001d220(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_0001d220") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }\n    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }\n    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));\n  }" ({ "{") (while_statement "while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }" (while "while") (parenthesized_expression "(iVar1 = FUN_00061600(iVar1,0), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_00061600(iVar1,0), iVar1 != 0" (assignment_expression "iVar1 = FUN_00061600(iVar1,0)" (identifier "iVar1") (= "=") (call_expression "FUN_00061600(iVar1,0)" (identifier "FUN_00061600") (argument_list "(iVar1,0)" (( "(") (identifier "iVar1") (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n      FUN_0001d220(iVar1);\n      iVar1 = *(int *)(param_1 + 0x18);\n    }" ({ "{") (expression_statement "FUN_0001d220(iVar1);" (call_expression "FUN_0001d220(iVar1)" (identifier "FUN_0001d220") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}"))) (expression_statement "FUN_000612d0(*(undefined4 *)(param_1 + 0x18));" (call_expression "FUN_000612d0(*(undefined4 *)(param_1 + 0x18))" (identifier "FUN_000612d0") (argument_list "(*(undefined4 *)(param_1 + 0x18))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0001d220(param_1);" (call_expression "FUN_0001d220(param_1)" (identifier "FUN_0001d220") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *auth)

{
  type_2 *var_1;
  type_3 *var_4;
  void *var_6;
  
  var_1 = auth->data;
  if (var_1 != (type_2 *)0x0) {
    var_2(var_1,auth->datalen);
    var_1 = auth->data;
  }
  var_3(var_1);
  var_3(auth->protoname);
  var_3(auth->datastring);
  var_3(auth->xa1_firstblock);
  var_4 = auth->xdmseen;
  if (var_4 != (type_3 *)0x0) {
    while (var_6 = var_5(var_4,0), var_6 != (void *)0x0) {
      var_3(var_6);
      var_4 = auth->xdmseen;
    }
    var_7(auth->xdmseen);
  }
  var_3(auth);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

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

void MASKED(int param_1)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 4);
  if (iVar1 != 0) {
    FUN_0001d300(iVar1,*(undefined4 *)(param_1 + 8));
    iVar1 = *(int *)(param_1 + 4);
  }
  FUN_0001d220(iVar1);
  FUN_0001d220(*(undefined4 *)(param_1 + 0xc));
  FUN_0001d220(*(undefined4 *)(param_1 + 0x10));
  FUN_0001d220(*(undefined4 *)(param_1 + 0x14));
  iVar1 = *(int *)(param_1 + 0x18);
  if (iVar1 != 0) {
    while (iVar1 = FUN_00061600(iVar1,0), iVar1 != 0) {
      FUN_0001d220(iVar1);
      iVar1 = *(int *)(param_1 + 0x18);
    }
    FUN_000612d0(*(undefined4 *)(param_1 + 0x18));
  }
  FUN_0001d220(param_1);
  return;
}

