Function at 0x180141970
Capabilities:
Connect socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x180594240]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
xor r14d, r14d
mov r8d, 8
lea rdx, str.no_error
mov rcx, rbp
call fcn.180109930
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
mov ecx, eax
call fcn.180141d50
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x180141a20
call fcn.1801416e0
test al, al
jne 0x180141a20
call sub.WS2_32.dll_WSAGetLastError
mov ecx, eax
call fcn.180413df8
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x180141a00
mov rdx, rax
mov rcx, rbp
call fcn.180109930
mov ecx, edi
call fcn.180141710
jmp 0x180141c0e
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x180141a33
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x180141a72
mov qword [rsp + 0x60], r14
lea rcx, [rsp + 0x60]
call fcn.180140ff0
nop
lea r9, [rsp + 0x60]
mov r8d, edi
mov edx, 0xa
xor ecx, ecx
call fcn.180141210
cmp eax, 2
jne 0x180141a9a
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180141a20
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x180141a20
mov ecx, edi
call fcn.180141710
mov r8d, 9
lea rdx, str.Cancelled
mov rcx, rbp
call fcn.180109930
mov rax, 0xffffffffffffffff
jmp 0x180141c10
cmp eax, 3
jne 0x180141b44
mov ecx, edi
call fcn.180141710
call sub.WS2_32.dll_WSAGetLastError
mov ecx, eax
call fcn.180413df8
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Connect_error:
lea rcx, [rsp + 0x20]
call fcn.180102210
nop
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x180141af0
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.180108840
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.180108910
lea rcx, [rsp + 0x40]
call fcn.1801021b0
nop
jmp 0x180141bef
cmp eax, 1
jne 0x180141b50
mov ebx, edi
jmp 0x180141bfa
mov ecx, edi
call fcn.180141710
call sub.WS2_32.dll_WSAGetLastError
mov ecx, eax
call fcn.180413df8
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Connect_error:
lea rcx, [rsp + 0x20]
call fcn.180102210
nop
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x180141ba0
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.180108840
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.180108910
lea rcx, [rsp + 0x40]
call fcn.1801021b0
nop
lea rcx, [rsp + 0x20]
call fcn.1801021b0
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180141c0e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1803fd0a0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret