Function at 0x1800a9160
Capabilities:
Connect socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov rax, qword [0x18012c070]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, qword [rcx]
xor r15d, r15d
mov qword [r8], 0xffffffffffffffff
mov r13, r8
mov eax, dword [rdx + 4]
mov rsi, rcx
mov rbx, qword [rcx]
mov dword [rsp + 0x20], eax
mov eax, dword [rcx + 0xa4]
cmp eax, 2
mov dword [rsp + 0x24], eax
lea eax, [r15 + 0x11]
je 0x1800a91b8
mov eax, dword [rdx + 0xc]
mov dword [rsp + 0x28], eax
mov ecx, 0x80
mov eax, dword [rdx + 0x10]
cmp eax, ecx
mov rdx, qword [rdx + 0x20]
cmova eax, ecx
lea rcx, [rsp + 0x30]
mov r8d, eax
mov dword [rsp + 0x2c], eax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x278]
test rax, rax
je 0x1800a91fc
mov rcx, qword [rbx + 0x280]
lea r8, [rsp + 0x20]
xor edx, edx
call rax
jmp 0x1800a920f
mov r8d, dword [rsp + 0x28]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800a94cc
mov ecx, dword [rsi + 0xa0]
test ecx, ecx
je 0x1800a9236
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x20], 0x17
cmove eax, ecx
mov dword [rsp + 0x48], eax
movzx ecx, word [rsp + 0x30]
xor ebx, ebx
cmp ecx, 2
je 0x1800a9252
cmp ecx, 0x17
jne 0x1800a9497
lea rdx, [rsp + 0x38]
jmp 0x1800a9257
lea rdx, [rsp + 0x34]
mov r9d, reloc.WLDAP32.dll_Ordinal_46
lea r8, [rbp - 0x19]
call fcn.1800b46a0
test rax, rax
je 0x1800a9497
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
lea r8, [rbp - 0x19]
mov qword [rsp + 0x148], r12
lea rdx, str.__Trying__s..._n
mov rcx, r14
call fcn.1800a7790
mov eax, dword [rsp + 0x20]
cmp eax, 2
je 0x1800a92a3
cmp eax, 0x17
jne 0x1800a92b1
cmp dword [rsp + 0x24], 1
jne 0x1800a92b1
mov eax, 1
jmp 0x1800a92b3
xor eax, eax
test eax, eax
setne r12b
test r12b, r12b
je 0x1800a92d2
cmp byte [r14 + 0x45e], bl
je 0x1800a92d2
mov rdx, rdi
mov rcx, rsi
call fcn.1800a8870
mov rcx, rdi
call fcn.1800a8640
test r12b, r12b
je 0x1800a92f3
cmp byte [r14 + 0x634], bl
je 0x1800a92f3
mov rdx, rdi
mov rcx, r14
call fcn.1800a94e0
mov rax, qword [r14 + 0x268]
test rax, rax
je 0x1800a9331
mov rcx, qword [r14 + 0x270]
xor r8d, r8d
mov rdx, rdi
call rax
mov r15d, eax
cmp eax, 2
jne 0x1800a931b
mov r12b, 1
jmp 0x1800a9334
test eax, eax
je 0x1800a9331
mov rdx, rdi
mov rcx, rsi
call fcn.1800a7e50
mov eax, Ordinal_46
jmp 0x1800a937d
xor r12b, r12b
mov eax, dword [rsp + 0x20]
cmp eax, 2
je 0x1800a9342
cmp eax, 0x17
jne 0x1800a93a3
lea rcx, [rsp + 0x30]
call fcn.1800cacc0
mov r8d, dword [rsp + 0x20]
mov r9d, eax
mov rdx, rdi
mov rcx, rsi
call fcn.1800a8bd0
mov ebx, eax
test eax, eax
je 0x1800a93a3
mov rdx, rdi
mov rcx, rsi
call fcn.1800a7e50
cmp ebx, 1
mov eax, 7
cmove ebx, eax
mov eax, ebx
mov r12, qword [rsp + 0x148]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800d2160
add rsp, 0xf0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov edx, 1
mov rcx, rdi
call fcn.1800cad40
call fcn.18009ea90
cmp dword [rsi + 0x35c], 1
mov qword [rsi + 0x354], rax
jle 0x1800a93d3
mov edx, dword [rsi + 0x360]
mov rcx, r14
call fcn.18009a230
test r12b, r12b
jne 0x1800a948c
cmp dword [rsi + 0xa4], 1
jne 0x1800a948c
mov r8d, dword [rsp + 0x2c]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov r12d, eax
cmp eax, 0xffffffff
jne 0x1800a940d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r15d, eax
cmp dword [rsp + 0x20], 0x17
sete cl
mov byte [rsi + 0x33f], cl
cmp r12d, 0xffffffff
jne 0x1800a947b
cmp r15d, 0xb
je 0x1800a9470
lea eax, [r15 - 0x2733]
cmp eax, 1
jbe 0x1800a9470
mov edx, r15d
mov rcx, rsi
call fcn.180099630
mov r9, rax
lea r8, [rbp - 0x19]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, r14
call fcn.1800a7790
mov rdx, rdi
mov dword [r14 + 0x882c], r15d
mov rcx, rsi
call fcn.1800a7e50
lea ebx, [r12 + 8]
jmp 0x1800a937b
xor ebx, ebx
mov qword [r13], rdi
jmp 0x1800a937b
test ebx, ebx
jne 0x1800a937b
mov qword [r13], rdi
jmp 0x1800a937b
mov qword [r13], rdi
xor eax, eax
jmp 0x1800a937d
mov byte [rbp - 0x19], bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.180099630
mov r9, rax
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, r14
call fcn.1800a76d0
mov rdx, rdi
mov rcx, rsi
call fcn.1800a7e50
xor eax, eax
jmp 0x1800a9385