Function at 0x140164350
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rcx + 0x48], r9d
mov r14, qword [rdx + 0x10]
mov rsi, r14
and esi, 1
cmp r9d, 1
je 0x140164511
add rcx, 0x10
mov rdx, rbx
call fcn.140173b60
test rsi, rsi
je 0x1401643aa
cmp r14, 1
jne 0x1401643af
cmp dword [r15], r12d
jne 0x1401643af
test rbx, rbx
je 0x1401643ea
lea rbx, [rdi + 0x30]
mov rax, qword [rdi + 0x28]
cmp qword [rbx], rax
jae 0x1401643ee
test rsi, rsi
je 0x1401643dc
cmp r14, 1
jne 0x1401643ee
mov eax, dword [r15]
mov r8, r12
mov ecx, 0x10000
test eax, eax
cmove r8, rcx
je 0x1401643e2
jmp 0x1401643ee
mov r8d, 0x10000
mov rcx, rdi
jmp 0x140164532
lea rbx, [rdi + 0x30]
mov rbx, qword [rbx]
mov rax, qword [rdi + 0x60]
mov qword [rsp + 0x70], rax
lea rdx, [rdi + 0x68]
lea rcx, [rsp + 0x78]
call fcn.1401540d0
movups xmm0, xmmword [r15]
movups xmmword [rbp - 0x28], xmm0
movsd xmm1, qword [r15 + 0x10]
movsd qword [rbp - 0x18], xmm1
mov qword [rbp - 0x10], rbx
mov r14, qword [rdi + 0x50]
lea rsi, [rdi + 0x58]
mov rbx, qword [rsi]
mov ecx, dword [0x1404dc78c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14016444e
nop dword [rax + rax]
cmp qword [rax], rbx
je 0x14016446f
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140164440
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x70]
cmp byte [rdi + 0x400], 0
jne 0x14016448a
mov byte [rdi + 0x400], 1
jmp 0x140164497
cmp qword [rax + 8], 0
je 0x14016444e
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.14013e5e0
nop
nop
jmp 0x140164503
mov ecx, 0xc8
call fcn.140382738
mov rdi, rax
mov qword [rdi + 0x20], r12
lea rax, [0x1401772e0]
mov qword [rdi + 0x28], rax
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
mov dword [rdi + 0x30], r12d
lea rdx, [rsp + 0x70]
lea rcx, [rdi + 0x38]
call fcn.140155e50
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi + 0xa0], xmm0
movsd xmm1, qword [rbp - 0x18]
movsd qword [rdi + 0xb0], xmm1
mov rax, qword [rbp - 0x10]
mov qword [rdi + 0xb8], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov r8, rdi
mov rdx, rsi
mov rcx, r14
call fcn.14017e120
nop
lea rcx, [rbp - 0x80]
call fcn.14015da70
jmp 0x140164637
test rsi, rsi
je 0x140164528
mov r8, r12
cmp r14, 1
jne 0x14016452e
cmp dword [rdx], r12d
sete r8b
jmp 0x14016452e
mov r8d, 1
shl r8, 0x10
mov eax, reloc.WS2_32.dll_recv
mov rbx, qword [rdi + 8]
add rcx, rax
lea rdx, [rsp + 0x70]
call fcn.140196f50
lea rdx, [rbx + 0xa8]
lea rcx, [rbx + 8]
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
lea rcx, [rbp + 0x90]
mov r8d, 2
nop
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub r8, 1
jne 0x140164570
mov rax, qword [rax]
mov qword [rcx], rax
mov qword [rbp + 0x198], r12
xorps xmm0, xmm0
movups xmmword [rbp + 0x1a0], xmm0
mov qword [rbp + 0x1b0], r12
mov qword [rbp + 0x1b8], r12
mov rdx, rdi
lea rcx, [rbp + 0x1c0]
call fcn.140158900
nop
xorps xmm0, xmm0
mov qword [rsp + 0x60], r12
movaps xmmword [rsp + 0x30], xmm0
movsd xmm0, qword [rsp + 0x60]
movsd qword [rsp + 0x40], xmm0
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x80]
call fcn.140161a20
nop
lea rcx, [rbp + 0x1c0]
call fcn.14015df10
add rsp, 0x3a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret