Function at 0x4256b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get common file path
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5735
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x57af80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call dword [sym.imp.Qt5Core.dll_public:_class_QObject____thiscall_QObject::parent_void_const]
mov ebx, eax
mov dword [ebp - 0x34c], eax
test ebx, ebx
je 0x425703
mov ecx, ebx
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QObject::isWidgetType_void_const]
test al, al
jne 0x42570b
xor ebx, ebx
mov dword [ebp - 0x34c], ebx
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4259e4
push str._telnet.exe
lea ecx, [ebp - 0x348]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_char_const__]
mov esi, eax
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const___int_]
push esi
push eax
lea eax, [ebp - 0x354]
mov byte [ebp - 4], 2
push eax
call fcn.00403a80
add esp, 0x18
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QFile::constructor_class_QString_const__]
lea ecx, [ebp - 0x354]
mov byte [ebp - 4], 5
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 6
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 7
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x230]
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QFile::exists_void_const]
test al, al
je 0x4259d4
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
mov dword [ebp - 0x224], ebx
cmp ebx, 0xffffffff
je 0x42594b
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 1
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x425944
mov eax, 2
push 0x17
mov word [ebp - 0x240], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x23e], ax
lea ecx, [ebp - 0x21c]
lea eax, [ebp + 8]
mov byte [ebp - 0x23c], 0
xorps xmm0, xmm0
mov word [ebp - 0x233], 0
push eax
movq qword [ebp - 0x23b], xmm0
mov byte [ebp - 0x231], 0
call dword [sym.imp.Qt5Network.dll_public:_void___thiscall_QHostAddress::constructor_class_QString_const__]
mov ebx, dword [sym.imp.Qt5Network.dll_public:_unsigned_int___thiscall_QHostAddress::toIPv4Address_void_const]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 8
call ebx
shr eax, 8
lea ecx, [ebp - 0x21c]
movzx esi, al
call ebx
movzx edi, al
lea ecx, [ebp - 0x21c]
shl edi, 8
add edi, esi
shl edi, 8
call ebx
shr eax, 0x10
lea ecx, [ebp - 0x21c]
movzx esi, al
add esi, edi
shl esi, 8
call ebx
mov ebx, dword [ebp - 0x224]
shr eax, 0x18
add eax, esi
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x240]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x425906
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x425934
lea eax, [ebp - 0x228]
mov dword [ebp - 0x340], ebx
push eax
push 0
lea eax, [ebp - 0x344]
mov dword [ebp - 0x344], 1
push eax
push 0
push 0
mov dword [ebp - 0x228], 3
mov dword [ebp - 0x224], 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x425934
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 7
call dword [sym.imp.Qt5Network.dll_public:_void___thiscall_QHostAddress::destructor_void_]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
mov bl, 1
call dword [sym.imp.Qt5Core.dll_public_virtual:_void___thiscall_QFile::destructor_void_]
jmp 0x425a54
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 7
call dword [sym.imp.Qt5Network.dll_public:_void___thiscall_QHostAddress::destructor_void_]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x220]
push str.Could_not_establish_connection_to_the_remote_host
push eax
call fcn.00426010
mov esi, eax
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 9
push str.Telnet_run
push eax
call fcn.00426010
add esp, 0x20
push 0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xa
push esi
push eax
push dword [ebp - 0x34c]
mov dword [ecx], 0x400
call dword [sym.imp.Qt5Widgets.dll_public:_static_enum_QMessageBox::StandardButton___cdecl_QMessageBox::warning_class_QWidget___class_QString_const___class_QString_const___class_QFlags_enum_QMessageBox::StandardButton___enum_QMessageBox::StandardButton_]
add esp, 0x14
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x224]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 7
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
xor bl, bl
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], bl
call dword [sym.imp.Qt5Core.dll_public_virtual:_void___thiscall_QFile::destructor_void_]
jmp 0x425a54
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call dword [sym.imp.Qt5Core.dll_public_virtual:_void___thiscall_QFile::destructor_void_]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x220]
push str.Failed_to_find_telnet.exe._Check_if_Telnet_is_installed
push eax
call fcn.00426010
mov esi, eax
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0xb
push str.Telnet_run
push eax
call fcn.00426010
add esp, 0x20
push 0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xc
push esi
push eax
push ebx
mov dword [ecx], 0x400
call dword [sym.imp.Qt5Widgets.dll_public:_static_enum_QMessageBox::StandardButton___cdecl_QMessageBox::warning_class_QWidget___class_QString_const___class_QString_const___class_QFlags_enum_QMessageBox::StandardButton___enum_QMessageBox::StandardButton_]
add esp, 0x14
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x224]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
xor bl, bl
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004df262
mov esp, ebp
pop ebp
ret 4