Function at 0x140010ed0
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 [0x14005f088]
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 0x140010f43
mov rbx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140010f3d
mov rbx, qword [rdx]
mov qword [rbp - 0x39], r13
jmp 0x140010f5e
cmp qword [rcx + 0x10], r12
je 0x140010f56
mov rbx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x140010f56
mov rbx, qword [rcx]
mov dword [rbp - 0x35], r9d
mov dword [rbp - 0x39], r12d
mov edx, r8d
lea rcx, [rbp - 0x61]
call fcn.140001f90
nop
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 0x10
cmovae 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 0x140010ff8
mov rdx, qword [rbp - 0x49]
cmp rdx, 0x10
jb 0x140010fc9
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010fc4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400112f3
call fcn.14001ee60
movdqa xmm0, xmmword [0x140056c40]
movdqu xmmword [rbp - 0x51], xmm0
mov byte [rbp - 0x61], r12b
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400111a1
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
jmp 0x14001119d
mov rbx, qword [rbp - 0x79]
test rbx, rbx
je 0x140011131
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 0x14001104b
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 0x140011120
cmp byte [rbp + 0x6f], r12b
je 0x14001106f
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 0x140011086
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 0x1400110ab
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 0x1400111cc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400110f3
mov rax, qword [r14 + 8]
mov dword [rax], 2
jmp 0x140011117
mov r8, qword [r14 + 0x18]
mov rdx, qword [r14 + 0x10]
mov r8, qword [r8]
mov rdx, qword [rdx]
mov rcx, rsi
call fcn.140002f48
mov rcx, qword [r14 + 8]
mov dword [rcx], eax
test eax, eax
je 0x1400111cc
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140011005
mov rbx, qword [rbp - 0x79]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 0x10
jb 0x140011176
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011171
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400112f3
call fcn.14001ee60
movdqa xmm0, xmmword [0x140056c40]
movdqu xmmword [rbp - 0x51], xmm0
mov byte [rbp - 0x61], r12b
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400111a1
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.14001ee40
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
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, 0x10
jb 0x1400112c1
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400112bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400112f3
call fcn.14001ee60
movdqa xmm0, xmmword [0x140056c40]
movdqu xmmword [rbp - 0x51], xmm0
mov byte [rbp - 0x61], r12b
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400112eb
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], r12
mov rax, rsi
jmp 0x1400111a5
call fcn.14002b68c
int3