Function at 0x41c68a
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x4e5b40
call fcn.004e1580
push ecx
mov eax, 0x10170
call fcn.004e15c0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
lea ecx, [ebp + 8]
mov dword [ebp - 0x20], esi
call sub.MFC42.DLL_CString::CString_4
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::TrimRight
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::TrimRight
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x180]
push eax
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x41c717
push dword [ebp + 8]
lea ecx, [esi + 0x15c]
push 4
call fcn.0041dd89
push 4
pop esi
jmp 0x41c9b9
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
push eax
call ebx
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
je 0x41c7b8
and dword [ebp + 0xc], 0
lea eax, [ebp - 0x180]
push eax
push dword [ebp - 0x14]
call edi
cmp eax, 0xffffffff
je 0x41c771
test byte [ebp - 0x180], 0x10
jne 0x41c771
push eax
mov dword [ebp + 0xc], 1
call ebx
push 0xffffffffffffffff
push 0x24
push 0x8141
call sub.MFC42.DLL_AfxMessageBox_1
cmp eax, 7
je 0x41c7b8
push dword [ebp + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsSameRootA]
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x14]
push dword [ebp + 8]
call edi
test eax, eax
je 0x41c7bf
cmp dword [ebp + 0xc], 0
jne 0x41c7bf
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x41c7b8
push dword [ebp + 8]
lea ecx, [esi + 0x15c]
push 3
call fcn.0041dd89
push 3
jmp 0x41c711
xor esi, esi
jmp 0x41c9b9
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFile::CFile
push 0
push 0x10
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x41c802
push dword [ebp + 8]
lea ecx, [esi + 0x15c]
push 6
call fcn.0041dd89
push 6
pop esi
jmp 0x41c9a1
push 0
push 0x1011
push dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x41c82c
push dword [ebp - 0x14]
lea ecx, [esi + 0x15c]
push 0xa
call fcn.0041dd89
push 0xa
jmp 0x41c7fc
mov eax, dword [esi + 0x220]
mov edi, 0x10000
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x224]
mov dword [ebp - 0x18], eax
mov ebx, edi
mov byte [ebp - 4], 4
cmp ebx, edi
jb 0x41c96b
lea eax, [ebp - 0x10180]
push edi
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Read
mov ebx, eax
lea eax, [ebp - 0x10180]
push ebx
push eax
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Write
add dword [esi + 0x220], ebx
adc dword [esi + 0x224], 0
fild qword [esi + 0x220]
fmul qword [0x4f9168]
fild qword [esi + 0x218]
fdivp st(1)
call sub.MSVCRT.dll__ftol
push 0
push eax
push 0x402
push dword [esi + 0x80]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 0x12c], 0
je 0x41c849
cmp ebx, edi
jb 0x41c96b
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x1c]
push dword [ebp + 8]
mov dword [esi + 0x220], eax
mov eax, dword [ebp - 0x18]
push 2
lea ecx, [esi + 0x15c]
mov dword [esi + 0x224], eax
call fcn.0041dd89
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004e0bc4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004e0bc4
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
push 2
pop eax
jmp 0x41c9d3
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 3
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41c99f
push dword [ebp + 8]
lea ecx, [esi + 0x15c]
push 9
call fcn.0041dd89
xor esi, esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004e0bc4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004e0bc4
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8