Function at 0x408990
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40ac28
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x411020]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
call fcn.00407a90
add esp, 4
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0xc0], ebx
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
jne 0x408a33
call dword [sym.imp.IMDllBuild.dll_unsigned_char___cdecl_Version::GetMajorVer_void_]
movzx si, al
imul si, si, 0x64
call dword [sym.imp.IMDllBuild.dll_unsigned_char___cdecl_Version::GetMinorVer_void_]
movzx cx, al
add cx, si
movzx esi, cx
call fcn.004080f0
cmp eax, esi
je 0x408a60
push eax
push esi
push str.UpgradeInstall::CheckMustInstall
push 0x1b2
push str.D:QT_Client_finalreleaseQTv3.6QQTalkSourceQSpeakupgradeUpgradeInstall.cpp
mov ecx, 0x40d100
mov edx, str.CheckInstall
lea edi, [ebx + 2]
call fcn.004050d0
add esp, 0x14
lea ecx, [esp + 0x14]
mov dword [esp + 0xc0], 0xffffffff
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x20]
push edx
call fcn.00407eb0
add esp, 4
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0xc4], 1
call fcn.00407d90
add esp, 4
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0xc4], 2
call fcn.00407b50
add esp, 4
mov byte [esp + 0xc0], 3
call fcn.004081e0
mov esi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
lea ecx, [esp + 0x18]
mov edi, eax
call esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408b98
mov dword [esp + 0x28], str.package_is_no_exist
mov dword [esp + 0x68], str.D:QT_Client_finalreleaseQTv3.6QQTalkSourceQSpeakupgradeUpgradeInstall.cpp
mov dword [esp + 0x6c], str.UpgradeInstall::CheckMustInstall
mov dword [esp + 0x64], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x3c], 0x1bd
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
call dword [sym.imp.MSVCR80.dll__time64]
add esp, 4
lea eax, [esp + 0x28]
push eax
push 0x40c6c0
push str.CheckInstall
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
push ecx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x10
mov byte [esp + 0xc0], 2
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [esp + 0x18]
call esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc0], 1
call esi
lea ecx, [esp + 0x20]
mov byte [esp + 0xc0], bl
call esi
lea ecx, [esp + 0x14]
mov dword [esp + 0xc0], 0xffffffff
call esi
xor eax, eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 1
jne 0x408c63
lea ecx, [esp + 0x1c]
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
jne 0x408b40
lea edx, [esp + 0x28]
push edx
lea edi, [esp + 0x1c]
call fcn.004082d0
add esp, 4
lea ecx, [esp + 0x1c]
call esi
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::CompareNoCase_wchar_t_const__const]
test eax, eax
je 0x408bf6
mov byte [esp + 0xc0], 3
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [esp + 0x28]
call esi
mov byte [esp + 0xc0], 2
jmp 0x408b4e
call fcn.00408520
lea ecx, [esp + 0x28]
mov byte [esp + 0xc0], 3
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov edi, eax
call esi
lea ecx, [esp + 0x18]
mov byte [esp + 0xc0], 2
call esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc0], 1
call esi
lea ecx, [esp + 0x20]
mov byte [esp + 0xc0], bl
call esi
lea ecx, [esp + 0x14]
mov dword [esp + 0xc0], 0xffffffff
call esi
mov eax, edi
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 2
jne 0x408b40
lea ecx, [esp + 0x20]
call esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408d1c
mov dword [esp + 0x30], str.xml_is_no_exist
mov dword [esp + 0xa8], str.D:QT_Client_finalreleaseQTv3.6QQTalkSourceQSpeakupgradeUpgradeInstall.cpp
mov dword [esp + 0xac], str.UpgradeInstall::CheckMustInstall
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x7c], 0x1d3
mov dword [esp + 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x84], eax
mov dword [esp + 0x78], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x90], ebx
call dword [sym.imp.MSVCR80.dll__time64]
add esp, 4
lea ecx, [esp + 0x30]
push ecx
push 0x40c6c0
push str.CheckInstall
lea edx, [esp + 0x80]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
push edx
jmp 0x408b37
lea eax, [esp + 0x24]
push eax
call fcn.00407c70
add esp, 4
lea edi, [esp + 0x24]
mov byte [esp + 0xc0], 5
call fcn.00408560
test eax, eax
mov ecx, edi
jne 0x408d5d
mov byte [esp + 0xc0], 3
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
call esi
mov byte [esp + 0xc0], 2
jmp 0x408b4e
call fcn.00407710
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push edx
mov esi, eax
mov dword [esp + 0x34], 0x64
call fcn.004086e0
xor ecx, ecx
add esp, 8
cmp edx, ecx
jg 0x408dab
jl 0x408d8a
cmp eax, esi
jae 0x408dab
mov byte [esp + 0xc0], 3
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [esp + 0x24]
call esi
mov byte [esp + 0xc0], 2
jmp 0x408b4e
call fcn.00408520
lea ecx, [esp + 0x24]
jmp 0x408bff