{"type": "func", "start": 6443633020, "end": 6443633123, "name": "_Init_thread_header", "pseudocode": "// \n// _Init_thread_header from 0x18012097c to 0x1801209e3 (103 bytes)\n// \n// 22 xrefs:\n// > sub_180110290 @ 0x180110829\n// > sub_180110290 @ 0x180110879\n// > sub_180110290 @ 0x1801108c9\n// > sub_180110290 @ 0x180110919\n// > sub_180110290 @ 0x180110969\n// > sub_180110290 @ 0x1801109b9\n// > sub_180110290 @ 0x180110a09\n// > sub_180110290 @ 0x180110a59\n// > sub_180110290 @ 0x180110aa9\n// > sub_180110290 @ 0x180110af9\n// > sub_180110290 @ 0x180110b49\n// > sub_180110290 @ 0x180110b99\n// > sub_180110290 @ 0x180110be9\n// > sub_180110290 @ 0x180110c39\n// > sub_180110290 @ 0x180110c89\n// > sub_180110290 @ 0x180110cd9\n// > sub_180110290 @ 0x180110d29\n// > sub_180110290 @ 0x180110d79\n// > sub_180110290 @ 0x180110dc9\n// > sub_180110290 @ 0x180110e19\n// > <???> @ 0x180202540\n// > <???> @ 0x18020254c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall Init_thread_header(_DWORD *a1)\n{\n  EnterCriticalSection(&stru_1801F49F0);\n  while ( 1 )\n  {\n    if ( !*a1 )\n    {\n      *a1 = -1;\n      goto LABEL_7;\n    }\n    if ( *a1 != -1 )\n      break;\n    Init_thread_wait(0x64u);\n  }\n  *(_DWORD *)(*((_QWORD *)NtCurrentTeb()->ThreadLocalStoragePointer + (unsigned int)TlsIndex) + 4LL) = dword_1801B1724;\nLABEL_7:\n  LeaveCriticalSection(&stru_1801F49F0);\n}", "assembly": "; \n; _Init_thread_header from 0x18012097c to 0x1801209e3 (103 bytes)\n; \n; 22 xrefs:\n; > sub_180110290 @ 0x180110829\n; > sub_180110290 @ 0x180110879\n; > sub_180110290 @ 0x1801108c9\n; > sub_180110290 @ 0x180110919\n; > sub_180110290 @ 0x180110969\n; > sub_180110290 @ 0x1801109b9\n; > sub_180110290 @ 0x180110a09\n; > sub_180110290 @ 0x180110a59\n; > sub_180110290 @ 0x180110aa9\n; > sub_180110290 @ 0x180110af9\n; > sub_180110290 @ 0x180110b49\n; > sub_180110290 @ 0x180110b99\n; > sub_180110290 @ 0x180110be9\n; > sub_180110290 @ 0x180110c39\n; > sub_180110290 @ 0x180110c89\n; > sub_180110290 @ 0x180110cd9\n; > sub_180110290 @ 0x180110d29\n; > sub_180110290 @ 0x180110d79\n; > sub_180110290 @ 0x180110dc9\n; > sub_180110290 @ 0x180110e19\n; > <???> @ 0x180202540\n; > <???> @ 0x18020254c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x18012097c\nsub     rsp, 20h                                                       ; +0x2, 0x18012097e\nmov     rbx, rcx                                                       ; +0x6, 0x180120982\nlea     rcx, stru_1801F49F0; lpCriticalSection                         ; +0x9, 0x180120985\ncall    cs:EnterCriticalSection                                        ; +0x10, 0x18012098c\ncmp     dword ptr [rbx], 0                                             ; +0x16, 0x180120992\njnz     short loc_1801209A8                                            ; +0x19, 0x180120995\nor      dword ptr [rbx], 0FFFFFFFFh                                    ; +0x1b, 0x180120997\njmp     short loc_1801209D0                                            ; +0x1e, 0x18012099a\nmov     ecx, 64h ; 'd'; dwMilliseconds                                 ; +0x20, 0x18012099c\ncall    _Init_thread_wait                                              ; +0x25, 0x1801209a1\njmp     short loc_180120992                                            ; +0x2a, 0x1801209a6\ncmp     dword ptr [rbx], 0FFFFFFFFh                                    ; +0x2c, 0x1801209a8\njz      short loc_18012099C                                            ; +0x2f, 0x1801209ab\nmov     rax, gs:58h                                                    ; +0x31, 0x1801209ad\nmov     ecx, cs:TlsIndex                                               ; +0x3a, 0x1801209b6\nmov     r8d, 4                                                         ; +0x40, 0x1801209bc\nmov     rdx, [rax+rcx*8]                                               ; +0x46, 0x1801209c2\nmov     eax, cs:dword_1801B1724                                        ; +0x4a, 0x1801209c6\nmov     [r8+rdx], eax                                                  ; +0x50, 0x1801209cc\nlea     rcx, stru_1801F49F0                                            ; +0x54, 0x1801209d0\nadd     rsp, 20h                                                       ; +0x5b, 0x1801209d7\npop     rbx                                                            ; +0x5f, 0x1801209db\njmp     cs:LeaveCriticalSection                                        ; +0x60, 0x1801209dc", "xrefs": ["sub_180110290 @ 0x180110829", "sub_180110290 @ 0x180110879", "sub_180110290 @ 0x1801108c9", "sub_180110290 @ 0x180110919", "sub_180110290 @ 0x180110969", "sub_180110290 @ 0x1801109b9", "sub_180110290 @ 0x180110a09", "sub_180110290 @ 0x180110a59", "sub_180110290 @ 0x180110aa9", "sub_180110290 @ 0x180110af9", "sub_180110290 @ 0x180110b49", "sub_180110290 @ 0x180110b99", "sub_180110290 @ 0x180110be9", "sub_180110290 @ 0x180110c39", "sub_180110290 @ 0x180110c89", "sub_180110290 @ 0x180110cd9", "sub_180110290 @ 0x180110d29", "sub_180110290 @ 0x180110d79", "sub_180110290 @ 0x180110dc9", "sub_180110290 @ 0x180110e19", "<???> @ 0x180202540", "<???> @ 0x18020254c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}