Function at 0x1800f65e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x18018f008]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rax, qword [0x1801902f8]
mov r15d, r9d
mov qword [rsp + 0x38], rcx
mov ebp, r8d
mov r14, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018ff70]
xor esi, esi
mov ebx, esi
test rax, rax
je 0x1800f663e
test ecx, ecx
jle 0x1800f663e
cmp ecx, dword [rax + 8]
jge 0x1800f663e
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x1800f6678
mov ecx, 0x260
call sym.tcl86t.dll_hclpAlloc
mov rbx, rax
test rax, rax
je 0x1800f6d91
xor edx, edx
mov r8d, 0x260
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [0x18018ff70]
call fcn.180106bc0
mov qword [rsp + 0x148], rdi
mov qword [rsp + 0x140], r12
mov qword [rsp + 0x138], r13
cmp dword [rbx], esi
jne 0x1800f66a8
xor edx, edx
mov dword [rbx], 1
lea rcx, [0x1800f6e70]
call sym.tcl86t.dll_hcl_CreateThreadExitHandler
mov edi, esi
lea r9, [rbx + 0x170]
mov r11, rsi
lea r10, [rbx + 0xf8]
nop dword [rax + rax]
mov r8, qword [r9 - 0x168]
test r8, r8
je 0x1800f670a
cmp ebp, dword [r10]
jne 0x1800f66f7
mov rsi, qword [r9]
cmp dword [rsi], r15d
jne 0x1800f66f7
mov rax, r14
sub r8, r14
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800f66f3
inc rax
test ecx, ecx
jne 0x1800f66e0
test edx, edx
je 0x1800f6722
inc edi
inc r11
add r10, 4
add r9, 8
cmp r11, 0x1e
jl 0x1800f66c0
mov ecx, 0x68
call sym.tcl86t.dll_hclpAlloc
mov rdi, rax
test rax, rax
je 0x1800f6da3
jmp 0x1800f67a0
test edi, edi
je 0x1800f6791
movsxd rax, edi
mov r9, qword [rbx + rax*8 + 8]
lea eax, [rdi - 1]
movsxd r8, eax
test eax, eax
js 0x1800f6778
lea rdx, [r8 + 0x3f]
lea rcx, [r8 + 1]
lea rdx, [rbx + rdx*4]
lea rcx, [rbx + rcx*8]
nop dword [rax + rax]
sub r8, 1
mov rax, qword [rcx]
mov qword [rcx + 8], rax
lea rcx, [rcx - 8]
mov eax, dword [rdx - 4]
mov dword [rdx], eax
lea rdx, [rdx - 4]
mov rax, qword [rcx + 0x170]
mov qword [rcx + 0x178], rax
jns 0x1800f6750
mov qword [rbx + 8], r9
mov rax, rsi
mov dword [rbx + 0xf8], ebp
mov qword [rbx + 0x170], rsi
jmp 0x1800f6d5a
mov rsi, qword [rbx + 0x170]
mov rax, rsi
jmp 0x1800f6d5a
mov qword [rax + 0x58], 0xffffffffffffffff
lea r8, [rsp + 0x40]
xor esi, esi
mov edx, ebp
mov qword [rax + 0x40], rsi
mov rcx, r14
mov qword [rax + 0x38], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x4c], 0xc8
mov byte [rsp + 0x50], sil
call sym.tcl86t.dll_hcl_UtfToUniCharDString
movsxd rcx, dword [rsp + 0x48]
mov r9d, r15d
shr rcx, 1
mov rdx, rax
movsxd r8, ecx
lea rcx, [rdi + 8]
mov dword [rdi], r15d
call fcn.1800010c0
mov rcx, qword [rsp + 0x40]
mov esi, eax
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x1800f680f
call sym.tcl86t.dll_hclpFree
xor r15d, r15d
mov dword [rsp + 0x4c], 0xc8
mov dword [rsp + 0x48], r15d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x50], r15b
test esi, esi
je 0x1800f685d
mov rcx, rdi
call sym.tcl86t.dll_hclpFree
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1800f6856
mov r8d, esi
lea rdx, str.couldnt_compile_regular_expression_pattern:
mov rcx, rax
call sym.tcl86t.dll_hclRegError
xor eax, eax
jmp 0x1800f6d5a
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], r15
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, ebp
mov rdx, r14
call fcn.180113510
test eax, eax
jne 0x1800f6892
lea rcx, [rsp + 0x40]
call fcn.180112110
mov qword [rdi + 0x48], rax
inc dword [rax]
jmp 0x1800f6896
mov qword [rdi + 0x48], r15
mov eax, dword [rdi + 0x10]
lea esi, [rax*8 + 8]
mov ecx, esi
call sym.tcl86t.dll_hclpAlloc
test rax, rax
jne 0x1800f68b4
test esi, esi
jne 0x1800f6db5
mov qword [rdi + 0x50], rax
mov dword [rdi + 0x60], 1
cmp qword [rbx + 0xf0], r15
je 0x1800f68f0
mov rcx, qword [rbx + 0x258]
mov edx, dword [rcx + 0x60]
lea eax, [rdx - 1]
mov dword [rcx + 0x60], eax
cmp edx, 1
jg 0x1800f68e2
call fcn.1800f6de0
mov rcx, qword [rbx + 0xf0]
call sym.tcl86t.dll_hclpFree
nop
mov rax, qword [rbx + 0xe8]
mov qword [rbx + 0xf0], rax
mov eax, dword [rbx + 0x168]
mov dword [rbx + 0x16c], eax
mov rax, qword [rbx + 0x250]
mov qword [rbx + 0x258], rax
mov rax, qword [rbx + 0xe0]
mov qword [rbx + 0xe8], rax
mov eax, dword [rbx + 0x164]
mov dword [rbx + 0x168], eax
mov rax, qword [rbx + 0x248]
mov qword [rbx + 0x250], rax
mov rax, qword [rbx + 0xd8]
mov qword [rbx + 0xe0], rax
mov eax, dword [rbx + 0x160]
mov dword [rbx + 0x164], eax
mov rax, qword [rbx + 0x240]
mov qword [rbx + 0x248], rax
mov rax, qword [rbx + 0xd0]
mov qword [rbx + 0xd8], rax
mov eax, dword [rbx + 0x15c]
mov dword [rbx + 0x160], eax
mov rax, qword [rbx + 0x238]
mov qword [rbx + 0x240], rax
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xd0], rax
mov eax, dword [rbx + 0x158]
mov dword [rbx + 0x15c], eax
mov rax, qword [rbx + 0x230]
mov qword [rbx + 0x238], rax
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xc8], rax
mov eax, dword [rbx + 0x154]
mov dword [rbx + 0x158], eax
mov rax, qword [rbx + 0x228]
mov qword [rbx + 0x230], rax
mov rax, qword [rbx + 0xb8]
mov qword [rbx + 0xc0], rax
mov eax, dword [rbx + 0x150]
mov dword [rbx + 0x154], eax
mov rax, qword [rbx + 0x220]
mov qword [rbx + 0x228], rax
mov rax, qword [rbx + 0xb0]
mov qword [rbx + 0xb8], rax
mov eax, dword [rbx + 0x14c]
mov dword [rbx + 0x150], eax
mov rax, qword [rbx + 0x218]
mov qword [rbx + 0x220], rax
mov rax, qword [rbx + 0xa8]
mov qword [rbx + 0xb0], rax
mov eax, dword [rbx + 0x148]
mov dword [rbx + 0x14c], eax
mov rax, qword [rbx + 0x210]
mov qword [rbx + 0x218], rax
mov rax, qword [rbx + 0xa0]
mov qword [rbx + 0xa8], rax
mov eax, dword [rbx + 0x144]
mov dword [rbx + 0x148], eax
mov rax, qword [rbx + 0x208]
mov qword [rbx + 0x210], rax
mov rax, qword [rbx + 0x98]
mov qword [rbx + 0xa0], rax
mov eax, dword [rbx + 0x140]
mov dword [rbx + 0x144], eax
mov rax, qword [rbx + 0x200]
mov qword [rbx + 0x208], rax
mov rax, qword [rbx + 0x90]
mov qword [rbx + 0x98], rax
mov eax, dword [rbx + 0x13c]
mov dword [rbx + 0x140], eax
mov rax, qword [rbx + 0x1f8]
mov qword [rbx + 0x200], rax
mov rax, qword [rbx + 0x88]
mov qword [rbx + 0x90], rax
mov eax, dword [rbx + 0x138]
mov dword [rbx + 0x13c], eax
mov rax, qword [rbx + 0x1f0]
mov qword [rbx + 0x1f8], rax
mov rax, qword [rbx + 0x80]
mov qword [rbx + 0x88], rax
mov eax, dword [rbx + 0x134]
mov dword [rbx + 0x138], eax
mov rax, qword [rbx + 0x1e8]
mov qword [rbx + 0x1f0], rax
mov rax, qword [rbx + 0x78]
mov qword [rbx + 0x80], rax
mov eax, dword [rbx + 0x130]
mov dword [rbx + 0x134], eax
mov rax, qword [rbx + 0x1e0]
mov qword [rbx + 0x1e8], rax
mov rax, qword [rbx + 0x70]
mov qword [rbx + 0x78], rax
mov eax, dword [rbx + 0x12c]
mov dword [rbx + 0x130], eax
mov rax, qword [rbx + 0x1d8]
mov qword [rbx + 0x1e0], rax
mov rax, qword [rbx + 0x68]
mov qword [rbx + 0x70], rax
mov eax, dword [rbx + 0x128]
mov dword [rbx + 0x12c], eax
mov rax, qword [rbx + 0x1d0]
mov qword [rbx + 0x1d8], rax
mov rax, qword [rbx + 0x60]
mov qword [rbx + 0x68], rax
mov eax, dword [rbx + 0x124]
mov dword [rbx + 0x128], eax
mov rax, qword [rbx + 0x1c8]
mov qword [rbx + 0x1d0], rax
mov rax, qword [rbx + 0x58]
mov qword [rbx + 0x60], rax
mov eax, dword [rbx + 0x120]
mov dword [rbx + 0x124], eax
mov rax, qword [rbx + 0x1c0]
mov qword [rbx + 0x1c8], rax
mov rax, qword [rbx + 0x50]
mov qword [rbx + 0x58], rax
mov eax, dword [rbx + 0x11c]
mov dword [rbx + 0x120], eax
mov rax, qword [rbx + 0x1b8]
mov qword [rbx + 0x1c0], rax
mov rax, qword [rbx + 0x48]
mov qword [rbx + 0x50], rax
mov eax, dword [rbx + 0x118]
mov dword [rbx + 0x11c], eax
mov rax, qword [rbx + 0x1b0]
mov qword [rbx + 0x1b8], rax
mov rax, qword [rbx + 0x40]
mov qword [rbx + 0x48], rax
mov eax, dword [rbx + 0x114]
mov dword [rbx + 0x118], eax
mov rax, qword [rbx + 0x1a8]
mov qword [rbx + 0x1b0], rax
mov rax, qword [rbx + 0x38]
mov qword [rbx + 0x40], rax
mov eax, dword [rbx + 0x110]
mov dword [rbx + 0x114], eax
mov rax, qword [rbx + 0x1a0]
mov qword [rbx + 0x1a8], rax
mov rax, qword [rbx + 0x30]
mov qword [rbx + 0x38], rax
mov eax, dword [rbx + 0x10c]
mov dword [rbx + 0x110], eax
mov rax, qword [rbx + 0x198]
mov qword [rbx + 0x1a0], rax
mov rax, qword [rbx + 0x28]
mov qword [rbx + 0x30], rax
mov eax, dword [rbx + 0x108]
mov dword [rbx + 0x10c], eax
mov rax, qword [rbx + 0x190]
mov qword [rbx + 0x198], rax
mov rax, qword [rbx + 0x20]
mov qword [rbx + 0x28], rax
mov eax, dword [rbx + 0x104]
mov dword [rbx + 0x108], eax
mov rax, qword [rbx + 0x188]
mov qword [rbx + 0x190], rax
mov rax, qword [rbx + 0x18]
mov qword [rbx + 0x20], rax
mov eax, dword [rbx + 0x100]
mov dword [rbx + 0x104], eax
mov rax, qword [rbx + 0x180]
mov qword [rbx + 0x188], rax
mov rax, qword [rbx + 0x10]
lea esi, [rbp + 1]
mov qword [rbx + 0x18], rax
mov ecx, esi
mov eax, dword [rbx + 0xfc]
mov dword [rbx + 0x100], eax
mov rax, qword [rbx + 0x178]
mov qword [rbx + 0x180], rax
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov eax, dword [rbx + 0xf8]
mov dword [rbx + 0xfc], eax
mov rax, qword [rbx + 0x170]
mov qword [rbx + 0x178], rax
call sym.tcl86t.dll_hclpAlloc
test rax, rax
jne 0x1800f6d38
test esi, esi
jne 0x1800f6dc4
mov r8d, esi
mov rdx, r14
mov rcx, rax
mov qword [rbx + 8], rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, rdi
mov dword [rbx + 0xf8], ebp
mov qword [rbx + 0x170], rdi
mov r12, qword [rsp + 0x140]
mov rdi, qword [rsp + 0x148]
mov r13, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180146240
add rsp, 0x150
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
mov edx, 0x260
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, 0x68
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, esi
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, esi
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3