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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x1402f2300]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rdi, r9
movzx r15d, r8b
mov r14d, edx
mov rbx, rcx
add rcx, 0x18
cmp qword [rcx + 0x18], 0xf
jbe 0x14008a390
mov rcx, qword [rcx]
call sub.WS2_32.dll_gethostbyname
mov rsi, rax
test rax, rax
jne 0x14008a431
mov rcx, rbx
call fcn.1400881f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0xb0]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movdqa xmm1, xmmword [0x14018cc30]
movdqu xmmword [rbp], xmm1
mov byte [rbp - 0x10], sil
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
lea r9, [0x1402f52d0]
mov r8d, dword [0x1402f52c8]
mov edx, 0xffffffff
mov rcx, rax
call r10
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x14008a713
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a70e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a7cb
jmp 0x14008a70e
xor r8d, r8d
mov edx, 1
mov r12d, 2
mov ecx, r12d
call sub.WS2_32.dll_socket
xchg dword [rbx + 0xc0], eax
mov eax, dword [rbx + 0xc0]
nop
test eax, eax
jns 0x14008a4ec
mov rcx, rbx
call fcn.1400881f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0xb0]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movdqa xmm1, xmmword [0x14018cc30]
movdqu xmmword [rbp], xmm1
mov byte [rbp - 0x10], 0
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
lea r9, [0x1402f5320]
mov r8d, dword [0x1402f5318]
mov edx, 0xffffffff
mov rcx, rax
call r10
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x14008a713
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a70e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a7d1
jmp 0x14008a70e
mov qword [rbp + 0x18], 0
mov word [rbp + 0x10], r12w
movzx ecx, word [rbx + 0x38]
call sub.WS2_32.dll_htons
mov word [rbp + 0x12], ax
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rbp + 0x14], eax
movsxd rcx, dword [rbx + 0xc0]
nop
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x10]
call sub.WS2_32.dll_connect
test eax, eax
jns 0x14008a5d9
movsxd rcx, dword [rbx + 0xc0]
nop
call sub.WS2_32.dll_closesocket
mov eax, 0xffffffff
xchg dword [rbx + 0xc0], eax
mov rcx, rbx
call fcn.1400881f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0xb0]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movdqa xmm1, xmmword [0x14018cc30]
movdqu xmmword [rbp], xmm1
mov byte [rbp - 0x10], 0
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
lea r9, [0x1402f52d0]
mov r8d, dword [0x1402f52c8]
mov edx, 0xffffffff
mov rcx, rax
call r10
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x14008a713
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a70e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a7d7
jmp 0x14008a70e
mov rcx, qword [rbx + 0x10]
mov edx, dword [rbx + 0xc0]
nop
call fcn.1400a8380
mov edx, r14d
mov rcx, rbx
call fcn.1400897d0
movzx edx, r15b
mov rcx, rbx
call fcn.1400897e0
mov rcx, rbx
call fcn.140089560
test eax, eax
jns 0x14008a61c
mov rcx, rbx
call fcn.14008a850
test al, al
je 0x14008a713
mov rcx, rbx
call fcn.140088200
test al, al
jne 0x14008a659
mov rcx, rbx
call fcn.1400881a0
test eax, eax
je 0x14008a713
test rdi, rdi
je 0x14008a647
mov rcx, rbx
call fcn.1400881a0
mov dword [rdi], eax
mov rax, qword [rbx]
mov dl, 1
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
xor al, al
jmp 0x14008a7a7
movsxd rcx, dword [rbx + 0xc0]
nop
mov dword [rsp + 0x30], 1
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x14008a71a
mov rax, qword [rbx]
mov dl, 1
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, rbx
call fcn.1400881f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0xb0]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movdqa xmm1, xmmword [0x14018cc30]
movdqu xmmword [rbp], xmm1
mov byte [rbp - 0x10], 0
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
lea r9, [0x1402f52d0]
mov r8d, dword [0x1402f52c8]
mov edx, 0xffffffff
mov rcx, rax
call r10
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x14008a713
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a70e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a7c5
call fcn.14014d4dc
xor al, al
jmp 0x14008a7a7
test rdi, rdi
je 0x14008a729
mov rcx, rbx
call fcn.1400881a0
mov dword [rdi], eax
cmp byte [rbx + 0xc5], 0
jne 0x14008a79e
mov r8, qword [rbx + 0xc8]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400a6ac0
nop
lea rcx, [rsp + 0x40]
call fcn.1400a7740
cmp qword [rbx + 0xc8], 0
je 0x14008a794
nop dword [rax + rax]
cmp dword [rbx + 0x48], 0
jne 0x14008a794
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
test al, al
je 0x14008a794
mov rcx, qword [rbx + 0xc8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, [rsp + 0x40]
call fcn.1400a7380
cmp qword [rbx + 0xc8], 0
jne 0x14008a760
lea rcx, [rsp + 0x40]
call fcn.1400a6d50
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14014d830
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1401538c4
int3
call fcn.1401538c4
int3
call fcn.1401538c4
int3
call fcn.1401538c4
int3