{"type": "func", "start": 6443717236, "end": 6443717301, "name": "__acrt_freeptd", "pseudocode": "// \n// __acrt_freeptd from 0x180135274 to 0x1801352b5 (65 bytes)\n// \n// 2 xrefs:\n// > __acrt_thread_detach @ 0x18013298c\n// > <???> @ 0x180203350\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 _acrt_freeptd()\n{\n  void **Value; // rbx\n\n  if ( dword_1801B1870 != -1 )\n  {\n    Value = (void **)_acrt_FlsGetValue();\n    if ( Value )\n    {\n      _acrt_FlsSetValue(dword_1801B1870, nullptr);\n      destroy_ptd_array(Value);\n      free_base(Value);\n    }\n  }\n}", "assembly": "; \n; __acrt_freeptd from 0x180135274 to 0x1801352b5 (65 bytes)\n; \n; 2 xrefs:\n; > __acrt_thread_detach @ 0x18013298c\n; > <???> @ 0x180203350\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, 0x180135274\nsub     rsp, 20h                                                       ; +0x2, 0x180135276\nmov     ecx, cs:dword_1801B1870                                        ; +0x6, 0x18013527a\ncmp     ecx, 0FFFFFFFFh                                                ; +0xc, 0x180135280\njz      short loc_1801352AF                                            ; +0xf, 0x180135283\ncall    __acrt_FlsGetValue                                             ; +0x11, 0x180135285\nmov     rbx, rax                                                       ; +0x16, 0x18013528a\ntest    rax, rax                                                       ; +0x19, 0x18013528d\njz      short loc_1801352AF                                            ; +0x1c, 0x180135290\nmov     ecx, cs:dword_1801B1870; dwTlsIndex                            ; +0x1e, 0x180135292\nxor     edx, edx; lpTlsValue                                           ; +0x24, 0x180135298\ncall    __acrt_FlsSetValue                                             ; +0x26, 0x18013529a\nmov     rcx, rbx; struct __acrt_ptd *                                  ; +0x2b, 0x18013529f\ncall    ?destroy_ptd_array@@YAXQEAU__acrt_ptd@@@Z                      ; +0x2e, 0x1801352a2\nmov     rcx, rbx; Block                                                ; +0x33, 0x1801352a7\ncall    _free_base                                                     ; +0x36, 0x1801352aa\nadd     rsp, 20h                                                       ; +0x3b, 0x1801352af\npop     rbx                                                            ; +0x3f, 0x1801352b3\nretn                                                                   ; +0x40, 0x1801352b4", "xrefs": ["__acrt_thread_detach @ 0x18013298c", "<???> @ 0x180203350"], "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"}