Function at 0x140025a50
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x120
mov rax, qword [0x1400a91a0]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rbp, qword [rcx]
mov r15, r8
mov qword [r8], 0xffffffffffffffff
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r12d, r12d
call fcn.140025660
mov edi, eax
test eax, eax
je 0x140025aa0
xor eax, eax
jmp 0x140025cfa
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x118], rbx
call fcn.140026280
test eax, eax
jne 0x140025b04
call fcn.14005b554
mov rbx, rax
call fcn.14005b554
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.140033440
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.140023ea0
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1400255e0
jmp 0x140025cf0
lea r8, [rsp + 0xd0]
lea rdx, str.__Trying__s..._n
mov rcx, rbp
mov qword [rsp + 0x110], r14
call fcn.140023df0
cmp dword [rsp + 0x40], 2
mov rbx, qword [rsp + 0x20]
jne 0x140025b52
cmp dword [rsp + 0x44], 1
jne 0x140025b52
mov r14d, 1
cmp dword [rbp + 0x634], r12d
je 0x140025b55
mov rdx, rbx
mov rcx, rsi
call fcn.140025730
jmp 0x140025b55
xor r14d, r14d
mov rcx, rbx
call fcn.1400251e0
test r14d, r14d
mov r14, qword [rsp + 0x110]
je 0x140025b7e
cmp dword [rbp + 0x87c], r12d
je 0x140025b7e
mov rdx, rbx
mov rcx, rbp
call fcn.140025920
mov rax, qword [rbp + 0x2d8]
test rax, rax
je 0x140025ba2
mov rcx, qword [rbp + 0x2e0]
xor r8d, r8d
mov rdx, rbx
call rax
cmp eax, 2
jne 0x140025be9
lea r12d, [rax - 1]
cmp dword [rsp + 0x40], 2
jne 0x140025c02
lea rcx, [rsp + 0x50]
call fcn.14004adf0
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
mov r9d, eax
mov rcx, rsi
call fcn.140025d20
mov edi, eax
test eax, eax
je 0x140025c02
mov rdx, rbx
mov rcx, rsi
call fcn.1400255e0
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x140025cf2
test eax, eax
je 0x140025ba2
mov rdx, rbx
mov rcx, rsi
call fcn.1400255e0
mov eax, Ordinal_45
jmp 0x140025cf2
mov edx, 1
mov rcx, rbx
call fcn.14004ae20
lea rcx, [rsp + 0x20]
call fcn.140018b70
cmp dword [rsi + 0x620], 1
mov rcx, qword [rax]
mov qword [rsi + 0x610], rcx
mov rax, qword [rax + 8]
mov qword [rsi + 0x618], rax
jle 0x140025c4c
mov rdx, qword [rsi + 0x628]
mov r8d, 3
mov rcx, rbp
call fcn.1400145f0
test r12d, r12d
jne 0x140025ced
cmp dword [rsi + 0xbc], 1
jne 0x140025ced
cmp dword [rsi + 0x5f8], r12d
jne 0x140025c8e
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140025c8e
test edi, edi
jne 0x140025ce9
mov qword [r15], rbx
mov eax, edi
jmp 0x140025cf2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x140025ce4
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x140025ce4
mov edx, eax
mov rcx, rsi
call fcn.140033440
lea r8, [rsp + 0xd0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, rbp
call fcn.140023df0
mov rdx, rbx
mov rcx, rsi
mov dword [rbp + 0x4b64], edi
call fcn.1400255e0
mov edi, 7
mov eax, edi
jmp 0x140025cf2
xor edi, edi
mov qword [r15], rbx
mov eax, edi
jmp 0x140025cf2
mov qword [r15], rbx
xor eax, eax
mov rbx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140056190
add rsp, 0x120
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret