{"type": "func", "start": 6443719356, "end": 6443719453, "name": "__vcrt_InitializeCriticalSectionEx_0", "pseudocode": "// \n// __vcrt_InitializeCriticalSectionEx_0 from 0x180135abc to 0x180135b1d (97 bytes)\n// \n// 4 xrefs:\n// > __acrt_initialize_stdio @ 0x18012f900\n// > __vcrt_initialize_locks_0 @ 0x180134683\n// > __acrt_lowio_create_handle_array @ 0x18013600b\n// > <???> @ 0x18020341c\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_0(\n        LPCRITICAL_SECTION lpCriticalSection,\n        DWORD dwSpinCount,\n        unsigned int a3)\n{\n  FARPROC function; // rax\n\n  function = try_get_function(\n               0x12u,\n               \"InitializeCriticalSectionEx\",\n               (unsigned int *)\"\\a\",\n               (unsigned int *)&unk_180174A60);\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_0 from 0x180135abc to 0x180135b1d (97 bytes)\n; \n; 4 xrefs:\n; > __acrt_initialize_stdio @ 0x18012f900\n; > __vcrt_initialize_locks_0 @ 0x180134683\n; > __acrt_lowio_create_handle_array @ 0x18013600b\n; > <???> @ 0x18020341c\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, 0x180135abc\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180135ac1\npush    rdi                                                            ; +0xa, 0x180135ac6\nsub     rsp, 20h                                                       ; +0xb, 0x180135ac7\nmov     esi, r8d                                                       ; +0xf, 0x180135acb\nlea     r9, unk_180174A60                                              ; +0x12, 0x180135ace\nmov     ebx, edx                                                       ; +0x19, 0x180135ad5\nlea     r8, asc_180174A58                                              ; +0x1b, 0x180135ad7\nmov     rdi, rcx                                                       ; +0x22, 0x180135ade\nlea     rdx, aInitializecrit                                           ; +0x25, 0x180135ae1\nmov     ecx, 12h                                                       ; +0x2c, 0x180135ae8\ncall    ?try_get_function@@YAPEAXW4function_id@?A0x37284e77@@QEBDQEBW4module_id@2@2@Z ; +0x31, 0x180135aed\nmov     edx, ebx; dwSpinCount                                          ; +0x36, 0x180135af2\nmov     rcx, rdi; lpCriticalSection                                    ; +0x38, 0x180135af4\ntest    rax, rax                                                       ; +0x3b, 0x180135af7\njz      short loc_180135B07                                            ; +0x3e, 0x180135afa\nmov     r8d, esi                                                       ; +0x40, 0x180135afc\ncall    cs:__guard_dispatch_icall_fptr                                 ; +0x43, 0x180135aff\njmp     short loc_180135B0D                                            ; +0x49, 0x180135b05\ncall    cs:InitializeCriticalSectionAndSpinCount                       ; +0x4b, 0x180135b07\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x180135b0d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x56, 0x180135b12\nadd     rsp, 20h                                                       ; +0x5b, 0x180135b17\npop     rdi                                                            ; +0x5f, 0x180135b1b\nretn                                                                   ; +0x60, 0x180135b1c", "xrefs": ["__acrt_initialize_stdio @ 0x18012f900", "__vcrt_initialize_locks_0 @ 0x180134683", "__acrt_lowio_create_handle_array @ 0x18013600b", "<???> @ 0x18020341c"], "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"}