Function at 0x405fc0
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4545c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
lea ecx, [esp + 0x10]
mov dword [esp + 0x5c], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_CString::CString_2
push 0x465418
lea eax, [esp + 0x50]
push 0x4692a4
push eax
mov byte [esp + 0x68], 2
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 3
call fcn.004149b6
lea ecx, [esp + 0x4c]
mov byte [esp + 0x5c], 2
call sub.MFC42.DLL_CString::CString
push 0x469090
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x469094
call fcn.004149b6
lea edx, [esp + 0x10]
lea ecx, [esp + 0x44]
push edx
call fcn.004149b6
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x34]
push ecx
call fcn.00407cc0
add esp, 8
lea edx, [esp + 0x30]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x68], 4
call sub.MFC42.DLL_operator
push str.cmd__c_rmdir
lea ecx, [esp + 0x44]
mov byte [esp + 0x60], 5
call fcn.004149aa
push str.cmd__c_rmdir
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 6
call fcn.004149aa
push str._nul_
lea edx, [esp + 0x4c]
push 0x469094
push edx
mov byte [esp + 0x68], 7
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], 8
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 9
call sub.MFC42.DLL_CString::CString_2
push str.cmd__c_rmdir
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 0xa
call fcn.004149ce
lea eax, [esp + 0x48]
lea ecx, [esp + 0x1c]
push eax
call fcn.004149b6
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x4c]
push ecx
push 0x465358
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 0xb
call fcn.004149b6
lea ecx, [esp + 0x4c]
mov byte [esp + 0x5c], 0xa
call sub.MFC42.DLL_CString::CString
push 0x465358
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push str.dogtmpdir
push ecx
lea edx, [esp + 0x18]
mov bl, 0xc
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
mov byte [esp + 0x68], bl
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x58]
push eax
call fcn.00407cc0
add esp, 8
lea ecx, [esp + 0x50]
push eax
push ecx
mov byte [esp + 0x68], 0xd
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 0xe
call fcn.004149b6
lea ecx, [esp + 0x4c]
mov byte [esp + 0x5c], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 0xf
call fcn.004149b6
mov byte [esp + 0x5c], bl
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x18]
lea eax, [esp + 0x50]
push edx
push 0x465358
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 0x10
call fcn.004149b6
lea ecx, [esp + 0x50]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
push 0x465358
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x30]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x60], 0x11
call fcn.004149b6
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 0x12
call fcn.004149b6
lea ecx, [esp + 0x50]
mov byte [esp + 0x5c], 0x11
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
lea ecx, [esp + 0x50]
push eax
push 0x465358
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 0x13
call fcn.004149b6
lea ecx, [esp + 0x50]
mov byte [esp + 0x5c], 0x11
call sub.MFC42.DLL_CString::CString
push 0x465358
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x14]
lea ecx, [esp + 0x3c]
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x4653b4
mov ecx, 0x469094
call sub.MFC42.DLL_CString::operator
push 0x465418
lea eax, [esp + 0x3c]
push 0x4692a4
push eax
call sub.MFC42.DLL_operator_2
push 0x469090
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 0x14
call sub.MFC42.DLL_CString::operator_1
push str.Dir800621.ini
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::operator
mov eax, dword [0x469268]
test eax, eax
je 0x40633f
push 0x465768
jmp 0x406344
push str.dogtmpdir
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
push str.dogtmpdir
lea edx, [esp + 0x2c]
push ecx
push edx
call sub.MFC42.DLL_operator_2
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov byte [esp + 0x68], 0x15
call sub.MFC42.DLL_operator
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push eax
mov byte [esp + 0x60], 0x16
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 2
je 0x406446
mov eax, dword [0x469268]
test eax, eax
jne 0x4063c1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.00412990
jmp 0x4063ff
mov eax, dword [esp + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov byte [esp + 0x68], 0x17
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x64], 0x16
call fcn.004134f0
add esp, 8
lea ecx, [esp + 0x44]
lea edx, [esp + 0x50]
push str.djp.txt
push ecx
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x60], 0x18
call fcn.004149b6
lea ecx, [esp + 0x50]
mov byte [esp + 0x5c], 0x16
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
push 0x80
push eax
call ebp
mov ecx, dword [esp + 0x24]
push ecx
call esi
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push 0x4692a4
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov byte [esp + 0x68], 0x19
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x64], 0x16
call fcn.004134f0
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], eax
call sub.MFC42.DLL_CString::CString_2
push 0x46574c
lea eax, [esp + 0x54]
push 0x4692a4
push eax
mov byte [esp + 0x68], 0x1a
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 0x1b
call fcn.004149b6
lea ecx, [esp + 0x50]
mov byte [esp + 0x5c], 0x1a
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x406637
mov ecx, dword [0x469098]
push ecx
call esi
mov edx, dword [0x469094]
push 0x80
push edx
call ebp
mov eax, dword [0x469094]
push eax
call esi
push ecx
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00412a80
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00412a80
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00412a80
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call edi
mov ecx, dword [esp + 0x34]
push ecx
call esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 0x16
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x5c], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x5c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x5c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov eax, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 0x16
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x5c], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x5c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x5c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret