Function at 0x140079250
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov r12, qword [rcx]
or r15, 0xffffffffffffffff
xor r13d, r13d
mov qword [r8], r15
mov eax, dword [rdx + 4]
mov rbx, qword [rcx]
mov dword [rsp + 0x30], eax
mov eax, dword [rcx + 0xa4]
mov r14, r8
mov dword [rsp + 0x34], eax
cmp eax, 2
mov rdi, rcx
lea eax, [r15 + 0x12]
mov ebp, r13d
je 0x1400792af
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.140042d30
mov r11, qword [rbx + 0x288]
test r11, r11
je 0x1400792f4
mov rcx, qword [rbx + 0x290]
lea r8, [rsp + 0x30]
xor edx, edx
call r11
jmp 0x140079307
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x140079621
mov ecx, dword [rdi + 0xa0]
test ecx, ecx
je 0x14007932e
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x30], 0x17
cmove eax, ecx
mov dword [rsp + 0x58], eax
movzx ecx, word [rsp + 0x40]
mov ebx, r13d
cmp ecx, 2
je 0x14007934b
cmp ecx, 0x17
jne 0x1400795c1
lea rdx, [rsp + 0x48]
jmp 0x140079350
lea rdx, [rsp + 0x44]
lea r8, [rsp + 0xc0]
mov r9d, reloc.WLDAP32.dll_Ordinal_46
call fcn.140082a00
test rax, rax
je 0x1400795c1
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
lea r8, [rsp + 0xc0]
lea rdx, str.__Trying__s..._n
mov rcx, r12
call fcn.140075570
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x14007939c
cmp eax, 0x17
jne 0x1400793be
cmp dword [rsp + 0x34], 1
jne 0x1400793be
cmp dword [r12 + 0x4e0], ebx
mov r13d, 1
je 0x1400793be
mov rdx, rsi
mov rcx, rdi
call fcn.140078e90
mov rcx, rsi
call fcn.140078f20
test r13d, r13d
je 0x1400793e0
cmp dword [r12 + 0x6c4], ebx
je 0x1400793e0
mov rdx, rsi
mov rcx, r12
call fcn.140078300
mov rax, qword [r12 + 0x278]
test rax, rax
je 0x140079423
mov rcx, qword [r12 + 0x280]
xor r8d, r8d
mov rdx, rsi
call rax
cmp eax, 2
mov ebp, eax
jne 0x14007940a
lea r13d, [rax - 1]
jmp 0x140079426
test eax, eax
je 0x140079423
mov rdx, rsi
mov rcx, rdi
call fcn.1400790f0
mov eax, Ordinal_46
jmp 0x140079623
mov r13d, ebx
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x140079438
cmp eax, 0x17
jne 0x1400794cb
lea rcx, [rsp + 0x40]
call fcn.14009f320
mov r8d, dword [rsp + 0x30]
mov rdx, rsi
mov r9d, eax
mov rcx, rdi
call fcn.140078500
test eax, eax
mov ebx, eax
je 0x1400794cb
cmp qword [rdi + 0x38], 0
je 0x14007947e
cmp rsi, qword [rdi + 0x1d8]
jne 0x1400794a4
cmp dword [rdi + 0x1f4], 0
je 0x1400794a4
mov dword [rdi + 0x1f4], 0
mov rdx, rsi
mov rcx, rdi
call fcn.140072840
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 7
cmp ebx, 1
cmove ebx, eax
mov eax, ebx
jmp 0x140079623
mov rdx, rsi
mov rcx, rdi
call fcn.140072840
mov rcx, qword [rdi + 0x40]
mov rdx, rsi
call qword [rdi + reloc.WS2_32.dll_getservbyport]
mov eax, 7
cmp ebx, 1
cmove ebx, eax
mov eax, ebx
jmp 0x140079623
mov edx, 1
mov rcx, rsi
call fcn.14009f3a0
call fcn.140075010
cmp dword [rdi + 0x3ac], 1
mov qword [rdi + 0x3a4], rax
jle 0x1400794fb
mov edx, dword [rdi + 0x3b0]
mov rcx, r12
call fcn.140072ec0
test r13d, r13d
jne 0x1400795bc
cmp dword [rdi + 0xa4], 1
jne 0x1400795bc
cmp dword [rdi + 0x398], r13d
jne 0x140079535
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
mov r15d, eax
jne 0x14007953d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
xor ecx, ecx
cmp dword [rsp + 0x30], 0x17
sete cl
cmp r15d, 0xffffffff
mov dword [rdi + 0x350], ecx
jne 0x1400795b1
cmp ebp, 0xb
je 0x1400795a8
cmp ebp, 0x2732
jle 0x140079568
cmp ebp, 0x2734
jle 0x1400795a8
mov edx, ebp
mov rcx, rdi
call fcn.140066c40
lea r8, [rsp + 0xc0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, r12
call fcn.140075570
mov rdx, rsi
mov rcx, rdi
mov dword [r12 + 0x88dc], ebp
call fcn.1400790f0
mov ebx, 7
mov eax, ebx
jmp 0x140079623
xor ebx, ebx
mov qword [r14], rsi
mov eax, ebx
jmp 0x140079623
test ebx, ebx
jne 0x1400795b8
mov qword [r14], rsi
mov eax, ebx
jmp 0x140079623
mov qword [r14], rsi
jmp 0x140079621
mov byte [rsp + 0xc0], bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140066c40
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, r12
call fcn.140075620
cmp qword [rdi + 0x38], rbp
je 0x14007960d
cmp rsi, qword [rdi + 0x1d8]
jne 0x14007964e
cmp dword [rdi + 0x1f4], ebp
je 0x14007964e
mov dword [rdi + 0x1f4], r13d
mov rdx, rsi
mov rcx, rdi
call fcn.140072840
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140041910
mov rbx, qword [rsp + 0x158]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdx, rsi
mov rcx, rdi
call fcn.140072840
mov rcx, qword [rdi + 0x40]
mov rdx, rsi
call qword [rdi + reloc.WS2_32.dll_getservbyport]
jmp 0x140079621