Function at 0x1400e5a30
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 rbx, rdx
mov r14, rcx
mov rax, qword [rcx + 8]
xor esi, esi
test al, 1
jne 0x1400e5a92
and rax, 0xfffffffffffffffc
mov rax, qword [rax + 0x10]
lea rdi, [rax + 0x28]
test rax, rax
cmove rdi, rsi
mov ecx, dword [0x1403509d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400e5a92
nop dword [rax]
cmp qword [rax], rdi
je 0x1400e5bbb
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400e5a80
mov rdx, qword [r14]
mov eax, 1
xchg dword [rdx + 0x408], eax
test eax, eax
je 0x1400e5ab1
mov ecx, 0xb0
call fcn.1401ae1f0
mov rdx, rax
mov qword [rdx + 0x20], rsi
lea rax, [0x1401106b0]
mov qword [rdx + 0x28], rax
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], rsi
mov dword [rdx + 0x30], esi
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], rsi
mov qword [rdx + 0x60], rsi
mov rax, qword [rbx + 0x20]
mov qword [rdx + 0x58], rax
mov rax, qword [rbx + 0x28]
mov qword [rdx + 0x60], rax
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
mov rax, qword [rbx + 0x30]
mov qword [rdx + 0x68], rax
mov qword [rdx + 0x70], rsi
mov qword [rdx + 0x78], rsi
mov rax, qword [rbx + 0x38]
mov qword [rdx + 0x70], rax
mov rax, qword [rbx + 0x40]
mov qword [rdx + 0x78], rax
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x40], rsi
movzx eax, byte [rbx + 0x48]
mov byte [rdx + 0x80], al
mov rax, qword [rbx + 0x50]
mov qword [rdx + 0x88], rax
mov qword [rdx + 0x90], rsi
mov qword [rdx + 0x98], rsi
mov rax, qword [rbx + 0x58]
mov qword [rdx + 0x90], rax
mov rax, qword [rbx + 0x60]
mov qword [rdx + 0x98], rax
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x60], rsi
movzx eax, byte [rbx + 0x68]
mov byte [rdx + 0xa0], al
mov byte [rbx + 0x68], 0
mov byte [rbx + 0x48], 0
mov rax, qword [r14]
mov qword [rdx + 0xa8], 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], rsi
je 0x1400e5a92
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], rsi
mov qword [rbx + 0x28], rsi
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x70], rax
mov rax, qword [rbx + 0x38]
mov qword [rsp + 0x78], rax
mov rax, qword [rbx + 0x40]
mov qword [rsp + 0x80], rax
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x40], rsi
movzx eax, byte [rbx + 0x48]
mov byte [rsp + 0x88], al
mov rax, qword [rbx + 0x50]
mov qword [rsp + 0x90], rax
mov rax, qword [rbx + 0x58]
mov qword [rsp + 0x98], rax
mov rax, qword [rbx + 0x60]
mov qword [rsp + 0xa0], rax
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x60], rsi
movzx eax, byte [rbx + 0x68]
mov byte [rsp + 0xa8], al
mov byte [rbx + 0x68], sil
mov byte [rbx + 0x48], sil
nop
lea rcx, [rsp + 0x48]
call fcn.1400ef060
nop
nop
cmp byte [rsp + 0x88], 0
je 0x1400e5d89
mov byte [rsp + 0x88], 0
mov r10, qword [rsp + 0x98]
mov qword [rsp + 0x28], r10
mov r9, qword [rsp + 0xa0]
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x98], rsi
mov rbx, rsi
mov qword [rsp + 0xa0], rbx
movzx r8d, byte [rsp + 0xa8]
mov byte [rsp + 0x38], r8b
mov byte [rsp + 0xa8], bl
mov rdx, qword [rsp + 0x70]
lea rcx, [rdx + 0x58]
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x30], r9
mov byte [rsp + 0x38], r8b
mov qword [rsp + 0xb0], rdx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rsi
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
call fcn.1400bd380
mov rcx, qword [rsp + 0xc0]
mov edi, 0xffffffff
test rcx, rcx
je 0x1400e5d87
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400e5d7f
mov rbx, qword [rsp + 0xc0]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400e5d7f
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0xa0]
jmp 0x1400e5d96
mov edi, 0xffffffff
mov rbx, qword [rsp + 0xa0]
movzx edx, byte [rsp + 0xa8]
test dl, dl
je 0x1400e5ded
mov rax, qword [rsp + 0x90]
lea rcx, [rax + 0x58]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x98], rsi
mov rbx, rsi
mov qword [rsp + 0xa0], rbx
mov byte [rsp + 0x38], dl
mov byte [rsp + 0xa8], bl
lea rdx, [rsp + 0x20]
call fcn.1400c9ba0
test rbx, rbx
je 0x1400e5e29
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400e5e29
mov rbx, qword [rsp + 0xa0]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400e5e29
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400e5e6d
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400e5e6d
mov rbx, qword [rsp + 0x80]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400e5e6d
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400e5ea5
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400e5ea5
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 0x1400e5ea5
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400e5ba7