Function at 0x1800b6a80
Capabilities:
Get thread local storage value

Disassembly:
push r14
push r15
sub rsp, 0x28
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018fe08]
xor r15d, r15d
mov r14d, r15d
test rax, rax
je 0x1800b6ab9
test ecx, ecx
jle 0x1800b6ab9
cmp ecx, dword [rax + 8]
jge 0x1800b6ab9
mov rax, qword [rax]
mov r14, qword [rax + rcx*8]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x20], rdi
test r14, r14
jne 0x1800b6b13
lea ecx, [r14 + 0x38]
call sym.tcl86t.dll_hclpAlloc
mov r14, rax
test rax, rax
je 0x1800b6cc5
xor eax, eax
lea rcx, [0x18018fe08]
mov qword [r14], rax
mov rdx, r14
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x20], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x30], rax
call fcn.180106bc0
cmp qword [r14 + 0x28], r15
je 0x1800b6b34
cmp qword [r14 + 0x30], r15
jne 0x1800b6c92
mov rax, qword [reloc.WS2_32.dll_accept]
cmp qword [r14 + 0x10], rax
je 0x1800b6c92
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018fe08]
mov rsi, r15
test rax, rax
je 0x1800b6b62
test ecx, ecx
jle 0x1800b6b62
cmp ecx, dword [rax + 8]
jge 0x1800b6b62
mov rax, qword [rax]
mov rsi, qword [rax + rcx*8]
test rsi, rsi
jne 0x1800b6ba7
lea ecx, [rsi + 0x38]
call sym.tcl86t.dll_hclpAlloc
mov rsi, rax
test rax, rax
je 0x1800b6cc5
xor eax, eax
lea rcx, [0x18018fe08]
mov qword [rsi], rax
mov rdx, rsi
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x30], rax
call fcn.180106bc0
mov rax, qword [rsi + 0x28]
mov rbx, r15
mov rdi, r15
test rax, rax
je 0x1800b6bd3
nop word [rax + rax]
mov rbx, qword [rax + 0x10]
mov qword [rax + 0x10], rdi
mov rdi, rax
mov rax, rbx
test rbx, rbx
jne 0x1800b6bc0
lea rcx, [0x18018fe30]
call sym.tcl86t.dll_hcl_MutexLock
mov rax, qword [0x18018f120]
test rax, rax
je 0x1800b6bfc
nop dword [rax + rax]
mov rbx, rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1800b6bf0
mov rbp, r15
test rbx, rbx
je 0x1800b6c39
mov ecx, 0x20
call sym.tcl86t.dll_hclpAlloc
test rax, rax
je 0x1800b6cb3
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rax + 0x10], xmm1
mov qword [rax + 0x10], rbp
mov rbp, rax
mov qword [rax + 0x18], r15
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x1800b6c04
mov rax, qword [reloc.WS2_32.dll_accept]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x28], rbp
mov rcx, qword [0x18018fe30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rdi, rdi
je 0x1800b6c78
nop word [rax + rax]
mov rbx, qword [rdi + 0x10]
mov rcx, rdi
mov qword [rdi + 8], r15
call sym.tcl86t.dll_hclpFree
mov rdi, rbx
test rbx, rbx
jne 0x1800b6c60
cmp dword [rsi], r15d
jne 0x1800b6c92
mov rdx, rsi
lea rcx, [0x1800b6800]
call sym.tcl86t.dll_hcl_CreateThreadExitHandler
mov dword [rsi], 1
mov rax, qword [r14 + 0x28]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
pop r15
pop r14
ret
mov edx, 0x20
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, gethostname
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3