Function at 0x140026c30
Capabilities:
Connect socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r13, qword [rcx]
mov qword [r8], 0xffffffffffffffff
mov eax, dword [rdx + 4]
mov rbx, qword [rcx]
mov dword [rsp + 0x30], eax
mov eax, dword [rcx + 0xa4]
xor r12d, r12d
mov dword [rsp + 0x34], eax
cmp eax, 2
mov r15, r8
mov rsi, rcx
lea eax, [r12 + 0x11]
je 0x140026c89
mov eax, dword [rdx + 0xc]
mov dword [rsp + 0x38], eax
mov eax, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov ecx, 0x80
cmp eax, ecx
cmova eax, ecx
lea rcx, [rsp + 0x40]
mov r8d, eax
mov dword [rsp + 0x3c], eax
call fcn.140052090
mov r11, qword [rbx + 0x288]
test r11, r11
je 0x140026cce
mov rcx, qword [rbx + 0x290]
lea r8, [rsp + 0x30]
xor edx, edx
call r11
jmp 0x140026ce1
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140026f81
movzx ecx, word [rsp + 0x40]
xor ebx, ebx
cmp ecx, 2
je 0x140026d0a
cmp ecx, 0x17
jne 0x140026f4c
lea rdx, [rsp + 0x48]
jmp 0x140026d0f
lea rdx, [rsp + 0x44]
lea r8, [rbp - 0x19]
mov r9d, 0x2e
call fcn.14002cb60
test rax, rax
je 0x140026f4c
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
lea r8, [rbp - 0x19]
lea rdx, str.__Trying__s..._n
mov rcx, r13
mov qword [rsp + 0x158], r14
call fcn.140023120
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x140026d5b
cmp eax, 0x17
jne 0x140026d7e
cmp dword [rsp + 0x34], 1
jne 0x140026d7e
mov r14d, 1
cmp dword [r13 + 0x4d4], ebx
je 0x140026d81
mov rdx, rdi
mov rcx, rsi
call fcn.140026800
jmp 0x140026d81
xor r14d, r14d
mov rcx, rdi
call fcn.140026890
test r14d, r14d
je 0x140026da2
cmp dword [r13 + 0x6c4], ebx
je 0x140026da2
mov rdx, rdi
mov rcx, r13
call fcn.140025d40
mov rax, qword [r13 + 0x278]
test rax, rax
je 0x140026de1
mov rcx, qword [r13 + 0x280]
xor r8d, r8d
mov rdx, rdi
call rax
mov r12d, eax
cmp eax, 2
jne 0x140026dcb
lea r14d, [rax - 1]
jmp 0x140026de4
test eax, eax
je 0x140026de1
mov rdx, rdi
mov rcx, rsi
call fcn.140026af0
mov eax, 0x2a
jmp 0x140026e2d
mov r14d, ebx
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x140026df2
cmp eax, 0x17
jne 0x140026e53
lea rcx, [rsp + 0x40]
call fcn.1400483b0
mov r8d, dword [rsp + 0x30]
mov rdx, rdi
mov r9d, eax
mov rcx, rsi
call fcn.140025f40
mov ebx, eax
test eax, eax
je 0x140026e53
mov rdx, rdi
mov rcx, rsi
call fcn.140026af0
mov eax, 7
cmp ebx, 1
cmove ebx, eax
mov eax, ebx
mov r14, qword [rsp + 0x158]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140051c70
add rsp, 0x100
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov edx, 1
mov rcx, rdi
call fcn.140048440
call fcn.140022b80
cmp dword [rsi + 0x3d8], 1
mov qword [rsi + 0x3d0], rax
jle 0x140026e83
mov edx, dword [rsi + 0x3dc]
mov rcx, r13
call fcn.140020f80
test r14d, r14d
jne 0x140026f42
cmp dword [rsi + 0xa4], 1
jne 0x140026f42
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x140026ebd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12d, eax
xor ecx, ecx
cmp dword [rsp + 0x30], 0x17
sete cl
mov dword [rsi + 0x388], ecx
cmp r14d, 0xffffffff
jne 0x140026f32
cmp r12d, 0xb
je 0x140026f28
cmp r12d, 0x2732
jle 0x140026eeb
cmp r12d, 0x2734
jle 0x140026f28
mov edx, r12d
mov rcx, rsi
call fcn.1400472c0
lea r8, [rbp - 0x19]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, r13
call fcn.140023120
mov rdx, rdi
mov rcx, rsi
mov dword [r13 + 0x88cc], r12d
call fcn.140026af0
mov ebx, 7
jmp 0x140026e2b
xor ebx, ebx
mov qword [r15], rdi
jmp 0x140026e2b
test ebx, ebx
jne 0x140026e2b
mov qword [r15], rdi
jmp 0x140026e2b
mov qword [r15], rdi
xor eax, eax
jmp 0x140026e2d
mov byte [rbp - 0x19], bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.1400472c0
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, r13
call fcn.1400231d0
mov rdx, rdi
mov rcx, rsi
call fcn.140026af0
xor eax, eax
jmp 0x140026e35