Function at 0x1400c2470
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rbx, rdx
mov r14, rcx
mov rax, qword [rcx + 8]
xor edi, edi
test al, 1
jne 0x1400c24d2
and rax, 0xfffffffffffffffc
mov rax, qword [rax + 0x10]
lea rsi, [rax + 0x28]
test rax, rax
cmove rsi, rdi
mov ecx, dword [0x1403509d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400c24d2
nop dword [rax]
cmp qword [rax], rsi
je 0x1400c25e2
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400c24c0
mov rdx, qword [r14]
mov eax, 1
xchg dword [rdx + 0x408], eax
test eax, eax
je 0x1400c24f1
mov ecx, 0xa0
call fcn.1401ae1f0
mov rdx, rax
mov qword [rdx + 0x20], rdi
lea rax, [0x140111360]
mov qword [rdx + 0x28], rax
mov qword [rdx], rdi
mov qword [rdx + 8], rdi
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], rdi
mov dword [rdx + 0x30], edi
mov rcx, qword [rbx]
mov qword [rdx + 0x38], rcx
mov qword [rdx + 0x40], rdi
mov qword [rdx + 0x48], rdi
mov rax, qword [rbx + 8]
mov qword [rdx + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rdx + 0x48], rax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx + 0x18]
mov qword [rdx + 0x50], rax
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rdx + 0x58], xmm0
mov qword [rdx + 0x68], rdi
mov qword [rdx + 0x70], rdi
mov rax, qword [rbx + 0x30]
mov qword [rdx + 0x68], rax
mov rax, qword [rbx + 0x38]
mov qword [rdx + 0x70], rax
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x38], rdi
mov rax, qword [rbx + 0x40]
mov qword [rdx + 0x78], rax
mov qword [rdx + 0x80], rdi
mov qword [rdx + 0x88], rdi
mov rax, qword [rbx + 0x48]
mov qword [rdx + 0x80], rax
mov rax, qword [rbx + 0x50]
mov qword [rdx + 0x88], rax
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rdi
movzx eax, byte [rbx + 0x58]
mov byte [rdx + 0x90], al
mov byte [rbx + 0x58], 0
mov rax, qword [r14]
mov qword [rdx + 0x98], rax
mov rax, qword [r14 + 8]
and rax, 0xfffffffffffffffc
mov rcx, qword [rax + 0x10]
lock inc dword [rcx + 0x30]
call fcn.1401257a0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop r14
pop rdi
pop rsi
ret
cmp qword [rax + 8], rdi
je 0x1400c24d2
mov rax, qword [rbx]
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x58], rax
mov rsi, qword [rbx + 0x10]
mov qword [rsp + 0x60], rsi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x68], rcx
movups xmm0, xmmword [rbx + 0x20]
movaps xmmword [rsp + 0x70], xmm0
mov rdx, qword [rbx + 0x30]
mov r8, qword [rbx + 0x38]
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x38], rdi
mov rax, qword [rbx + 0x40]
mov qword [rsp + 0x90], rax
mov r9, qword [rbx + 0x48]
mov r10, qword [rbx + 0x50]
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rdi
movzx r11d, byte [rbx + 0x58]
mov byte [rbx + 0x58], dil
nop
add rcx, 0x140
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], rdi
mov byte [rsp + 0x48], r11b
mov byte [rsp + 0xa8], 0
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], r8
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x80], xmm0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x70]
call fcn.140094df0
nop
nop
test rsi, rsi
je 0x1400c26ed
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400c26ed
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400c26ed
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400c25ce