Function at 0x1800f83e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018ff78]
xor edi, edi
mov ebx, edi
test rax, rax
je 0x1800f8419
test ecx, ecx
jle 0x1800f8419
cmp ecx, dword [rax + 8]
jge 0x1800f8419
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x1800f845e
lea ecx, [rbx + 0x38]
call sym.tcl86t.dll_hclpAlloc
mov rbx, rax
test rax, rax
je 0x1800f8778
xor eax, eax
lea rcx, [0x18018ff78]
mov qword [rbx], rax
mov rdx, rbx
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
call fcn.180106bc0
cmp qword [rbx], rdi
jne 0x1800f8758
call fcn.180106220
mov qword [rbx], rax
mov ecx, 6
mov dword [rax], edi
call sym.tcl86t.dll_hclpAlloc
mov rcx, rax
test rax, rax
je 0x1800f878a
mov rax, qword [rbx]
mov qword [rax + 8], rcx
mov rax, qword [rbx]
mov rcx, qword [rax + 8]
mov eax, dword [str._code]
mov dword [rcx], eax
movzx eax, byte [reloc.WS2_32.dll_WSAAsyncSelect]
mov byte [rcx + 4], al
mov rax, qword [rbx]
mov rcx, qword [rax + 8]
mov byte [rcx + 5], dil
mov rax, qword [rbx]
mov dword [rax + 0x10], 5
mov rax, qword [rbx]
mov qword [rax + 0x18], rdi
call fcn.180106220
mov qword [rbx + 8], rax
mov ecx, listen
mov dword [rax], edi
call sym.tcl86t.dll_hclpAlloc
test rax, rax
je 0x1800f8766
mov rcx, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rbx + 8]
movsd xmm0, qword [str._errorcode]
mov rcx, qword [rax + 8]
movsd qword [rcx], xmm0
movzx eax, word [0x180162cd0]
mov word [rcx + 8], ax
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov byte [rcx + 0xa], dil
mov rax, qword [rbx + 8]
mov dword [rax + 0x10], 0xa
mov rax, qword [rbx + 8]
mov qword [rax + 0x18], rdi
call fcn.180106220
mov qword [rbx + 0x10], rax
mov ecx, listen
mov dword [rax], edi
call sym.tcl86t.dll_hclpAlloc
test rax, rax
je 0x1800f8766
mov rcx, qword [rbx + 0x10]
mov qword [rcx + 8], rax
mov rax, qword [rbx + 0x10]
movsd xmm0, qword [str._errorinfo]
mov rcx, qword [rax + 8]
movsd qword [rcx], xmm0
movzx eax, word [0x180162cc0]
mov word [rcx + 8], ax
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 8]
mov byte [rcx + 0xa], dil
mov rax, qword [rbx + 0x10]
mov dword [rax + 0x10], 0xa
mov rax, qword [rbx + 0x10]
mov qword [rax + 0x18], rdi
call fcn.180106220
mov qword [rbx + 0x18], rax
mov ecx, listen
mov dword [rax], edi
call sym.tcl86t.dll_hclpAlloc
test rax, rax
je 0x1800f8766
mov rcx, qword [rbx + 0x18]
mov qword [rcx + 8], rax
mov rax, qword [rbx + 0x18]
movsd xmm0, qword [str._errorline]
mov rcx, qword [rax + 8]
movsd qword [rcx], xmm0
movzx eax, word [0x180170680]
mov word [rcx + 8], ax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax + 8]
mov byte [rcx + 0xa], dil
mov rax, qword [rbx + 0x18]
mov dword [rax + 0x10], 0xa
mov rax, qword [rbx + 0x18]
mov qword [rax + 0x18], rdi
call fcn.180106220
mov qword [rbx + 0x30], rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
mov dword [rax], edi
call sym.tcl86t.dll_hclpAlloc
mov rcx, rax
test rax, rax
je 0x1800f879c
mov rax, qword [rbx + 0x30]
mov qword [rax + 8], rcx
mov rax, qword [rbx + 0x30]
movsd xmm0, qword [str._errorstack]
mov rcx, qword [rax + 8]
movsd qword [rcx], xmm0
movzx eax, word [0x180170690]
mov word [rcx + 8], ax
movzx eax, byte [0x180170692]
mov byte [rcx + 0xa], al
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 8]
mov byte [rcx + 0xb], dil
mov rax, qword [rbx + 0x30]
mov dword [rax + 0x10], listen
mov rax, qword [rbx + 0x30]
mov qword [rax + 0x18], rdi
call fcn.180106220
mov qword [rbx + 0x20], rax
mov ecx, 7
mov dword [rax], edi
call sym.tcl86t.dll_hclpAlloc
mov rcx, rax
test rax, rax
je 0x1800f87ae
mov rax, qword [rbx + 0x20]
mov qword [rax + 8], rcx
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + 8]
mov eax, dword [str._level]
mov dword [rcx], eax
movzx eax, word [0x180167168]
mov word [rcx + 4], ax
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + 8]
mov byte [rcx + 6], dil
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x10], 6
mov rax, qword [rbx + 0x20]
mov qword [rax + 0x18], rdi
call fcn.180106220
mov qword [rbx + 0x28], rax
mov ecx, 9
mov dword [rax], edi
call sym.tcl86t.dll_hclpAlloc
mov rcx, rax
test rax, rax
je 0x1800f87c0
mov rax, qword [rbx + 0x28]
mov rdx, rbx
mov qword [rax + 8], rcx
mov rax, qword [rbx + 0x28]
mov rcx, qword [rax + 8]
movabs rax, 0x736e6f6974706f2d
mov qword [rcx], rax
mov rax, qword [rbx + 0x28]
mov rcx, qword [rax + 8]
mov byte [rcx + 8], dil
lea rcx, [0x1800f87e0]
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x10], 8
mov rax, qword [rbx + 0x28]
mov qword [rax + 0x18], rdi
mov rax, qword [rbx]
inc dword [rax]
mov rax, qword [rbx + 8]
inc dword [rax]
mov rax, qword [rbx + 0x10]
inc dword [rax]
mov rax, qword [rbx + 0x18]
inc dword [rax]
mov rax, qword [rbx + 0x20]
inc dword [rax]
mov rax, qword [rbx + 0x28]
inc dword [rax]
mov rax, qword [rbx + 0x30]
inc dword [rax]
call sym.tcl86t.dll_hcl_CreateThreadExitHandler
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, listen
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
mov edx, 6
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, reloc.WS2_32.dll_inet_ntoa
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, 7
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, 9
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3