Function at 0x404fa0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b441
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push esi
mov edi, ecx
push 1
push 0x40f4b0
mov dword [ebp - 0x24], edi
call sub.MFC42u.DLL_AfxMessageBox
cmp eax, 2
je 0x405583
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_1
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x54], al
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov ecx, dword [edi + 0x1c0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
mov byte [ebp - 4], 3
call ebx
cmp eax, 0xffffffff
je 0x405058
lea esi, [edi + 0x1a0]
push 3
push 0
push eax
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::SetItemState
mov edx, dword [edi + 0x1c0]
push 2
push 0xffffffffffffffff
push 0x100c
push edx
call ebx
cmp eax, 0xffffffff
jne 0x405033
xor esi, esi
mov eax, dword [edi + 0x1c0]
push esi
push esi
push 0x1004
push eax
call ebx
test eax, eax
mov dword [ebp - 0x2c], eax
jle 0x405170
lea ebx, [edi + 0x1a0]
push 1
lea ecx, [ebp - 0x38]
push esi
push ecx
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::GetItemText
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0040a5aa
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0040a3e8
mov edx, dword [ebp - 0x18]
mov eax, dword [edx - 8]
test eax, eax
je 0x405182
push 2
lea eax, [ebp - 0x3c]
push esi
push eax
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::GetItemText
push 0x40f4ac
lea ecx, [ebp - 0x30]
push eax
push ecx
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_operator
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 6
push edx
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.0040a5aa
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.0040a3e8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.0040a3e8
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0040a3e8
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
cmp edi, eax
mov dword [ebp - 0x28], 0
je 0x40514c
mov eax, dword [edi]
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4051e1
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x4c]
add edi, 4
inc edx
cmp edi, eax
mov dword [ebp - 0x28], edx
jne 0x405123
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x54]
push edx
push 1
push eax
call fcn.00409040
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
inc esi
cmp esi, eax
jl 0x405079
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x50]
test edx, edx
jne 0x405275
xor ecx, ecx
jmp 0x40527d
push 0
push 0
push 0x40f480
call sub.MFC42u.DLL_AfxMessageBox
mov ecx, ebx
call sub.MFC42u.DLL_CWnd::SetFocus
push 3
push 3
push esi
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::SetItemState
mov eax, dword [edi + 0x1c0]
xor ebx, ebx
push ebx
push esi
push 0x1013
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
cmp esi, eax
mov byte [ebp - 4], 2
mov edi, eax
je 0x40554a
push ebx
mov ecx, esi
call fcn.00409550
add esi, 4
cmp esi, edi
jne 0x4051cd
jmp 0x405547
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push ecx
push 0x40f45c
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [ebp - 0x18]
add esp, 0xc
xor edi, edi
push edi
push edi
push eax
call sub.MFC42u.DLL_AfxMessageBox
mov ecx, ebx
call sub.MFC42u.DLL_CWnd::SetFocus
push 3
push 3
push esi
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::SetItemState
mov ecx, dword [ebp - 0x28]
push 3
push 3
push ecx
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::SetItemState
mov edx, dword [ebp - 0x24]
push edi
push esi
push 0x1013
mov eax, dword [edx + 0x1c0]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
cmp esi, eax
mov byte [ebp - 4], 2
mov ebx, eax
je 0x40525e
push edi
mov ecx, esi
call fcn.00409550
add esi, 4
cmp esi, ebx
jne 0x40524c
mov esi, dword [ebp - 0x50]
push esi
call fcn.0040a3be
add esp, 4
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
jmp 0x40555c
mov ecx, dword [ebp - 0x4c]
sub ecx, edx
sar ecx, 2
cmp ecx, eax
push 0
push 0
je 0x4052c9
push 0x40f43c
call sub.MFC42u.DLL_AfxMessageBox
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
cmp esi, edi
mov byte [ebp - 4], 2
je 0x4052b0
push 0
mov ecx, esi
call fcn.00409550
add esi, 4
cmp esi, edi
jne 0x40529d
mov esi, dword [ebp - 0x50]
push esi
call fcn.0040a3be
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
jmp 0x40555c
mov ecx, dword [edi + 0x1c0]
push 0xb
push ecx
call ebx
xor esi, esi
mov dword [ebp - 0x30], esi
cmp esi, dword [ebp - 0x2c]
jge 0x405503
add edi, 0x1a0
push esi
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::GetItemData
mov ebx, eax
mov eax, dword [ebp - 0x50]
test eax, eax
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 8
je 0x40530c
mov edx, dword [ebp - 0x4c]
sub edx, eax
sar edx, 2
cmp edx, esi
ja 0x40533d
lea eax, [ebp - 0x11]
lea ecx, [ebp - 0x64]
push eax
push str.invalid_vector_T__subscript
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 9
push ecx
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::out_of_range::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea edx, [ebp - 0x80]
push 0x40d4d0
push edx
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [eax + esi*4]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4054ea
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx + esi*4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40538f
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x18]
mov eax, dword [edx + esi*4]
push eax
push ebx
push str._s_____s
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x20]
push edx
call sub.MFC42u.DLL_CString::operator
jmp 0x4054ea
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + esi*4]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 4
mov ecx, esp
mov dword [ebp - 0x3c], esp
push ebx
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [ebp - 0x38]
push ecx
call fcn.00404d10
add esp, 8
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push ebx
mov byte [ebp - 4], 0xa
call sub.MFC42u.DLL_CString::CString_2
lea edx, [ebp - 0x28]
push edx
call fcn.00404dd0
add esp, 0xc
mov eax, dword [ebx + 0x21c]
mov byte [ebp - 4], 0xb
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push ebx
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [ebp - 0x34]
push ecx
call fcn.00404ec0
add esp, 0xc
mov edx, dword [ebx + 0x21c]
push 0
push 0
push 0
push edx
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
mov byte [ebp - 4], 0xc
call fcn.0040a3ee
call fcn.00401340
add esp, 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x3c], eax
call fcn.004055a0
mov ecx, dword [ebp - 0x3c]
push ecx
push eax
push 3
push 0
push esi
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::SetItem
mov edx, dword [ebp - 0x28]
mov ecx, edi
push edx
push 1
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov eax, dword [ebp - 0x38]
mov ecx, edi
push eax
push 2
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [ebp - 0x24]
push 3
add ecx, 0x1ec
push ecx
call fcn.00409a10
add esp, 8
test eax, eax
je 0x40547b
push ebx
push 3
push esi
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::SetItemText
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.0040a3e8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.0040a3e8
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.0040a3e8
jmp 0x4054ea
mov edi, dword [ebp - 0x24]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
inc esi
mov dword [ebp - 4], 3
mov dword [ebp - 0x30], esi
jmp 0x4052d9
mov eax, dword [edi + 0x1c0]
push 0
push 1
push 0xb
push eax
call ebx
mov eax, dword [ebp - 0x20]
xor ebx, ebx
push ebx
push ebx
cmp dword [eax - 8], ebx
je 0x405521
push eax
jmp 0x405526
push 0x40f3b8
call sub.MFC42u.DLL_AfxMessageBox
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
cmp esi, edi
mov byte [ebp - 4], 2
je 0x40554a
mov ecx, esi
call fcn.0040a3e8
add esi, 4
cmp esi, edi
jne 0x405539
mov esi, dword [ebp - 0x50]
push esi
call fcn.0040a3be
add esp, 4
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040a3e8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040a3e8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a3e8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret