Function at 0x1400c4d90
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, 0xb0
mov rbx, rdx
mov r14, rcx
mov rax, qword [rcx + 8]
xor edi, edi
test al, 1
jne 0x1400c4df2
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 0x1400c4df2
nop dword [rax]
cmp qword [rax], rsi
je 0x1400c4ee7
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400c4de0
mov rdx, qword [r14]
mov eax, 1
xchg dword [rdx + 0x408], eax
test eax, eax
je 0x1400c4e11
mov ecx, 0x98
call fcn.1401ae1f0
mov rdx, rax
mov qword [rdx + 0x20], rdi
lea rax, [0x140112fa0]
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 rax, qword [rbx + 8]
mov qword [rdx + 0x40], rax
movups xmm0, xmmword [rbx + 0x10]
movups xmmword [rdx + 0x48], xmm0
mov qword [rdx + 0x58], rdi
mov qword [rdx + 0x60], rdi
mov rax, qword [rbx + 0x20]
mov qword [rdx + 0x58], rax
mov rax, qword [rbx + 0x28]
mov qword [rdx + 0x60], rax
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x28], rdi
movzx eax, byte [rbx + 0x31]
mov byte [rdx + 0x69], al
mov byte [rbx + 0x31], 0
mov rax, qword [rbx + 0x38]
mov qword [rdx + 0x70], rax
mov qword [rdx + 0x78], rdi
mov qword [rdx + 0x80], rdi
mov rax, qword [rbx + 0x40]
mov qword [rdx + 0x78], rax
mov rax, qword [rbx + 0x48]
mov qword [rdx + 0x80], rax
mov qword [rbx + 0x40], rdi
mov qword [rbx + 0x48], rdi
movzx eax, byte [rbx + 0x50]
mov byte [rdx + 0x88], al
mov byte [rbx + 0x50], 0
mov rax, qword [r14]
mov qword [rdx + 0x90], 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 + 0xd8]
add rsp, 0xb0
pop r14
pop rdi
pop rsi
ret
cmp qword [rax + 8], rdi
je 0x1400c4df2
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x60], rax
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x68], rax
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x28], rdi
movzx eax, byte [rbx + 0x31]
mov byte [rsp + 0x71], al
mov byte [rbx + 0x31], dil
mov rax, qword [rbx + 0x38]
mov qword [rsp + 0x78], rax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rbx + 0x48]
mov qword [rbx + 0x40], rdi
mov qword [rbx + 0x48], rdi
movzx r8d, byte [rbx + 0x50]
mov byte [rbx + 0x50], dil
nop
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x80], xmm0
mov byte [rsp + 0x38], r8b
mov byte [rsp + 0x90], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.1400eddd0
nop
nop
movzx edx, byte [rsp + 0x90]
test dl, dl
je 0x1400c4fe3
mov rax, qword [rsp + 0x78]
lea rcx, [rax + 0x58]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x80], xmm0
mov byte [rsp + 0x38], dl
mov byte [rsp + 0x90], 0
lea rdx, [rsp + 0x20]
call fcn.1400c9ba0
mov rcx, qword [rsp + 0x88]
mov edi, 0xffffffff
test rcx, rcx
je 0x1400c502c
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c502c
mov rbx, qword [rsp + 0x88]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400c502c
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
cmp byte [rsp + 0x71], 0
je 0x1400c5038
mov byte [rsp + 0x71], 0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400c5070
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c5070
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400c5070
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400c4ed3