{"type": "func", "start": 6443633192, "end": 6443633291, "name": "_Init_thread_wait", "pseudocode": "// \n// _Init_thread_wait from 0x180120a28 to 0x180120a8b (99 bytes)\n// \n// 2 xrefs:\n// > _Init_thread_header @ 0x1801209a1\n// > <???> @ 0x180202564\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_wait(DWORD dwMilliseconds)\n{\n  if ( qword_1801F4A18 )\n  {\n    qword_1801F4A18(&unk_1801F49E0, &stru_1801F49F0, dwMilliseconds);\n  }\n  else\n  {\n    LeaveCriticalSection(&stru_1801F49F0);\n    WaitForSingleObjectEx(hHandle, dwMilliseconds, 0);\n    EnterCriticalSection(&stru_1801F49F0);\n  }\n}", "assembly": "; \n; _Init_thread_wait from 0x180120a28 to 0x180120a8b (99 bytes)\n; \n; 2 xrefs:\n; > _Init_thread_header @ 0x1801209a1\n; > <???> @ 0x180202564\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, 0x180120a28\nsub     rsp, 20h                                                       ; +0x2, 0x180120a2a\nmov     rax, cs:qword_1801F4A18                                        ; +0x6, 0x180120a2e\nmov     ebx, ecx                                                       ; +0xd, 0x180120a35\ntest    rax, rax                                                       ; +0xf, 0x180120a37\njz      short loc_180120A59                                            ; +0x12, 0x180120a3a\nmov     r8d, ecx                                                       ; +0x14, 0x180120a3c\nlea     rdx, stru_1801F49F0                                            ; +0x17, 0x180120a3f\nlea     rcx, unk_1801F49E0                                             ; +0x1e, 0x180120a46\nadd     rsp, 20h                                                       ; +0x25, 0x180120a4d\npop     rbx                                                            ; +0x29, 0x180120a51\njmp     cs:__guard_dispatch_icall_fptr                                 ; +0x2a, 0x180120a52\nlea     rcx, stru_1801F49F0; lpCriticalSection                         ; +0x31, 0x180120a59\ncall    cs:LeaveCriticalSection                                        ; +0x38, 0x180120a60\nmov     rcx, cs:hHandle; hHandle                                       ; +0x3e, 0x180120a66\nxor     r8d, r8d; bAlertable                                           ; +0x45, 0x180120a6d\nmov     edx, ebx; dwMilliseconds                                       ; +0x48, 0x180120a70\ncall    cs:WaitForSingleObjectEx                                       ; +0x4a, 0x180120a72\nlea     rcx, stru_1801F49F0                                            ; +0x50, 0x180120a78\nadd     rsp, 20h                                                       ; +0x57, 0x180120a7f\npop     rbx                                                            ; +0x5b, 0x180120a83\njmp     cs:EnterCriticalSection                                        ; +0x5c, 0x180120a84", "xrefs": ["_Init_thread_header @ 0x1801209a1", "<???> @ 0x180202564"], "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"}