Function at 0x409ca0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x410ea0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push edi
mov edi, ecx
push 2
push 0xffffffffffffffff
mov eax, dword [edi + 0xb0]
push 0x100c
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
inc eax
mov dword [esp + 0x20], eax
jne 0x409cf8
push 0
push 0
push 0x417510
call sub.MFC42.DLL_AfxMessageBox
pop edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
push ebp
push esi
lea ecx, [esp + 0x1c]
call fcn.0040fd8c
xor ebp, ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], ebp
call fcn.0040fd8c
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x44], 1
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x14]
mov byte [esp + 0x44], 2
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x409d46
push 0x41750c
lea ecx, [esp + 0x18]
call fcn.0040fe76
mov dl, byte [esp + 0x4c]
push ebx
mov byte [esp + 0x30], dl
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov eax, dword [edi + 0xb0]
push ebp
push ebp
mov ebx, 3
push 0x1004
push eax
mov byte [esp + 0x58], bl
xor esi, esi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebp
mov dword [esp + 0x2c], eax
jle 0x409e56
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
add edi, 0x90
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetCheck
test eax, eax
je 0x409e47
push 0
lea ecx, [esp + 0x28]
push esi
push ecx
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetItemText_1
push eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x54]
push edx
push eax
mov byte [esp + 0x54], 4
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 5
call fcn.0040fdf2
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::CString
push ebx
lea ecx, [esp + 0x2c]
push esi
push ecx
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetItemText_1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 6
call fcn.0040fdf2
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 0
push edx
push eax
call ebp
test eax, eax
jne 0x409e47
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x1c]
push ecx
push 1
push edx
lea ecx, [esp + 0x3c]
call fcn.0040a590
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x409d92
xor ebp, ebp
lea ecx, [esp + 0x14]
call fcn.0040fd8c
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
mov byte [esp + 0x48], 7
je 0x409ea8
push 0x417508
lea eax, [esp + 0x54]
push esi
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x38]
add esi, 4
cmp esi, eax
jne 0x409e70
lea ecx, [esp + 0x10]
call fcn.0040fd8c
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x48], 9
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
cmp eax, ebp
je 0x409edf
push 0x4174f0
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
jmp 0x409ee9
push 0x4174e0
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
push ebp
push ebp
push eax
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
cmp esi, eax
mov byte [esp + 0x48], 2
mov edi, eax
pop ebx
je 0x409f36
mov ecx, esi
call sub.MFC42.DLL_CString::CString
add esi, 4
cmp esi, edi
jne 0x409f24
mov esi, dword [esp + 0x30]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3c]
pop esi
pop ebp
pop edi
mov dword fs:[0], ecx
add esp, 0x3c
ret 4