Function at 0x14004a640
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x120
mov rax, qword [0x14017af60]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rbp, qword [rcx]
lea r9, [rsp + 0x28]
mov qword [r8], 0xffffffffffffffff
mov r15, r8
lea r8, [rsp + 0x40]
mov rsi, rcx
xor r12b, r12b
call fcn.140049c00
mov edi, eax
test eax, eax
je 0x14004a690
xor eax, eax
jmp 0x14004a8ee
lea r8, [rsp + 0x20]
mov qword [rsp + 0x118], rbx
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.14004a5b0
test al, al
jne 0x14004a6f4
call fcn.1400e49e8
mov rbx, rax
call fcn.1400e49e8
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.14005a530
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.140048860
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.140049290
jmp 0x14004a8e4
lea r8, [rsp + 0xd0]
mov qword [rsp + 0x110], r14
lea rdx, str.__Trying__s..._n
mov rcx, rbp
call fcn.140048960
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x14004a721
cmp eax, 0x17
jne 0x14004a72d
cmp dword [rsp + 0x44], 1
jne 0x14004a72d
mov r14b, 1
jmp 0x14004a730
xor r14b, r14b
mov rbx, qword [rsp + 0x28]
test r14b, r14b
je 0x14004a74e
cmp byte [rbp + 0x75e], 0
je 0x14004a74e
mov rdx, rbx
mov rcx, rsi
call fcn.140049ce0
mov rcx, rbx
call fcn.140049b40
test r14b, r14b
mov r14, qword [rsp + 0x110]
je 0x14004a777
cmp byte [rbp + 0x994], 0
je 0x14004a777
mov rdx, rbx
mov rcx, rbp
call fcn.14004a910
mov rax, qword [rbp + 0x2c8]
test rax, rax
je 0x14004a79a
mov rcx, qword [rbp + 0x2d0]
xor r8d, r8d
mov rdx, rbx
call rax
cmp eax, 2
jne 0x14004a7e8
mov r12b, 1
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x14004a7a8
cmp eax, 0x17
jne 0x14004a801
lea rcx, [rsp + 0x50]
call fcn.140071ad0
mov r8d, dword [rsp + 0x40]
mov r9d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.14004a090
mov edi, eax
test eax, eax
je 0x14004a801
mov rdx, rbx
mov rcx, rsi
call fcn.140049290
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x14004a8e6
test eax, eax
je 0x14004a79a
mov rdx, rbx
mov rcx, rsi
call fcn.140049290
mov eax, Ordinal_46
jmp 0x14004a8e6
mov edx, 1
mov rcx, rbx
call fcn.140071b60
lea rcx, [rsp + 0x28]
call fcn.14003ed90
cmp dword [rsi + 0x3d8], 1
movups xmm0, xmmword [rax]
movups xmmword [rsi + 0x3c8], xmm0
jle 0x14004a840
mov rdx, qword [rsi + 0x3e0]
mov r8d, 3
mov rcx, rbp
call fcn.140039f80
test r12b, r12b
jne 0x14004a8e1
cmp dword [rsi + 0xbc], 1
jne 0x14004a8e1
cmp byte [rsi + 0x3be], r12b
jne 0x14004a882
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14004a882
test edi, edi
jne 0x14004a8dd
mov qword [r15], rbx
mov eax, edi
jmp 0x14004a8e6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x14004a8d8
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x14004a8d8
mov edx, eax
mov rcx, rsi
call fcn.14005a530
mov r9, rax
lea r8, [rsp + 0xd0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, rbp
call fcn.140048960
mov rdx, rbx
mov dword [rbp + 0x4c7c], edi
mov rcx, rsi
call fcn.140049290
mov edi, 7
mov eax, edi
jmp 0x14004a8e6
xor edi, edi
mov qword [r15], rbx
mov eax, edi
jmp 0x14004a8e6
mov qword [r15], rbx
xor eax, eax
mov rbx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14007c530
add rsp, 0x120
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret