{"type": "func", "start": 6443732384, "end": 6443732465, "name": "__acrt_get_begin_thread_init_policy", "pseudocode": "// \n// __acrt_get_begin_thread_init_policy from 0x180138da0 to 0x180138df1 (81 bytes)\n// \n// 2 xrefs:\n// > unknown_libname_61 @ 0x1801309ad\n// > <???> @ 0x180203728\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\n__int64 _acrt_get_begin_thread_init_policy()\n{\n  unsigned __int32 v0; // ebx\n  int v2; // [rsp+30h] [rbp+8h] BYREF\n\n  v0 = dword_1801F5588;\n  if ( !dword_1801F5588 )\n  {\n    v2 = 0;\n    v0 = 1;\n    if ( (NtCurrentPeb()->ProcessParameters->Flags & 0x80000000) == 0 )\n    {\n      _acrt_AppPolicyGetThreadInitializationTypeInternal((__int64)&v2);\n      if ( v2 == 1 )\n        v0 = 2;\n    }\n    _InterlockedExchange(&dword_1801F5588, v0);\n  }\n  return v0;\n}", "assembly": "; \n; __acrt_get_begin_thread_init_policy from 0x180138da0 to 0x180138df1 (81 bytes)\n; \n; 2 xrefs:\n; > unknown_libname_61 @ 0x1801309ad\n; > <???> @ 0x180203728\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, 0x180138da0\nsub     rsp, 20h                                                       ; +0x2, 0x180138da2\nmov     ebx, cs:dword_1801F5588                                        ; +0x6, 0x180138da6\ntest    ebx, ebx                                                       ; +0xc, 0x180138dac\njnz     short loc_180138DE9                                            ; +0xe, 0x180138dae\nand     [rsp+28h+arg_0], ebx                                           ; +0x10, 0x180138db0\nmov     ebx, 1                                                         ; +0x14, 0x180138db4\nmov     rax, gs:60h                                                    ; +0x19, 0x180138db9\nmov     rcx, [rax+20h]                                                 ; +0x22, 0x180138dc2\ncmp     dword ptr [rcx+8], 0                                           ; +0x26, 0x180138dc6\njl      short loc_180138DE1                                            ; +0x2a, 0x180138dca\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x2c, 0x180138dcc\ncall    __acrt_AppPolicyGetThreadInitializationTypeInternal            ; +0x31, 0x180138dd1\ncmp     [rsp+28h+arg_0], ebx                                           ; +0x36, 0x180138dd6\njnz     short loc_180138DE1                                            ; +0x3a, 0x180138dda\nmov     ebx, 2                                                         ; +0x3c, 0x180138ddc\nmov     ecx, ebx                                                       ; +0x41, 0x180138de1\nxchg    ecx, cs:dword_1801F5588                                        ; +0x43, 0x180138de3\nmov     eax, ebx                                                       ; +0x49, 0x180138de9\nadd     rsp, 20h                                                       ; +0x4b, 0x180138deb\npop     rbx                                                            ; +0x4f, 0x180138def\nretn                                                                   ; +0x50, 0x180138df0", "xrefs": ["unknown_libname_61 @ 0x1801309ad", "<???> @ 0x180203728"], "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"}