Function at 0x1401a8950
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x110
mov rax, qword [0x1402ded38]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbp, qword [rcx]
mov r13, r8
mov qword [r8], 0xffffffffffffffff
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x20]
mov rdi, rcx
xor r14d, r14d
call fcn.1401a87c0
mov esi, eax
test eax, eax
je 0x1401a89a0
xor eax, eax
jmp 0x1401a8bdf
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x108], rbx
call fcn.1401a8230
test eax, eax
jne 0x1401a89fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.1401ab8d0
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.1401a5030
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.1401a8750
jmp 0x1401a8bd5
lea r8, [rsp + 0xc0]
lea rdx, str.__Trying__s..._n
mov rcx, rbp
mov qword [rsp + 0x100], r12
call fcn.1401a4f80
cmp dword [rsp + 0x30], 2
mov rbx, qword [rsp + 0x20]
jne 0x1401a8a4a
cmp dword [rsp + 0x34], 1
jne 0x1401a8a4a
mov r12d, 1
cmp dword [rbp + 0x5cc], r14d
je 0x1401a8a4d
mov rdx, rbx
mov rcx, rdi
call fcn.1401a84d0
jmp 0x1401a8a4d
xor r12d, r12d
mov rcx, rbx
call fcn.1401a8560
test r12d, r12d
mov r12, qword [rsp + 0x100]
je 0x1401a8a76
cmp dword [rbp + 0x80c], r14d
je 0x1401a8a76
mov rdx, rbx
mov rcx, rbp
call fcn.1401a7a40
mov rax, qword [rbp + 0x278]
test rax, rax
je 0x1401a8a9a
mov rcx, qword [rbp + 0x280]
xor r8d, r8d
mov rdx, rbx
call rax
cmp eax, 2
jne 0x1401a8ae1
lea r14d, [rax - 1]
cmp dword [rsp + 0x30], 2
jne 0x1401a8afa
lea rcx, [rsp + 0x40]
call fcn.1401986f0
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov r9d, eax
mov rcx, rdi
call fcn.1401a7c40
mov esi, eax
test eax, eax
je 0x1401a8afa
mov rdx, rbx
mov rcx, rdi
call fcn.1401a8750
mov eax, 7
cmp esi, 1
cmove esi, eax
mov eax, esi
jmp 0x1401a8bd7
test eax, eax
je 0x1401a8a9a
mov rdx, rbx
mov rcx, rdi
call fcn.1401a8750
mov eax, SQLGetFunctions
jmp 0x1401a8bd7
mov edx, 1
mov rcx, rbx
call fcn.1401cb820
call fcn.1401a48a0
cmp dword [rdi + 0x5d0], 1
mov qword [rdi + 0x5c8], rax
jle 0x1401a8b2b
mov rdx, qword [rdi + 0x5d8]
mov rcx, rbp
call fcn.1401a3010
test r14d, r14d
jne 0x1401a8bd1
cmp dword [rdi + 0xa4], 1
jne 0x1401a8bd1
cmp dword [rdi + 0x5b0], r14d
jne 0x1401a8b6e
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1401a8b6e
test esi, esi
jne 0x1401a8bcd
mov qword [r13], rbx
mov eax, esi
jmp 0x1401a8bd7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0xb
je 0x1401a8bc7
cmp eax, 0x2732
jle 0x1401a8b89
cmp eax, 0x2734
jle 0x1401a8bc7
mov edx, eax
mov rcx, rdi
call fcn.1401ab8d0
lea r8, [rsp + 0xc0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, rbp
call fcn.1401a4f80
mov rdx, rbx
mov rcx, rdi
mov dword [rbp + 0x4a8c], esi
call fcn.1401a8750
mov esi, 7
mov eax, esi
jmp 0x1401a8bd7
xor esi, esi
mov qword [r13], rbx
mov eax, esi
jmp 0x1401a8bd7
mov qword [r13], rbx
xor eax, eax
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14017ae40
add rsp, 0x110
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret