Function at 0x402450
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x415e5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x83c
push ebx
lea ecx, [esp + 0x20]
call fcn.0040cb20
lea ecx, [esp + 4]
mov dword [esp + 0x848], 0
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x848], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x848], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x848], 3
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x18], 0x41aa6c
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x40]
push 0x400
mov bl, 5
push eax
push 0
mov byte [esp + 0x854], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 8]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x84c], 6
call fcn.0041529c
lea ecx, [esp + 8]
mov byte [esp + 0x848], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0xc]
push 0x421618
lea ecx, [esp + 0xc]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x84c], 7
call fcn.0041529c
lea ecx, [esp + 8]
mov byte [esp + 0x848], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0x440]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x440]
lea edx, [esp + 4]
push ecx
push 0x421abc
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 4]
push 0x2f
push 0x5c
call sub.MFC42.DLL_CString::Replace
push str.CORENETV1
mov ecx, 0x424e00
mov dword [0x424dfc], 4
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 4]
mov ecx, 0x424e0c
push eax
call fcn.0041529c
push str.picaop.exe
mov ecx, 0x424e10
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 4]
push ecx
mov ecx, 0x424e14
call fcn.0041529c
push str.picaen.opc
mov ecx, 0x424e18
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 4]
mov ecx, 0x424e24
push edx
call fcn.0041529c
push str.event.log
mov ecx, 0x424e28
call sub.MFC42.DLL_CString::operator_1
push 0x424e0c
mov ecx, 0x424e1c
call fcn.0041529c
push str.picaac.inf
mov ecx, 0x424e20
call sub.MFC42.DLL_CString::operator_1
push str.1970_01_01_23:59:59
mov ecx, 0x424ea4
mov dword [0x424ea8], 0
call sub.MFC42.DLL_CString::operator_1
push str.crtver.ini
mov ecx, 0x424e9c
call sub.MFC42.DLL_CString::operator_1
push 0x424e0c
mov ecx, 0x424e44
call fcn.0041529c
push str.SOFTWARECoreNet
mov ecx, 0x424e4c
mov dword [0x424e40], 0x3e9
mov dword [0x424e48], 0x80000001
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 8]
lea ecx, [esp + 0x20]
push eax
call fcn.0040cd60
mov ecx, dword [eax]
push str.Temp
push ecx
lea edx, [esp + 0x18]
push str._s__s
push edx
mov byte [esp + 0x858], 8
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 8]
mov byte [esp + 0x848], bl
call sub.MFC42.DLL_CString::CString
push 0x421ac4
push 0x421618
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace_1
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x424e38
call fcn.0041529c
mov dword [esp + 0x18], 0x41aa6c
lea ecx, [esp + 0x18]
mov byte [esp + 0x848], 9
call sub.MFC42.DLL_CMenu::DestroyMenu
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0x41aa44
mov byte [esp + 0x848], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x848], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x848], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x848], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x848], 0xffffffff
call fcn.0040cbd0
mov ecx, dword [esp + 0x840]
pop ebx
mov dword fs:[0], ecx
add esp, 0x848
ret