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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1401d5408]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x2b84], r15d
je 0x140013ea4
mov rdx, qword [rcx + 0x48]
add rcx, 0x24
call fcn.140014670
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 r8d, [r15 + 0x1c]
movzx eax, word [rsi + 0x36]
lea rdx, [rbp - 0x40]
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 0x140013e69
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140013ef4
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 0x140013ef4
nop
cmp dword [rbx + 0x40], r15d
je 0x140013ed2
add rbx, 0x208
cmp rbx, rcx
jb 0x140013ec0
cmp rbx, rcx
jae 0x140013ef4
mov ecx, 0xa0
call qword [0x1401d54f0]
mov rdi, rax
test rax, rax
jne 0x140013f16
call qword [0x1401d5500]
mov qword [rbx + 0x48], rdi
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140115c10
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], 2
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 0x140013f6e
shr eax, 0x10
shl eax, 0xc
mov dword [rbx + 0x100], eax
cmp eax, 0x1000
jae 0x140013f67
mov dword [rbx + 0x100], 0x1000
jmp 0x140013f78
cmp eax, 0x10000
jbe 0x140013f78
mov dword [rbx + 0x100], 0x10000
mov rdx, qword [rbx + 0x48]
lea rax, [rdx + 0xa0]
cmp rdx, rax
jae 0x140013fd3
lea rcx, [rdx + 0x48]
nop dword [rax]
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, 0xa0
cmp rdx, rax
jb 0x140013f90
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, 2
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 [0x1401d54f0]
test rax, rax
jne 0x140014095
call qword [0x1401d5500]
mov rax, rbx
jmp 0x140013ef6
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.140013210
mov rax, rbx
jmp 0x140013ef6