Function at 0x140058c80
Capabilities:
Connect socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c8]
sub rsp, 0x2c8
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r13d, r9d
mov qword [rsp + 0x40], r8
mov r15, rdx
mov rdi, rcx
mov rax, qword [rbp + 0x230]
mov qword [rsp + 0x60], rax
lea eax, [r9 - 1]
cmp eax, 1
jbe 0x140058cf6
lea rcx, [rdx + 0x64]
mov r8d, r9d
lea rdx, str.Invalid_direction__d_n
call qword [sym.imp.msvcrt.dll_sprintf]
or rax, 0xffffffffffffffff
jmp 0x140059106
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rsp + 0x78]
call qword [sym.imp.msvcrt.dll_memset]
mov r14d, 2
mov word [rsp + 0x78], r14w
mov r9, r15
mov r8b, gethostbyname
lea rdx, str.PASV
call fcn.1400583e4
xor esi, esi
test eax, eax
je 0x140058ced
lea edx, [rsi + 0x28]
lea rcx, [r15 + 0x64]
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x140058ced
lea rcx, [rbp - 0x64]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x54]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x5c]
lea r8, [rbp - 0x60]
lea rdx, str._d__d__d__d__d__d
lea rcx, [rax + 1]
call qword [sym.imp.msvcrt.dll_sscanf]
or rbx, 0xffffffffffffffff
cmp byte [r15 + 0x470], sil
je 0x140058dd4
mov dword [rsp + 0x58], reloc.SHELL32.dll_ILFindLastID
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x78]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.WS2_32.dll_getpeername]
cmp eax, ebx
jne 0x140058dbf
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
jmp 0x140059106
mov rcx, r14
movsx eax, byte [rbp + rcx - 0x76]
mov dword [rbp + rcx*4 - 0x68], eax
inc rcx
cmp rcx, 6
jl 0x140058dc2
mov al, byte [rbp - 0x60]
mov byte [rsp + 0x7c], al
mov al, byte [rbp - 0x5c]
mov byte [rsp + 0x7d], al
mov al, byte [rbp - 0x58]
mov byte [rsp + 0x7e], al
mov al, byte [rbp - 0x54]
mov byte [rsp + 0x7f], al
mov al, byte [rbp - 0x68]
mov byte [rsp + 0x7a], al
mov al, byte [rbp - 0x64]
mov byte [rsp + 0x7b], al
mov rax, qword [rdi + 8]
mov r8, qword [rax + 0x468]
test r8, r8
je 0x140058e3c
lea rdx, str.REST__lld
lea rcx, [rbp + 0xb0]
call qword [sym.imp.msvcrt.dll_sprintf]
mov r9, r15
mov r8b, gethostbyname
lea rdx, [rbp + 0xb0]
call fcn.1400583e4
test eax, eax
je 0x140059106
mov edx, 1
lea r8d, [rdx + 5]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, rbx
je 0x140058db8
mov dword [rsp + 0x54], 1
mov edi, 4
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x54]
mov r8d, edi
mov edx, 0xffff
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, r14
cmp eax, ebx
je 0x140058db2
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x50]
mov edx, 0xffff
lea r8d, [rdi + 0x7c]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, ebx
jne 0x140058eb4
mov rcx, r14
jmp 0x140058db2
mov r8, qword [rsp + 0x60]
lea rdx, str._s_r_n
lea rcx, [rbp - 0x50]
call qword [sym.imp.msvcrt.dll_sprintf]
lea rcx, [rbp - 0x50]
call qword [sym.imp.msvcrt.dll_strlen]
mov r8, rax
xor r9d, r9d
lea rdx, [rbp - 0x50]
mov rcx, qword [r15 + 0x28]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x140058f68
lea r15, vtable.micro::utils::QString.0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rsi
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400e7960
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400e7960
nop
lea rdi, [0x14012da68]
cmp qword [rsp + 0x48], rsi
cmovne rdi, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, rax
mov r9d, reloc.SHELL32.dll_ILFindLastID
lea r8, [0x14010f168]
mov rdx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.1400e712c
jmp 0x140058db8
mov r8d, reloc.SHELL32.dll_ILFindLastID
lea rdx, [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, ebx
jne 0x140058ff6
lea r15, vtable.micro::utils::QString.0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rsi
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400e7960
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400e7960
nop
lea rdi, [0x14012da68]
cmp qword [rsp + 0x48], rsi
cmovne rdi, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, rax
mov r9d, reloc.SHELL32.dll_ILFindLastID
lea r8, [0x14010f168]
mov rdx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140058f54
mov r8, r15
mov dl, 0x31
call fcn.1400580dc
test eax, eax
jne 0x14005908d
xor r9d, r9d
mov r8d, ebx
lea rdx, [r15 + 0x64]
lea rcx, [rsp + 0x60]
call fcn.1400e707c
nop
lea r15, vtable.micro::utils::QString.0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rsi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400e7b9c
nop
mov qword [rsp + 0x60], r15
lea rcx, [rsp + 0x60]
call fcn.1400e712c
lea rdi, [0x14012da68]
cmp qword [rsp + 0x48], rsi
cmovne rdi, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, rax
mov r9d, reloc.SHELL32.dll_ILFindLastID
lea r8, [0x14010f168]
mov rdx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
nop
jmp 0x140058f54
mov r12d, 0x478
mov ecx, r12d
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rdi, rax
test rax, rax
je 0x1400590c2
mov byte [rax + 0x18], sil
mov qword [rax + 0x10], rbx
mov dword [rax], 2
mov dword [rax + 4], 1
mov dword [rax + 8], 6
jmp 0x1400590c5
mov rdi, rsi
test rdi, rdi
je 0x140058eac
mov r8, r12
xor edx, edx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_memset]
mov qword [rdi + 0x28], r14
mov dword [rdi + 0x20], r13d
cmp dword [r15 + 0x58], 1
cmove rsi, r15
mov qword [rdi + 0x50], rsi
mov rcx, qword [r15 + 0x5c]
mov qword [rdi + 0x5c], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rdi
mov eax, 1
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140001010
add rsp, 0x2c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret