Function at 0x140413910
Capabilities:
Check if file exists
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x90
cmp qword [rcx + 8], 0xffffffffffffffff
mov rbx, rcx
mov rsi, rdx
lea r9, [rsp + 0x50]
mov rbp, r8
mov dword [rsp + 0x50], 0
lea rdi, [rsp + 0x70]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
je 0x140413980
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
mov qword [rsp + 0x70], rbx
call fcn.14048dad0
nop
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp word [rdx], 2
mov r14, qword [rcx]
je 0x140413a50
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov edx, 1
mov r8d, 6
mov dword [rsp + 0x20], 0
mov ecx, 0x17
mov r13d, 0x17
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140413b70
lea r9, [rsp + 0x50]
mov rcx, r9
mov qword [rsp + 0x38], r9
call fcn.14004b220
mov rax, qword [rsp + 0x60]
mov edx, dword [rsp + 0x50]
mov r9, qword [rsp + 0x38]
test al, 1
je 0x140413b28
lea rdi, [rsp + 0x70]
cmp rax, 1
jne 0x140413a08
test edx, edx
je 0x140413b28
nop dword [rax]
movdqu xmm1, xmmword [rsp + 0x50]
mov r13, qword [rsp + 0x60]
movups xmmword [rsp + 0x70], xmm1
cmp r13, 1
jbe 0x140413a2c
and r13d, 1
lea r12, [0x140631ad0]
or r13, r12
movdqu xmm2, xmmword [rsp + 0x70]
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x60], r13
movups xmmword [rsp + 0x50], xmm2
jmp 0x140413955
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov edx, 1
mov r8d, 6
mov dword [rsp + 0x20], 0
mov ecx, 2
mov r13d, 2
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1404139c9
mov qword [rsp + 0x48], r12
mov rcx, qword [r14 + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rcx + 0x28]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x140413ba1
mov qword [rbx + 8], r12
mov ecx, 0x18
mov byte [rbx + 0x10], 0x10
mov qword [rsp + 0x48], 0xffffffffffffffff
call fcn.14053f0d0
mov r10, qword [0x140557440]
mov rcx, qword [rbx + 0x20]
lea r11, [0x140630760]
mov qword [rax + 0x10], 0
mov qword [rax], r11
mov qword [rax + 8], r10
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], rax
test rcx, rcx
je 0x140413b03
call fcn.14050a960
mov dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
nop word [rax + rax]
pxor xmm0, xmm0
mov r14d, 2
mov dword [rbx + 0x40], r13d
lea rdi, [rsp + 0x70]
movups xmmword [rsp + 0x72], xmm0
mov word [rsp + 0x70], r14w
movups xmmword [rsp + 0x7c], xmm0
movdqu xmm3, xmmword [rsp + 0x70]
movdqu xmm4, xmmword [rsp + 0x7c]
mov byte [rbx + 0x44], 0
movups xmmword [rbx + 0x48], xmm3
movups xmmword [rbx + 0x54], xmm4
jmp 0x140413a08
mov dword [rsp + 0x70], 0
mov r9, rdi
mov r8d, 0x1b
mov rcx, r12
mov dword [rsp + 0x20], 4
mov edx, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
mov qword [rsp + 0x48], r12
jmp 0x140413a91
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
mov edi, 2
lea r8, [0x14054d5e0]
mov dword [rsp + 0x50], eax
sbb rdi, 0xffffffffffffffff
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], rdi
cmp rdi, 2
je 0x140413ab1
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0x47]
mov rcx, r12
mov byte [rsp + 0x47], 0
mov r9, rdi
mov r8d, 1
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
call fcn.14004bba0
lea r9, [rsp + 0x50]
jmp 0x140413a08