Function at 0x140030ec0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1401c5538]
xor rax, rsp
mov qword [rbp + 0x58], rax
xor r15d, r15d
mov rax, qword [rdx]
mov qword [rsp + 0x70], rax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x78], rax
mov rax, qword [rdx + 0x10]
mov qword [rbp - 0x80], rax
mov qword [rdx + 8], r15
mov qword [rdx + 0x10], r15
movups xmm0, xmmword [rdx + 0x18]
movups xmmword [rbp - 0x78], xmm0
movsd xmm1, qword [rdx + 0x28]
movsd qword [rbp - 0x68], xmm1
mov rax, qword [rcx + 0x30]
mov rbx, qword [rax + 0x20]
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax + 0x18]
call rdx
lea r8, [0x14017849a]
mov rdx, rax
lea rcx, [rbp - 0x50]
call rbx
nop
mov rcx, qword [rbp - 0x38]
mov qword [rbp], rcx
mov rax, qword [rbp - 0x28]
mov qword [rbp + 0x10], rax
lea rax, fcn.140019b10
mov qword [rbp - 0x38], rax
lea rax, [0x140176af0]
mov qword [rbp - 0x28], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x18]
call rax
mov qword [rbp - 0x30], r15
mov rax, qword [rbp - 0x20]
mov qword [rbp + 0x18], rax
lea rax, [0x140176b90]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x38]
mov rdx, qword [rax]
lea rax, [fcn.140019b10]
cmp rdx, rax
je 0x140030fa4
lea rcx, [rbp - 0x50]
call rdx
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x14017849b]
lea r8, [rbp - 0x18]
lea rdx, [rbp + 0x20]
mov rcx, qword [0x1401c1400]
call fcn.140031370
mov rsi, rax
mov rcx, qword [rax + 0x28]
mov rax, qword [rcx + 0x18]
mov edi, 0xffffffff
test rax, rax
je 0x140031000
lea rcx, [0x140031c10]
mov qword [rbp - 0x60], rcx
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x58], rcx
lea rdx, [rbp - 0x60]
mov rcx, rsi
call rax
jmp 0x140031116
mov r14, qword [rcx + 0x10]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rsp + 0x58], xmm0
movsd xmm1, qword [rbp - 0x68]
movsd qword [rsp + 0x68], xmm1
lea rax, [rsp + 0x40]
mov qword [rbp - 0x60], rax
mov ecx, dword [0x1401c9bf8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003105e
mov rdx, qword [rax + 8]
jmp 0x140031061
mov rdx, r15
mov r9d, 1
lea r8d, [r9 + 0x3f]
movzx ecx, byte [rsp + 0x30]
call fcn.14002c080
mov rcx, qword [rsp + 0x40]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x18], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rax + 0x20], xmm0
movsd xmm1, qword [rsp + 0x68]
movsd qword [rax + 0x30], xmm1
lea rcx, [0x140031c20]
mov qword [rax], rcx
mov qword [rsp + 0x38], rax
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1400310f8
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400310f8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400310f8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [rsp + 0x38]
mov rcx, rsi
call r14
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140031116
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov rax, qword [rbp + 0x38]
mov rdx, qword [rax]
lea rcx, [rbp + 0x20]
call rdx
nop
mov rax, qword [rbp]
mov rdx, qword [rax]
lea rcx, [rbp - 0x18]
call rdx
nop
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x140031162
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140031162
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140031162
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.1401453a0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x160
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret