; ; __scrt_initialize_thread_safe_statics from 0x180120824 to 0x1801208f4 (208 bytes) ; ; 2 xrefs: ; > @ 0x180144518 ; > @ 0x180202528 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x180120824 push rdi ; +0x5, 0x180120829 sub rsp, 20h ; +0x6, 0x18012082a mov edx, 0FA0h; dwSpinCount ; +0xa, 0x18012082e lea rcx, stru_1801F49F0; lpCriticalSection ; +0xf, 0x180120833 call cs:InitializeCriticalSectionAndSpinCount ; +0x16, 0x18012083a lea rcx, ModuleName ; +0x1c, 0x180120840 call cs:GetModuleHandleW ; +0x23, 0x180120847 mov rbx, rax ; +0x29, 0x18012084d test rax, rax ; +0x2c, 0x180120850 jnz short loc_18012086A ; +0x2f, 0x180120853 lea rcx, aKernel32Dll_0 ; +0x31, 0x180120855 call cs:GetModuleHandleW ; +0x38, 0x18012085c mov rbx, rax ; +0x3e, 0x180120862 test rax, rax ; +0x41, 0x180120865 jz short loc_1801208E9 ; +0x44, 0x180120868 lea rdx, aSleepcondition ; +0x46, 0x18012086a mov rcx, rbx; hModule ; +0x4d, 0x180120871 call cs:GetProcAddress ; +0x50, 0x180120874 lea rdx, aWakeallconditi ; +0x56, 0x18012087a mov rcx, rbx; hModule ; +0x5d, 0x180120881 mov rdi, rax ; +0x60, 0x180120884 call cs:GetProcAddress ; +0x63, 0x180120887 test rdi, rdi ; +0x69, 0x18012088d jz short loc_1801208A7 ; +0x6c, 0x180120890 test rax, rax ; +0x6e, 0x180120892 jz short loc_1801208A7 ; +0x71, 0x180120895 mov cs:qword_1801F4A18, rdi ; +0x73, 0x180120897 mov cs:qword_1801F4A20, rax ; +0x7a, 0x18012089e jmp short loc_1801208C5 ; +0x81, 0x1801208a5 xor r9d, r9d; lpName ; +0x83, 0x1801208a7 xor r8d, r8d; bInitialState ; +0x86, 0x1801208aa xor ecx, ecx; lpEventAttributes ; +0x89, 0x1801208ad lea edx, [r9+1]; bManualReset ; +0x8b, 0x1801208af call cs:CreateEventW ; +0x8f, 0x1801208b3 mov cs:hHandle, rax ; +0x95, 0x1801208b9 test rax, rax ; +0x9c, 0x1801208c0 jz short loc_1801208E9 ; +0x9f, 0x1801208c3 xor ecx, ecx ; +0xa1, 0x1801208c5 call __scrt_initialize_onexit_tables ; +0xa3, 0x1801208c7 test al, al ; +0xa8, 0x1801208cc jz short loc_1801208E9 ; +0xaa, 0x1801208ce lea rcx, ?__scrt_uninitialize_thread_safe_statics@@YAXXZ; void (__cdecl *)() ; +0xac, 0x1801208d0 call atexit ; +0xb3, 0x1801208d7 mov rbx, [rsp+28h+arg_0] ; +0xb8, 0x1801208dc xor eax, eax ; +0xbd, 0x1801208e1 add rsp, 20h ; +0xbf, 0x1801208e3 pop rdi ; +0xc3, 0x1801208e7 retn ; +0xc4, 0x1801208e8 mov ecx, 7 ; +0xc5, 0x1801208e9 call __scrt_fastfail ; +0xca, 0x1801208ee int 3; Trap to Debugger ; +0xcf, 0x1801208f3