{"type": "func", "start": 6443650824, "end": 6443650895, "name": "__vcrt_initialize_ptd", "pseudocode": "// \n// __vcrt_initialize_ptd from 0x180124f08 to 0x180124f4f (71 bytes)\n// \n// 2 xrefs:\n// > __vcrt_initialize @ 0x180124b45\n// > <???> @ 0x18020275c\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\nchar _vcrt_initialize_ptd()\n{\n  DWORD v0; // eax\n\n  v0 = _vcrt_FlsAlloc(_vcrt_freefls);\n  dwTlsIndex = v0;\n  if ( v0 != -1 )\n  {\n    if ( (unsigned int)_vcrt_FlsSetValue(v0, &unk_1801F4A70) )\n    {\n      dword_1801F4AE8 = -2;\n      return 1;\n    }\n    _vcrt_uninitialize_ptd();\n  }\n  return 0;\n}", "assembly": "; \n; __vcrt_initialize_ptd from 0x180124f08 to 0x180124f4f (71 bytes)\n; \n; 2 xrefs:\n; > __vcrt_initialize @ 0x180124b45\n; > <???> @ 0x18020275c\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\nsub     rsp, 28h                                                       ; +0x0, 0x180124f08\nlea     rcx, __vcrt_freefls                                            ; +0x4, 0x180124f0c\ncall    __vcrt_FlsAlloc                                                ; +0xb, 0x180124f13\nmov     cs:dwTlsIndex, eax                                             ; +0x10, 0x180124f18\ncmp     eax, 0FFFFFFFFh                                                ; +0x16, 0x180124f1e\njz      short loc_180124F48                                            ; +0x19, 0x180124f21\nlea     rdx, unk_1801F4A70; lpTlsValue                                 ; +0x1b, 0x180124f23\nmov     ecx, eax; dwTlsIndex                                           ; +0x22, 0x180124f2a\ncall    __vcrt_FlsSetValue                                             ; +0x24, 0x180124f2c\ntest    eax, eax                                                       ; +0x29, 0x180124f31\njz      short loc_180124F43                                            ; +0x2b, 0x180124f33\nmov     cs:dword_1801F4AE8, 0FFFFFFFEh                                 ; +0x2d, 0x180124f35\nmov     al, 1                                                          ; +0x37, 0x180124f3f\njmp     short loc_180124F4A                                            ; +0x39, 0x180124f41\ncall    __vcrt_uninitialize_ptd                                        ; +0x3b, 0x180124f43\nxor     al, al                                                         ; +0x40, 0x180124f48\nadd     rsp, 28h                                                       ; +0x42, 0x180124f4a\nretn                                                                   ; +0x46, 0x180124f4e", "xrefs": ["__vcrt_initialize @ 0x180124b45", "<???> @ 0x18020275c"], "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"}