Function at 0x416afd
Capabilities:
Copy file
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fd1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 2
push 0x4298b0
push 1
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xd4]
push edx
call fcn.00401610
mov byte [ebp - 0x64], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x64]
and eax, 0xff
test eax, eax
je 0x416bd5
lea ecx, [ebp + 8]
call fcn.00401590
sub eax, 1
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CString::CString
jmp 0x416be1
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x4298b4
push 1
lea edx, [ebp - 0x74]
push edx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xe4]
push ecx
call fcn.00401610
mov byte [ebp - 0x70], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x70]
and edx, 0xff
test edx, edx
je 0x416c68
mov dword [ebp - 0x78], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x78]
jmp 0x4174ed
push 0
push 0x4298b8
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jne 0x416cc6
lea ecx, [ebp - 0x14]
call fcn.00401590
sub eax, 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00412ed0
movsx eax, al
cmp eax, 0x2a
je 0x416cc6
cmp dword [0x42ad40], 0
jle 0x416cc6
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00401590
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Insert
push 0x2a
lea ecx, [ebp - 0x14]
call fcn.00401590
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Insert
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 6
push 0
lea ecx, [ebp - 0x14]
call fcn.00401ec0
push eax
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, 1
jne 0x4170ad
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [ebp - 0x30]
call fcn.00417f70
test eax, eax
je 0x41705d
push 0x4298bc
push 2
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0xec], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xec]
push eax
call fcn.00401610
mov byte [ebp - 0x7c], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x80]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x7c]
and ecx, 0xff
test ecx, ecx
je 0x41700d
mov dword [ebp - 0x34], 0
push 0x4298c0
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 8
push 0
push 0x80
push 2
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x38]
call fcn.00401ec0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 9
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::operator_1
push 1
push 0x2a
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x88]
push eax
push 1
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0xf4]
push eax
call fcn.00413850
mov byte [ebp - 0x84], al
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x8c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x84]
and ecx, 0xff
test ecx, ecx
je 0x416e5c
push 1
lea ecx, [ebp - 0x14]
call fcn.00401590
sub eax, 1
push eax
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::Delete
push 1
lea ecx, [ebp - 0x14]
call fcn.00401590
sub eax, 1
push eax
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::Delete
push 0x4298cc
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x90]
push eax
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0xfc]
push edx
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [ebp - 0x3c]
call fcn.00401ec0
push eax
lea ecx, [ebp - 0x38]
call fcn.00401ec0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x416f7d
push 0
push 0
lea eax, [ebp - 0x48]
push eax
push 0x400
mov ecx, dword [ebp - 0x40]
push ecx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0
push 0
mov edx, dword [ebp - 0x48]
push edx
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.00401ec0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x94], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0041cebe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x94]
jmp 0x4174ed
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFileFind::Close
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.00401ec0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
call fcn.00401ec0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x98], 1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0041cebe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x98]
jmp 0x4174ed
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFileFind::Close
mov dword [ebp - 0x9c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0041cebe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x9c]
jmp 0x4174ed
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFileFind::Close
mov dword [ebp - 0xa0], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0041cebe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0xa0]
jmp 0x4174ed
lea ecx, [ebp - 0x14]
call fcn.00401ea0
test eax, eax
je 0x417101
mov dword [ebp - 0xa4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0041cebe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0xa4]
jmp 0x4174ed
cmp dword [0x42ad40], 0
jle 0x417152
lea ecx, [ebp - 0x14]
call fcn.00401590
sub eax, 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00412ed0
movsx edx, al
cmp edx, 0x2a
jne 0x417152
push 1
lea ecx, [ebp - 0x14]
call fcn.00401590
sub eax, 1
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Delete
push 1
lea ecx, [ebp - 0x14]
call fcn.00401590
sub eax, 1
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Delete
push 0x4298d8
push 2
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x104], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x104]
push edx
call fcn.00401610
mov byte [ebp - 0xa8], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xac]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0xa8]
and eax, 0xff
test eax, eax
je 0x417314
lea ecx, [ebp - 0x14]
call fcn.00401590
sub eax, 2
push eax
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Right
mov byte [ebp - 4], 0xe
push 0
push 0x5c
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CString::Find_2
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jle 0x417308
lea ecx, [ebp - 0x50]
call fcn.00401590
sub eax, 1
cmp dword [ebp - 0x4c], eax
je 0x417308
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x54]
call fcn.0041ced0
mov byte [ebp - 4], 0xf
push 1
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CString::Delete
push 0x5c
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x4172fc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x14]
call fcn.00401ec0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x4172fc
push 0
push 0
lea ecx, [ebp - 0x60]
push ecx
push 0x400
mov edx, dword [ebp - 0x58]
push edx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0
push 0
mov eax, dword [ebp - 0x60]
push eax
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x34], 1
mov dword [ebp - 0xb0], 0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0041cebe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0xb0]
jmp 0x4174ed
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CString::CString
push 0x4298dc
push 1
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], edx
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00412eb0
mov byte [ebp - 0xb4], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xb8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xb4]
and ecx, 0xff
test ecx, ecx
je 0x4173c5
lea ecx, [ebp - 0x14]
call fcn.00401590
sub eax, 1
push eax
lea edx, [ebp - 0xbc]
push edx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xbc]
call sub.MFC42.DLL_CString::CString
jmp 0x417314
mov edx, dword [0x42ad40]
add edx, 1
mov dword [0x42ad40], edx
push ecx
mov ecx, esp
mov dword [ebp - 0xc0], esp
lea eax, [ebp - 0x14]
push eax
call fcn.0041ced0
mov dword [ebp - 0x118], eax
call fcn.00416afd
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x41744b
mov dword [ebp - 0xc4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0041cebe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0xc4]
jmp 0x4174ed
push 0
push 0x104
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4174aa
mov dword [ebp - 0xc8], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0041cebe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0xc8]
jmp 0x4174ed
mov dword [ebp - 0xcc], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0041cebe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret