Function at 0x1400feec0
Capabilities:
Connect socket

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x158
mov rax, qword [0x1403c6da0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [rdx + 4]
mov rsi, qword [rcx]
mov ebx, 0x80
mov dword [rsp + 0x30], eax
mov eax, dword [rcx + 0x9c]
mov r12, rcx
mov dword [rsp + 0x34], eax
mov eax, dword [rdx + 0xc]
mov r13d, r8d
mov dword [rsp + 0x38], eax
mov eax, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
cmp eax, ebx
lea rcx, [rsp + 0x40]
mov r14, r9
cmova eax, ebx
mov r8d, eax
mov dword [rsp + 0x3c], eax
call fcn.14025ccd0
mov byte [r14], 0
mov rax, qword [rsi + 0x1e0]
test rax, rax
je 0x1400fef4b
mov rcx, qword [rsi + 0x1e8]
lea r8, [rsp + 0x30]
xor edx, edx
call rax
jmp 0x1400fef5e
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.WSOCK32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400ff027
mov ecx, dword [rsp + 0x30]
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x44]
mov r9, rbx
call fcn.140103370
test rax, rax
je 0x1400fefde
lea r8, [rsp + 0xc0]
lea rdx, str.__Trying__s...
mov rcx, rsi
call fcn.1400fe360
lea rbx, [rsi + 0x8808]
lea r9, [rsp + 0xc0]
lea r8, [0x1403551f8]
mov rcx, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
call fcn.1400f3910
lea rcx, [r12 + 0x58]
sub rcx, rbx
nop dword [rax + rax]
movzx eax, byte [rbx]
inc rbx
mov byte [rcx + rbx - 1], al
test al, al
jne 0x1400fefd0
cmp byte [rsi + 0x3a6], 0
je 0x1400feff2
mov rdx, rdi
mov rcx, r12
call fcn.1400fedb0
mov rcx, rdi
call fcn.1400fee40
mov r11, qword [rsi + 0x1d0]
test r11, r11
je 0x1400ff030
mov rcx, qword [rsi + 0x1d8]
xor r8d, r8d
mov rdx, rdi
call r11
mov dword [rsp + 0x20], eax
test eax, eax
je 0x1400ff030
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_closesocket]
or rax, 0xffffffffffffffff
jmp 0x1400ff169
mov r8d, dword [rsp + 0x30]
mov rdx, rdi
mov rcx, r12
call fcn.1400fe9c0
mov rcx, rdi
test eax, eax
jne 0x1400ff021
lea edx, [rax + 1]
mov qword [rsp + 0x150], rbp
call fcn.140114f10
cmp dword [r12 + 0x9c], 1
jne 0x1400ff0eb
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_connect]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400ff0d8
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebp, eax
mov dword [rsp + 0x20], eax
cmp eax, 0xb
je 0x1400ff0cb
cmp eax, 0x2732
jle 0x1400ff09f
cmp eax, 0x2734
jle 0x1400ff0cb
mov edx, eax
mov rcx, r12
call fcn.1400f2cd0
lea r8, [rsp + 0xc0]
lea rdx, str.Failed_to_connect_to__s:__s
mov r9, rax
mov rcx, rsi
call fcn.1400fe410
mov dword [rsi + 0x868c], ebp
jmp 0x1400ff0ed
mov edx, r13d
mov rcx, rdi
call fcn.1400fe980
mov ebx, eax
cmp ebx, 1
jne 0x1400ff0ed
cmp dword [rsi + 0x608], 2
jne 0x1400ff0ed
mov rax, rdi
jmp 0x1400ff161
xor ebx, ebx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400fed20
test ebx, ebx
jne 0x1400ff11a
test al, al
je 0x1400ff130
lea rdx, str.connected_n
mov rcx, rsi
mov byte [r14], 1
call fcn.1400fe360
mov rax, rdi
jmp 0x1400ff161
cmp ebx, 1
jne 0x1400ff130
lea rdx, str.Timeout_n
mov rcx, rsi
call fcn.1400fe360
jmp 0x1400ff154
mov edx, dword [rsp + 0x20]
mov rcx, r12
mov dword [rsi + 0x868c], edx
call fcn.1400f2cd0
lea rdx, [0x1402db2ec]
mov r8, rax
mov rcx, rsi
call fcn.1400fe360
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_closesocket]
or rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14025db20
add rsp, 0x158
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret