Function at 0x406580
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4721ef
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x492bec]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
push 0x47ee18
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_310]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x54], 0
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::BinPath_void_
push eax
lea ecx, [esp + 0x3c]
push ecx
mov edi, 0x480b54
mov byte [esp + 0x5c], 1
call fcn.00407810
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [esp + 0x34]
mov esi, eax
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x50], 0
call dword [sym.imp.mfc90.dll_Ordinal_601]
test esi, esi
je 0x406680
lea edx, [esp + 0x3c]
push edx
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::BinPath_void_
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x5c], 2
call fcn.00407810
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x50], 4
call dword [sym.imp.mfc90.dll_Ordinal_601]
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call dword [sym.imp.mfc90.dll_Ordinal_300]
lea eax, [esp + 0x44]
push eax
mov ecx, 0x49403c
call sub.HZDKernel.dll_public:_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______thiscall_HZD::Kernel::OS::CBaseOS::GetVersion_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 5
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 0
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 0x47ee18
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0x50], 6
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0xb60]
mov eax, dword [0x49409c]
push ecx
lea ebp, [ebx + 0xb60]
push edx
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call dword [sym.imp.mfc90.dll_Ordinal_300]
lea eax, [esp + 0x18]
push eax
mov ecx, 0x49403e
call sub.HZDKernel.dll_public:_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______thiscall_HZD::Kernel::Net::CHttp::ReadHtmlInfo_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____
push 0x47ee18
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 7
call dword [sym.imp.mfc90.dll_Ordinal_1603]
lea ecx, [esp + 0x14]
test eax, eax
je 0x4067f2
push 0x60
push 0
push ecx
lea edx, [esp + 0x3c]
push edx
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::GetSubStr_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______int__char_
push 0x60
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x70], 8
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::GetSubStr_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______int__char_
mov esi, eax
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x74], 9
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::BinPath_void_
push eax
lea eax, [esp + 0x68]
push eax
mov edi, 0x48078c
mov byte [esp + 0x7c], 0xa
call fcn.00407810
lea ecx, [esp + 0x48]
push esi
push ecx
mov ecx, eax
mov byte [esp + 0x84], 0xb
call fcn.00407790
add esp, 0x34
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 0xf
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 0x60
push 2
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::GetSubStr_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______int__char_
push 0x60
push 3
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x70], 0x10
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::GetSubStr_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______int__char_
add esp, 0x20
mov byte [esp + 0x50], 0x11
mov eax, dword [esp + 0x30]
push eax
mov ecx, ebp
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jne 0x406822
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
lea esi, [ebx + 0x65c]
push 1
mov ecx, esi
call sub.HZDKernel.dll_public:_void___thiscall_HZD::Kernel::OS::CHash::SetHashFormat_int_
push 2
mov ecx, esi
call sub.HZDKernel.dll_public:_void___thiscall_HZD::Kernel::OS::CHash::SetHashOperation_int_
push 0x47ee18
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0x50], 0x12
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ecx
mov ecx, esp
test eax, eax
je 0x40691b
mov dword [esp + 0x40], esp
push 0x48068c
call dword [sym.imp.mfc90.dll_Ordinal_310]
push 0
lea edx, [esp + 0x48]
push ebx
push edx
mov byte [esp + 0x60], 0x13
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::BinPath_void_
mov byte [esp + 0x60], 0x14
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
push ecx
mov edi, str.updatehzdcate.db
call fcn.00407810
add esp, 4
mov byte [esp + 0x64], 0x15
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov ecx, 0x49403e
mov byte [esp + 0x64], 0x16
call sub.HZDKernel.dll_public:_void___thiscall_HZD::Kernel::Net::CHttp::DownLoad_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____class_CWnd___bool__class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____
lea ecx, [esp + 0x40]
mov byte [esp + 0x50], 0x12
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea eax, [esp + 0x3c]
push eax
call sub.HZDKernel.dll_public:_static_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______cdecl_HZD::Kernel::Helper::CBaseHelper::BinPath_void_
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x5c], 0x17
call fcn.00407810
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0x18
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x50], 0x12
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x406979
mov dword [esp + 0x48], esp
push 0x48068c
call dword [sym.imp.mfc90.dll_Ordinal_310]
push 0
push ebx
push ecx
mov byte [esp + 0x60], 0x19
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call dword [sym.imp.mfc90.dll_Ordinal_300]
push ecx
mov byte [esp + 0x64], 0x1a
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov ecx, 0x49403e
mov byte [esp + 0x64], 0x12
call sub.HZDKernel.dll_public:_void___thiscall_HZD::Kernel::Net::CHttp::DownLoad_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____class_CWnd___bool__class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov edx, dword [esp + 0x18]
push edx
mov ecx, esi
call sub.HZDKernel.dll_public:_void___thiscall_HZD::Kernel::OS::CHash::SetHashFile_char_const__
push 5
mov ecx, esi
call sub.HZDKernel.dll_public:_void___thiscall_HZD::Kernel::OS::CHash::SetHashAlgorithm_int_
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call sub.HZDKernel.dll_public:_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______thiscall_HZD::Kernel::OS::CHash::DoHash_void_
mov byte [esp + 0x50], 0x1b
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jne 0x4069b6
mov bl, 1
jmp 0x4069c3
mov edx, dword [esp + 0x18]
push edx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_601]
movzx eax, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret