{"type": "func", "start": 6443342080, "end": 6443342145, "name": "sub_1800D9900", "pseudocode": "// \n// sub_1800D9900 from 0x1800d9900 to 0x1800d9941 (65 bytes)\n// \n// 3 xrefs:\n// > sub_1800D38D0 @ 0x1800d392c\n// > sub_1800D38D0 @ 0x1800d393c\n// > <???> @ 0x1801bab48\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 __fastcall sub_1800D9900(_DWORD *a1)\n{\n  DWORD v2; // eax\n\n  v2 = TlsAlloc();\n  a1[1] = v2;\n  if ( v2 == -1 )\n  {\n    sub_1800D9BA0(65544, \"Win32: Failed to allocate TLS index\");\n    return 0;\n  }\n  else\n  {\n    *a1 = 1;\n    return 1;\n  }\n}", "assembly": "; \n; sub_1800D9900 from 0x1800d9900 to 0x1800d9941 (65 bytes)\n; \n; 3 xrefs:\n; > sub_1800D38D0 @ 0x1800d392c\n; > sub_1800D38D0 @ 0x1800d393c\n; > <???> @ 0x1801bab48\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, 0x1800d9900\nsub     rsp, 20h                                                       ; +0x2, 0x1800d9902\nmov     rbx, rcx                                                       ; +0x6, 0x1800d9906\ncall    cs:TlsAlloc                                                    ; +0x9, 0x1800d9909\nmov     [rbx+4], eax                                                   ; +0xf, 0x1800d990f\ncmp     eax, 0FFFFFFFFh                                                ; +0x12, 0x1800d9912\njnz     short loc_1800D9930                                            ; +0x15, 0x1800d9915\nlea     rdx, aWin32FailedToA; \"Win32: Failed to allocate TLS index\"    ; +0x17, 0x1800d9917\nmov     ecx, 10008h                                                    ; +0x1e, 0x1800d991e\ncall    sub_1800D9BA0                                                  ; +0x23, 0x1800d9923\nxor     eax, eax                                                       ; +0x28, 0x1800d9928\nadd     rsp, 20h                                                       ; +0x2a, 0x1800d992a\npop     rbx                                                            ; +0x2e, 0x1800d992e\nretn                                                                   ; +0x2f, 0x1800d992f\nmov     dword ptr [rbx], 1                                             ; +0x30, 0x1800d9930\nmov     eax, 1                                                         ; +0x36, 0x1800d9936\nadd     rsp, 20h                                                       ; +0x3b, 0x1800d993b\npop     rbx                                                            ; +0x3f, 0x1800d993f\nretn                                                                   ; +0x40, 0x1800d9940", "xrefs": ["sub_1800D38D0 @ 0x1800d392c", "sub_1800D38D0 @ 0x1800d393c", "<???> @ 0x1801bab48"], "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"}