Function at 0x18000c7d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x230
mov rax, qword [0x18018f008]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rax, qword [0x1801902f8]
mov rdi, rcx
mov r14, qword [rsp + 0x288]
mov rbp, r9
mov r12, r8
mov r15, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018fa60]
xor esi, esi
mov ebx, esi
test rax, rax
je 0x18000c83e
test ecx, ecx
jle 0x18000c83e
cmp ecx, dword [rax + 8]
jge 0x18000c83e
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x18000c878
mov ecx, 0x8490
call sym.tcl86t.dll_hclpAlloc
mov rbx, rax
test rax, rax
je 0x18000cbdf
xor edx, edx
mov r8d, 0x8490
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [0x18018fa60]
call fcn.180106bc0
test rdi, rdi
je 0x18000cbd5
test r15, r15
je 0x18000cbd5
cmp dword [rdi], 0xfed7
jne 0x18000cbd5
cmp dword [rdi + 0x14], 2
je 0x18000c8a6
mov eax, select
jmp 0x18000c9ad
mov qword [rbx], rdi
mov rcx, qword [rdi + 0x20]
mov qword [rbx + 8], rcx
test dword [rcx + 4], 0x200
je 0x18000c8c3
test rbp, rbp
je 0x18000cbd5
mov edx, dword [rcx + 8]
bt edx, 0xc
jae 0x18000c8d6
mov eax, 1
jmp 0x18000c9ad
mov eax, dword [rsp + 0x290]
and edx, 1
mov qword [rsp + 0x260], r13
mov r13, rsi
mov dword [rbx + 0x10], eax
test byte [rcx + 4], 0x10
mov dword [rsp + 0x30], edx
cmove r13, qword [rsp + 0x280]
mov qword [rbx + 0x18], r13
test edx, edx
je 0x18000c942
mov rdx, qword [rcx + 0x10]
lea rax, [rdx + 1]
cmp rax, 0x14
ja 0x18000c91c
lea rax, [rsp + 0x40]
jmp 0x18000c928
lea ecx, [rdx*8 + 8]
call sym.tcl86t.dll_hclpAlloc
mov qword [rbx + 0x20], rax
test rax, rax
je 0x18000c9a0
mov rcx, qword [rbx + 8]
mov rax, qword [rcx + 0x10]
inc rax
mov qword [rbx + 0x18], rax
jmp 0x18000c946
mov qword [rbx + 0x20], r14
lea rax, [r15 + r12*2]
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x30], r15
lea r15, [rbx + 0x48]
mov qword [rbx + 0x38], rax
mov dword [rbx + 0x40], esi
movsxd rcx, dword [rcx + 0x58]
mov rbp, rcx
cmp rcx, 0x28
ja 0x18000c974
lea rax, [rsp + 0xe0]
jmp 0x18000c980
lea ecx, [rcx*8]
call sym.tcl86t.dll_hclpAlloc
mov qword [r15], rax
test rax, rax
jne 0x18000c9d9
mov rcx, qword [rbx + 0x20]
cmp rcx, r14
je 0x18000c9a0
lea rax, [rsp + 0x40]
cmp rcx, rax
je 0x18000c9a0
call sym.tcl86t.dll_hclpFree
mov eax, reloc.WS2_32.dll_inet_ntoa
mov r13, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.180146240
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rdx, rsi
test rbp, rbp
je 0x18000ca30
cmp rbp, 2
jb 0x18000ca1c
mov rdi, rax
lea rax, [rbp - 1]
lea rax, [rdi + rax*8]
cmp rdi, r15
ja 0x18000c9fc
cmp rax, r15
jae 0x18000ca1c
mov rcx, rbp
and rcx, 0xfffffffffffffffe
add rdx, 2
cmp rdx, rcx
jb 0x18000ca03
shr rcx, 1
shl rcx, 4
shr rcx, 3
xor eax, eax
rep stosq qword [rdi], rax
cmp rdx, rbp
jae 0x18000ca30
mov rax, qword [r15]
mov qword [rax + rdx*8], rsi
inc rdx
cmp rdx, rbp
jb 0x18000ca21
mov rcx, rbx
mov rdx, qword [rbx + 8]
lea r12, [rdx + 0x60]
mov rdi, qword [rdx + 0x18]
mov r8, r12
cmp dword [rsp + 0x30], esi
je 0x18000cb1d
lea r9, [rbx + 0x50]
mov qword [rsp + 0x38], rsi
add rdx, 0x20
call fcn.18000e0c0
mov ebp, dword [rbx + 0x40]
mov qword [rsp + 0x30], rax
test ebp, ebp
jne 0x18000cb7a
lea r9, [rbx + 0x4270]
mov r8, r12
lea rdx, [rdi + 0x30]
mov rcx, rbx
call fcn.18000e0c0
mov rbp, rax
cmp dword [rbx + 0x40], esi
je 0x18000ca9e
mov rcx, qword [rsp + 0x30]
call fcn.18000e290
mov ebp, dword [rbx + 0x40]
jmp 0x18000cb28
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov r9, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call fcn.18000ced0
mov rcx, rbp
mov r12d, eax
call fcn.18000e290
mov rcx, rdi
call fcn.18000e290
mov ebp, dword [rbx + 0x40]
test ebp, ebp
jne 0x18000cb7a
mov rax, qword [rbx + 8]
test dword [rax + 4], 0x200
je 0x18000cb18
mov rax, qword [rsp + 0x38]
mov rcx, qword [rbx + 0x30]
mov rdx, qword [rbx + 0x28]
test rax, rax
jne 0x18000cafe
mov rax, qword [rbx + 0x38]
sub rax, rcx
sar rax, 1
mov dword [rdx], eax
mov rcx, qword [rbx + 0x38]
sub rcx, qword [rbx + 0x30]
mov rax, qword [rbx + 0x28]
sar rcx, 1
mov dword [rax + 4], ecx
mov ebp, r12d
jmp 0x18000cb28
lea rdx, [rdi + 0x30]
call fcn.18000cc70
mov ebp, eax
test ebp, ebp
jne 0x18000cb7a
mov rdx, qword [rbx + 0x20]
cmp rdx, r14
je 0x18000cb7a
test r13, r13
je 0x18000cb7a
lea rcx, [r13 - 1]
test rcx, rcx
je 0x18000cb62
nop dword [rax]
nop word [rax + rax]
mov qword [r14 + rcx*8], 0xffffffffffffffff
sub rcx, 1
jne 0x18000cb50
mov rdx, qword [rbx + 0x20]
cmp r13, qword [rbx + 0x18]
mov rcx, r14
cmovae r13, qword [rbx + 0x18]
shl r13, 3
mov r8, r13
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x20]
cmp rcx, r14
je 0x18000cb92
lea rax, [rsp + 0x40]
cmp rcx, rax
je 0x18000cb92
call sym.tcl86t.dll_hclpFree
mov rax, qword [rbx + 8]
movsxd rdi, dword [rax + 0x58]
test rdi, rdi
je 0x18000cbb9
nop
mov rax, qword [r15]
mov rcx, qword [rax + rsi*8]
test rcx, rcx
je 0x18000cbb1
call fcn.18000e290
inc rsi
cmp rsi, rdi
jb 0x18000cba0
mov rcx, qword [r15]
lea rax, [rsp + 0xe0]
cmp rcx, rax
je 0x18000cbce
call sym.tcl86t.dll_hclpFree
mov eax, ebp
jmp 0x18000c9a5
mov eax, reloc.WS2_32.dll_recv
jmp 0x18000c9ad
mov edx, 0x8490
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3