{"type": "func", "start": 6442578712, "end": 6442578814, "name": "TlsCallback_0", "pseudocode": "// \n// TlsCallback_0 from 0x18001f318 to 0x18001f37e (102 bytes)\n// \n// 4 xrefs:\n// > __dyn_tls_on_demand_init @ 0x18001f389\n// > <???> @ 0x1800232a0\n// > <???> @ 0x1800232f0\n// > <???> @ 0x18004b16c\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\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_180023278; i != (__int64 (__fastcall **)())&unk_180023280; ++i )\n      {\n        if ( *i )\n          (*i)();\n      }\n    }\n  }\n}", "assembly": "; \n; TlsCallback_0 from 0x18001f318 to 0x18001f37e (102 bytes)\n; \n; 4 xrefs:\n; > __dyn_tls_on_demand_init @ 0x18001f389\n; > <???> @ 0x1800232a0\n; > <???> @ 0x1800232f0\n; > <???> @ 0x18004b16c\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\ncmp     edx, 2                                                         ; +0x0, 0x18001f318\njnz     short locret_18001F37D                                         ; +0x3, 0x18001f31b\nmov     [rsp+arg_0], rbx                                               ; +0x5, 0x18001f31d\npush    rdi                                                            ; +0xa, 0x18001f322\nsub     rsp, 20h                                                       ; +0xb, 0x18001f323\nmov     ecx, cs:TlsIndex                                               ; +0xf, 0x18001f327\nmov     rax, gs:58h                                                    ; +0x15, 0x18001f32d\nmov     r8d, 10h                                                       ; +0x1e, 0x18001f336\nmov     rdx, [rax+rcx*8]                                               ; +0x24, 0x18001f33c\ncmp     byte ptr [rdx+r8], 1                                           ; +0x28, 0x18001f340\njz      short loc_18001F373                                            ; +0x2d, 0x18001f345\nmov     byte ptr [rdx+r8], 1                                           ; +0x2f, 0x18001f347\nlea     rbx, off_180023278                                             ; +0x34, 0x18001f34c\nlea     rdi, unk_180023280                                             ; +0x3b, 0x18001f353\njmp     short loc_18001F36E                                            ; +0x42, 0x18001f35a\nmov     rax, [rbx]                                                     ; +0x44, 0x18001f35c\ntest    rax, rax                                                       ; +0x47, 0x18001f35f\njz      short loc_18001F36A                                            ; +0x4a, 0x18001f362\ncall    cs:__guard_dispatch_icall_fptr                                 ; +0x4c, 0x18001f364\nadd     rbx, 8                                                         ; +0x52, 0x18001f36a\ncmp     rbx, rdi                                                       ; +0x56, 0x18001f36e\njnz     short loc_18001F35C                                            ; +0x59, 0x18001f371\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5b, 0x18001f373\nadd     rsp, 20h                                                       ; +0x60, 0x18001f378\npop     rdi                                                            ; +0x64, 0x18001f37c\nretn                                                                   ; +0x65, 0x18001f37d", "xrefs": ["__dyn_tls_on_demand_init @ 0x18001f389", "<???> @ 0x1800232a0", "<???> @ 0x1800232f0", "<???> @ 0x18004b16c"], "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"}