Function at 0x14003afe0
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x110
mov rax, qword [0x14017c0f0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbp, qword [rcx]
lea r9, [rsp + 0x20]
mov qword [r8], 0xffffffffffffffff
mov r15, r8
lea r8, [rsp + 0x30]
mov rsi, rcx
xor r12b, r12b
call fcn.14003a610
mov edi, eax
test eax, eax
je 0x14003b030
xor eax, eax
jmp 0x14003b19a
movzx eax, word [rsp + 0x40]
mov qword [rsp + 0x108], rbx
cmp eax, 2
je 0x14003b054
cmp eax, 0x17
jne 0x14003b2c5
lea rdx, [rsp + 0x48]
mov ecx, eax
jmp 0x14003b05e
lea rdx, [rsp + 0x44]
mov ecx, 2
mov r9d, reloc.WLDAP32.dll_Ordinal_46
lea r8, [rsp + 0xc0]
call fcn.14004a8a0
test rax, rax
je 0x14003b2c5
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
lea r8, [rsp + 0xc0]
mov qword [rsp + 0x100], r14
lea rdx, str.__Trying__s..._n
mov rcx, rbp
call fcn.140038f70
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x14003b0b2
cmp eax, 0x17
jne 0x14003b0be
cmp dword [rsp + 0x34], 1
jne 0x14003b0be
mov r14b, 1
jmp 0x14003b0c1
xor r14b, r14b
mov rbx, qword [rsp + 0x20]
test r14b, r14b
je 0x14003b0df
cmp byte [rbp + 0x766], 0
je 0x14003b0df
mov rdx, rbx
mov rcx, rsi
call fcn.14003a710
mov rcx, rbx
call fcn.14003a550
test r14b, r14b
je 0x14003b100
cmp byte [rbp + 0x99c], 0
je 0x14003b100
mov rdx, rbx
mov rcx, rbp
call fcn.14003b320
cmp qword [rbp + 0x2c8], 0
je 0x14003b13d
mov dl, 1
mov rcx, rbp
call fcn.1400270d0
mov rcx, qword [rbp + 0x2d0]
xor r8d, r8d
mov rdx, rbx
call qword [rbp + 0x2c8]
xor edx, edx
mov rcx, rbp
mov r14d, eax
call fcn.1400270d0
cmp r14d, 2
jne 0x14003b1b9
mov r12b, 1
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x14003b14f
cmp eax, 0x17
jne 0x14003b1d4
lea rcx, [rsp + 0x40]
call fcn.140062b20
mov r8d, dword [rsp + 0x30]
mov r9d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.14003aac0
mov edi, eax
test eax, eax
je 0x14003b1d4
mov rdx, rbx
mov rcx, rsi
call fcn.140039b10
cmp edi, 1
mov eax, 7
cmove edi, eax
mov eax, edi
mov r14, qword [rsp + 0x100]
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14006e6a0
add rsp, 0x110
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
test r14d, r14d
je 0x14003b13d
mov rdx, rbx
mov rcx, rsi
call fcn.140039b10
mov eax, Ordinal_46
jmp 0x14003b18a
mov edx, 1
mov rcx, rbx
call fcn.140062bb0
lea rcx, [rsp + 0x20]
call fcn.14002c2b0
cmp dword [rsi + 0x3e0], 1
movups xmm0, xmmword [rax]
movups xmmword [rsi + 0x3d0], xmm0
jle 0x14003b213
mov rdx, qword [rsi + 0x3e8]
mov r8d, 3
mov rcx, rbp
call fcn.140026a50
test r12b, r12b
jne 0x14003b2bb
cmp dword [rsi + 0xbc], 1
jne 0x14003b2bb
cmp byte [rsi + 0x3c6], r12b
jne 0x14003b25a
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14003b25a
test edi, edi
jne 0x14003b188
mov qword [r15], rbx
jmp 0x14003b188
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x14003b2b1
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x14003b2b1
mov edx, eax
mov rcx, rsi
call fcn.140049d30
mov r9, rax
lea r8, [rsp + 0xc0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, rbp
call fcn.140038f70
mov rdx, rbx
mov dword [rbp + 0x4c94], edi
mov rcx, rsi
call fcn.140039b10
mov edi, 7
jmp 0x14003b188
xor edi, edi
mov qword [r15], rbx
jmp 0x14003b188
mov qword [r15], rbx
xor eax, eax
jmp 0x14003b18a
mov byte [rsp + 0xc0], 0
call fcn.1400a8024
mov dword [rax], 0x273f
call fcn.1400a8024
mov rbx, rax
call fcn.1400a8024
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.140049d30
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.140038e70
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.140039b10
xor eax, eax
jmp 0x14003b192