{"type": "func", "start": 6443651676, "end": 6443651773, "name": "__vcrt_InitializeCriticalSectionEx", "pseudocode": "// \n// __vcrt_InitializeCriticalSectionEx from 0x18012525c to 0x1801252bd (97 bytes)\n// \n// 2 xrefs:\n// > __vcrt_initialize_locks @ 0x180124f87\n// > <???> @ 0x1802027c8\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\nint __fastcall _vcrt_InitializeCriticalSectionEx(\n        LPCRITICAL_SECTION lpCriticalSection,\n        DWORD dwSpinCount,\n        unsigned int a3)\n{\n  FARPROC function; // rax\n\n  function = try_get_function(\n               4u,\n               \"InitializeCriticalSectionEx\",\n               (unsigned int *)&unk_180170B08,\n               (unsigned int *)\"InitializeCriticalSectionEx\");\n  if ( function )\n    return ((__int64 (__fastcall *)(LPCRITICAL_SECTION, _QWORD, _QWORD))function)(lpCriticalSection, dwSpinCount, a3);\n  else\n    return InitializeCriticalSectionAndSpinCount(lpCriticalSection, dwSpinCount);\n}", "assembly": "; \n; __vcrt_InitializeCriticalSectionEx from 0x18012525c to 0x1801252bd (97 bytes)\n; \n; 2 xrefs:\n; > __vcrt_initialize_locks @ 0x180124f87\n; > <???> @ 0x1802027c8\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18012525c\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180125261\npush    rdi                                                            ; +0xa, 0x180125266\nsub     rsp, 20h                                                       ; +0xb, 0x180125267\nmov     esi, r8d                                                       ; +0xf, 0x18012526b\nlea     r9, aInitializecrit                                            ; +0x12, 0x18012526e\nmov     ebx, edx                                                       ; +0x19, 0x180125275\nlea     r8, unk_180170B08                                              ; +0x1b, 0x180125277\nmov     rdi, rcx                                                       ; +0x22, 0x18012527e\nlea     rdx, aInitializecrit                                           ; +0x25, 0x180125281\nmov     ecx, 4                                                         ; +0x2c, 0x180125288\ncall    ?try_get_function@@YAPEAXW4function_id@?A0x78405aa4@@QEBDQEBW4module_id@2@2@Z ; +0x31, 0x18012528d\nmov     edx, ebx; dwSpinCount                                          ; +0x36, 0x180125292\nmov     rcx, rdi; lpCriticalSection                                    ; +0x38, 0x180125294\ntest    rax, rax                                                       ; +0x3b, 0x180125297\njz      short loc_1801252A7                                            ; +0x3e, 0x18012529a\nmov     r8d, esi                                                       ; +0x40, 0x18012529c\ncall    cs:__guard_dispatch_icall_fptr                                 ; +0x43, 0x18012529f\njmp     short loc_1801252AD                                            ; +0x49, 0x1801252a5\ncall    cs:InitializeCriticalSectionAndSpinCount                       ; +0x4b, 0x1801252a7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x1801252ad\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x56, 0x1801252b2\nadd     rsp, 20h                                                       ; +0x5b, 0x1801252b7\npop     rdi                                                            ; +0x5f, 0x1801252bb\nretn                                                                   ; +0x60, 0x1801252bc", "xrefs": ["__vcrt_initialize_locks @ 0x180124f87", "<???> @ 0x1802027c8"], "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"}