Function at 0x18009e0c0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x30
mov eax, dword [rcx + 0x3c]
mov r14, rcx
test eax, eax
jne 0x18009e0dd
lea rbp, reloc.WS2_32.dll_accept
jmp 0x18009e0fe
cmp eax, 1
jne 0x18009e0eb
lea rbp, reloc.WS2_32.dll_accept
jmp 0x18009e0fe
add eax, 2
lea rbp, [0x180152b30]
cmp eax, 1
ja 0x18009e0fe
mov rbp, qword [rcx + 0x50]
mov qword [rsp + 0x50], rbx
xor r15d, r15d
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
cmp dword [rcx + 0x28], r15d
jle 0x18009e25d
mov r12d, r15d
lea r13, [0x180190200]
nop
mov rax, qword [r14]
mov rbx, qword [r12 + rax]
test rbx, rbx
je 0x18009e24c
mov rax, qword [rbp + 0x20]
mov rsi, qword [rbx]
test rax, rax
je 0x18009e156
mov rcx, rbx
call rax
jmp 0x18009e240
cmp dword [0x1801905e4], 0
jne 0x18009e180
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801905ac], eax
mov dword [0x1801905e4], 1
cmp eax, 0xffffffff
je 0x18009e2c6
jmp 0x18009e186
mov eax, dword [0x1801905ac]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x18009e1a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18009e2d3
test rdi, rdi
jne 0x18009e1b1
call fcn.180105bb0
mov rdi, rax
movzx eax, byte [rbx - 0x10]
add rbx, 0xfffffffffffffff0
cmp al, 0xef
jne 0x18009e2e0
cmp byte [rbx + 3], al
jne 0x18009e2e0
movzx edx, byte [rbx + 1]
cmp edx, 0xa
jne 0x18009e1ef
mov eax, dword [rbx + 8]
sub dword [rdi + 0x28], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18009e240
lea rax, [rdx + rdx*4]
lea rcx, [rdi + rax*8]
mov eax, dword [rbx + 8]
sub dword [rcx + 0x54], eax
mov rax, qword [rcx + 0x30]
mov qword [rbx], rax
mov r9d, dword [rcx + 0x40]
mov qword [rcx + 0x30], rbx
test r9d, r9d
jne 0x18009e215
mov qword [rcx + 0x38], rbx
inc dword [rcx + 0x48]
inc r9d
cmp rdi, qword [0x18018f158]
mov dword [rcx + 0x40], r9d
je 0x18009e240
lea rax, [rdx + rdx*2]
cmp r9d, dword [r13 + rax*8 + 8]
jle 0x18009e240
mov r8d, dword [r13 + rax*8 + 0xc]
mov rcx, rdi
call fcn.180106700
mov rbx, rsi
test rsi, rsi
jne 0x18009e140
inc r15d
add r12, 8
cmp r15d, dword [r14 + 0x28]
jl 0x18009e130
mov rbx, qword [r14]
lea rax, [r14 + 8]
cmp rbx, rax
je 0x18009e28d
test byte [rbp + 4], 2
je 0x18009e285
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18009e28d
mov rcx, rbx
call sym.tcl86t.dll_hclpFree
mov r13, qword [rsp + 0x20]
lea rax, [0x18009e7a0]
mov r12, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov qword [r14 + 0x40], rax
lea rax, [0x18009e7c0]
mov qword [r14 + 0x48], rax
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
lea rcx, str.could_not_allocate_thread_local_storage
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.TlsGetValue_failed_from_TclpGetAllocCache
call sym.tcl86t.dll_hcl_Panic
int3
movzx r9d, byte [rbx + 3]
lea rcx, str.alloc:_invalid_block:__p:__x__x
movzx r8d, al
mov rdx, rbx
call sym.tcl86t.dll_hcl_Panic
int3