Function at 0x18003f8b0
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, 0xb0
mov rdi, r8
mov r14, rdx
mov r15, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x180067f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18003f904
cmp qword [rax], rbx
je 0x18003fb0e
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18003f8f2
mov qword [rbp + 0x27], rdi
mov rdx, rdi
mov ecx, 0x68
call fcn.180037650
mov rsi, rax
xor r12d, r12d
mov qword [rax + 0x20], r12
lea rax, [0x180042700]
mov qword [rsi + 0x28], rax
mov qword [rsi], r12
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
mov dword [rsi + 0x30], r12d
mov rax, qword [rdi]
mov qword [rsi + 0x38], rax
mov qword [rsi + 0x40], r12
mov qword [rsi + 0x48], r12
mov rax, qword [rdi + 8]
mov qword [rsi + 0x40], rax
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0x48], rax
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
movups xmm0, xmmword [rdi + 0x18]
movups xmmword [rsi + 0x50], xmm0
mov rax, qword [rdi + 0x28]
mov qword [rsi + 0x60], rax
mov r8, rsi
mov rdx, r14
mov rcx, r15
call fcn.180043160
mov qword [rbp + 0x37], r12
mov qword [rbp + 0x2f], r12
test al, al
je 0x18003faed
mov rax, qword [r14]
mov qword [rbp - 0x31], rax
mov ecx, dword [0x180067f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x21], rax
lea rax, [rbp - 0x31]
mov qword [rbp - 0x29], rax
lea rdx, [rbp - 0x31]
mov ecx, dword [0x180067f88]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r15, qword [r15 + 0x28]
mov qword [rbp + 0x17], r15
mov rax, qword [r14]
mov qword [rbp + 0x1f], rax
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], rsi
mov rax, qword [rsi + 0x38]
mov qword [rbp - 0x19], rax
mov rax, qword [rsi + 0x40]
mov qword [rbp - 0x11], rax
mov rbx, qword [rsi + 0x48]
mov qword [rbp - 9], rbx
mov qword [rsi + 0x40], r12
mov qword [rsi + 0x48], r12
movups xmm0, xmmword [rsi + 0x50]
movups xmmword [rbp - 1], xmm0
mov rax, qword [rsi + 0x60]
mov qword [rbp + 0xf], rax
lea rax, [rbp - 0x19]
mov qword [rbp - 0x49], rax
lea edi, [r12 - 1]
test rsi, rsi
je 0x18003fa36
mov qword [rbp - 0x39], r12
lea r8, [rbp - 0x19]
lea edx, [rdi + 0x69]
mov rcx, rsi
call fcn.1800376d0
mov qword [rbp - 0x41], r12
mov rbx, qword [rbp - 9]
test r15, r15
je 0x18003fa52
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.18003f200
nop
lock or dword [rsp], 0
mov rbx, qword [rbp - 9]
test rbx, rbx
je 0x18003fa81
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18003fa81
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18003fa81
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + htons]
nop
mov rbx, qword [rbp - 0x39]
test rbx, rbx
je 0x18003faba
mov rbx, qword [rbx + 0x48]
test rbx, rbx
je 0x18003faba
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18003faba
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x18003faba
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + htons]
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x18003fad2
lea r8, [rbp - 0x19]
mov edx, 0x68
call fcn.1800376d0
nop
lea rcx, [rbp + 0x17]
call fcn.180040a70
nop
mov rdx, qword [rbp - 0x21]
mov ecx, dword [0x180067f88]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xb0]
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 0x18003f904
lock or dword [rsp], 0
mov rdx, rdi
mov rcx, rdi
call fcn.18003f200
nop
lock or dword [rsp], 0
jmp 0x18003faed