Function at 0x1401b84d0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xf0
mov rax, qword [0x1403721e8]
xor rax, rsp
mov qword [rbp + 7], rax
mov r12d, r9d
mov r15, r8
mov r14, rdx
mov rdi, rcx
mov rsi, qword [rbp + 0x77]
mov rbx, qword [rbp + 0x7f]
cmp dword [rcx + 0xd0], 0x4901fb2a
je 0x1401b851c
xor al, al
jmp 0x1401b86b5
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rax
movzx r9d, byte [rbx + 0x161]
lea r8, str.connect
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1400f6520
nop
mov rcx, qword [rdi + 0x298]
cmp rcx, 0xffffffffffffffff
jne 0x1401b8571
mov dword [rsi + 0x44], 5
mov rax, qword [rbx]
lea rdx, str.Cannot_connect__invalid_socket
mov rcx, rbx
call qword [rax + 0x28]
jmp 0x1401b86a6
mov r14d, dword [r14 + 0xfdc]
mov eax, 0x1499700
test r14d, r14d
cmove r14d, eax
mov dword [rsp + 0x30], 1
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
call sub.KERNEL32.dll_GetTickCount
mov r8d, r12d
mov rdx, r15
mov rcx, qword [rdi + 0x298]
call qword [sym.imp.WS2_32.dll_connect]
cmp dword [rdi + 0xd0], 0x4901fb2a
jne 0x1401b86a6
xor r15d, r15d
test eax, eax
je 0x1401b86ff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1401b87a6
cmp byte [rbx + 0x161], r15b
je 0x1401b860b
mov rax, qword [rbx]
lea rdx, str.Waiting_for_the_connect_to_complete...
mov rcx, rbx
call qword [rax + 0x30]
mov r8d, r14d
lea rdx, str.connectTimeoutMs
mov rcx, rbx
call fcn.1400f6d00
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
mov r9b, 1
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call fcn.1401bd500
cmp dword [rdi + 0xd0], 0x4901fb2a
jne 0x1401b86a6
test al, al
je 0x1401b8772
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, qword [rdi + 0x298]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1401b86db
cmp dword [rsp + 0x30], r15d
je 0x1401b86d3
mov rax, qword [rbx]
lea rdx, str.getsockopt_indicates_an_error.
mov rcx, rbx
call qword [rax + 0x28]
mov r8, rbx
xor edx, edx
mov ecx, dword [rsp + 0x30]
call fcn.1401baf60
mov dword [rsi + 0x44], 7
mov rcx, rdi
call fcn.1401b9890
xor bl, bl
lea rcx, [rsp + 0x38]
call fcn.1400f65e0
movzx eax, bl
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1402545b0
add rsp, 0xf0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, dword [rdi + 0xd0]
jmp 0x1401b86f8
mov rax, qword [rbx]
lea rdx, str.Failed_to_get_SO_ERROR_on_socket.
mov rcx, rbx
call qword [rax + 0x28]
mov eax, dword [rdi + 0xd0]
cmp eax, 0x4901fb2a
jne 0x1401b86a6
cmp eax, 0x4901fb2a
jne 0x1401b86a6
mov byte [rdi + 0x290], 1
mov byte [rdi + 0x292], r15b
cmp byte [rbx + 0x161], r15b
je 0x1401b87f7
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rbp - 0x79], xmm0
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
lea rcx, [rsp + 0x50]
call fcn.1400d4580
nop
mov dword [rsp + 0x30], r15d
mov r9, rbx
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, rdi
cmp dword [rdi + 0x2a0], 2
jne 0x1401b87bf
call fcn.1401b71e0
jmp 0x1401b87c4
cmp byte [rsi + 0x29], r15b
je 0x1401b8781
mov dword [rsi + 0x44], 4
jmp 0x1401b878f
movzx eax, byte [rsi + 0x28]
neg al
sbb edx, edx
add edx, 7
mov dword [rsi + 0x44], edx
mov r8, rbx
lea rdx, str.failedWaitToConnect
mov rcx, rsi
call fcn.14011e530
jmp 0x1401b869e
mov dword [rsi + 0x44], 7
mov r8, rbx
mov rdx, rsi
mov ecx, eax
call fcn.1401baf60
jmp 0x1401b869e
call fcn.1401b72f0
lea r8, [rsp + 0x50]
lea rdx, str.myIP
mov rcx, rbx
call fcn.1400f70c0
mov r8d, dword [rsp + 0x30]
lea rdx, str.myPort
mov rcx, rbx
call fcn.1400f6d00
nop
lea rcx, [rsp + 0x50]
call fcn.1400d45d0
lea rcx, [rdi + 0xe0]
mov rdx, rbx
call fcn.14019e7c0
lea rcx, [rdi + 0x128]
mov rdx, rbx
call fcn.14019e7c0
cmp byte [rbx + 0x161], 0
je 0x1401b882e
mov rax, qword [rbx]
lea rdx, str.socket_connect_successful.
mov rcx, rbx
call qword [rax + 0x30]
mov bl, 1
jmp 0x1401b86a8