{"type": "func", "start": 6442578304, "end": 6442578406, "name": "TlsCallback_0", "pseudocode": "// \n// TlsCallback_0 from 0x18001f180 to 0x18001f1e6 (102 bytes)\n// \n// 4 xrefs:\n// > sub_18001F1E8 @ 0x18001f1f1\n// > <???> @ 0x180023288\n// > <???> @ 0x180025810\n// > <???> @ 0x18004d0c4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:45 +0000\n// \n\nvoid __fastcall TlsCallback_0(__int64 a1, int a2)\n{\n  __int64 v2; // rdx\n  __int64 (__fastcall **i)(); // rbx\n\n  if ( a2 == 2 )\n  {\n    v2 = *((_QWORD *)NtCurrentTeb()->ThreadLocalStoragePointer + (unsigned int)TlsIndex);\n    if ( *(_BYTE *)(v2 + 16) != 1 )\n    {\n      *(_BYTE *)(v2 + 16) = 1;\n      for ( i = &off_180023260; i != (__int64 (__fastcall **)())&unk_180023268; ++i )\n      {\n        if ( *i )\n          (*i)();\n      }\n    }\n  }\n}", "assembly": "; \n; TlsCallback_0 from 0x18001f180 to 0x18001f1e6 (102 bytes)\n; \n; 4 xrefs:\n; > sub_18001F1E8 @ 0x18001f1f1\n; > <???> @ 0x180023288\n; > <???> @ 0x180025810\n; > <???> @ 0x18004d0c4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:45 +0000\n; \ncmp     edx, 2                                                         ; +0x0, 0x18001f180\njnz     short locret_18001F1E5                                         ; +0x3, 0x18001f183\nmov     [rsp+arg_0], rbx                                               ; +0x5, 0x18001f185\npush    rdi                                                            ; +0xa, 0x18001f18a\nsub     rsp, 20h                                                       ; +0xb, 0x18001f18b\nmov     ecx, cs:TlsIndex                                               ; +0xf, 0x18001f18f\nmov     rax, gs:58h                                                    ; +0x15, 0x18001f195\nmov     r8d, 10h                                                       ; +0x1e, 0x18001f19e\nmov     rdx, [rax+rcx*8]                                               ; +0x24, 0x18001f1a4\ncmp     byte ptr [rdx+r8], 1                                           ; +0x28, 0x18001f1a8\njz      short loc_18001F1DB                                            ; +0x2d, 0x18001f1ad\nmov     byte ptr [rdx+r8], 1                                           ; +0x2f, 0x18001f1af\nlea     rbx, off_180023260                                             ; +0x34, 0x18001f1b4\nlea     rdi, unk_180023268                                             ; +0x3b, 0x18001f1bb\njmp     short loc_18001F1D6                                            ; +0x42, 0x18001f1c2\nmov     rax, [rbx]                                                     ; +0x44, 0x18001f1c4\ntest    rax, rax                                                       ; +0x47, 0x18001f1c7\njz      short loc_18001F1D2                                            ; +0x4a, 0x18001f1ca\ncall    cs:__guard_dispatch_icall_fptr                                 ; +0x4c, 0x18001f1cc\nadd     rbx, 8                                                         ; +0x52, 0x18001f1d2\ncmp     rbx, rdi                                                       ; +0x56, 0x18001f1d6\njnz     short loc_18001F1C4                                            ; +0x59, 0x18001f1d9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5b, 0x18001f1db\nadd     rsp, 20h                                                       ; +0x60, 0x18001f1e0\npop     rdi                                                            ; +0x64, 0x18001f1e4\nretn                                                                   ; +0x65, 0x18001f1e5", "xrefs": ["sub_18001F1E8 @ 0x18001f1f1", "<???> @ 0x180023288", "<???> @ 0x180025810", "<???> @ 0x18004d0c4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}