Function at 0x4024ee
Capabilities:
Create directory
Delete directory
Delete file
Move file
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403a16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push esi
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.004015b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x402560
mov byte [ebp - 0x5c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42u.DLL_CString::CString
mov al, byte [ebp - 0x5c]
jmp 0x402e3e
lea ecx, [ebp + 0xc]
call fcn.00401dd0
test eax, eax
je 0x40259f
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42u.DLL_CString::CString
mov al, byte [ebp - 0x60]
jmp 0x402e3e
push 0x5c
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::ReverseFind
add eax, 1
mov dword [ebp - 0x38], eax
lea ecx, [ebp + 8]
call fcn.00402ee0
sub eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::Right
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::Left
mov byte [ebp - 4], 4
mov eax, 1
test eax, eax
je 0x4025f4
mov dword [ebp - 0xb8], 0
jmp 0x40260f
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 0x4060a4
call fcn.00401dc0
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov eax, 1
test eax, eax
je 0x402624
mov dword [ebp - 0xbc], 0
jmp 0x40263f
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push str.POS:___d____s_n
call fcn.00401dc0
add esp, 0xc
mov dword [ebp - 0xbc], eax
push 0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x68]
push edx
call sub.MFC42u.DLL_operator_2
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xc4]
call fcn.004015b0
push eax
lea ecx, [ebp + 8]
call fcn.004015b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x64], al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x68]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0x64]
and ecx, 0xff
test ecx, ecx
je 0x402831
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xb7
jne 0x4027d7
lea ecx, [ebp - 0x44]
call fcn.004031d8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.004031d8
mov byte [ebp - 4], 7
push 0x67
lea ecx, [ebp - 0x40]
call sub.MFC42u.DLL_CString::LoadStringW
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call sub.MFC42u.DLL_operator_2
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xcc]
call fcn.004015b0
push eax
push 0x4060e4
lea ecx, [ebp - 0x40]
call sub.MFC42u.DLL_CString::Replace
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6c]
call sub.MFC42u.DLL_CString::CString
push 0x68
lea ecx, [ebp - 0x44]
call sub.MFC42u.DLL_CString::LoadStringW
push 4
lea ecx, [ebp - 0x44]
call fcn.004015b0
push eax
lea ecx, [ebp - 0x40]
call fcn.004015b0
push eax
mov ecx, dword [ebp - 0xb4]
call sub.MFC42u.DLL_CWnd::MessageBoxW
cmp eax, 7
jne 0x4027bd
mov byte [ebp - 0x70], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42u.DLL_CString::CString
mov al, byte [ebp - 0x70]
jmp 0x402e3e
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call sub.MFC42u.DLL_CString::CString
jmp 0x402831
push 0
push str.CreateDirectoryEx
call fcn.00401954
add esp, 8
mov byte [ebp - 0x74], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42u.DLL_CString::CString
mov al, byte [ebp - 0x74]
jmp 0x402e3e
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 9
push 0
push str..
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x78]
push ecx
call sub.MFC42u.DLL_operator_1
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], edx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xd4]
call fcn.004015b0
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CFileFind::FindFile
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x78]
call sub.MFC42u.DLL_CString::CString
cmp dword [ebp - 0x18], 0
je 0x402d71
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CFileFind::FindNextFileW
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CFileFind::IsDots
test eax, eax
je 0x4028ad
jmp 0x40288a
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CFileFind::GetFilePath
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x4c]
call fcn.004015b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x48]
call sub.MFC42u.DLL_CString::CString_2
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CFileFind::GetFileName
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x50]
call fcn.00402ee0
mov esi, eax
lea ecx, [ebp - 0x48]
call fcn.00402ee0
sub esi, eax
push esi
lea edx, [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CString::Left
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CString::operator
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x7c]
call sub.MFC42u.DLL_CString::CString
push str..bak
lea ecx, [ebp - 0x48]
call fcn.00402f00
test eax, eax
jne 0x402984
lea ecx, [ebp - 0x4c]
call fcn.004015b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x48]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4c]
call sub.MFC42u.DLL_CString::CString
jmp 0x40288a
push str..set
lea ecx, [ebp - 0x48]
call fcn.00402f00
test eax, eax
je 0x4029aa
push str..sin
lea ecx, [ebp - 0x48]
call fcn.00402f00
test eax, eax
jne 0x402b94
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x58]
call sub.MFC42u.DLL_CString::CString_1
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x54]
call fcn.004031d8
mov byte [ebp - 4], 0x10
push 0x406140
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CString::Find
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CString::Left
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], ecx
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0xe4]
push edx
lea ecx, [ebp - 0x54]
call sub.MFC42u.DLL_CString::operator
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x80]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x54]
call fcn.00402ee0
push eax
push 0
lea ecx, [ebp - 0x58]
call sub.MFC42u.DLL_CString::Delete
lea ecx, [ebp + 0xc]
call fcn.004015b0
push eax
lea ecx, [ebp - 0x10]
call fcn.004015b0
push eax
lea ecx, [ebp - 0x58]
call sub.MFC42u.DLL_CString::Replace
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0x406144
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x84]
push edx
call sub.MFC42u.DLL_operator_2
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0xec]
push ecx
lea edx, [ebp - 0x88]
push edx
call sub.MFC42u.DLL_operator_1
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], eax
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0xf4]
push ecx
lea edx, [ebp - 0x8c]
push edx
call sub.MFC42u.DLL_operator_2
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], eax
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0xfc]
push ecx
lea edx, [ebp - 0x90]
push edx
call sub.MFC42u.DLL_operator_2
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x104]
push ecx
lea edx, [ebp - 0x94]
push edx
call sub.MFC42u.DLL_operator_2
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CString::operator
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x94]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x90]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x8c]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x88]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x84]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x54]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x58]
call sub.MFC42u.DLL_CString::CString
jmp 0x402cab
lea ecx, [ebp + 0xc]
call fcn.004015b0
push eax
lea ecx, [ebp - 0x10]
call fcn.004015b0
push eax
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CString::Replace
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x50]
push eax
push 0x406148
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x98]
push eax
call sub.MFC42u.DLL_operator_2
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], ecx
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x9c]
push eax
call sub.MFC42u.DLL_operator_1
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x11c]
push edx
lea eax, [ebp - 0xa0]
push eax
call sub.MFC42u.DLL_operator_2
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x124], ecx
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x124]
push edx
lea eax, [ebp - 0xa4]
push eax
call sub.MFC42u.DLL_operator_2
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], ecx
mov byte [ebp - 4], 0x1a
mov edx, dword [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CString::operator
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0xa4]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xa0]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x9c]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x98]
call sub.MFC42u.DLL_CString::CString
push 0
lea ecx, [ebp - 0x50]
call fcn.004015b0
push eax
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
je 0x402d1b
push 1
push 0x40614c
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xa8]
push ecx
call sub.MFC42u.DLL_operator_1
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x134], edx
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x134]
call fcn.004015b0
push eax
lea ecx, [ebp - 0x50]
call fcn.004015b0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xa8]
call sub.MFC42u.DLL_CString::CString
push 1
lea ecx, [ebp - 0x50]
call fcn.004015b0
push eax
lea ecx, [ebp - 0x4c]
call fcn.004015b0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x402d48
push 0
push str.MoveFileEx
call fcn.00401954
add esp, 8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x48]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4c]
call sub.MFC42u.DLL_CString::CString
jmp 0x40288a
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CFileFind::Close
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xac]
push edx
call sub.MFC42u.DLL_operator_2
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x13c]
call fcn.004015b0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xac]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 8]
call fcn.004015b0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x402de6
push 1
push str.RemoveDirectory
call fcn.00401954
add esp, 8
mov byte [ebp - 0xb0], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.004033a6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42u.DLL_CString::CString
mov al, byte [ebp - 0xb0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc