Function at 0x407f63
Capabilities:
Delete file

Disassembly:
mov eax, 0x40a7f4
call fcn.0040a120
sub esp, 0x63c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x48], ebx
je 0x407fcc
mov eax, dword [esi + 0x18]
cmp eax, ebx
jne 0x407f8b
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.00407c01
test eax, eax
je 0x407fcc
lea eax, [esi + 4]
mov ecx, esi
push eax
call fcn.00407da9
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
jne 0x407fb1
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 0x407fcc
lea eax, [ebp - 0x648]
push eax
call sub.historyinfo_manage.dll_get_root_info
test eax, eax
je 0x407fd6
mov eax, 0x80004005
jmp 0x4080ee
mov eax, dword [esi + 0x28]
cmp eax, ebx
jne 0x407fe2
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 0x407ffb
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.00409cfb
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 0x408078
mov eax, dword [esi + 0x28]
cmp eax, ebx
jne 0x408038
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.00409cfb
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 0x408098
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x408073
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
jmp 0x4080ee
cmp dword [ebp - 0x14], ebx
je 0x40809a
call sub.historyinfo_manage.dll_uninit
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x408093
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
jmp 0x4080ee
xor ebx, ebx
push ebx
lea eax, [ebp - 0x648]
push dword [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004080fd
mov edi, eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4080be
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jne 0x4080d6
mov eax, dword [esi + 0x28]
cmp eax, ebx
jne 0x4080ce
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.00409892
call sub.historyinfo_manage.dll_uninit
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4080ec
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