Function at 0x14003b2f0
Capabilities:
Get thread local storage value
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x120
movaps xmmword [rax - 0x48], xmm6
mov r15, r8
mov r12, rdx
mov r13, rcx
lea r14, [rcx + 8]
xor ebx, ebx
cmp qword [r14], 0xffffffffffffffff
jne 0x14003b620
call fcn.140066430
movzx eax, word [r12]
mov word [rbp + 0x60], ax
mov esi, 2
mov ecx, SafeArrayPutElement
cmp ax, si
cmovne esi, ecx
mov rax, qword [r13]
mov qword [rsp + 0x40], rax
cmp qword [r14], 0xffffffffffffffff
je 0x14003b377
call fcn.140004530
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x14003b4ed
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
call fcn.140066430
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12d, eax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rbx
movaps xmm6, xmmword [rsp + 0x50]
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
je 0x14003b406
cmp word [rbp + 0x60], 2
je 0x14003b3f0
mov dword [rbp + 0x78], ebx
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x78]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x50], ebx
call fcn.140066430
mov qword [rsp + 0x58], rax
movaps xmm6, xmmword [rsp + 0x50]
mov r12d, ebx
mov qword [rsp + 0x50], rdi
cmp rdi, 0xffffffffffffffff
jne 0x14003b429
lea rcx, [rsp + 0x50]
call fcn.14003ebd0
test r12d, r12d
jne 0x14003b4e9
jmp 0x14003b4b4
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdx + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x14003b477
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140066430
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
test ebx, ebx
je 0x14003b47e
lea rcx, [rsp + 0x50]
call fcn.14003ebd0
xor ebx, ebx
jmp 0x14003b4e9
call fcn.140066430
jmp 0x14003b480
xor ebx, ebx
mov qword [rsp + 0x50], 0xffffffffffffffff
mov qword [r14], rdi
mov byte [r14 + 8], SafeArrayGetElemsize
lea rcx, [r14 + 0x10]
movzx r8d, byte [rbp + 0x60]
xor edx, edx
call fcn.14003c840
mov dword [rsp + 0x40], ebx
call fcn.140066430
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
mov dword [r14 + 0x38], esi
mov byte [r14 + 0x3c], 0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov dword [rbp - 0x70], ebx
mov qword [rsp + 0x78], 2
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [r14 + 0x40], xmm0
unpckhpd xmm1, xmm1
movsd qword [r14 + 0x50], xmm1
mov dword [r14 + 0x58], ebx
mov r12, qword [rbp + 0x68]
movd eax, xmm6
test eax, eax
je 0x14003b620
mov rdi, qword [r15]
mov qword [rbp - 0x28], rdi
mov rsi, qword [r15 + 8]
mov qword [rbp - 0x20], rsi
mov r14, qword [r15 + 0x10]
mov r12, qword [r15 + 0x18]
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
mov rax, qword [r15 + 0x20]
mov qword [rsp + 0x40], rax
mov qword [r15 + 0x20], rbx
movups xmmword [rbp], xmm6
mov rbx, qword [r13]
mov rbx, qword [rbx + 0x18]
mov byte [rbp - 0x67], 1
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r12
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov qword [rbp - 0x40], rax
xor r15d, r15d
mov qword [rbp - 8], r15
movups xmmword [rbp - 0x38], xmm6
lea rax, [rbp + 0x60]
mov qword [rsp + 0x60], rax
mov ecx, dword [0x14009dce4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003b5a2
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14003b5a2
mov rax, qword [rcx]
test rax, rax
je 0x14003b5a2
mov qword [rcx], r15
movzx ecx, byte [rax]
cmp cl, 0x20
jb 0x14003b59a
mov byte [rax + 0x80], cl
jmp 0x14003b5b3
mov rcx, rax
call fcn.140066a18
mov ecx, 0x81
call fcn.1400665f0
mov byte [rax + 0x80], 0x20
mov qword [rax + 0x20], r15
lea rcx, [0x140042990]
mov qword [rax + 0x28], rcx
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov dword [rax + 0x30], r15d
mov byte [rax + 0x39], 1
mov qword [rax + 0x40], rdi
mov qword [rax + 0x48], rsi
mov qword [rax + 0x50], r14
mov qword [rax + 0x58], r12
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x60], rcx
movups xmmword [rax + 0x68], xmm6
mov rcx, qword [rbx + 0x10]
lock inc dword [rcx + 0x30]
mov rdx, rax
call fcn.140005220
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x68], r15
lea rcx, [rsp + 0x60]
call fcn.140048ad0
nop
jmp 0x14003b70a
mov rsi, qword [r13]
mov qword [rsp + 0x60], r15
mov rdx, r15
mov ecx, 0x90
call fcn.1400045d0
mov rdi, rax
mov qword [rsp + 0x68], rax
mov rbx, qword [r14]
xor r13d, r13d
mov qword [rax + 0x20], r13
lea rax, [0x140042ed0]
mov qword [rdi + 0x28], rax
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov dword [rdi + 0x30], r13d
mov dword [rdi + 0x38], r13d
call fcn.140066430
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x48], r13
lea rax, [0x1400434b0]
mov qword [rdi + 0x50], rax
mov qword [rdi + 0x58], rbx
mov byte [rdi + 0x60], r13b
mov rax, qword [r15]
mov qword [rdi + 0x68], rax
mov rax, qword [r15 + 8]
mov qword [rdi + 0x70], rax
mov qword [rdi + 0x78], r13
mov qword [rdi + 0x80], r13
mov rax, qword [r15 + 0x10]
mov qword [rdi + 0x78], rax
mov rax, qword [r15 + 0x18]
mov qword [rdi + 0x80], rax
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], r13
mov rax, qword [r15 + 0x20]
mov qword [rdi + 0x88], rax
mov qword [r15 + 0x20], r13
mov qword [rsp + 0x70], rdi
mov eax, SafeArrayGetElemsize
mov ecx, 0x1c
cmp word [r12], 2
cmovne eax, ecx
lea rcx, [rsi + 0x28]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9d, [r13 + 1]
mov r8d, dword [r14 + 0x38]
mov rdx, r14
call fcn.14004a990
nop
mov rbx, qword [rsp + 0x170]
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret