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

Disassembly:
push 0xffffffffffffffff
push 0x4189ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov esi, 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x454], esi
call fcn.004160f0
mov eax, dword [esp + 0x45c]
lea ecx, [esp + 0x14c]
push eax
mov ebx, 2
push 0x421454
push ecx
mov byte [esp + 0x460], bl
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x14c]
lea ecx, [esp + 0x2c]
push 0
push edx
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x410524
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x410518
lea eax, [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
push 0x100
mov ecx, eax
mov byte [esp + 0x458], 3
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x454], bl
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x2c]
push 0x10
lea ecx, [esp + 0x30]
call dword [edx + 0x40]
test eax, eax
je 0x410421
mov ecx, dword [esp + 0x45c]
lea eax, [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0x254]
push 0x42144c
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x460]
lea eax, [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x42144c
push edx
mov byte [esp + 0x464], 4
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
add esp, 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x254]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x460], 5
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
mov byte [esp + 0x45c], 4
call fcn.00410270
mov esi, eax
mov byte [esp + 0x454], bl
lea ecx, [esp + 0x14]
jmp 0x41050f
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x454], 6
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x45c]
lea ecx, [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x20]
push 0x42144c
push eax
mov byte [esp + 0x464], 7
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x470]
lea ecx, [esp + 0x5c]
push ecx
push edx
lea eax, [esp + 0x28]
push 0x42144c
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
add esp, 0x20
push ebx
push 0
push 0
push 0x40c0d0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
mov esi, eax
test esi, esi
jne 0x4104f3
lea eax, [esp + 0x18]
push str._copy
lea ecx, [esp + 0x2c]
push eax
push ecx
call sub.MFC42.DLL_operator_2
push ecx
lea ecx, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x24], esp
push ecx
push eax
push edx
mov byte [esp + 0x464], 8
call sub.MFC42.DLL_operator
mov ecx, 0x422c90
call fcn.00402730
lea ecx, [esp + 0x28]
mov byte [esp + 0x454], 7
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x454], 6
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x454], bl
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x410524
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4102eb
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x2c]
mov byte [esp + 0x454], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x45c]
mov byte [esp + 0x454], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x460]
mov dword [esp + 0x454], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x448
ret 8