Function at 0x407fc9
Capabilities:
Delete file

Disassembly:
mov eax, 0x40a5ec
call fcn.0040a180
sub esp, 0x63c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x48], ebx
je 0x408032
mov eax, dword [esi + 0x18]
cmp eax, ebx
jne 0x407ff1
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.00407c67
test eax, eax
je 0x408032
lea eax, [esi + 4]
mov ecx, esi
push eax
call fcn.00407e0f
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
jne 0x408017
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 0x408032
lea eax, [ebp - 0x648]
push eax
call sub.historyinfo_manage.dll_get_root_info
test eax, eax
je 0x40803c
mov eax, 0x80004005
jmp 0x408154
mov eax, dword [esi + 0x28]
cmp eax, ebx
jne 0x408048
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 0x408061
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.00409d61
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 0x4080de
mov eax, dword [esi + 0x28]
cmp eax, ebx
jne 0x40809e
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.00409d61
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 0x4080fe
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4080d9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
jmp 0x408154
cmp dword [ebp - 0x14], ebx
je 0x408100
call sub.historyinfo_manage.dll_uninit
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4080f9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
jmp 0x408154
xor ebx, ebx
push ebx
lea eax, [ebp - 0x648]
push dword [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00408163
mov edi, eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x408124
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jne 0x40813c
mov eax, dword [esi + 0x28]
cmp eax, ebx
jne 0x408134
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.004098f8
call sub.historyinfo_manage.dll_uninit
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x408152
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