
void add_probe(char *name)

{
  llist_t **list_head;
  char *pcVar1;
  module_entry *data;
  int unaff_EDI;
  module_db *in_stack_ffffffe4;
  char *in_stack_ffffffe8;
  
  pcVar1 = (char *)__x86_get_pc_thunk_di();
  list_head = *(llist_t ***)(run + unaff_EDI + 7);
  data = moddb_get_or_create(in_stack_ffffffe4,in_stack_ffffffe8);
  if ((((&DAT_000a464e)[unaff_EDI] & 0x60) != 0) || ((data->flags & 0x11) == 0)) {
    data->probed_name = pcVar1;
    data->flags = data->flags | 2;
    llist_add_to_end(list_head,data);
    list_head[2] = (llist_t *)((int)&list_head[2]->link + 1);
    pcVar1 = is_prefixed_with(data->modname,&UNK_00097ed6 + unaff_EDI);
    if (pcVar1 != (char *)0x0) {
      *(undefined1 *)(list_head + 3) = 1;
      return;
    }
  }
  return;
}



void FUN_0002d0c2(void)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int unaff_EDI;
  
  uVar3 = FUN_00026ff3();
  iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7);
  iVar4 = FUN_0002dd03();
  if (((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)) {
    *(undefined4 *)(iVar4 + 0x18) = uVar3;
    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;
    FUN_00018d20();
    piVar1 = (int *)(iVar2 + 8);
    *piVar1 = *piVar1 + 1;
    iVar4 = FUN_00018a40();
    if (iVar4 != 0) {
      *(undefined1 *)(iVar2 + 0xc) = 1;
      return;
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0xc
CALL 0x00026ff3
ADD EDI,0xa3952
MOV EBP,EAX
MOV ESI,dword ptr [EDI + 0xce0]
LEA EAX,[ESI + 0x194]
MOV EDX,EBP
CALL 0x0002dd03
MOV EBX,EAX
MOV EAX,dword ptr [EAX + 0x14]
TEST byte ptr [EDI + 0xcfc],0x60
JNZ 0x0002d103
TEST AL,0x11
JZ 0x0002d103
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EBX + 0x18],EBP
OR EAX,0x2
MOV dword ptr [EBX + 0x14],EAX
MOV EDX,EBX
MOV EAX,ESI
CALL 0x00018d20
INC dword ptr [ESI + 0x8]
MOV EAX,dword ptr [EBX + 0x8]
LEA EDX,[EDI + 0xffff4584]
CALL 0x00018a40
TEST EAX,EAX
JZ 0x0002d0fb
MOV byte ptr [ESI + 0xc],0x1
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void FUN_0002d0c2(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  uVar3 = FUN_00026ff3();\n  iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7);\n  iVar4 = FUN_0002dd03();\n  if (((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)) {\n    *(undefined4 *)(iVar4 + 0x18) = uVar3;\n    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;\n    FUN_00018d20();\n    piVar1 = (int *)(iVar2 + 8);\n    *piVar1 = *piVar1 + 1;\n    iVar4 = FUN_00018a40();\n    if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002d0c2(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  uVar3 = FUN_00026ff3();\n  iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7);\n  iVar4 = FUN_0002dd03();\n  if (((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)) {\n    *(undefined4 *)(iVar4 + 0x18) = uVar3;\n    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;\n    FUN_00018d20();\n    piVar1 = (int *)(iVar2 + 8);\n    *piVar1 = *piVar1 + 1;\n    iVar4 = FUN_00018a40();\n    if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002d0c2(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  uVar3 = FUN_00026ff3();\n  iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7);\n  iVar4 = FUN_0002dd03();\n  if (((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)) {\n    *(undefined4 *)(iVar4 + 0x18) = uVar3;\n    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;\n    FUN_00018d20();\n    piVar1 = (int *)(iVar2 + 8);\n    *piVar1 = *piVar1 + 1;\n    iVar4 = FUN_00018a40();\n    if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "uVar3 = FUN_00026ff3();" (assignment_expression "uVar3 = FUN_00026ff3()" identifier = (call_expression "FUN_00026ff3()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7);" (assignment_expression "iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7)" identifier = (pointer_expression "*(int *)(FUN_000a462b + unaff_EDI + 7)" * (cast_expression "(int *)(FUN_000a462b + unaff_EDI + 7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(FUN_000a462b + unaff_EDI + 7)" ( (binary_expression "FUN_000a462b + unaff_EDI + 7" (binary_expression "FUN_000a462b + unaff_EDI" identifier + identifier) + number_literal) ))))) ;) (expression_statement "iVar4 = FUN_0002dd03();" (assignment_expression "iVar4 = FUN_0002dd03()" identifier = (call_expression "FUN_0002dd03()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)) {\n    *(undefined4 *)(iVar4 + 0x18) = uVar3;\n    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;\n    FUN_00018d20();\n    piVar1 = (int *)(iVar2 + 8);\n    *piVar1 = *piVar1 + 1;\n    iVar4 = FUN_00018a40();\n    if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }\n  }" if (parenthesized_expression "(((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0))" ( (binary_expression "((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)" (parenthesized_expression "((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0)" ( (binary_expression "(*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0" (parenthesized_expression "(*(byte *)(unaff_EDI + 0xa464e) & 0x60)" ( (binary_expression "*(byte *)(unaff_EDI + 0xa464e) & 0x60" (pointer_expression "*(byte *)(unaff_EDI + 0xa464e)" * (cast_expression "(byte *)(unaff_EDI + 0xa464e)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa464e)" ( (binary_expression "unaff_EDI + 0xa464e" identifier + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "((*(uint *)(iVar4 + 0x14) & 0x11) == 0)" ( (binary_expression "(*(uint *)(iVar4 + 0x14) & 0x11) == 0" (parenthesized_expression "(*(uint *)(iVar4 + 0x14) & 0x11)" ( (binary_expression "*(uint *)(iVar4 + 0x14) & 0x11" (pointer_expression "*(uint *)(iVar4 + 0x14)" * (cast_expression "(uint *)(iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    *(undefined4 *)(iVar4 + 0x18) = uVar3;\n    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;\n    FUN_00018d20();\n    piVar1 = (int *)(iVar2 + 8);\n    *piVar1 = *piVar1 + 1;\n    iVar4 = FUN_00018a40();\n    if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }\n  }" { (expression_statement "*(undefined4 *)(iVar4 + 0x18) = uVar3;" (assignment_expression "*(undefined4 *)(iVar4 + 0x18) = uVar3" (pointer_expression "*(undefined4 *)(iVar4 + 0x18)" * (cast_expression "(undefined4 *)(iVar4 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;" (assignment_expression "*(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2" (pointer_expression "*(uint *)(iVar4 + 0x14)" * (cast_expression "(uint *)(iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar4 + 0x14) | 2" (pointer_expression "*(uint *)(iVar4 + 0x14)" * (cast_expression "(uint *)(iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "FUN_00018d20();" (call_expression "FUN_00018d20()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(iVar2 + 8);" (assignment_expression "piVar1 = (int *)(iVar2 + 8)" identifier = (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "iVar4 = FUN_00018a40();" (assignment_expression "iVar4 = FUN_00018a40()" identifier = (call_expression "FUN_00018a40()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }" { (expression_statement "*(undefined1 *)(iVar2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(iVar2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(iVar2 + 0xc)" * (cast_expression "(undefined1 *)(iVar2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void add_probe(char *name)\n\n{\n  llist_t **list_head;\n  char *pcVar1;\n  module_entry *data;\n  int unaff_EDI;\n  module_db *in_stack_ffffffe4;\n  char *in_stack_ffffffe8;\n  \n  pcVar1 = (char *)__x86_get_pc_thunk_di();\n  list_head = *(llist_t ***)(run + unaff_EDI + 7);\n  data = moddb_get_or_create(in_stack_ffffffe4,in_stack_ffffffe8);\n  if ((((&DAT_000a464e)[unaff_EDI] & 0x60) != 0) || ((data->flags & 0x11) == 0)) {\n    data->probed_name = pcVar1;\n    data->flags = data->flags | 2;\n    llist_add_to_end(list_head,data);\n    list_head[2] = (llist_t *)((int)&list_head[2]->link + 1);\n    pcVar1 = is_prefixed_with(data->modname,&UNK_00097ed6 + unaff_EDI);\n    if (pcVar1 != (char *)0x0) {\n      *(undefined1 *)(list_head + 3) = 1;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void add_probe(char *name)\n\n{\n  llist_t **list_head;\n  char *pcVar1;\n  module_entry *data;\n  int unaff_EDI;\n  module_db *in_stack_ffffffe4;\n  char *in_stack_ffffffe8;\n  \n  pcVar1 = (char *)__x86_get_pc_thunk_di();\n  list_head = *(llist_t ***)(run + unaff_EDI + 7);\n  data = moddb_get_or_create(in_stack_ffffffe4,in_stack_ffffffe8);\n  if ((((&DAT_000a464e)[unaff_EDI] & 0x60) != 0) || ((data->flags & 0x11) == 0)) {\n    data->probed_name = pcVar1;\n    data->flags = data->flags | 2;\n    llist_add_to_end(list_head,data);\n    list_head[2] = (llist_t *)((int)&list_head[2]->link + 1);\n    pcVar1 = is_prefixed_with(data->modname,&UNK_00097ed6 + unaff_EDI);\n    if (pcVar1 != (char *)0x0) {\n      *(undefined1 *)(list_head + 3) = 1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "add_probe(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  llist_t **list_head;\n  char *pcVar1;\n  module_entry *data;\n  int unaff_EDI;\n  module_db *in_stack_ffffffe4;\n  char *in_stack_ffffffe8;\n  \n  pcVar1 = (char *)__x86_get_pc_thunk_di();\n  list_head = *(llist_t ***)(run + unaff_EDI + 7);\n  data = moddb_get_or_create(in_stack_ffffffe4,in_stack_ffffffe8);\n  if ((((&DAT_000a464e)[unaff_EDI] & 0x60) != 0) || ((data->flags & 0x11) == 0)) {\n    data->probed_name = pcVar1;\n    data->flags = data->flags | 2;\n    llist_add_to_end(list_head,data);\n    list_head[2] = (llist_t *)((int)&list_head[2]->link + 1);\n    pcVar1 = is_prefixed_with(data->modname,&UNK_00097ed6 + unaff_EDI);\n    if (pcVar1 != (char *)0x0) {\n      *(undefined1 *)(list_head + 3) = 1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "llist_t **list_head;" type_identifier (pointer_declarator "**list_head" * (pointer_declarator "*list_head" * identifier)) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "module_entry *data;" type_identifier (pointer_declarator "*data" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "module_db *in_stack_ffffffe4;" type_identifier (pointer_declarator "*in_stack_ffffffe4" * identifier) ;) (declaration "char *in_stack_ffffffe8;" primitive_type (pointer_declarator "*in_stack_ffffffe8" * identifier) ;) (expression_statement "pcVar1 = (char *)__x86_get_pc_thunk_di();" (assignment_expression "pcVar1 = (char *)__x86_get_pc_thunk_di()" identifier = (cast_expression "(char *)__x86_get_pc_thunk_di()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))))) ;) (expression_statement "list_head = *(llist_t ***)(run + unaff_EDI + 7);" (assignment_expression "list_head = *(llist_t ***)(run + unaff_EDI + 7)" identifier = (pointer_expression "*(llist_t ***)(run + unaff_EDI + 7)" * (cast_expression "(llist_t ***)(run + unaff_EDI + 7)" ( (type_descriptor "llist_t ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(run + unaff_EDI + 7)" ( (binary_expression "run + unaff_EDI + 7" (binary_expression "run + unaff_EDI" identifier + identifier) + number_literal) ))))) ;) (expression_statement "data = moddb_get_or_create(in_stack_ffffffe4,in_stack_ffffffe8);" (assignment_expression "data = moddb_get_or_create(in_stack_ffffffe4,in_stack_ffffffe8)" identifier = (call_expression "moddb_get_or_create(in_stack_ffffffe4,in_stack_ffffffe8)" identifier (argument_list "(in_stack_ffffffe4,in_stack_ffffffe8)" ( identifier , identifier )))) ;) (if_statement "if ((((&DAT_000a464e)[unaff_EDI] & 0x60) != 0) || ((data->flags & 0x11) == 0)) {\n    data->probed_name = pcVar1;\n    data->flags = data->flags | 2;\n    llist_add_to_end(list_head,data);\n    list_head[2] = (llist_t *)((int)&list_head[2]->link + 1);\n    pcVar1 = is_prefixed_with(data->modname,&UNK_00097ed6 + unaff_EDI);\n    if (pcVar1 != (char *)0x0) {\n      *(undefined1 *)(list_head + 3) = 1;\n      return;\n    }\n  }" if (parenthesized_expression "((((&DAT_000a464e)[unaff_EDI] & 0x60) != 0) || ((data->flags & 0x11) == 0))" ( (binary_expression "(((&DAT_000a464e)[unaff_EDI] & 0x60) != 0) || ((data->flags & 0x11) == 0)" (parenthesized_expression "(((&DAT_000a464e)[unaff_EDI] & 0x60) != 0)" ( (binary_expression "((&DAT_000a464e)[unaff_EDI] & 0x60) != 0" (parenthesized_expression "((&DAT_000a464e)[unaff_EDI] & 0x60)" ( (binary_expression "(&DAT_000a464e)[unaff_EDI] & 0x60" (subscript_expression "(&DAT_000a464e)[unaff_EDI]" (parenthesized_expression "(&DAT_000a464e)" ( (pointer_expression "&DAT_000a464e" & identifier) )) [ identifier ]) & number_literal) )) != number_literal) )) || (parenthesized_expression "((data->flags & 0x11) == 0)" ( (binary_expression "(data->flags & 0x11) == 0" (parenthesized_expression "(data->flags & 0x11)" ( (binary_expression "data->flags & 0x11" (field_expression "data->flags" identifier -> field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    data->probed_name = pcVar1;\n    data->flags = data->flags | 2;\n    llist_add_to_end(list_head,data);\n    list_head[2] = (llist_t *)((int)&list_head[2]->link + 1);\n    pcVar1 = is_prefixed_with(data->modname,&UNK_00097ed6 + unaff_EDI);\n    if (pcVar1 != (char *)0x0) {\n      *(undefined1 *)(list_head + 3) = 1;\n      return;\n    }\n  }" { (expression_statement "data->probed_name = pcVar1;" (assignment_expression "data->probed_name = pcVar1" (field_expression "data->probed_name" identifier -> field_identifier) = identifier) ;) (expression_statement "data->flags = data->flags | 2;" (assignment_expression "data->flags = data->flags | 2" (field_expression "data->flags" identifier -> field_identifier) = (binary_expression "data->flags | 2" (field_expression "data->flags" identifier -> field_identifier) | number_literal)) ;) (expression_statement "llist_add_to_end(list_head,data);" (call_expression "llist_add_to_end(list_head,data)" identifier (argument_list "(list_head,data)" ( identifier , identifier ))) ;) (expression_statement "list_head[2] = (llist_t *)((int)&list_head[2]->link + 1);" (assignment_expression "list_head[2] = (llist_t *)((int)&list_head[2]->link + 1)" (subscript_expression "list_head[2]" identifier [ number_literal ]) = (cast_expression "(llist_t *)((int)&list_head[2]->link + 1)" ( (type_descriptor "llist_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&list_head[2]->link + 1)" ( (binary_expression "(int)&list_head[2]->link + 1" (cast_expression "(int)&list_head[2]->link" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&list_head[2]->link" & (field_expression "list_head[2]->link" (subscript_expression "list_head[2]" identifier [ number_literal ]) -> field_identifier))) + number_literal) )))) ;) (expression_statement "pcVar1 = is_prefixed_with(data->modname,&UNK_00097ed6 + unaff_EDI);" (assignment_expression "pcVar1 = is_prefixed_with(data->modname,&UNK_00097ed6 + unaff_EDI)" identifier = (call_expression "is_prefixed_with(data->modname,&UNK_00097ed6 + unaff_EDI)" identifier (argument_list "(data->modname,&UNK_00097ed6 + unaff_EDI)" ( (field_expression "data->modname" identifier -> field_identifier) , (binary_expression "&UNK_00097ed6 + unaff_EDI" (pointer_expression "&UNK_00097ed6" & identifier) + identifier) )))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n      *(undefined1 *)(list_head + 3) = 1;\n      return;\n    }" if (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)) )) (compound_statement "{\n      *(undefined1 *)(list_head + 3) = 1;\n      return;\n    }" { (expression_statement "*(undefined1 *)(list_head + 3) = 1;" (assignment_expression "*(undefined1 *)(list_head + 3) = 1" (pointer_expression "*(undefined1 *)(list_head + 3)" * (cast_expression "(undefined1 *)(list_head + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(list_head + 3)" ( (binary_expression "list_head + 3" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002d0c2(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  uVar3 = FUN_00026ff3();\n  iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7);\n  iVar4 = FUN_0002dd03();\n  if (((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)) {\n    *(undefined4 *)(iVar4 + 0x18) = uVar3;\n    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;\n    FUN_00018d20();\n    piVar1 = (int *)(iVar2 + 8);\n    *piVar1 = *piVar1 + 1;\n    iVar4 = FUN_00018a40();\n    if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002d0c2(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  uVar3 = FUN_00026ff3();\n  iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7);\n  iVar4 = FUN_0002dd03();\n  if (((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)) {\n    *(undefined4 *)(iVar4 + 0x18) = uVar3;\n    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;\n    FUN_00018d20();\n    piVar1 = (int *)(iVar2 + 8);\n    *piVar1 = *piVar1 + 1;\n    iVar4 = FUN_00018a40();\n    if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002d0c2(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  uVar3 = FUN_00026ff3();\n  iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7);\n  iVar4 = FUN_0002dd03();\n  if (((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)) {\n    *(undefined4 *)(iVar4 + 0x18) = uVar3;\n    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;\n    FUN_00018d20();\n    piVar1 = (int *)(iVar2 + 8);\n    *piVar1 = *piVar1 + 1;\n    iVar4 = FUN_00018a40();\n    if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "uVar3 = FUN_00026ff3();" (assignment_expression "uVar3 = FUN_00026ff3()" identifier = (call_expression "FUN_00026ff3()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7);" (assignment_expression "iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7)" identifier = (pointer_expression "*(int *)(FUN_000a462b + unaff_EDI + 7)" * (cast_expression "(int *)(FUN_000a462b + unaff_EDI + 7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(FUN_000a462b + unaff_EDI + 7)" ( (binary_expression "FUN_000a462b + unaff_EDI + 7" (binary_expression "FUN_000a462b + unaff_EDI" identifier + identifier) + number_literal) ))))) ;) (expression_statement "iVar4 = FUN_0002dd03();" (assignment_expression "iVar4 = FUN_0002dd03()" identifier = (call_expression "FUN_0002dd03()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)) {\n    *(undefined4 *)(iVar4 + 0x18) = uVar3;\n    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;\n    FUN_00018d20();\n    piVar1 = (int *)(iVar2 + 8);\n    *piVar1 = *piVar1 + 1;\n    iVar4 = FUN_00018a40();\n    if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }\n  }" if (parenthesized_expression "(((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0))" ( (binary_expression "((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)" (parenthesized_expression "((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0)" ( (binary_expression "(*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0" (parenthesized_expression "(*(byte *)(unaff_EDI + 0xa464e) & 0x60)" ( (binary_expression "*(byte *)(unaff_EDI + 0xa464e) & 0x60" (pointer_expression "*(byte *)(unaff_EDI + 0xa464e)" * (cast_expression "(byte *)(unaff_EDI + 0xa464e)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xa464e)" ( (binary_expression "unaff_EDI + 0xa464e" identifier + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "((*(uint *)(iVar4 + 0x14) & 0x11) == 0)" ( (binary_expression "(*(uint *)(iVar4 + 0x14) & 0x11) == 0" (parenthesized_expression "(*(uint *)(iVar4 + 0x14) & 0x11)" ( (binary_expression "*(uint *)(iVar4 + 0x14) & 0x11" (pointer_expression "*(uint *)(iVar4 + 0x14)" * (cast_expression "(uint *)(iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    *(undefined4 *)(iVar4 + 0x18) = uVar3;\n    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;\n    FUN_00018d20();\n    piVar1 = (int *)(iVar2 + 8);\n    *piVar1 = *piVar1 + 1;\n    iVar4 = FUN_00018a40();\n    if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }\n  }" { (expression_statement "*(undefined4 *)(iVar4 + 0x18) = uVar3;" (assignment_expression "*(undefined4 *)(iVar4 + 0x18) = uVar3" (pointer_expression "*(undefined4 *)(iVar4 + 0x18)" * (cast_expression "(undefined4 *)(iVar4 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;" (assignment_expression "*(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2" (pointer_expression "*(uint *)(iVar4 + 0x14)" * (cast_expression "(uint *)(iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar4 + 0x14) | 2" (pointer_expression "*(uint *)(iVar4 + 0x14)" * (cast_expression "(uint *)(iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "FUN_00018d20();" (call_expression "FUN_00018d20()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(iVar2 + 8);" (assignment_expression "piVar1 = (int *)(iVar2 + 8)" identifier = (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "iVar4 = FUN_00018a40();" (assignment_expression "iVar4 = FUN_00018a40()" identifier = (call_expression "FUN_00018a40()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }" { (expression_statement "*(undefined1 *)(iVar2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(iVar2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(iVar2 + 0xc)" * (cast_expression "(undefined1 *)(iVar2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_0002d0c2(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  uVar3 = FUN_00026ff3();\n  iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7);\n  iVar4 = FUN_0002dd03();\n  if (((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)) {\n    *(undefined4 *)(iVar4 + 0x18) = uVar3;\n    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;\n    FUN_00018d20();\n    piVar1 = (int *)(iVar2 + 8);\n    *piVar1 = *piVar1 + 1;\n    iVar4 = FUN_00018a40();\n    if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002d0c2(void)" (identifier "FUN_0002d0c2") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  uVar3 = FUN_00026ff3();\n  iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7);\n  iVar4 = FUN_0002dd03();\n  if (((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)) {\n    *(undefined4 *)(iVar4 + 0x18) = uVar3;\n    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;\n    FUN_00018d20();\n    piVar1 = (int *)(iVar2 + 8);\n    *piVar1 = *piVar1 + 1;\n    iVar4 = FUN_00018a40();\n    if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "uVar3 = FUN_00026ff3();" (assignment_expression "uVar3 = FUN_00026ff3()" (identifier "uVar3") (= "=") (call_expression "FUN_00026ff3()" (identifier "FUN_00026ff3") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7);" (assignment_expression "iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(FUN_000a462b + unaff_EDI + 7)" (* "*") (cast_expression "(int *)(FUN_000a462b + unaff_EDI + 7)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(FUN_000a462b + unaff_EDI + 7)" (( "(") (binary_expression "FUN_000a462b + unaff_EDI + 7" (binary_expression "FUN_000a462b + unaff_EDI" (identifier "FUN_000a462b") (+ "+") (identifier "unaff_EDI")) (+ "+") (number_literal "7")) () ")"))))) (; ";")) (expression_statement "iVar4 = FUN_0002dd03();" (assignment_expression "iVar4 = FUN_0002dd03()" (identifier "iVar4") (= "=") (call_expression "FUN_0002dd03()" (identifier "FUN_0002dd03") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)) {\n    *(undefined4 *)(iVar4 + 0x18) = uVar3;\n    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;\n    FUN_00018d20();\n    piVar1 = (int *)(iVar2 + 8);\n    *piVar1 = *piVar1 + 1;\n    iVar4 = FUN_00018a40();\n    if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0))" (( "(") (binary_expression "((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)" (parenthesized_expression "((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0)" (( "(") (binary_expression "(*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0" (parenthesized_expression "(*(byte *)(unaff_EDI + 0xa464e) & 0x60)" (( "(") (binary_expression "*(byte *)(unaff_EDI + 0xa464e) & 0x60" (pointer_expression "*(byte *)(unaff_EDI + 0xa464e)" (* "*") (cast_expression "(byte *)(unaff_EDI + 0xa464e)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xa464e)" (( "(") (binary_expression "unaff_EDI + 0xa464e" (identifier "unaff_EDI") (+ "+") (number_literal "0xa464e")) () ")")))) (& "&") (number_literal "0x60")) () ")")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((*(uint *)(iVar4 + 0x14) & 0x11) == 0)" (( "(") (binary_expression "(*(uint *)(iVar4 + 0x14) & 0x11) == 0" (parenthesized_expression "(*(uint *)(iVar4 + 0x14) & 0x11)" (( "(") (binary_expression "*(uint *)(iVar4 + 0x14) & 0x11" (pointer_expression "*(uint *)(iVar4 + 0x14)" (* "*") (cast_expression "(uint *)(iVar4 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x14)" (( "(") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "0x11")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    *(undefined4 *)(iVar4 + 0x18) = uVar3;\n    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;\n    FUN_00018d20();\n    piVar1 = (int *)(iVar2 + 8);\n    *piVar1 = *piVar1 + 1;\n    iVar4 = FUN_00018a40();\n    if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar4 + 0x18) = uVar3;" (assignment_expression "*(undefined4 *)(iVar4 + 0x18) = uVar3" (pointer_expression "*(undefined4 *)(iVar4 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x18)" (( "(") (binary_expression "iVar4 + 0x18" (identifier "iVar4") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;" (assignment_expression "*(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2" (pointer_expression "*(uint *)(iVar4 + 0x14)" (* "*") (cast_expression "(uint *)(iVar4 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x14)" (( "(") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "*(uint *)(iVar4 + 0x14) | 2" (pointer_expression "*(uint *)(iVar4 + 0x14)" (* "*") (cast_expression "(uint *)(iVar4 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x14)" (( "(") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "2"))) (; ";")) (expression_statement "FUN_00018d20();" (call_expression "FUN_00018d20()" (identifier "FUN_00018d20") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = (int *)(iVar2 + 8);" (assignment_expression "piVar1 = (int *)(iVar2 + 8)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (; ";")) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar4 = FUN_00018a40();" (assignment_expression "iVar4 = FUN_00018a40()" (identifier "iVar4") (= "=") (call_expression "FUN_00018a40()" (identifier "FUN_00018a40") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined1 *)(iVar2 + 0xc) = 1;\n      return;\n    }" ({ "{") (expression_statement "*(undefined1 *)(iVar2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(iVar2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(iVar2 + 0xc)" (* "*") (cast_expression "(undefined1 *)(iVar2 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *name)

{
  type_1 **var_8;
  char *var_7;
  type_2 *data;
  int var_3;
  type_3 *in_stack_ffffffe4;
  char *in_stack_ffffffe8;
  
  var_7 = (char *)var_1();
  var_8 = *(type_1 ***)(var_2 + var_3 + 7);
  data = var_4(in_stack_ffffffe4,in_stack_ffffffe8);
  if ((((&DAT_000a464e)[var_3] & 0x60) != 0) || ((data->flags & 0x11) == 0)) {
    data->probed_name = var_7;
    data->flags = data->flags | 2;
    var_5(var_8,data);
    var_8[2] = (type_1 *)((int)&var_8[2]->link + 1);
    var_7 = var_6(data->modname,&UNK_00097ed6 + var_3);
    if (var_7 != (char *)0x0) {
      *(type_4 *)(var_8 + 3) = 1;
      return;
    }
  }
  return;
}


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

void MASKED(void)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int unaff_EDI;
  
  uVar3 = FUN_00026ff3();
  iVar2 = *(int *)(FUN_000a462b + unaff_EDI + 7);
  iVar4 = FUN_0002dd03();
  if (((*(byte *)(unaff_EDI + 0xa464e) & 0x60) != 0) || ((*(uint *)(iVar4 + 0x14) & 0x11) == 0)) {
    *(undefined4 *)(iVar4 + 0x18) = uVar3;
    *(uint *)(iVar4 + 0x14) = *(uint *)(iVar4 + 0x14) | 2;
    FUN_00018d20();
    piVar1 = (int *)(iVar2 + 8);
    *piVar1 = *piVar1 + 1;
    iVar4 = FUN_00018a40();
    if (iVar4 != 0) {
      *(undefined1 *)(iVar2 + 0xc) = 1;
      return;
    }
  }
  return;
}

