Function at 0x404180
Capabilities:
Move file
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x404f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
mov esi, ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::CFileFind
add esi, 0x70
push str._bak.
lea eax, [esp + 0x1c]
push esi
push eax
mov dword [esp + 0x6c], 0
call sub.MFC42.DLL_operator
mov ecx, dword [esp + 0x18]
push 0
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x404417
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push edi
mov bl, 6
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2c]
push edx
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [esp + 0x20]
mov byte [esp + 0x6c], 2
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4043fa
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4043fa
lea ecx, [esp + 0x2c]
xor edi, edi
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4043fa
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::GetFilePath
push 0x5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 3
call sub.MFC42.DLL_CString::ReverseFind
add eax, 0xfffffffd
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
lea eax, [esp + 0x10]
push str.Extract_
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x78], 4
call sub.MFC42.DLL_operator
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x70], 5
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator
push 0x407418
push 0x407704
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x407418
push 0x407704
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Replace
push 0x407418
push 0x407704
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push str.UpdateMyProgram:CurrentFileName_s
push edx
mov byte [esp + 0x78], bl
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call esi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push str.UpdateMyProgram:BakAsSrcFilePath_s
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call esi
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push str.UpdateMyProgram:ExtraAsRollFilePaht_s
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call esi
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x10]
push edi
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x74], 7
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40437f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push 9
push edx
push eax
call ebp
mov edi, eax
test edi, edi
jne 0x404386
push str.UpdateMyProgram:
call esi
mov ecx, dword [esp + 0x18]
push 0
push ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4043aa
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push 9
push edx
push eax
call ebp
mov edi, eax
test edi, edi
jne 0x4043b5
push str.UpdateMyProgram:
call esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x6c], bl
call fcn.004046f8
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 5
call fcn.00404476
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 4
call fcn.00404476
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 3
call fcn.00404476
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 2
call fcn.00404476
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 1
call fcn.00404476
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4041ed
pop edi
pop ebp
pop ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 0
call fcn.00404476
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], 0xffffffff
call fcn.004046f8
mov ecx, dword [esp + 0x58]
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret