Function at 0x407faa
Capabilities:
Delete file

Disassembly:
mov eax, 0x40a834
call fcn.0040a160
sub esp, 0x63c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x48], ebx
je 0x408013
mov eax, dword [esi + 0x18]
cmp eax, ebx
jne 0x407fd2
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
mov ecx, esi
call fcn.00407c48
test eax, eax
je 0x408013
lea eax, [esi + 4]
mov ecx, esi
push eax
call fcn.00407df0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
jne 0x407ff8
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ecx
push eax
call sub.historyinfo_manage.dll_init
test eax, eax
jne 0x408013
lea eax, [ebp - 0x648]
push eax
call sub.historyinfo_manage.dll_get_root_info
test eax, eax
je 0x40801d
mov eax, 0x80004005
jmp 0x408135
mov eax, dword [esi + 0x28]
cmp eax, ebx
jne 0x408029
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 0x28]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x408042
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0xffffffffffffffff
push eax
call fcn.00409d42
pop ecx
mov edi, eax
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x12
push ebx
push edi
call dword [sym.imp.ole32.dll_StgOpenStorage]
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x14], eax
call edi
cmp dword [ebp - 0x14], 0x80030002
jne 0x4080bf
mov eax, dword [esi + 0x28]
cmp eax, ebx
jne 0x40807f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0xffffffffffffffff
push eax
call fcn.00409d42
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1012
push ebx
call dword [sym.imp.ole32.dll_StgCreateDocfile]
push ebx
mov dword [ebp - 0x14], eax
call edi
cmp dword [ebp - 0x14], 0
je 0x4080df
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4080ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
jmp 0x408135
cmp dword [ebp - 0x14], ebx
je 0x4080e1
call sub.historyinfo_manage.dll_uninit
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4080da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
jmp 0x408135
xor ebx, ebx
push ebx
lea eax, [ebp - 0x648]
push dword [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00408144
mov edi, eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x408105
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jne 0x40811d
mov eax, dword [esi + 0x28]
cmp eax, ebx
jne 0x408115
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
mov ecx, esi
call fcn.004098d9
call sub.historyinfo_manage.dll_uninit
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x408133
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret