Function at 0x18004cff8
Capabilities:
Connect socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov rax, qword [0x1800c33b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
lea rdx, str.no_error
mov rcx, rdi
call fcn.1800032a0
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
test eax, eax
jns 0x18004d065
lea rdx, str.Cannot_create_a_socket
mov rcx, rdi
call fcn.1800032a0
or eax, 0xffffffff
jmp 0x18004d268
mov ecx, esi
call fcn.18004ced0
movsxd rcx, esi
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x18004d0b1
call fcn.180047f04
test al, al
jne 0x18004d0b1
call sub.WS2_32.dll_WSAGetLastError
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rdx, rax
mov rcx, rdi
call fcn.1800032a0
mov ecx, esi
call fcn.180047e00
jmp 0x18004d266
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x18004d0c4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x18004d111
mov ecx, 8
call fcn.180084a64
mov qword [rbp - 0x50], rax
test rax, rax
je 0x18004d0e0
mov rcx, rax
call fcn.18004e91c
nop
mov qword [rbp - 0x60], rax
lea r9, [rbp - 0x60]
mov r8d, esi
mov edx, 0xa
xor ecx, ecx
call fcn.180047f2c
cmp eax, 2
jne 0x18004d12c
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x18004d0b1
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x18004d0b1
mov ecx, esi
call fcn.180047e00
lea rdx, str.Cancelled
mov rcx, rdi
call fcn.1800032a0
jmp 0x18004d266
cmp eax, 3
jne 0x18004d1bb
mov ecx, esi
call fcn.180047e00
movdqa xmm0, xmmword [0x18008c1d0]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
lea rdx, str.Connect_error:
lea rcx, [rbp - 0x48]
call fcn.1800032a0
nop
call sub.WS2_32.dll_WSAGetLastError
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r8, rax
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.180032bb0
mov rsi, rax
cmp rdi, rax
je 0x18004d1ac
mov rcx, rdi
call fcn.180002890
mov r8d, 0x20
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
and qword [rsi + 0x10], 0
mov qword [rsi + 0x18], recv
mov byte [rsi], 0
lea rcx, [rbp - 0x28]
call fcn.180002890
nop
jmp 0x18004d248
cmp eax, 1
jne 0x18004d1c7
mov ebx, esi
jmp 0x18004d252
mov ecx, esi
call fcn.180047e00
movdqa xmm0, xmmword [0x18008c1d0]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
lea rdx, str.Connect_error:
lea rcx, [rbp - 0x48]
call fcn.1800032a0
nop
call sub.WS2_32.dll_WSAGetLastError
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r8, rax
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.180032bb0
mov rsi, rax
cmp rdi, rax
je 0x18004d23e
mov rcx, rdi
call fcn.180002890
mov r8d, 0x20
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
and qword [rsi + 0x10], 0
mov qword [rsi + 0x18], recv
mov byte [rsi], 0
lea rcx, [rbp - 0x28]
call fcn.180002890
nop
lea rcx, [rbp - 0x48]
call fcn.180002890
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x18004d266
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180084a40
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret