Function at 0x10005011
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10009bdf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.10007b30
test eax, eax
je 0x10005077
push 0x100fa408
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x3c]
jmp 0x10005346
lea ecx, [ebp + 0xc]
call fcn.10007960
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1000509b
push 0
lea ecx, [ebp + 0xc]
call fcn.10007960
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp + 8]
call fcn.10007970
sub eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.10007af0
movsx eax, al
cmp eax, 0x5c
je 0x100050c1
push 0x5c
lea ecx, [ebp + 8]
call fcn.1000902c
lea ecx, [ebp + 0xc]
call fcn.10007970
sub eax, 1
push eax
lea ecx, [ebp + 0xc]
call fcn.10007af0
movsx ecx, al
cmp ecx, 0x5c
je 0x100050e7
push 0x5c
lea ecx, [ebp + 0xc]
call fcn.1000902c
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x30]
call fcn.10008fd2
mov byte [ebp - 4], 2
push 0
push 0x100fa424
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x40]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x68]
call fcn.10007960
push eax
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFileFind::FindFile
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x14], 0
je 0x1000530e
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [ebp - 0x14], eax
push 0x100fa428
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFileFind::GetFileName
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.10007b50
and eax, 0xff
test eax, eax
jne 0x100051cc
push 0x100fa42c
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFileFind::GetFileName
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.10007b50
mov byte [ebp - 0x4c], al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x4c]
and edx, 0xff
test edx, edx
jne 0x100051cc
mov dword [ebp - 0x7c], 0
jmp 0x100051d3
mov dword [ebp - 0x7c], 1
mov al, byte [ebp - 0x7c]
mov byte [ebp - 0x44], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x44]
and ecx, 0xff
test ecx, ecx
je 0x100051f7
jmp 0x1000513b
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov byte [ebp - 4], 6
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 7
lea ecx, [ebp + 0xc]
call fcn.10007960
push eax
lea ecx, [ebp + 8]
call fcn.10007960
push eax
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::Replace
lea ecx, [ebp - 0x30]
call fcn.10007b10
test eax, eax
je 0x10005292
mov ecx, dword [ebp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
lea edx, [ebp - 0x38]
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
lea edx, [ebp - 0x34]
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 7
call fcn.10005011
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x10], eax
jmp 0x100052f1
lea ecx, [ebp - 0x38]
call fcn.10007960
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x38]
call fcn.10007960
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
call fcn.10008f9c
mov dword [ebp - 0x90], eax
call fcn.10001668
add esp, 4
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x100052f1
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x38]
call fcn.10007960
push eax
lea ecx, [ebp - 0x34]
call fcn.10007960
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
jmp 0x1000513b
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFileFind::Close
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x60], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret