Function at 0x6406ded0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
cmp dword [esp + 8], 0
jne case.default.0x6406dee8
mov eax, dword [esp + 0xc]
cmp eax, 0xf
ja case.default.0x6406dee8
jmp dword [eax*4 + 0x6406dfe8]
mov ecx, dword [esp + 4]
jmp sym.QtNetwork4.dll_protected:_void___thiscall_QAbstractSocket::hostFound_void_
mov ecx, dword [esp + 4]
jmp sym.QtNetwork4.dll_protected:_void___thiscall_QAbstractSocket::connected_void_
mov ecx, dword [esp + 4]
jmp sym.QtNetwork4.dll_protected:_void___thiscall_QAbstractSocket::disconnected_void_
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
mov eax, dword [eax + 4]
push dword [eax]
call sym.QtNetwork4.dll_protected:_void___thiscall_QAbstractSocket::stateChanged_enum_QAbstractSocket::SocketState_
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
mov eax, dword [eax + 4]
push dword [eax]
call sym.QtNetwork4.dll_protected:_void___thiscall_QAbstractSocket::error_enum_QAbstractSocket::SocketError_
ret
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
push dword [eax]
push dword [ecx + 4]
mov ecx, dword [esp + 0xc]
call sym.QtNetwork4.dll_protected:_void___thiscall_QAbstractSocket::proxyAuthenticationRequired_class_QNetworkProxy_const___class_QAuthenticator__
ret
mov ecx, dword [esp + 4]
jmp sym.QtNetwork4.dll_protected:_void___thiscall_QAbstractSocket::connectionClosed_void_
mov ecx, dword [esp + 4]
jmp sym.QtNetwork4.dll_protected:_void___thiscall_QAbstractSocket::delayedCloseFinished_void_
mov edx, dword [esp + 0x10]
push ecx
mov ecx, esp
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [edx + 8]
mov ecx, dword [esp + 8]
movzx eax, word [eax]
push eax
push dword [edx + 4]
call sym.QtNetwork4.dll_protected:_void___thiscall_QAbstractSocket::connectToHostImplementation_class_QString_const___unsigned_short_int__class_QFlags_enum_QIODevice::OpenModeFlag__
ret
push ecx
mov ecx, dword [esp + 0x14]
mov eax, esp
mov dword [eax], 3
mov eax, dword [ecx + 8]
movzx eax, word [eax]
push eax
push dword [ecx + 4]
mov ecx, dword [esp + 0x10]
call sym.QtNetwork4.dll_protected:_void___thiscall_QAbstractSocket::connectToHostImplementation_class_QString_const___unsigned_short_int__class_QFlags_enum_QIODevice::OpenModeFlag__
ret
mov ecx, dword [esp + 4]
jmp sym.QtNetwork4.dll_protected:_void___thiscall_QAbstractSocket::disconnectFromHostImplementation_void_
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 4]
jmp fcn.6406ebe0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
push dword [eax + 4]
mov ecx, dword [ecx + 4]
call fcn.6406eee0
ret
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 4]
jmp 0x6406eaa0
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 4]
jmp fcn.6406f0c0
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 4]
jmp 0x6406eea0
push 0xffffffffffffffff
push 0x6408eee9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push edi
mov eax, dword [0x640ca240]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0xbc]
mov ebx, dword [edi + 4]
test ecx, ecx
je 0x6406eade
mov eax, dword [ecx]
push 0
call dword [eax + 0xa4]
mov ecx, dword [edi + 0x110]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QTimer::stop_void_]
lea ecx, [edi + 0xa8]
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QListData::isEmpty_void_const]
test al, al
je 0x6406ebb8
push 0
lea eax, [esp + 0x10]
mov dword [edi + 0x124], 0
push str.Connection_timed_out
push eax
mov dword [edi + 0x128], 5
call sym.QtNetwork4.dll_public:_static_class_QString___cdecl_QAbstractSocket::tr_char_const___char_const__
add esp, 0xc
push eax
mov ecx, ebx
mov dword [esp + 0x30], 0
call dword [sym.imp.QtCore4.dll_protected:_void___thiscall_QIODevice::setErrorString_class_QString_const__]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [edi + 0x124]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
push 3
push sym.QtNetwork4.dll_struct_QMetaObject_const_QAbstractSocket::staticMetaObject
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.QtCore4.dll_public:_static_void___cdecl_QMetaObject::activate_class_QObject___struct_QMetaObject_const___int__void___]
mov eax, dword [edi + 0x128]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
push 4
push sym.QtNetwork4.dll_struct_QMetaObject_const_QAbstractSocket::staticMetaObject
push ebx
mov dword [esp + 0x3c], 0
call dword [sym.imp.QtCore4.dll_public:_static_void___cdecl_QMetaObject::activate_class_QObject___struct_QMetaObject_const___int__void___]
add esp, 0x20
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x24
ret
mov ecx, edi
call fcn.6406ebe0
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x24
ret
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0xbc]
mov edi, dword [esi + 4]
test ecx, ecx
je 0x6406eed9
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
test al, al
je 0x6406eed9
cmp dword [esi + 0x124], 6
jne 0x6406eed9
mov ecx, dword [esi + 0xbc]
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, edi
pop edi
pop esi
jmp sym.QtNetwork4.dll_public:_void___thiscall_QAbstractSocket::disconnectFromHost_void_
pop edi
pop esi
ret