Function at 0x14009a320
Capabilities:
Connect socket
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, qword [0x1401fbd90]
xor r15d, r15d
mov r14, rdx
cmp dword [rsi + 0x2b84], r15d
je 0x14009a412
mov rdx, qword [rsi + 0x48]
lea rcx, [rsi + 0x24]
call fcn.14009abc0
movzx eax, word [rsi + 0x50]
xorps xmm0, xmm0
mov rbx, qword [rsi + 8]
mov word [rsi + 0x34], ax
mov eax, reloc.WS2_32.dll_socket
movzx ecx, word [rsi + 0x34]
mov word [rbp - 0x40], ax
movdqu xmmword [rbp - 0x3c], xmm0
mov dword [rbp - 0x2c], r15d
call qword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [rsi + 0x24]
mov word [rbp - 0x3e], ax
lea rdx, [rbp - 0x40]
movzx eax, word [rsi + 0x36]
mov r8d, 0x1c
mov rcx, rbx
mov dword [rbp - 0x28], eax
movups xmmword [rbp - 0x38], xmm0
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14009a3d7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14009a464
mov dword [rsi + 0x68], 1
xor eax, eax
mov dword [rsi + 0x3c], eax
movzx eax, byte [r14 + 0xc]
mov byte [rsi + 0x3c], al
movzx eax, byte [r14 + 0xd]
mov byte [rsi + 0x3d], al
movzx eax, byte [r14 + 0xe]
mov byte [rsi + 0x3e], al
movzx eax, byte [r14 + 0xf]
mov byte [rsi + 0x3f], al
movzx ecx, word [r14 + 0x10]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 0x40], ax
imul rcx, qword [rsi + 0x90], 0x208
mov rbx, qword [rsi + 0x88]
add rcx, rbx
cmp rbx, rcx
jae 0x14009a464
nop dword [rax]
cmp dword [rbx + 0x40], r15d
je 0x14009a442
add rbx, 0x208
cmp rbx, rcx
jb 0x14009a430
cmp rbx, rcx
jae 0x14009a464
mov ecx, 0x50
call qword [0x1401f4468]
mov rdi, rax
test rax, rax
jne 0x14009a48c
call qword [0x1401f4478]
mov qword [rbx + 0x48], rdi
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14012ada0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], 1
mov dword [rbx + 0x40], 1
movups xmm0, xmmword [r14]
movups xmmword [rbx + 0x22], xmm0
mov eax, dword [r14 + 0x10]
mov dword [rbx + 0x32], eax
inc dword [rsi + 0x7c]
mov eax, dword [rsi + 0x7c]
mov dword [rbx + 0x1c], eax
mov eax, dword [rsi + 0x70]
test eax, eax
je 0x14009a4e4
shr eax, 0x10
shl eax, 0xc
mov dword [rbx + 0x100], eax
cmp eax, 0x1000
jae 0x14009a4dd
mov dword [rbx + 0x100], 0x1000
jmp 0x14009a4ee
cmp eax, 0x10000
jbe 0x14009a4ee
mov dword [rbx + 0x100], 0x10000
mov rdx, qword [rbx + 0x48]
lea rax, [rdx + 0x50]
cmp rdx, rax
jae 0x14009a541
lea rcx, [rdx + 0x48]
nop
lea rax, [rcx - 0x18]
mov word [rdx], r15w
mov qword [rcx - 0x10], rax
xorps xmm0, xmm0
mov qword [rax], rax
add rdx, 0x50
lea rax, [rcx - 8]
mov dword [rcx - 0x46], r15d
mov qword [rcx], rax
mov qword [rax], rax
mov dword [rcx - 0x22], r15d
movups xmmword [rcx - 0x42], xmm0
movups xmmword [rcx - 0x32], xmm0
mov rax, qword [rbx + 0x48]
lea rcx, [rcx + 0x50]
add rax, 0x50
cmp rdx, rax
jb 0x14009a500
movzx ecx, word [rbx + 0x1a]
mov word [rbp - 0x40], 0xff82
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [rbx + 0xfc]
mov word [rbp - 0x3c], ax
movzx eax, byte [rbx + 0x21]
mov byte [rbp - 0x3a], al
movzx eax, byte [rbx + 0x20]
mov byte [rbp - 0x39], al
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [rbx + 0x100]
mov dword [rbp - 0x38], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, 1
mov dword [rbp - 0x34], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [rsi + 0x6c]
mov dword [rbp - 0x30], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [rsi + 0x70]
mov dword [rbp - 0x2c], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [rbx + 0xd0]
mov dword [rbp - 0x28], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [rbx + 0xc8]
mov dword [rbp - 0x24], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [rbx + 0xcc]
mov dword [rbp - 0x20], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
xor ecx, ecx
mov eax, dword [rbx + 0x1c]
mov dword [rbp - 0x18], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, 0x60
mov dword [rbp - 0x14], eax
call qword [0x1401f4468]
test rax, rax
jne 0x14009a603
call qword [0x1401f4478]
mov rax, rbx
jmp 0x14009a466
movups xmm0, xmmword [rbp - 0x40]
mov rdx, rax
mov rcx, rbx
movups xmm1, xmmword [rbp - 0x30]
mov dword [rax + 0x20], r15d
movups xmmword [rax + 0x28], xmm0
mov word [rax + 0x24], r15w
movups xmm0, xmmword [rbp - 0x20]
mov qword [rax + 0x58], r15
movups xmmword [rax + 0x38], xmm1
movups xmmword [rax + 0x48], xmm0
call fcn.140099730
mov rax, rbx
jmp 0x14009a466