Function at 0x1402cdbd0
Capabilities:
Connect socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r13, rcx
test rdx, rdx
je 0x1402cdcdd
mov rsi, rdx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov r15, qword [sym.imp.WS2_32.dll_connect]
mov r12, qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r14, [rsp + 0x20]
mov rdi, rdx
jmp 0x1402cdc1d
mov rdi, qword [rdi + 0x28]
test rdi, rdi
je 0x1402cdd00
mov edx, dword [rdi + 4]
cmp edx, 2
jne 0x1402cdc10
mov r8d, dword [rdi + 8]
mov r9d, dword [rdi + 0xc]
mov rcx, r13
call fcn.1402cd1b0
test al, al
je 0x1402cdc10
mov rcx, qword [r13]
mov rdx, qword [rdi + 0x20]
mov r8d, dword [rdi + 0x10]
call r15
test eax, eax
je 0x1402cddd5
call r12
cmp eax, 0x2734
je 0x1402cddd5
call r12
cmp eax, 0x2733
je 0x1402cddd5
cmp byte [rsp + 0x2e], 0
movsx eax, byte [rsp + 0x2f]
mov ecx, eax
je 0x1402cdc7e
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x1402cdca3
cdqe
cmp al, 0xd
jg 0x1402cdc96
lea ecx, [rax + 1]
mov byte [rsp + 0x2f], cl
mov byte [rsp + rax + 0x20], 0xa
jmp 0x1402cdca3
mov rcx, r14
mov edx, 0xa
call fcn.14030b2c0
call r12
mov ecx, eax
call fcn.1402cc530
mov rbx, rax
test rax, rax
je 0x1402cdcc2
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r8, rax
jmp 0x1402cdcc5
xor r8d, r8d
mov rcx, r14
mov rdx, rbx
call fcn.14030ec10
mov rcx, r13
call fcn.1402cd2b0
jmp 0x1402cdc10
lea rdx, [0x1403d890e]
lea r9, str.not_found
mov rcx, r13
mov r8d, 0xffffffff
call fcn.1402cdec0
xor esi, esi
jmp 0x1402cde6c
lea r14, [rsp + 0x20]
jmp 0x1402cdd1d
mov rsi, qword [rsi + 0x28]
test rsi, rsi
je 0x1402cddec
mov edx, dword [rsi + 4]
cmp edx, 2
je 0x1402cdd10
mov r8d, dword [rsi + 8]
mov r9d, dword [rsi + 0xc]
mov rcx, r13
call fcn.1402cd1b0
test al, al
je 0x1402cdd10
mov rcx, qword [r13]
mov rdx, qword [rsi + 0x20]
mov r8d, dword [rsi + 0x10]
call r15
test eax, eax
je 0x1402cddd5
call r12
cmp eax, 0x2734
je 0x1402cddd5
call r12
cmp eax, 0x2733
je 0x1402cddd5
cmp byte [rsp + 0x2e], 0
movsx eax, byte [rsp + 0x2f]
mov ecx, eax
je 0x1402cdd76
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x1402cdd9b
cdqe
cmp al, 0xe
jge 0x1402cdd8e
lea ecx, [rax + 1]
mov byte [rsp + 0x2f], cl
mov byte [rsp + rax + 0x20], 0xa
jmp 0x1402cdd9b
mov rcx, r14
mov edx, 0xa
call fcn.14030b2c0
call r12
mov ecx, eax
call fcn.1402cc530
mov rbx, rax
test rax, rax
je 0x1402cddba
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r8, rax
jmp 0x1402cddbd
xor r8d, r8d
mov rcx, r14
mov rdx, rbx
call fcn.14030ec10
mov rcx, r13
call fcn.1402cd2b0
jmp 0x1402cdd10
mov dword [r13 + 8], 1
mov sil, 1
cmp byte [rsp + 0x2e], 0
jne 0x1402cde62
jmp 0x1402cde6c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x3f], 6
mov dword [rsp + 0x30], 0x6c696166
mov dword [rsp + 0x32], 0x64656c69
cmp byte [rsp + 0x2e], 0
je 0x1402cde16
mov eax, dword [rsp + 0x28]
jmp 0x1402cde1b
movsx eax, byte [rsp + 0x2f]
test eax, eax
lea rax, [rsp + 0x30]
cmove r14, rax
cmp byte [r14 + 0xe], 0
je 0x1402cde30
mov r14, qword [r14]
lea rdx, [0x1403d890e]
mov rcx, r13
mov r8d, 0xffffffff
mov r9, r14
call fcn.1402cdec0
cmp byte [rsp + 0x3e], 0
je 0x1402cde59
lea rcx, [rsp + 0x30]
call fcn.14030abf0
xor esi, esi
cmp byte [rsp + 0x2e], 0
je 0x1402cde6c
lea rcx, [rsp + 0x20]
call fcn.14030abf0
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret