Function at 0x412d30
Capabilities:
Copy file
Create directory
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x455c39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x184], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x184], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x184], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x184], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x184], 6
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov byte [esp + 0x184], 7
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x18c]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x188], 8
call fcn.004149b6
lea ecx, [esp + 0x1c]
push 0x465418
lea edx, [esp + 0x28]
push ecx
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x188], 9
call fcn.004149b6
lea ecx, [esp + 0x24]
mov byte [esp + 0x184], 8
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
call fcn.004149b6
lea ecx, [esp + 0x190]
push 0x465418
lea edx, [esp + 0x28]
push ecx
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], 0xa
call fcn.004149b6
lea ecx, [esp + 0x24]
mov byte [esp + 0x184], 8
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
call fcn.004149b6
push 0x465174
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x38], edi
jne 0x412f48
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x30]
mov byte [esp + 0x184], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x184], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x184], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x184], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x184], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x184], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18c]
mov byte [esp + 0x184], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x190]
mov dword [esp + 0x184], edi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4132a7
mov ebx, dword [esp + 0x194]
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [esp + 0x68]
push 0x465170
push eax
call esi
test eax, eax
je 0x41317b
lea ecx, [esp + 0x68]
push 0x46516c
push ecx
call esi
test eax, eax
je 0x41317b
test byte [esp + 0x3c], 0x10
je 0x413065
lea edx, [esp + 0x68]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x188], 0xb
call fcn.004149b6
lea ecx, [esp + 0x24]
mov byte [esp + 0x184], 8
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
push 0
push 0
push 0xffffffffffffffff
push edx
push 0
push 0
call ebp
lea eax, [eax + eax + 0xc]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
lea edx, [esp + 0x18]
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00413760
add esp, 8
cmp ebx, 2
je 0x41300d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
je 0x41301a
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
push ebx
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x38], esp
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
mov byte [esp + 0x19c], 0xc
call sub.MFC42.DLL_operator_2
mov byte [esp + 0x190], 8
call fcn.00412d30
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
jmp 0x413180
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x68]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x14]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call ebp
lea ecx, [eax + eax + 0xc]
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push 0
push 0
push 0xffffffffffffffff
push edx
push 0
push 0
call ebp
lea eax, [eax + eax + 0xc]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 0x14]
mov edi, eax
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00413760
add esp, 8
lea eax, [esp + 0x10]
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00413760
mov ecx, dword [esp + 0x1c]
add esp, 8
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, ebx
sub eax, 0
je 0x413127
dec eax
je 0x41311b
dec eax
jne 0x41312f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41312f
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x41312f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test esi, esi
je 0x41313c
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
test edi, edi
je 0x413149
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea edx, [esp + 0x20]
lea ecx, [esp + 0x14]
push edx
call fcn.004149b6
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
call fcn.004149b6
mov eax, dword [0x4690f4]
mov edi, dword [esp + 0x38]
inc eax
lea ecx, [esp + 0x3c]
mov dword [0x4690f4], eax
push ecx
jmp 0x413180
lea edx, [esp + 0x3c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x412f55
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 1
je 0x413200
mov eax, dword [esp + 0x18c]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call ebp
lea ecx, [eax + eax + 0xc]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
lea edx, [esp + 0x18c]
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00413760
add esp, 8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test esi, esi
je 0x413200
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x184], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x184], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x184], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x184], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x184], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x184], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18c]
mov byte [esp + 0x184], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x190]
mov dword [esp + 0x184], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x178
ret