Function at 0x180050400
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x1800c31c0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x69], rax
movzx eax, byte [rcx + 0x18]
mov byte [rbp - 0x61], al
movzx eax, byte [rcx + 0x19]
mov byte [rbp - 0x60], al
lea rax, [rbp - 0x59]
mov qword [rsp + 0x28], rax
mov qword [rbp - 0x21], r14
mov rcx, qword [rcx + 0x58]
test rcx, rcx
je 0x18005046d
mov rax, qword [rcx]
lea rdx, [rbp - 0x59]
call qword [rax]
mov qword [rbp - 0x21], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x19], xmm0
mov rax, qword [rbx + 0x68]
test rax, rax
je 0x180050482
lock inc dword [rax + 8]
mov rax, qword [rbx + 0x60]
mov qword [rbp - 0x19], rax
mov rax, qword [rbx + 0x68]
mov qword [rbp - 0x11], rax
movdqa xmmword [rbp - 9], xmm0
mov rax, qword [rbx + 0x78]
test rax, rax
je 0x1800504a4
lock inc dword [rax + 8]
mov rax, qword [rbx + 0x70]
mov qword [rbp - 9], rax
mov rax, qword [rbx + 0x78]
mov qword [rbp - 1], rax
mov rax, qword [rbx + 0x80]
mov qword [rbp + 7], rax
movups xmm0, xmmword [rsi]
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x27], r14
mov rax, qword [rdi + 8]
test rax, rax
je 0x1800504db
lock inc dword [rax + 8]
mov rax, qword [rdi]
mov qword [rbp + 0x1f], rax
mov rax, qword [rdi + 8]
mov qword [rbp + 0x27], rax
mov rax, qword [rdi + 0x10]
mov qword [rbp + 0x2f], rax
lea rdi, [rbx + 8]
mov rsi, qword [rbx]
mov rbx, qword [rdi]
mov ecx, dword [0x1800c7fa4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18005051e
nop dword [rax]
cmp qword [rax], rbx
je 0x18005053e
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x180050510
lea rax, [rbp - 0x69]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180050553
mov rdx, qword [rax + 8]
jmp 0x180050556
cmp qword [rax + 8], 0
je 0x18005051e
nop
lea rcx, [rbp - 0x69]
call fcn.180060100
nop
nop
jmp 0x1800505b6
mov rdx, r14
mov r9d, 8
mov r8d, 0xe0
movzx ecx, byte [rsp + 0x20]
call fcn.1800478d0
mov rbx, rax
mov qword [rax + 0x20], r14
lea rax, [0x18006afd0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
lea rcx, [rbx + 0x38]
lea rdx, [rbp - 0x69]
call fcn.180059740
mov qword [rbp - 0x79], r14
mov qword [rsp + 0x38], r14
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.18006cbe0
nop
mov edi, 0xffffffff
mov rbx, qword [rbp + 0x27]
test rbx, rbx
je 0x1800505ed
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800505ed
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800505ed
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rbp - 1]
test rbx, rbx
je 0x18005061f
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18005061f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18005061f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x18005064f
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18005064f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x18005064f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x180050668
mov rax, qword [rcx]
lea rdx, [rbp - 0x59]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.180097330
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret