Function at 0x140085520
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rdi, r8
mov rsi, rdx
mov r15, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140085574
cmp qword [rax], rbx
je 0x140085794
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140085562
mov qword [rbp + 0x1f], rdi
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.140021fa0
mov r14, rax
xor r12d, r12d
mov qword [rax + 0x20], r12
lea rax, [0x1400857c0]
mov qword [r14 + 0x28], rax
mov qword [r14], r12
mov qword [r14 + 8], r12
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], r12
mov dword [r14 + 0x30], r12d
movups xmm0, xmmword [rdi]
movups xmmword [r14 + 0x38], xmm0
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [r14 + 0x48], xmm0
mov qword [r14 + 0x58], r12
mov qword [r14 + 0x60], r12
mov rax, qword [rdi + 0x20]
mov qword [r14 + 0x58], rax
mov rax, qword [rdi + 0x28]
mov qword [r14 + 0x60], rax
mov qword [rdi + 0x20], r12
mov qword [rdi + 0x28], r12
mov rax, qword [rdi + 0x30]
mov qword [r14 + 0x68], rax
mov qword [rdi + 0x30], r12
mov r8, r14
mov rdx, rsi
mov rcx, r15
call fcn.140024870
mov qword [rbp + 0x2f], r12
mov qword [rbp + 0x27], r12
test al, al
je 0x140085773
mov rax, qword [rsi]
mov qword [rbp - 0x41], rax
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x31], rax
lea rax, [rbp - 0x41]
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x41]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [r15 + 0x28]
mov qword [rbp + 0xf], rax
mov rax, qword [rsi]
mov qword [rbp + 0x17], rax
call fcn.1400b35b0
mov r15, qword [r15 + 0x28]
mov qword [rbp - 0x51], r14
mov rsi, r14
mov qword [rbp - 0x49], r14
movups xmm0, xmmword [r14 + 0x38]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [r14 + 0x48]
movups xmmword [rbp - 0x19], xmm1
mov rax, qword [r14 + 0x58]
mov qword [rbp - 9], rax
mov rbx, qword [r14 + 0x60]
mov qword [rbp - 1], rbx
mov qword [r14 + 0x58], r12
mov qword [r14 + 0x60], r12
mov rax, qword [r14 + 0x68]
mov qword [rbp + 7], rax
mov qword [r14 + 0x68], r12
lea rax, [rbp - 0x29]
mov qword [rbp - 0x59], rax
lea edi, [r12 - 1]
test r14, r14
je 0x1400856c1
mov esi, r12d
mov qword [rbp - 0x49], r12
lea r8, [rbp - 0x29]
lea edx, [rdi + 0x71]
mov rcx, r14
call fcn.140022030
mov qword [rbp - 0x51], r12
mov rbx, qword [rbp - 1]
test r15, r15
je 0x1400856d9
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x29]
call fcn.1400868f0
nop
nop
mov rbx, qword [rbp - 1]
test rbx, rbx
je 0x14008570b
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140085707
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140085707
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, qword [rbp - 0x49]
test rsi, rsi
je 0x140085740
mov rbx, qword [rsi + 0x60]
test rbx, rbx
je 0x140085740
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140085740
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140085740
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140085758
lea r8, [rbp - 0x29]
mov edx, reloc.WS2_32.dll_WSASetLastError
call fcn.140022030
nop
lea rcx, [rbp + 0xf]
call fcn.140024650
nop
mov rdx, qword [rbp - 0x31]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp qword [rax + 8], 0
je 0x140085574
nop
mov rdx, rdi
mov rcx, rdi
call fcn.1400868f0
nop
nop
jmp 0x140085773