Function at 0x14000e95c
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xb0
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rbp - 9], rax
mov rdi, qword [rbp + 0x77]
mov qword [rbp - 0x41], rdi
mov r14, qword [rbp + 0x7f]
xor r12d, r12d
mov ebx, r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
lea r15d, [r12 + 1]
mov qword [rbp - 0x31], r15
lea r13d, [r12 + 4]
cmp qword [rdx + 0x10], r12
je 0x14000e9cf
mov rbx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x14000e9c9
mov rbx, qword [rdx]
mov qword [rbp - 0x39], r13
jmp 0x14000e9ea
cmp qword [rcx + 0x10], r12
je 0x14000e9e2
mov rbx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x14000e9e2
mov rbx, qword [rcx]
mov dword [rbp - 0x35], r9d
mov dword [rbp - 0x39], r12d
mov edx, r8d
lea rcx, [rbp - 0x61]
call fcn.140001a90
nop
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 0xf
cmova rdx, qword [rbp - 0x61]
lea r9, [rbp - 0x79]
lea r8, [rbp - 0x39]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14000ea84
mov rdx, qword [rbp - 0x49]
cmp rdx, 0xf
jbe 0x14000ea55
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ea50
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ec01
call fcn.140019e20
movdqa xmm0, xmmword [0x14001ec40]
movdqu xmmword [rbp - 0x51], xmm0
mov byte [rbp - 0x61], r12b
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14000ed60
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
jmp 0x14000ed5c
mov rbx, qword [rbp - 0x79]
test rbx, rbx
je 0x14000ebb9
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ead7
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000eba8
cmp byte [rbp + 0x6f], r12b
je 0x14000eafb
mov dword [rbp - 0x71], r15d
mov dword [rsp + 0x20], r13d
lea r9, [rbp - 0x71]
mov r8d, r15d
mov edx, 6
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14000eb12
mov qword [rbp - 0x69], rsi
mov rax, qword [rcx]
lea rdx, [rbp - 0x69]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x14000eb37
mov dword [rbp - 0x71], r12d
mov dword [rsp + 0x20], r13d
lea r9, [rbp - 0x71]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp - 0x71], r15d
lea r8, [rbp - 0x71]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x14000ec08
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14000eb7f
mov rax, qword [r14 + 8]
mov dword [rax], 2
jmp 0x14000eb9f
mov r8, qword [r14 + 0x18]
mov rdx, qword [r14 + 0x10]
mov r8, qword [r8]
mov rdx, qword [rdx]
mov rcx, rsi
call fcn.140002974
mov rcx, qword [r14 + 8]
mov dword [rcx], eax
test eax, eax
je 0x14000ec08
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14000ea91
mov rbx, qword [rbp - 0x79]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 0xf
jbe 0x14000ed35
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ed30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ed30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rbp - 0x6d], r12d
lea r8, [rbp - 0x6d]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [r14 + 0x28]
mov rcx, qword [rax]
movabs r15, 0x20c49ba5e353f7cf
mov rax, r15
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rcx, qword [r14 + 0x20]
imul r8d, dword [rcx], 0x3e8
add edx, r8d
mov dword [rbp - 0x41], edx
mov dword [rsp + 0x20], r13d
lea r9, [rbp - 0x41]
mov ebx, 0xffff
mov r8d, 0x1006
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [r14 + 0x38]
mov rax, r15
imul qword [rcx]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r14 + 0x30]
imul ecx, dword [rax], 0x3e8
add edx, ecx
mov dword [rbp - 0x69], edx
mov dword [rsp + 0x20], r13d
lea r9, [rbp - 0x69]
mov r8d, 0x1005
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [r14 + 8]
mov dword [rax], r12d
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 0xf
jbe 0x14000ed01
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ecfc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ec01
call fcn.140019e20
movdqa xmm0, xmmword [0x14001ec40]
movdqu xmmword [rbp - 0x51], xmm0
mov byte [rbp - 0x61], r12b
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14000ed2b
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], r12
mov rax, rsi
jmp 0x14000ed64
call fcn.140019e20
movdqa xmm0, xmmword [0x14001ec40]
movdqu xmmword [rbp - 0x51], xmm0
mov byte [rbp - 0x61], r12b
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14000ed60
mov r8, qword [rcx]
cmp rcx, rdi
setne dl
call qword [r8 + 0x20]
mov qword [rdi + 0x38], r12
or rax, 0xffffffffffffffff
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140019e00
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret