Function at 0x14005c1ec
Capabilities:
Connect socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x118]
sub rsp, 0x218
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rbp + 0x100], rax
movsxd r12, r9d
mov rax, r8
mov r13, rdx
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x40]
mov r14, rcx
xor esi, esi
or qword [rdx + r12*8 + 0x1f8], 0xffffffffffffffff
mov rdx, rax
call fcn.14005b87c
mov ebx, eax
test eax, eax
jne 0x14005c4cb
mov edx, dword [rsp + 0x4c]
lea r9, [rsp + 0x24]
lea r8, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.14005ac88
mov r15, qword [rsp + 0x28]
test al, al
jne 0x14005c2a8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rbp]
mov ecx, ebx
mov rdi, rax
call fcn.14006301c
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r14
call fcn.14005a384
jmp 0x14005c358
mov r9d, dword [rsp + 0x24]
lea r8, [rbp - 0x30]
lea rdx, str.__Trying__s:_d...
mov rcx, r14
call fcn.14005a450
cmp dword [rsp + 0x40], 2
je 0x14005c2ce
cmp dword [rsp + 0x40], 0x17
jne 0x14005c2ee
cmp dword [rsp + 0x44], 1
jne 0x14005c2ee
mov dil, 1
cmp byte [r14 + 0xb16], sil
je 0x14005c2f1
mov rdx, r15
mov rcx, r14
call fcn.14005c608
jmp 0x14005c2f1
mov dil, sil
mov rcx, r15
call fcn.14005b7c8
test dil, dil
je 0x14005c312
cmp byte [r14 + 0xb1f], sil
je 0x14005c312
mov rdx, r15
mov rcx, r14
call fcn.14005c4f0
cmp qword [r14 + 0x288], rsi
je 0x14005c36d
mov dl, 1
mov rcx, r14
call fcn.140055af4
mov rcx, qword [r14 + 0x290]
xor r8d, r8d
mov rdx, r15
call qword [r14 + 0x288]
xor edx, edx
mov rcx, r14
mov edi, eax
call fcn.140055af4
cmp edi, 2
jne 0x14005c34f
mov dil, 1
jmp 0x14005c370
test edi, edi
je 0x14005c36d
mov esi, 0x2a
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.14005ad00
mov eax, esi
jmp 0x14005c4cb
mov dil, sil
cmp dword [rsp + 0x40], 2
je 0x14005c37e
cmp dword [rsp + 0x40], 0x17
jne 0x14005c3bf
lea rcx, [rsp + 0x50]
call fcn.140072888
mov r8d, dword [rsp + 0x40]
mov r9d, eax
mov rdx, r15
mov rcx, r14
call fcn.14005bba0
mov ebx, eax
test eax, eax
je 0x14005c3bf
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.14005ad00
cmp ebx, 1
mov eax, 7
cmove ebx, eax
jmp 0x14005c4bd
mov edx, 1
mov rcx, r15
call fcn.14007290c
lea rcx, [rsp + 0x28]
call fcn.14006bf7c
cmp dword [r13 + 0x3ec], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r13 + 0x3f0], xmm0
jle 0x14005c416
mov rdx, qword [r13 + 0x400]
mov r8d, 3
mov rcx, r14
call fcn.14005569c
mov rdx, qword [r13 + 0x408]
mov r8d, 4
mov rcx, r14
call fcn.14005569c
test dil, dil
jne 0x14005c4c1
cmp dword [r13 + 0x8c], 4
je 0x14005c4c1
cmp byte [r13 + 0x3e2], sil
jne 0x14005c454
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14005c454
test ebx, ebx
jne 0x14005c4bd
jmp 0x14005c4b5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ebx, eax
sub edx, 0xb
je 0x14005c4b3
sub edx, 0x2728
je 0x14005c4b3
cmp edx, 1
je 0x14005c4b3
mov r8d, 0x100
lea rdx, [rbp]
mov ecx, eax
call fcn.14006301c
mov r9, rax
lea r8, [rbp - 0x30]
lea rdx, str.Immediate_connect_fail_for__s:__s
mov rcx, r14
call fcn.14005a450
mov r8, r15
mov dword [r14 + 0xdcc], ebx
mov rdx, r13
mov rcx, r14
call fcn.14005ad00
mov ebx, 7
jmp 0x14005c4bd
mov ebx, esi
mov qword [r13 + r12*8 + 0x1f8], r15
mov eax, ebx
jmp 0x14005c4cb
mov qword [r13 + r12*8 + 0x1f8], r15
xor eax, eax
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14007ae30
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret