Function at 0x409470
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b97b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push esi
push edi
mov eax, dword [0x43c010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x24]
push esi
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_300]
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 0
call dword [eax + 0x68]
test eax, eax
je 0x4096d0
push 0x2e
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_12826]
test eax, eax
jle 0x4095a5
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_8322]
push str..stb
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.00408c90
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140.dll_Ordinal_1526]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
mov ecx, esi
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
add esp, 8
test eax, eax
jne 0x4096c7
push 0x1001
mov ecx, esi
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
lea ecx, [ebp - 0x34]
call sub.mfc140.dll_Ordinal_498
push 0
push 0x1000
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x7c]
call sub.mfc140.dll_Ordinal_346
mov eax, dword [edi]
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call dword [eax + 8]
lea ecx, [ebp - 0x7c]
call sub.mfc140.dll_Ordinal_1058
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call sub.mfc140.dll_Ordinal_1140
jmp 0x4096c7
push 0x2001f
lea ecx, [ebp - 0x58]
call dword [sym.imp.SvatLib.dll_public:_void___thiscall_CDigiCatData::constructor_unsigned_long_int_]
mov esi, dword [sym.imp.SvatLib.dll_public:_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______thiscall_CDigiCatData::GetTranscriptDir_void_]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call esi
push str.AutoSaveUntitled.stn
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
call fcn.00408c90
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x58]
call esi
push str.AutoSaveUntitled.stb
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 9
push eax
call fcn.00408c90
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call dword [sym.imp.mfc140.dll_Ordinal_1526]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
add esp, 8
lea ecx, [ebp - 0x14]
push 0x1001
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
lea ecx, [ebp - 0x34]
call sub.mfc140.dll_Ordinal_498
push 0
push 0x1000
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0xc4]
call sub.mfc140.dll_Ordinal_346
mov eax, dword [edi]
lea ecx, [ebp - 0xc4]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xc
call dword [eax + 8]
lea ecx, [ebp - 0xc4]
call sub.mfc140.dll_Ordinal_1058
lea ecx, [ebp - 0x34]
call sub.mfc140.dll_Ordinal_1140
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call dword [sym.imp.SvatLib.dll_public_virtual:_void___thiscall_CDigiCatData::destructor_void_]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x6c]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret