Function at 0x14005c1fc
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.14005b88c
mov ebx, eax
test eax, eax
jne 0x14005c4db
mov edx, dword [rsp + 0x4c]
lea r9, [rsp + 0x24]
lea r8, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.14005ac98
mov r15, qword [rsp + 0x28]
test al, al
jne 0x14005c2b8
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.14006302c
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r14
call fcn.14005a394
jmp 0x14005c368
mov r9d, dword [rsp + 0x24]
lea r8, [rbp - 0x30]
lea rdx, str.__Trying__s:_d...
mov rcx, r14
call fcn.14005a460
cmp dword [rsp + 0x40], 2
je 0x14005c2de
cmp dword [rsp + 0x40], 0x17
jne 0x14005c2fe
cmp dword [rsp + 0x44], 1
jne 0x14005c2fe
mov dil, 1
cmp byte [r14 + 0xb16], sil
je 0x14005c301
mov rdx, r15
mov rcx, r14
call fcn.14005c618
jmp 0x14005c301
mov dil, sil
mov rcx, r15
call fcn.14005b7d8
test dil, dil
je 0x14005c322
cmp byte [r14 + 0xb1f], sil
je 0x14005c322
mov rdx, r15
mov rcx, r14
call fcn.14005c500
cmp qword [r14 + 0x288], rsi
je 0x14005c37d
mov dl, 1
mov rcx, r14
call fcn.140055b04
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.140055b04
cmp edi, 2
jne 0x14005c35f
mov dil, 1
jmp 0x14005c380
test edi, edi
je 0x14005c37d
mov esi, 0x2a
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.14005ad10
mov eax, esi
jmp 0x14005c4db
mov dil, sil
cmp dword [rsp + 0x40], 2
je 0x14005c38e
cmp dword [rsp + 0x40], 0x17
jne 0x14005c3cf
lea rcx, [rsp + 0x50]
call fcn.140072898
mov r8d, dword [rsp + 0x40]
mov r9d, eax
mov rdx, r15
mov rcx, r14
call fcn.14005bbb0
mov ebx, eax
test eax, eax
je 0x14005c3cf
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.14005ad10
cmp ebx, 1
mov eax, 7
cmove ebx, eax
jmp 0x14005c4cd
mov edx, 1
mov rcx, r15
call fcn.14007291c
lea rcx, [rsp + 0x28]
call fcn.14006bf8c
cmp dword [r13 + 0x3ec], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r13 + 0x3f0], xmm0
jle 0x14005c426
mov rdx, qword [r13 + 0x400]
mov r8d, 3
mov rcx, r14
call fcn.1400556ac
mov rdx, qword [r13 + 0x408]
mov r8d, 4
mov rcx, r14
call fcn.1400556ac
test dil, dil
jne 0x14005c4d1
cmp dword [r13 + 0x8c], 4
je 0x14005c4d1
cmp byte [r13 + 0x3e2], sil
jne 0x14005c464
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14005c464
test ebx, ebx
jne 0x14005c4cd
jmp 0x14005c4c5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ebx, eax
sub edx, 0xb
je 0x14005c4c3
sub edx, 0x2728
je 0x14005c4c3
cmp edx, 1
je 0x14005c4c3
mov r8d, 0x100
lea rdx, [rbp]
mov ecx, eax
call fcn.14006302c
mov r9, rax
lea r8, [rbp - 0x30]
lea rdx, str.Immediate_connect_fail_for__s:__s
mov rcx, r14
call fcn.14005a460
mov r8, r15
mov dword [r14 + 0xdcc], ebx
mov rdx, r13
mov rcx, r14
call fcn.14005ad10
mov ebx, 7
jmp 0x14005c4cd
mov ebx, esi
mov qword [r13 + r12*8 + 0x1f8], r15
mov eax, ebx
jmp 0x14005c4db
mov qword [r13 + r12*8 + 0x1f8], r15
xor eax, eax
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14007ae40
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret