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

void * named_thread_starter(void *data)

{
  char *__name;
  code *UNRECOVERED_JUMPTABLE;
  pthread_t __target_thread;
  void *pvVar1;
  
  if (data != (void *)0x0) {
    __name = *(char **)((int)data + 8);
    __target_thread = pthread_self();
    if (__name != (char *)0x0) {
      pthread_setname_np(__target_thread,__name);
    }
                    /* WARNING: Load size is inaccurate */
    UNRECOVERED_JUMPTABLE = *data;
    free(data);
                    /* WARNING: Could not recover jumptable at 0x0001f28e. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    pvVar1 = (void *)(*UNRECOVERED_JUMPTABLE)();
    return pvVar1;
  }
  return (void *)0x0;
}



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

undefined4 FUN_0001f240(undefined4 *param_1)

{
  char *__name;
  code *UNRECOVERED_JUMPTABLE;
  pthread_t __target_thread;
  undefined4 uVar1;
  
  if (param_1 != (undefined4 *)0x0) {
    __name = (char *)param_1[2];
    __target_thread = pthread_self();
    if (__name != (char *)0x0) {
      pthread_setname_np(__target_thread,__name);
    }
    UNRECOVERED_JUMPTABLE = (code *)*param_1;
    free(param_1);
                    /* WARNING: Could not recover jumptable at 0x0001f28e. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar1 = (*UNRECOVERED_JUMPTABLE)();
    return uVar1;
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012570
ADD EBX,0x10db7
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
TEST ESI,ESI
JZ 0x0001f290
MOV EDI,dword ptr [ESI + 0x8]
CALL 0x00011f20
TEST EDI,EDI
JZ 0x0001f273
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL 0x000120f0
ADD ESP,0x10
MOV EBP,dword ptr [ESI + 0x4]
SUB ESP,0xc
MOV EDI,dword ptr [ESI]
PUSH ESI
CALL 0x00012370
MOV dword ptr [ESP + 0x30],EBP
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
JMP EAX
ADD ESP,0xc
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0001f240(undefined4 *param_1)\n\n{\n  char *__name;\n  code *UNRECOVERED_JUMPTABLE;\n  pthread_t __target_thread;\n  undefined4 uVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __name = (char *)param_1[2];\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n    UNRECOVERED_JUMPTABLE = (code *)*param_1;\n    free(param_1);\n                    /* WARNING: Could not recover jumptable at 0x0001f28e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*UNRECOVERED_JUMPTABLE)();\n    return uVar1;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_0001f240(undefined4 *param_1)\n\n{\n  char *__name;\n  code *UNRECOVERED_JUMPTABLE;\n  pthread_t __target_thread;\n  undefined4 uVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __name = (char *)param_1[2];\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n    UNRECOVERED_JUMPTABLE = (code *)*param_1;\n    free(param_1);\n                    /* WARNING: Could not recover jumptable at 0x0001f28e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*UNRECOVERED_JUMPTABLE)();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0001f240(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char *__name;\n  code *UNRECOVERED_JUMPTABLE;\n  pthread_t __target_thread;\n  undefined4 uVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __name = (char *)param_1[2];\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n    UNRECOVERED_JUMPTABLE = (code *)*param_1;\n    free(param_1);\n                    /* WARNING: Could not recover jumptable at 0x0001f28e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*UNRECOVERED_JUMPTABLE)();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "char *__name;" primitive_type (pointer_declarator "*__name" * identifier) ;) (declaration "code *UNRECOVERED_JUMPTABLE;" type_identifier (pointer_declarator "*UNRECOVERED_JUMPTABLE" * identifier) ;) (declaration "pthread_t __target_thread;" type_identifier identifier ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != (undefined4 *)0x0) {\n    __name = (char *)param_1[2];\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n    UNRECOVERED_JUMPTABLE = (code *)*param_1;\n    free(param_1);\n                    /* WARNING: Could not recover jumptable at 0x0001f28e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*UNRECOVERED_JUMPTABLE)();\n    return uVar1;\n  }" if (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __name = (char *)param_1[2];\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n    UNRECOVERED_JUMPTABLE = (code *)*param_1;\n    free(param_1);\n                    /* WARNING: Could not recover jumptable at 0x0001f28e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*UNRECOVERED_JUMPTABLE)();\n    return uVar1;\n  }" { (expression_statement "__name = (char *)param_1[2];" (assignment_expression "__name = (char *)param_1[2]" identifier = (cast_expression "(char *)param_1[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "__target_thread = pthread_self();" (assignment_expression "__target_thread = pthread_self()" identifier = (call_expression "pthread_self()" identifier (argument_list "()" ( )))) ;) (if_statement "if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }" if (parenthesized_expression "(__name != (char *)0x0)" ( (binary_expression "__name != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pthread_setname_np(__target_thread,__name);\n    }" { (expression_statement "pthread_setname_np(__target_thread,__name);" (call_expression "pthread_setname_np(__target_thread,__name)" identifier (argument_list "(__target_thread,__name)" ( identifier , identifier ))) ;) })) (expression_statement "UNRECOVERED_JUMPTABLE = (code *)*param_1;" (assignment_expression "UNRECOVERED_JUMPTABLE = (code *)*param_1" identifier = (cast_expression "(code *)*param_1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) comment comment (expression_statement "uVar1 = (*UNRECOVERED_JUMPTABLE)();" (assignment_expression "uVar1 = (*UNRECOVERED_JUMPTABLE)()" identifier = (call_expression "(*UNRECOVERED_JUMPTABLE)()" (parenthesized_expression "(*UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*UNRECOVERED_JUMPTABLE" * identifier) )) (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid * named_thread_starter(void *data)\n\n{\n  char *__name;\n  code *UNRECOVERED_JUMPTABLE;\n  pthread_t __target_thread;\n  void *pvVar1;\n  \n  if (data != (void *)0x0) {\n    __name = *(char **)((int)data + 8);\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n                    /* WARNING: Load size is inaccurate */\n    UNRECOVERED_JUMPTABLE = *data;\n    free(data);\n                    /* WARNING: Could not recover jumptable at 0x0001f28e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*UNRECOVERED_JUMPTABLE)();\n    return pvVar1;\n  }\n  return (void *)0x0;\n}\n\n" comment (function_definition "void * named_thread_starter(void *data)\n\n{\n  char *__name;\n  code *UNRECOVERED_JUMPTABLE;\n  pthread_t __target_thread;\n  void *pvVar1;\n  \n  if (data != (void *)0x0) {\n    __name = *(char **)((int)data + 8);\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n                    /* WARNING: Load size is inaccurate */\n    UNRECOVERED_JUMPTABLE = *data;\n    free(data);\n                    /* WARNING: Could not recover jumptable at 0x0001f28e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*UNRECOVERED_JUMPTABLE)();\n    return pvVar1;\n  }\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* named_thread_starter(void *data)" * (function_declarator "named_thread_starter(void *data)" identifier (parameter_list "(void *data)" ( (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) )))) (compound_statement "{\n  char *__name;\n  code *UNRECOVERED_JUMPTABLE;\n  pthread_t __target_thread;\n  void *pvVar1;\n  \n  if (data != (void *)0x0) {\n    __name = *(char **)((int)data + 8);\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n                    /* WARNING: Load size is inaccurate */\n    UNRECOVERED_JUMPTABLE = *data;\n    free(data);\n                    /* WARNING: Could not recover jumptable at 0x0001f28e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*UNRECOVERED_JUMPTABLE)();\n    return pvVar1;\n  }\n  return (void *)0x0;\n}" { (declaration "char *__name;" primitive_type (pointer_declarator "*__name" * identifier) ;) (declaration "code *UNRECOVERED_JUMPTABLE;" type_identifier (pointer_declarator "*UNRECOVERED_JUMPTABLE" * identifier) ;) (declaration "pthread_t __target_thread;" type_identifier identifier ;) (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (if_statement "if (data != (void *)0x0) {\n    __name = *(char **)((int)data + 8);\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n                    /* WARNING: Load size is inaccurate */\n    UNRECOVERED_JUMPTABLE = *data;\n    free(data);\n                    /* WARNING: Could not recover jumptable at 0x0001f28e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*UNRECOVERED_JUMPTABLE)();\n    return pvVar1;\n  }" if (parenthesized_expression "(data != (void *)0x0)" ( (binary_expression "data != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __name = *(char **)((int)data + 8);\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n                    /* WARNING: Load size is inaccurate */\n    UNRECOVERED_JUMPTABLE = *data;\n    free(data);\n                    /* WARNING: Could not recover jumptable at 0x0001f28e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*UNRECOVERED_JUMPTABLE)();\n    return pvVar1;\n  }" { (expression_statement "__name = *(char **)((int)data + 8);" (assignment_expression "__name = *(char **)((int)data + 8)" identifier = (pointer_expression "*(char **)((int)data + 8)" * (cast_expression "(char **)((int)data + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 8)" ( (binary_expression "(int)data + 8" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "__target_thread = pthread_self();" (assignment_expression "__target_thread = pthread_self()" identifier = (call_expression "pthread_self()" identifier (argument_list "()" ( )))) ;) (if_statement "if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }" if (parenthesized_expression "(__name != (char *)0x0)" ( (binary_expression "__name != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pthread_setname_np(__target_thread,__name);\n    }" { (expression_statement "pthread_setname_np(__target_thread,__name);" (call_expression "pthread_setname_np(__target_thread,__name)" identifier (argument_list "(__target_thread,__name)" ( identifier , identifier ))) ;) })) comment (expression_statement "UNRECOVERED_JUMPTABLE = *data;" (assignment_expression "UNRECOVERED_JUMPTABLE = *data" identifier = (pointer_expression "*data" * identifier)) ;) (expression_statement "free(data);" (call_expression "free(data)" identifier (argument_list "(data)" ( identifier ))) ;) comment comment (expression_statement "pvVar1 = (void *)(*UNRECOVERED_JUMPTABLE)();" (assignment_expression "pvVar1 = (void *)(*UNRECOVERED_JUMPTABLE)()" identifier = (cast_expression "(void *)(*UNRECOVERED_JUMPTABLE)()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*UNRECOVERED_JUMPTABLE)()" (parenthesized_expression "(*UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*UNRECOVERED_JUMPTABLE" * identifier) )) (argument_list "()" ( ))))) ;) (return_statement "return pvVar1;" return identifier ;) })) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 FUN_0001f240(undefined4 *param_1)\n\n{\n  char *__name;\n  code *UNRECOVERED_JUMPTABLE;\n  pthread_t __target_thread;\n  undefined4 uVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __name = (char *)param_1[2];\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n    UNRECOVERED_JUMPTABLE = (code *)*param_1;\n    free(param_1);\n                    \n                    \n    uVar1 = (*UNRECOVERED_JUMPTABLE)();\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0001f240(undefined4 *param_1)\n\n{\n  char *__name;\n  code *UNRECOVERED_JUMPTABLE;\n  pthread_t __target_thread;\n  undefined4 uVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __name = (char *)param_1[2];\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n    UNRECOVERED_JUMPTABLE = (code *)*param_1;\n    free(param_1);\n                    \n                    \n    uVar1 = (*UNRECOVERED_JUMPTABLE)();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0001f240(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char *__name;\n  code *UNRECOVERED_JUMPTABLE;\n  pthread_t __target_thread;\n  undefined4 uVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __name = (char *)param_1[2];\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n    UNRECOVERED_JUMPTABLE = (code *)*param_1;\n    free(param_1);\n                    \n                    \n    uVar1 = (*UNRECOVERED_JUMPTABLE)();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "char *__name;" primitive_type (pointer_declarator "*__name" * identifier) ;) (declaration "code *UNRECOVERED_JUMPTABLE;" type_identifier (pointer_declarator "*UNRECOVERED_JUMPTABLE" * identifier) ;) (declaration "pthread_t __target_thread;" type_identifier identifier ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != (undefined4 *)0x0) {\n    __name = (char *)param_1[2];\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n    UNRECOVERED_JUMPTABLE = (code *)*param_1;\n    free(param_1);\n                    \n                    \n    uVar1 = (*UNRECOVERED_JUMPTABLE)();\n    return uVar1;\n  }" if (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __name = (char *)param_1[2];\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n    UNRECOVERED_JUMPTABLE = (code *)*param_1;\n    free(param_1);\n                    \n                    \n    uVar1 = (*UNRECOVERED_JUMPTABLE)();\n    return uVar1;\n  }" { (expression_statement "__name = (char *)param_1[2];" (assignment_expression "__name = (char *)param_1[2]" identifier = (cast_expression "(char *)param_1[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "__target_thread = pthread_self();" (assignment_expression "__target_thread = pthread_self()" identifier = (call_expression "pthread_self()" identifier (argument_list "()" ( )))) ;) (if_statement "if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }" if (parenthesized_expression "(__name != (char *)0x0)" ( (binary_expression "__name != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pthread_setname_np(__target_thread,__name);\n    }" { (expression_statement "pthread_setname_np(__target_thread,__name);" (call_expression "pthread_setname_np(__target_thread,__name)" identifier (argument_list "(__target_thread,__name)" ( identifier , identifier ))) ;) })) (expression_statement "UNRECOVERED_JUMPTABLE = (code *)*param_1;" (assignment_expression "UNRECOVERED_JUMPTABLE = (code *)*param_1" identifier = (cast_expression "(code *)*param_1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "uVar1 = (*UNRECOVERED_JUMPTABLE)();" (assignment_expression "uVar1 = (*UNRECOVERED_JUMPTABLE)()" identifier = (call_expression "(*UNRECOVERED_JUMPTABLE)()" (parenthesized_expression "(*UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*UNRECOVERED_JUMPTABLE" * identifier) )) (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0001f240(undefined4 *param_1)\n\n{\n  char *__name;\n  code *UNRECOVERED_JUMPTABLE;\n  pthread_t __target_thread;\n  undefined4 uVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __name = (char *)param_1[2];\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n    UNRECOVERED_JUMPTABLE = (code *)*param_1;\n    free(param_1);\n                    \n                    \n    uVar1 = (*UNRECOVERED_JUMPTABLE)();\n    return uVar1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001f240(undefined4 *param_1)" (identifier "FUN_0001f240") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char *__name;\n  code *UNRECOVERED_JUMPTABLE;\n  pthread_t __target_thread;\n  undefined4 uVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __name = (char *)param_1[2];\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n    UNRECOVERED_JUMPTABLE = (code *)*param_1;\n    free(param_1);\n                    \n                    \n    uVar1 = (*UNRECOVERED_JUMPTABLE)();\n    return uVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "char *__name;" (primitive_type "char") (pointer_declarator "*__name" (* "*") (identifier "__name")) (; ";")) (declaration "code *UNRECOVERED_JUMPTABLE;" (type_identifier "code") (pointer_declarator "*UNRECOVERED_JUMPTABLE" (* "*") (identifier "UNRECOVERED_JUMPTABLE")) (; ";")) (declaration "pthread_t __target_thread;" (type_identifier "pthread_t") (identifier "__target_thread") (; ";")) (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_1 != (undefined4 *)0x0) {\n    __name = (char *)param_1[2];\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n    UNRECOVERED_JUMPTABLE = (code *)*param_1;\n    free(param_1);\n                    \n                    \n    uVar1 = (*UNRECOVERED_JUMPTABLE)();\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(param_1 != (undefined4 *)0x0)" (( "(") (binary_expression "param_1 != (undefined4 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    __name = (char *)param_1[2];\n    __target_thread = pthread_self();\n    if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }\n    UNRECOVERED_JUMPTABLE = (code *)*param_1;\n    free(param_1);\n                    \n                    \n    uVar1 = (*UNRECOVERED_JUMPTABLE)();\n    return uVar1;\n  }" ({ "{") (expression_statement "__name = (char *)param_1[2];" (assignment_expression "__name = (char *)param_1[2]" (identifier "__name") (= "=") (cast_expression "(char *)param_1[2]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "__target_thread = pthread_self();" (assignment_expression "__target_thread = pthread_self()" (identifier "__target_thread") (= "=") (call_expression "pthread_self()" (identifier "pthread_self") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (__name != (char *)0x0) {\n      pthread_setname_np(__target_thread,__name);\n    }" (if "if") (parenthesized_expression "(__name != (char *)0x0)" (( "(") (binary_expression "__name != (char *)0x0" (identifier "__name") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      pthread_setname_np(__target_thread,__name);\n    }" ({ "{") (expression_statement "pthread_setname_np(__target_thread,__name);" (call_expression "pthread_setname_np(__target_thread,__name)" (identifier "pthread_setname_np") (argument_list "(__target_thread,__name)" (( "(") (identifier "__target_thread") (, ",") (identifier "__name") () ")"))) (; ";")) (} "}"))) (expression_statement "UNRECOVERED_JUMPTABLE = (code *)*param_1;" (assignment_expression "UNRECOVERED_JUMPTABLE = (code *)*param_1" (identifier "UNRECOVERED_JUMPTABLE") (= "=") (cast_expression "(code *)*param_1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "free(param_1);" (call_expression "free(param_1)" (identifier "free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "uVar1 = (*UNRECOVERED_JUMPTABLE)();" (assignment_expression "uVar1 = (*UNRECOVERED_JUMPTABLE)()" (identifier "uVar1") (= "=") (call_expression "(*UNRECOVERED_JUMPTABLE)()" (parenthesized_expression "(*UNRECOVERED_JUMPTABLE)" (( "(") (pointer_expression "*UNRECOVERED_JUMPTABLE" (* "*") (identifier "UNRECOVERED_JUMPTABLE")) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

void * function_1(void *var_1)

{
  char *var_3;
  type_1 *UNRECOVERED_JUMPTABLE;
  type_2 __target_thread;
  void *pvVar1;
  
  if (var_1 != (void *)0x0) {
    var_3 = *(char **)((int)var_1 + 8);
    __target_thread = var_2();
    if (var_3 != (char *)0x0) {
      var_4(__target_thread,var_3);
    }
                    /* WARNING: Load size is inaccurate */
    UNRECOVERED_JUMPTABLE = *var_1;
    var_5(var_1);
                    /* WARNING: Could not recover jumptable at 0x0001f28e. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    pvVar1 = (void *)(*UNRECOVERED_JUMPTABLE)();
    return pvVar1;
  }
  return (void *)0x0;
}


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

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

undefined4 MASKED(undefined4 *param_1)

{
  char *__name;
  code *UNRECOVERED_JUMPTABLE;
  pthread_t __target_thread;
  undefined4 uVar1;
  
  if (param_1 != (undefined4 *)0x0) {
    __name = (char *)param_1[2];
    __target_thread = pthread_self();
    if (__name != (char *)0x0) {
      pthread_setname_np(__target_thread,__name);
    }
    UNRECOVERED_JUMPTABLE = (code *)*param_1;
    free(param_1);
                    /* WARNING: Could not recover jumptable at 0x0001f28e. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar1 = (*UNRECOVERED_JUMPTABLE)();
    return uVar1;
  }
  return 0;
}

