Function at 0x401470
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x435c80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
lea ecx, [esp]
mov dword [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 3
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x40], 5
cmp dword [eax - 8], 1
jl 0x401532
mov ecx, dword [esp + 0x48]
push 0
push 0
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x401532
lea edx, [esp + 0x48]
push 0x44a048
lea eax, [esp + 0xc]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x44], 6
call fcn.00434ed8
lea ecx, [esp + 8]
mov byte [esp + 0x40], 5
call fcn.00434eae
mov ecx, dword [esp + 4]
push 0
push 0x1001
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x40159c
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 4
call fcn.00434ef6
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 3
call fcn.00434ef6
lea ecx, [esp + 4]
mov byte [esp + 0x40], 2
call fcn.00434eae
lea ecx, [esp]
mov byte [esp + 0x40], 1
call fcn.00434eae
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 0
call fcn.00434eae
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call fcn.00434eae
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
mov edx, dword [esp + 0x4c]
lea eax, [esp]
push edi
push eax
mov edi, dword [edx - 8]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x401633
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x14]
push edi
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
mov edx, dword [esp + 0x58]
mov eax, dword [eax]
push edx
push eax
call esi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.00434eae
test bl, bl
jne 0x40161f
lea eax, [esp + 0xc]
push 0x44a020
lea ecx, [esp + 0x1c]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push eax
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 5
call fcn.00434eae
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x4015be
pop esi
pop ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStdioFile::Close
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 4
call fcn.00434ef6
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 3
call fcn.00434ef6
lea ecx, [esp + 8]
mov byte [esp + 0x44], 2
call fcn.00434eae
lea ecx, [esp + 4]
mov byte [esp + 0x44], 1
call fcn.00434eae
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 0
call fcn.00434eae
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], 0xffffffff
call fcn.00434eae
mov ecx, dword [esp + 0x3c]
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x44
ret 8