Function at 0x18003f610
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 r14, rdx
mov r15, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x180067f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18003f664
cmp qword [rax], rbx
je 0x18003f87e
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18003f652
mov qword [rbp + 0x1f], rdi
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.180037650
mov rsi, rax
xor r12d, r12d
mov qword [rax + 0x20], r12
lea rax, [0x1800425a0]
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
mov rax, qword [rdi + 0x18]
mov qword [rsi + 0x50], rax
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rsi + 0x58], xmm0
mov rax, qword [rdi + 0x30]
mov qword [rsi + 0x68], rax
mov r8, rsi
mov rdx, r14
mov rcx, r15
call fcn.180043160
mov qword [rbp + 0x2f], r12
mov qword [rbp + 0x27], r12
test al, al
je 0x18003f85d
mov rax, qword [r14]
mov qword [rbp - 0x41], rax
mov ecx, dword [0x180067f88]
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 [0x180067f88]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r15, qword [r15 + 0x28]
mov qword [rbp + 0xf], r15
mov rax, qword [r14]
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x51], rsi
mov qword [rbp - 0x49], rsi
mov rax, qword [rsi + 0x38]
mov qword [rbp - 0x29], rax
mov rax, qword [rsi + 0x40]
mov qword [rbp - 0x21], rax
mov rbx, qword [rsi + 0x48]
mov qword [rbp - 0x19], rbx
mov qword [rsi + 0x40], r12
mov qword [rsi + 0x48], r12
mov rax, qword [rsi + 0x50]
mov qword [rbp - 0x11], rax
movups xmm0, xmmword [rsi + 0x58]
movups xmmword [rbp - 9], xmm0
mov rax, qword [rsi + 0x68]
mov qword [rbp + 7], rax
lea rax, [rbp - 0x29]
mov qword [rbp - 0x59], rax
lea edi, [r12 - 1]
test rsi, rsi
je 0x18003f7a6
mov qword [rbp - 0x49], r12
lea r8, [rbp - 0x29]
lea edx, [rdi + 0x71]
mov rcx, rsi
call fcn.1800376d0
mov qword [rbp - 0x51], r12
mov rbx, qword [rbp - 0x19]
test r15, r15
je 0x18003f7c2
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x29]
call fcn.18003f1d0
nop
lock or dword [rsp], 0
mov rbx, qword [rbp - 0x19]
test rbx, rbx
je 0x18003f7f1
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18003f7f1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18003f7f1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + htons]
nop
mov rbx, qword [rbp - 0x49]
test rbx, rbx
je 0x18003f82a
mov rbx, qword [rbx + 0x48]
test rbx, rbx
je 0x18003f82a
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18003f82a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x18003f82a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + htons]
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x18003f842
lea r8, [rbp - 0x29]
mov edx, reloc.WS2_32.dll_WSASetLastError
call fcn.1800376d0
nop
lea rcx, [rbp + 0xf]
call fcn.180040a70
nop
mov rdx, qword [rbp - 0x31]
mov ecx, dword [0x180067f88]
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 0x18003f664
lock or dword [rsp], 0
mov rdx, rdi
mov rcx, rdi
call fcn.18003f1d0
nop
lock or dword [rsp], 0
jmp 0x18003f85d