Function at 0x1800010c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rax, qword [0x1801902f8]
mov r14, rcx
mov r12d, r9d
mov rbp, r8
mov rdi, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd r10, dword [0x18018fa58]
xor r13d, r13d
mov ebx, r13d
test rax, rax
je 0x180001110
test r10d, r10d
jle 0x180001110
cmp r10d, dword [rax + 8]
jge 0x180001110
mov rbx, qword [rax]
mov rbx, qword [rbx + r10*8]
test rbx, rbx
jne 0x18000114a
mov ecx, 0x110
call sym.tcl86t.dll_hclpAlloc
mov rbx, rax
test rax, rax
je 0x18000166d
xor edx, edx
mov r8d, 0x110
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [0x18018fa58]
call fcn.180106bc0
mov qword [rsp + 0x60], rsi
mov eax, 1
bt r12d, 0xd
jae 0x180001168
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rsi, rax
jmp 0x18000116b
mov rsi, r13
test r14, r14
je 0x180001663
test rdi, rdi
je 0x180001663
test r12b, 0xe3
setne cl
test r12b, 4
setne al
test al, cl
jne 0x180001663
mov eax, r12d
and al, 3
cmp al, 2
je 0x180001663
lea rax, [rdi + rbp*2]
mov qword [rsp + 0x68], r15
mov qword [rbx + 0x10], rax
mov rcx, r13
lea rax, [rbx + 0x58]
mov qword [rbx], r14
mov qword [rbx + 0x48], rax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x20], r13
mov qword [rbx + 0x18], r13
mov dword [rbx + 0x28], r13d
mov dword [rbx + 0x2c], r12d
mov dword [rbx + 0x40], r13d
mov qword [rbx + 0x50], 0xa
nop dword [rax + rax]
mov rax, qword [rbx + 0x48]
mov qword [rax + rcx*8], r13
inc rcx
cmp rcx, qword [rbx + 0x50]
jb 0x1800011e0
mov qword [rbx + 0xa8], r13
lea rax, [0x180149988]
mov qword [rbx + 0xb0], r13
mov edi, 0xffffffff
mov word [rbx + 0xb8], di
mov ebp, 2
mov qword [rbx + 0xc0], r13
mov ecx, 0x11e8
mov qword [rbx + 0xc8], r13
mov qword [rbx + 0xd0], r13
mov qword [rbx + 0xd8], r13
mov qword [rbx + 0xe8], r13
mov qword [rbx + 0xf0], r13
mov qword [rbx + 0xf8], r13
mov dword [rbx + 0x100], r13d
mov qword [rbx + 0x108], r13
mov dword [r14], 0xfed7
mov dword [r14 + 0x10], r13d
mov dword [r14 + 0x14], ebp
mov qword [r14 + 0x20], r13
mov qword [r14 + 0x28], rax
call sym.tcl86t.dll_hclpAlloc
mov qword [r14 + 0x20], rax
mov r15, rax
test rax, rax
jne 0x1800012aa
lea edx, [rdi + 0xd]
mov rcx, rbx
call fcn.180001680
mov r15, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
mov qword [rax + 0x18], r13
lea r8, [rax + 0x60]
lea r9, [r8 + 0x30]
mov dword [r8], 0x876
mov qword [r8 + 0x28], r9
lea rdx, [r8 + 0x970]
mov qword [r8 + 8], rbx
mov eax, 0xff
mov qword [r8 + 0x10], 0xa
mov ecx, eax
mov qword [r8 + 0x18], r13
mov word [r8 + 0x20], r13w
mov word [r9 + 4], di
mov qword [r9 + 8], r13
mov dword [r9 + 0x10], r13d
mov dword [r9], 0x10000
nop dword [rax + rax]
mov qword [r8 + rcx*8 + 0x170], rdx
sub rcx, 1
jns 0x180001300
lea rcx, [r8 + 0x970]
mov word [rcx + rax*2], r13w
sub rax, 1
jns 0x180001315
mov qword [r9 + 0x18], rcx
mov rcx, rbx
mov qword [rbx + 0xb0], r8
xor r8d, r8d
mov qword [r15 + 0x11d8], r13
mov dword [r15 + 0x11e0], r13d
mov dword [r15 + 0x20], r13d
mov rdx, qword [rbx + 0xb0]
call fcn.180006a80
mov edx, dword [rbx + 0x28]
mov qword [rbx + 0xa8], rax
test edx, edx
jne 0x180001286
mov edx, shutdown
lea ecx, [rdx + 0x50]
call fcn.180009b90
mov qword [rbx + 0xe8], rax
mov rcx, rbx
test rax, rax
jne 0x180001385
lea edx, [rax + 0xc]
jmp 0x180001289
call fcn.1800043a0
cmp dword [rbx + 0x28], r13d
jne 0x1800013ba
mov eax, dword [rbx + 0x2c]
test al, 4
je 0x1800013a0
mov dword [rbx + 0x3c], 3
jmp 0x1800013ab
and al, 1
neg al
sbb eax, eax
add eax, ebp
mov dword [rbx + 0x3c], eax
mov rcx, rbx
mov dword [rbx + 0x34], WSAStartup
call fcn.1800046b0
test byte [rbx + 0x2c], 0xc0
je 0x1800013eb
mov rcx, qword [rbx + 0xb0]
mov edx, 0xa
call fcn.180006100
mov rdx, qword [rbx + 0xb0]
mov rcx, qword [rbx + 0xa8]
mov word [rbx + 0xb8], ax
call fcn.180006670
mov edx, dword [rbx + 0x28]
mov rcx, rbx
test edx, edx
jne 0x180001289
mov r9, qword [rbx + 0xa8]
mov edx, reloc.WS2_32.dll_WSAAsyncSelect
mov rax, qword [r9 + 0x10]
lea r8d, [rdx + 0xb]
mov r9, qword [r9 + 8]
mov qword [rsp + 0x20], rax
call fcn.180001a20
mov edx, dword [rbx + 0x28]
mov qword [rbx + 0xc8], rax
test edx, edx
jne 0x180001286
mov rcx, qword [rbx + 0xa8]
call fcn.1800082a0
mov edx, dword [rbx + 0x28]
test edx, edx
jne 0x180001286
test rsi, rsi
je 0x180001467
lea rdx, str._n_n_n_RAW__n
mov rcx, rsi
call fcn.180001010
mov rcx, qword [rbx + 0xc8]
mov rdx, rsi
call fcn.1800040e0
mov rdi, qword [rbx + 0xc8]
mov eax, 1
mov rcx, qword [rdi + 0x10]
mov word [rdi + 2], ax
test rcx, rcx
je 0x180001489
mov edx, ebp
call fcn.180003b90
mov ebp, eax
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x18000149b
mov edx, ebp
call fcn.180003b90
mov ebp, eax
mov rcx, qword [rbx + 0xc8]
mov dword [rbx + 0xe0], ebp
call fcn.180003bd0
mov rcx, rbx
call fcn.180003c10
test rsi, rsi
je 0x1800014d8
lea rdx, str._n_n_n_TREE_FIXED__n
mov rcx, rsi
call fcn.180001010
mov rcx, qword [rbx + 0xc8]
mov rdx, rsi
call fcn.1800040e0
mov rdx, qword [rbx + 0xc8]
mov r8, rsi
mov rcx, rbx
call fcn.180003dc0
or dword [r14 + 0x10], eax
mov edx, dword [rbx + 0x28]
test edx, edx
jne 0x180001286
mov ebp, 1
mov edi, ebp
cmp dword [rbx + 0x100], ebp
jle 0x18000154d
test rsi, rsi
je 0x18000151f
mov r8d, edi
lea rdx, str._n_n_n_LA_d__n
mov rcx, rsi
call fcn.180001010
movsxd rax, edi
mov r8, rsi
imul rdx, rax, 0x70
mov rcx, rbx
add rdx, qword [rbx + 0xf8]
call fcn.180003e20
inc edi
cmp edi, dword [rbx + 0x100]
jl 0x180001508
mov edx, dword [rbx + 0x28]
test edx, edx
jne 0x180001286
mov rax, qword [rbx + 0xc8]
test byte [rax + 1], 2
je 0x180001564
mov rax, qword [rbx]
or dword [rax + 0x10], 0x2000
test rsi, rsi
je 0x180001578
lea rdx, str._n_n_n_SEARCH__n
mov rcx, rsi
call fcn.180001010
mov rcx, qword [rbx + 0xa8]
mov rdx, rsi
call fcn.180008410
mov edx, dword [rbx + 0x28]
mov rcx, rbx
test edx, edx
jne 0x180001289
mov rdx, qword [rbx + 0xa8]
call fcn.180001880
mov edx, dword [rbx + 0x28]
test edx, edx
jne 0x180001286
mov rcx, qword [rbx + 0xa8]
lea rdx, [r15 + 0x20]
call fcn.1800098d0
mov edx, dword [rbx + 0x28]
test edx, edx
jne 0x180001286
movsxd rax, dword [rbx + 0x40]
lea rdx, [0x18000c580]
mov qword [r14 + 8], rax
xor ecx, ecx
mov qword [rbx], rcx
mov dword [r15], 0xfed9
mov eax, dword [rbx + 0x2c]
mov dword [r15 + 4], eax
mov eax, dword [r14 + 0x10]
mov dword [r15 + 8], eax
mov rax, qword [r14 + 8]
mov qword [r15 + 0x10], rax
mov rax, qword [rbx + 0xc8]
mov qword [r15 + 0x18], rax
mov eax, dword [rbx + 0xe0]
mov qword [rbx + 0xc8], rcx
mov dword [r15 + 0x58], eax
lea rax, [0x18000c570]
test byte [rbx + 0x2c], 8
cmovne rax, rdx
mov qword [r15 + 0x11d0], rax
mov rax, qword [rbx + 0xf8]
mov qword [r15 + 0x11d8], rax
mov eax, dword [rbx + 0x100]
mov qword [rbx + 0xf8], rcx
mov dword [r15 + 0x11e0], eax
bt r12d, 0xb
jae 0x18000165c
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor edx, edx
jmp 0x180001286
mov eax, reloc.WS2_32.dll_recv
jmp 0x180001293
mov edx, 0x110
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3