Function at 0x1800bf0d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r15
sub rsp, 0x28
movsxd r15, dword [rcx + 0x30]
mov rbp, rcx
lea eax, [r15 - 2]
test eax, eax
js 0x1800bf326
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
xor edi, edi
mov qword [rsp + 0x20], r14
mov r14, qword [rcx + 0x18]
mov edx, dword [r14]
lea eax, [rdx - 1]
mov dword [r14], eax
cmp edx, 1
jg 0x1800bf2b5
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x1800bf132
cmp rcx, qword [0x18018f080]
je 0x1800bf12e
call sym.tcl86t.dll_hclpFree
mov qword [r14 + 8], rdi
mov rax, qword [r14 + 0x18]
mov dword [r14 + 0x10], 0xffffffff
test rax, rax
je 0x1800bf228
cmp qword [rax + 8], rdi
je 0x1800bf228
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018fec0]
mov rsi, rdi
test rax, rax
je 0x1800bf17f
test ecx, ecx
jle 0x1800bf17f
cmp ecx, dword [rax + 8]
jge 0x1800bf17f
mov rax, qword [rax]
mov rsi, qword [rax + rcx*8]
test rsi, rsi
jne 0x1800bf1b0
lea ecx, [rsi + 0x10]
call sym.tcl86t.dll_hclpAlloc
mov rsi, rax
test rax, rax
je 0x1800bf32e
xor eax, eax
lea rcx, [0x18018fec0]
mov qword [rsi], rax
mov rdx, rsi
mov qword [rsi + 8], rax
call fcn.180106bc0
mov eax, dword [rsi]
test eax, eax
jle 0x1800bf1c4
mov rax, qword [rsi + 8]
mov qword [r14 + 8], rax
mov qword [rsi + 8], r14
jmp 0x1800bf230
inc eax
mov rcx, r14
mov dword [rsi], eax
mov rax, qword [r14 + 0x18]
call qword [rax + ioctlsocket]
dec dword [rsi]
mov rcx, r14
call fcn.1801063c0
inc dword [rsi]
mov rbx, qword [rsi + 8]
mov eax, dword [rsi]
test rbx, rbx
je 0x1800bf222
nop dword [rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 8], rax
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x1800bf20f
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1800bf20f
mov rcx, rbx
call rdx
mov rcx, rbx
call fcn.1801063c0
mov rbx, qword [rsi + 8]
test rbx, rbx
jne 0x1800bf1f0
mov eax, dword [rsi]
dec eax
mov dword [rsi], eax
jmp 0x1800bf230
mov rcx, r14
call fcn.1801063c0
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018ff28]
mov rbx, rdi
test rax, rax
je 0x1800bf25e
test ecx, ecx
jle 0x1800bf25e
cmp ecx, dword [rax + 8]
jge 0x1800bf25e
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x1800bf28b
lea ecx, [rbx + 8]
call sym.tcl86t.dll_hclpAlloc
mov rbx, rax
test rax, rax
je 0x1800bf340
xor eax, eax
lea rcx, [0x18018ff28]
mov rdx, rbx
mov qword [rbx], rax
call fcn.180106bc0
mov rax, qword [rbx]
test rax, rax
je 0x1800bf2b5
mov rdx, r14
mov rcx, rax
call qword [rax + 0x40]
mov rbx, rax
test rax, rax
je 0x1800bf2b5
mov rcx, qword [rax + 0x18]
call sym.tcl86t.dll_hclpFree
mov rcx, rbx
call sym.tcl86t.dll_hcl_DeleteHashEntry
lea rbx, [r15 - 2]
mov qword [rbp + 0x18], rdi
test rbx, rbx
jle 0x1800bf2f1
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbp + 0x38]
mov rcx, qword [rax + rdi*8]
mov edx, dword [rcx]
lea eax, [rdx - 1]
mov dword [rcx], eax
cmp edx, 1
jg 0x1800bf2e9
call sym.tcl86t.dll_hclFreeObj
inc rdi
cmp rdi, rbx
jl 0x1800bf2d0
mov rax, qword [rbp + 0x38]
mov rcx, qword [rax + r15*8 - 8]
mov edx, dword [rcx]
lea eax, [rdx - 1]
mov dword [rcx], eax
cmp edx, 1
jg 0x1800bf30b
call sym.tcl86t.dll_hclFreeObj
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x20]
mov dword [rbp + 0x30], 1
add rsp, 0x28
pop r15
pop rbp
ret
mov edx, reloc.WS2_32.dll_recv
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, 8
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3