Function at 0x406955
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e2c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7f8
mov dword [ebp - 0x770], ecx
mov eax, dword [ebp - 0x770]
mov ecx, dword [eax + 0x574]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 1
mov ecx, dword [ebp - 0x770]
add ecx, 0x58c
call fcn.004138d0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 1
jmp 0x4069e0
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
jg 0x407980
mov dword [ebp - 0x160], 0
push 0xa
lea ecx, [ebp - 0x18c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
push 0x427bc4
lea ecx, [ebp - 0x198]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x770]
add ecx, 0x58c
call fcn.004138f0
mov ecx, dword [eax]
mov dword [ebp - 0x170], ecx
lea ecx, [ebp - 0x16c]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x170]
push edx
push 0x427bcc
lea eax, [ebp - 0x16c]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, dword [ebp - 0x170]
add ecx, 0x104
push ecx
push 0x427bd0
lea edx, [ebp - 0x30]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov eax, dword [ebp - 0x170]
push eax
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 4
push 0x5c
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x194], eax
lea ecx, [ebp - 0x174]
call fcn.00401590
sub eax, dword [ebp - 0x194]
sub eax, 1
push eax
lea ecx, [ebp - 0x714]
push ecx
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x774], eax
mov edx, dword [ebp - 0x774]
mov dword [ebp - 0x778], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x778]
push eax
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x714]
call sub.MFC42.DLL_CString::CString
push 0x2e
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
push ecx
lea edx, [ebp - 0x718]
push edx
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x77c], eax
mov eax, dword [ebp - 0x77c]
mov dword [ebp - 0x780], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x780]
push ecx
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x718]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x174]
call fcn.00401590
sub eax, 1
push eax
lea edx, [ebp - 0x71c]
push edx
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x784], eax
mov eax, dword [ebp - 0x784]
mov dword [ebp - 0x788], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x788]
push ecx
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x71c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x170]
push edx
lea ecx, [ebp - 0x190]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 8
push 0x2e
lea ecx, [ebp - 0x190]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x194], eax
lea ecx, [ebp - 0x190]
call fcn.00401590
sub eax, dword [ebp - 0x194]
push eax
lea eax, [ebp - 0x720]
push eax
lea ecx, [ebp - 0x190]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x78c], eax
mov ecx, dword [ebp - 0x78c]
mov dword [ebp - 0x790], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x790]
push edx
lea ecx, [ebp - 0x190]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x720]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x770]
mov ecx, dword [eax + 0x348]
push ecx
mov edx, dword [ebp - 0x174]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 0x427bd4
lea ecx, [ebp - 0x158]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [ebp - 0x168]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x158]
push edx
push 0x427bdc
lea eax, [ebp - 0x168]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov dword [ebp - 0x164], 0
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 0xb
push 0
lea ecx, [ebp - 0x158]
push ecx
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CFileFind::FindFile
mov dword [ebp - 0x164], eax
mov edx, dword [ebp - 0x770]
mov eax, dword [edx + 0x344]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [eax + ecx - 1]
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 1
jge 0x406d08
mov eax, dword [ebp - 0x54]
add eax, 0x3e7
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x164], 0
je 0x406f4a
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x770]
mov ecx, dword [eax + 0x344]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x19c], ecx
cmp dword [ebp - 0x19c], 0
jg 0x406d6d
mov edx, dword [ebp - 0x19c]
add edx, 0x3e7
mov dword [ebp - 0x19c], edx
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x19c]
jne 0x406e84
mov dword [ebp - 0x160], 1
push 0
push 0x427be0
push 0
push 0x427c0c
push 0x427c18
push 0
lea ecx, [ebp - 0x398]
call sub.MFC42.DLL_CFileDialog::CFileDialog
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x398]
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x406e70
lea ecx, [ebp - 0x724]
push ecx
lea ecx, [ebp - 0x398]
call sub.MFC42.DLL_CFileDialog::GetPathName
mov dword [ebp - 0x794], eax
mov edx, dword [ebp - 0x794]
mov dword [ebp - 0x798], edx
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x798]
push eax
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x724]
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [ebp - 0x728], esp
lea edx, [ebp - 0x15c]
push edx
call fcn.0041ced0
mov dword [ebp - 0x79c], eax
mov eax, dword [ebp - 0x79c]
mov dword [ebp - 0x7a0], eax
mov byte [ebp - 4], 0xf
push ecx
mov ecx, esp
mov dword [ebp - 0x72c], esp
mov edx, dword [ebp - 0x170]
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x7a4], eax
mov ecx, dword [ebp - 0x770]
mov byte [ebp - 4], 0xd
call fcn.0040e390
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x398]
call fcn.00412fc0
jmp 0x406f4a
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x398]
call fcn.00412fc0
jmp 0x406f4a
cmp dword [ebp - 0x54], 0x3e7
jle 0x406ef7
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x770]
mov ecx, dword [eax + 0x348]
push ecx
push 1
mov edx, dword [ebp - 0x770]
mov eax, dword [edx + 0x354]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0x427c1c
lea edx, [ebp - 0x158]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CFileFind::FindFile
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
je 0x406ef2
mov ecx, dword [ebp - 0x50]
sub ecx, 1
mov dword [ebp - 0x50], ecx
jmp 0x406d1e
mov edx, dword [ebp - 0x770]
mov eax, dword [edx + 0x348]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x770]
mov eax, dword [edx + 0x354]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0x427c28
lea edx, [ebp - 0x158]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CFileFind::FindFile
mov dword [ebp - 0x164], eax
jmp 0x406d1e
cmp dword [ebp - 0x160], 0
jne 0x407906
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x3a0]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x39c]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x158]
push ecx
push 0x427c34
lea edx, [ebp - 0x39c]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov eax, dword [ebp - 0x170]
push eax
push 0x427c38
lea ecx, [ebp - 0x3a0]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0x5c
lea ecx, [ebp - 0x3a0]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x194], eax
mov edx, dword [ebp - 0x194]
push edx
lea eax, [ebp - 0x730]
push eax
lea ecx, [ebp - 0x3a0]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x7a8], eax
mov ecx, dword [ebp - 0x7a8]
mov dword [ebp - 0x7ac], ecx
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x7ac]
push edx
lea ecx, [ebp - 0x3a0]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x730]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x50], 0x3e8
jge 0x407065
cmp dword [ebp - 0x54], 0
jne 0x40702c
mov dword [ebp - 0x54], 1
mov eax, dword [ebp - 0x190]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x770]
mov eax, dword [edx + 0x354]
push eax
mov ecx, dword [ebp - 0x3a0]
push ecx
push 0x427c3c
lea edx, [ebp - 0x158]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x407100
push 0x5c
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x3a4], eax
lea ecx, [ebp - 0x15c]
call fcn.00401590
sub eax, dword [ebp - 0x3a4]
sub eax, 1
push eax
lea eax, [ebp - 0x734]
push eax
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x7b0], eax
mov ecx, dword [ebp - 0x7b0]
mov dword [ebp - 0x7b4], ecx
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x7b4]
push edx
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x734]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x190]
push eax
mov ecx, dword [ebp - 0x15c]
push ecx
mov edx, dword [ebp - 0x3a0]
push edx
push 0x427c48
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [ebp - 0x158]
push ecx
push 0x427c50
lea edx, [ebp - 0x174]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x174]
call fcn.00401ec0
push eax
lea ecx, [ebp - 0x16c]
call fcn.00401ec0
push eax
call sub.MFC42.DLL_CFile::Rename
mov eax, dword [ebp - 0x174]
push eax
push 0x427c54
mov ecx, dword [ebp - 0x170]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp - 0x50], 0
je 0x407260
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x50]
je 0x407260
cmp dword [ebp - 0x10], 0
jne 0x407178
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], eax
jmp 0x407186
mov ecx, dword [ebp - 0x50]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
add edx, ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x18], eax
push 0x5c
lea ecx, [ebp - 0x39c]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x3a8], eax
lea ecx, [ebp - 0x39c]
call fcn.00401590
sub eax, dword [ebp - 0x3a8]
sub eax, 1
push eax
lea ecx, [ebp - 0x738]
push ecx
lea ecx, [ebp - 0x39c]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x7b8], eax
mov edx, dword [ebp - 0x7b8]
mov dword [ebp - 0x7bc], edx
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x7bc]
push eax
lea ecx, [ebp - 0x39c]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x738]
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [ebp - 0x168]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x3a8], eax
mov ecx, dword [ebp - 0x3a8]
push ecx
lea edx, [ebp - 0x73c]
push edx
lea ecx, [ebp - 0x168]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x7c0], eax
mov eax, dword [ebp - 0x7c0]
mov dword [ebp - 0x7c4], eax
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x7c4]
push ecx
lea ecx, [ebp - 0x168]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x73c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x39c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x3a0]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x170]
push edx
push 0x427c58
lea eax, [ebp - 0x16c]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x178]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x740], esp
lea edx, [ebp - 0x16c]
push edx
call fcn.0041ced0
mov dword [ebp - 0x7c8], eax
mov eax, dword [ebp - 0x7c8]
mov dword [ebp - 0x7cc], eax
mov byte [ebp - 4], 0x16
push ecx
mov ecx, esp
mov dword [ebp - 0x744], esp
lea edx, [ebp - 0x30]
push edx
call fcn.0041ced0
mov dword [ebp - 0x7d0], eax
mov ecx, dword [ebp - 0x770]
mov byte [ebp - 4], 0xc
call fcn.0040f7b2
mov dword [ebp - 0x7d4], eax
mov eax, dword [ebp - 0x7d4]
mov dword [ebp - 0x1c], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x748], esp
lea edx, [ebp - 0x16c]
push edx
call fcn.0041ced0
mov dword [ebp - 0x7d8], eax
mov eax, dword [ebp - 0x7d8]
mov dword [ebp - 0x7dc], eax
mov byte [ebp - 4], 0x17
push ecx
mov ecx, esp
mov dword [ebp - 0x74c], esp
lea edx, [ebp - 0x30]
push edx
call fcn.0041ced0
mov dword [ebp - 0x7e0], eax
mov ecx, dword [ebp - 0x770]
mov byte [ebp - 4], 0xc
call fcn.0040e9c6
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40768d
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x770]
add ecx, 0x35c
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x178]
push ecx
mov ecx, dword [ebp - 0x770]
add ecx, 0x358
call sub.MFC42.DLL_CString::operator_1
push ecx
mov ecx, esp
mov dword [ebp - 0x750], esp
lea edx, [ebp - 0x178]
push edx
call fcn.0041ced0
mov dword [ebp - 0x7e4], eax
mov ecx, dword [ebp - 0x770]
call fcn.0040d755
lea ecx, [ebp - 0x178]
call fcn.00401590
cmp eax, 4
jge 0x4073ef
mov eax, dword [ebp - 0x178]
push eax
push 0x427c5c
lea ecx, [ebp - 0x4ac]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40740d
push 0x104
lea edx, [ebp - 0x4ac]
push edx
lea ecx, [ebp - 0x178]
call fcn.00401ec0
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ecx, dword [ebp - 0x770]
add ecx, 0x58c
call fcn.004138d0
mov dword [ebp - 0x4b8], eax
mov dword [ebp - 0x4b0], 1
jmp 0x40743f
mov eax, dword [ebp - 0x4b0]
add eax, 1
mov dword [ebp - 0x4b0], eax
mov ecx, dword [ebp - 0x4b0]
cmp ecx, dword [ebp - 0x24]
jge 0x40753e
lea edx, [ebp - 0x4b8]
push edx
mov ecx, dword [ebp - 0x770]
add ecx, 0x58c
call fcn.004138f0
mov eax, dword [eax]
mov dword [ebp - 0x5c8], eax
mov ecx, dword [ebp - 0x5c8]
push ecx
lea ecx, [ebp - 0x4c0]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 0x18
push 0x5c
lea ecx, [ebp - 0x4c0]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x5cc], eax
lea ecx, [ebp - 0x4c0]
call fcn.00401590
sub eax, dword [ebp - 0x5cc]
sub eax, 1
push eax
lea edx, [ebp - 0x754]
push edx
lea ecx, [ebp - 0x4c0]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x7e8], eax
mov eax, dword [ebp - 0x7e8]
mov dword [ebp - 0x7ec], eax
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x7ec]
push ecx
lea ecx, [ebp - 0x4c0]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x754]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x4c0]
push edx
mov eax, dword [ebp - 0x5c8]
add eax, 0x104
push eax
push 0x427c60
lea ecx, [ebp - 0x5c4]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x5c4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x4c0]
call sub.MFC42.DLL_CString::CString
jmp 0x407430
push ecx
mov ecx, esp
mov dword [ebp - 0x758], esp
lea eax, [ebp - 0x178]
push eax
call fcn.0041ced0
mov dword [ebp - 0x7f0], eax
mov ecx, dword [ebp - 0x770]
call fcn.0040e1ab
mov ecx, dword [ebp - 0x178]
push ecx
push 0x427c68
mov edx, dword [ebp - 0x170]
add edx, 0x104
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [ebp - 0x770]
add ecx, 0x58c
call fcn.004138d0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x770]
add ecx, 0x58c
call fcn.004138d0
mov dword [ebp - 0x4bc], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x4b4], 1
jmp 0x4075da
mov eax, dword [ebp - 0x4b4]
add eax, 1
mov dword [ebp - 0x4b4], eax
mov ecx, dword [ebp - 0x4b4]
cmp ecx, dword [ebp - 0x14]
jg 0x407629
lea edx, [ebp - 0x4bc]
push edx
mov ecx, dword [ebp - 0x770]
add ecx, 0x58c
call fcn.004138f0
mov eax, dword [eax]
mov dword [ebp - 0x5d0], eax
lea ecx, [ebp - 0x4ac]
push ecx
push 0x427c6c
mov edx, dword [ebp - 0x5d0]
add edx, 0x104
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4075cb
mov dword [ebp - 0x24], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x75c], esp
push 0x42ad18
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x7f4], eax
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x7f8], eax
mov byte [ebp - 4], 0x1a
push ecx
mov ecx, esp
mov dword [ebp - 0x760], esp
push 0x42ad1c
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x7fc], eax
mov ecx, dword [ebp - 0x770]
mov byte [ebp - 4], 0xc
call fcn.0040e9c6
mov dword [ebp - 0x28], 1
jmp 0x407906
cmp dword [ebp - 0x1c], 1
jne 0x4076a1
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x407906
cmp dword [ebp - 0x1c], 0xfffffffe
jne 0x407906
cmp dword [ebp - 0x14], 0
jle 0x40784d
mov ecx, dword [ebp - 0x770]
add ecx, 0x58c
call fcn.004138d0
mov dword [ebp - 0x5d8], eax
mov dword [ebp - 0x5d4], 1
jmp 0x4076e7
mov edx, dword [ebp - 0x5d4]
add edx, 1
mov dword [ebp - 0x5d4], edx
mov eax, dword [ebp - 0x5d4]
cmp eax, dword [ebp - 0x20]
jg 0x407846
lea ecx, [ebp - 0x5d8]
push ecx
mov ecx, dword [ebp - 0x770]
add ecx, 0x58c
call fcn.004138f0
mov edx, dword [eax]
mov dword [ebp - 0x5dc], edx
lea ecx, [ebp - 0x5f8]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 0x1b
push 0
mov eax, dword [ebp - 0x5dc]
add eax, 0x104
push eax
lea ecx, [ebp - 0x5f8]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x407832
lea ecx, [ebp - 0x5d8]
push ecx
mov ecx, dword [ebp - 0x770]
add ecx, 0x58c
call fcn.004138f0
mov edx, dword [eax]
mov dword [ebp - 0x704], edx
mov eax, dword [ebp - 0x704]
push eax
lea ecx, [ebp - 0x5fc]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 0x1c
push 0x5c
lea ecx, [ebp - 0x5fc]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x708], eax
lea ecx, [ebp - 0x5fc]
call fcn.00401590
sub eax, dword [ebp - 0x708]
sub eax, 1
push eax
lea ecx, [ebp - 0x764]
push ecx
lea ecx, [ebp - 0x5fc]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x800], eax
mov edx, dword [ebp - 0x800]
mov dword [ebp - 0x804], edx
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x804]
push eax
lea ecx, [ebp - 0x5fc]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x764]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x5fc]
push ecx
mov edx, dword [ebp - 0x704]
add edx, 0x104
push edx
push 0x427c70
lea eax, [ebp - 0x700]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x700]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x5fc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x5f8]
call fcn.0041cebe
jmp 0x4076d8
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x770]
mov dword [edx + 0x570], 0
mov eax, dword [ebp - 0x770]
mov dword [eax + 0x574], 0
mov dword [ebp - 0x768], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x4c]
call fcn.0041cebe
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x168]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x190]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x16c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x198]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x768]
jmp 0x407ad7
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x4c]
call fcn.0041cebe
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x168]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x190]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x16c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x198]
call sub.MFC42.DLL_CString::CString
jmp 0x4069d7
cmp dword [ebp - 0x14], 0
je 0x407aa8
mov ecx, dword [ebp - 0x770]
mov edx, dword [ecx + 0x344]
mov eax, dword [ebp - 0x10]
lea ecx, [edx + eax - 1]
mov edx, dword [ebp - 0x770]
mov dword [edx + 0x344], ecx
mov eax, dword [ebp - 0x770]
cmp dword [eax + 0x344], 0x3e7
jle 0x4079e9
mov ecx, dword [ebp - 0x770]
mov edx, dword [ecx + 0x344]
sub edx, 0x3e7
mov eax, dword [ebp - 0x770]
mov dword [eax + 0x344], edx
mov ecx, dword [ebp - 0x770]
call fcn.004048bb
jmp 0x407aa8
mov ecx, dword [ebp - 0x770]
cmp dword [ecx + 0x344], 0x3e7
jne 0x407a9d
mov edx, dword [ebp - 0x770]
mov dword [edx + 0x344], 1
lea ecx, [ebp - 0x70c]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 0x1e
push 0x427c78
push 0x427c7c
lea eax, [ebp - 0x70c]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0x3ee
mov ecx, dword [ebp - 0x770]
call sub.MFC42.DLL_CWnd::GetDlgItem
mov dword [ebp - 0x710], eax
push 0
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x710]
call fcn.00413630
push 0
push 0x104
lea ecx, [ebp - 0x70c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, dword [ebp - 0x710]
call fcn.00413600
push 0x104
lea ecx, [ebp - 0x70c]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70c]
call sub.MFC42.DLL_CString::CString
jmp 0x407aa8
mov ecx, dword [ebp - 0x770]
call fcn.004048bb
mov ecx, dword [ebp - 0x770]
mov dword [ecx + 0x570], 0
mov dword [ebp - 0x76c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x76c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret