Function at 0x1400e6310
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, 0xd0
mov rdi, rdx
mov r14, rcx
mov rax, qword [rcx + 8]
xor ebx, ebx
test al, 1
jne 0x1400e6372
and rax, 0xfffffffffffffffc
mov rax, qword [rax + 0x10]
lea rsi, [rax + 0x28]
test rax, rax
cmove rsi, rbx
mov ecx, dword [0x1403509d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400e6372
nop dword [rax]
cmp qword [rax], rsi
je 0x1400e64a3
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400e6360
mov rdx, qword [r14]
mov eax, 1
xchg dword [rdx + 0x408], eax
test eax, eax
je 0x1400e6391
mov ecx, 0xc0
call fcn.1401ae1f0
mov rdx, rax
mov qword [rdx + 0x20], rbx
lea rax, [0x140113a50]
mov qword [rdx + 0x28], rax
mov qword [rdx], rbx
mov qword [rdx + 8], rbx
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], rbx
mov dword [rdx + 0x30], ebx
mov rcx, qword [rdi]
mov qword [rdx + 0x38], rcx
mov rax, qword [rdi + 8]
mov qword [rdx + 0x40], rax
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rdx + 0x48], xmm0
mov qword [rdx + 0x58], rbx
mov qword [rdx + 0x60], rbx
mov rax, qword [rdi + 0x20]
mov qword [rdx + 0x58], rax
mov rax, qword [rdi + 0x28]
mov qword [rdx + 0x60], rax
mov qword [rdi + 0x20], rbx
mov qword [rdi + 0x28], rbx
mov rax, qword [rdi + 0x30]
mov qword [rdx + 0x68], rax
mov rax, qword [rdi + 0x38]
mov qword [rdi + 0x38], rbx
mov qword [rdx + 0x70], rax
mov byte [rdx + 0x78], 0
movzx eax, byte [rdi + 0x48]
mov byte [rdx + 0x80], al
movzx eax, byte [rdi + 0x50]
mov byte [rdx + 0x88], al
mov byte [rdi + 0x50], 0
movzx eax, byte [rdi + 0x58]
mov byte [rdx + 0x90], al
mov byte [rdi + 0x58], 0
mov rax, qword [rdi + 0x60]
mov qword [rdx + 0x98], rax
mov qword [rdx + 0xa0], rbx
mov qword [rdx + 0xa8], rbx
mov rax, qword [rdi + 0x68]
mov qword [rdx + 0xa0], rax
mov rax, qword [rdi + 0x70]
mov qword [rdx + 0xa8], rax
mov qword [rdi + 0x68], rbx
mov qword [rdi + 0x70], rbx
movzx eax, byte [rdi + 0x78]
mov byte [rdx + 0xb0], al
mov byte [rdi + 0x78], 0
mov rax, qword [r14]
mov qword [rdx + 0xb8], 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 + 0xf8]
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
cmp qword [rax + 8], rbx
je 0x1400e6372
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rdi + 0x10]
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x60], rax
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x68], rax
mov qword [rdi + 0x20], rbx
mov qword [rdi + 0x28], rbx
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x70], rax
mov rax, qword [rdi + 0x38]
mov qword [rdi + 0x38], rbx
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x80], bl
movzx eax, byte [rdi + 0x48]
mov byte [rsp + 0x88], al
movzx eax, byte [rdi + 0x50]
mov byte [rsp + 0x90], al
mov byte [rdi + 0x50], bl
movzx eax, byte [rdi + 0x58]
mov byte [rsp + 0x98], al
mov byte [rdi + 0x58], bl
mov rax, qword [rdi + 0x60]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
mov qword [rdi + 0x68], rbx
mov qword [rdi + 0x70], rbx
movzx r8d, byte [rdi + 0x78]
mov byte [rdi + 0x78], bl
nop
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xb0], rbx
mov byte [rsp + 0x38], r8b
mov byte [rsp + 0xb8], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.1400f0b90
nop
nop
movzx edx, byte [rsp + 0xb8]
test dl, dl
je 0x1400e65e6
mov rax, qword [rsp + 0xa0]
lea rcx, [rax + 0x58]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xb0], rbx
mov byte [rsp + 0x38], dl
mov byte [rsp + 0xb8], 0
lea rdx, [rsp + 0x20]
call fcn.1400c9ba0
jmp 0x1400e65ee
mov rbx, qword [rsp + 0xb0]
mov edi, 0xffffffff
test rbx, rbx
je 0x1400e662f
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400e662f
mov rbx, qword [rsp + 0xb0]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400e662f
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rsp + 0x70]
call fcn.1400dfe90
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400e6671
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400e6671
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 0x1400e6671
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400e648f