Function at 0x140093a70
Capabilities:
Connect socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x1403c3d98]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
movzx r12d, r9b
mov rbx, rcx
mov r14, qword [rbp + 0x650]
mov qword [rbp - 0x78], r14
mov r15, qword [rbp + 0x658]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
xor r13d, r13d
mov dword [rsp + 0x5c], r13d
mov qword [rsp + 0x60], 1
mov dword [rsp + 0x58], r8d
lea rcx, [rbp - 0x70]
call fcn.140089a40
nop
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rdx, qword [rbp - 0x70]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140093baa
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140093b4f
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140093b4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140093f6a
call fcn.14029591c
movdqa xmm0, xmmword [0x1402d09c0]
mov byte [rbp - 0x70], 0
movdqu xmmword [rbp - 0x60], xmm0
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x140093b79
cmp rcx, r14
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [r14 + 0x38], r13
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.1402959c0
mov rbx, qword [rsp + 0x738]
add rsp, 0x6f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x140093e89
nop dword [rax + rax]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, dword [rsi + 0xc]
mov edx, dword [rsi + 8]
mov ecx, dword [rsi + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140093c06
mov r8d, dword [rsi + 0xc]
mov edx, dword [rsi + 8]
mov ecx, dword [rsi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140093e77
test r12b, r12b
je 0x140093c32
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x140093c4b
mov qword [rsp + 0x40], rbx
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rsi + 4], 0x17
jne 0x140093c75
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 1
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsi + 0x10]
mov rdx, qword [rsi + 0x20]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x140093ed6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140093e5b
mov rax, qword [r15 + 0x10]
mov r8, qword [rax]
mov rax, qword [r15 + 8]
mov r9, qword [rax]
mov qword [rbp - 0x48], rbx
mov dword [rbp - 0x50], 1
lea rcx, [rbp + 0x1c0]
lea rax, [rbp - 0x50]
mov edx, 4
nop dword [rax]
nop word [rax + rax]
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 rdx, 1
jne 0x140093cf0
mov rax, qword [rax]
mov qword [rcx], rax
lea rcx, [rbp + 0x3d0]
lea rax, [rbp - 0x50]
mov edx, 4
nop dword [rax + rax]
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 rdx, 1
jne 0x140093d60
mov rax, qword [rax]
mov qword [rcx], rax
mov dword [rsp + 0x50], r9d
mov dword [rsp + 0x54], r8d
lea ecx, [rbx + 1]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3d0]
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_select]
movsxd rdi, eax
test eax, eax
jns 0x140093df8
call fcn.14029cb50
cmp dword [rax], 4
je 0x140093dc2
test rdi, rdi
jle 0x140093e5b
lea rdx, [rbp - 0x50]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x140093e20
lea rdx, [rbp + 0x1c0]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140093e5b
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x140093e5b
cmp dword [rsp + 0x34], 0
je 0x140093ed6
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [r15 + 0x18]
mov dword [rax], 2
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140093bc0
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140093b4f
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140093b4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140093f6a
jmp 0x140093b4a
mov dword [rsp + 0x40], r13d
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [r15 + 0x18]
mov dword [rax], r13d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140093f38
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140093f33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140093f6a
call fcn.14029591c
movdqa xmm0, xmmword [0x1402d09c0]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x140093f62
mov rax, qword [rcx]
cmp rcx, r14
setne dl
call qword [rax + 0x20]
mov qword [r14 + 0x38], r13
mov rax, rbx
jmp 0x140093b80
call fcn.14029ca04
int3