Function at 0x405db0
Capabilities:
Create directory
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x472ec6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [0x4942ec]
lea ecx, [esp + 0x14]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x1b8], esi
call fcn.00468ac0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b4], 1
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b0], 0
call fcn.00465724
cmp dword [esp + 0x1bc], esi
je 0x405ec6
lea edx, [ebx + 0x1ac]
push edx
call dword [sym.imp.MSVCRT.dll__wmkdir]
mov esi, dword [sym.imp.MSVCRT.dll__wfopen]
lea ebp, [ebx + 0x3b4]
push 0x48c6ec
push ebp
call esi
mov edi, eax
add esp, 0xc
test edi, edi
je 0x405e86
mov eax, dword [ebx + 0x5bc]
mov esi, dword [sym.imp.MSVCRT.dll_fwprintf]
push eax
push str._sprit__npanelpage_d
push edi
call esi
mov ecx, dword [ebx + 0x5c0]
add esp, 0xc
push ecx
push 0x48c6a8
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x10
jmp 0x4060ad
push 0x48c6a4
push ebp
mov dword [ebx + 0x5c0], 1
call esi
mov edi, eax
add esp, 8
test edi, edi
je 0x4060ad
mov edx, dword [ebx + 0x5bc]
mov esi, dword [sym.imp.MSVCRT.dll_fwprintf]
push edx
push str._sprit__npanelpage_d
push edi
call esi
mov eax, dword [ebx + 0x5c0]
add esp, 0xc
push eax
jmp 0x405e6f
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xe2]
mov word [esp + 0xe0], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x48c0bc
push 0x63
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x18]
push 0x48c68c
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
lea edx, [esp + 0x20]
push 0x48c688
push edx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
add esp, 0x10
cmp ebp, esi
je 0x405f9e
push ebp
lea eax, [esp + 0xe4]
push 0x64
push eax
call dword [sym.imp.MSVCRT.dll_fgetws]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x405f92
push str.Users
push esi
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x405f42
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
lea ecx, [eax + eax - 0xc]
add esi, 0xc
mov edx, ecx
lea edi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor esi, esi
xor eax, eax
lea ecx, [esp + 0x18]
cmp word [ecx], 0xa
je 0x405fb5
inc eax
add ecx, 2
cmp eax, 0x64
jl 0x405fa4
jmp 0x405fba
mov word [esp + eax*2 + 0x18], si
mov edi, dword [esp + 0x1b8]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esp + 0x18]
push edi
push eax
push str.._s_d
lea ecx, [ebx + 0x1ac]
push 0x103
push ecx
call esi
add esp, 0x14
lea edx, [esp + 0x18]
lea ebp, [ebx + 0x3b4]
push edi
push edx
push str.._s_dgamecomm.ini
push 0x103
push ebp
call esi
push 0x48c638
push ebp
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x406099
mov ebp, dword [sym.imp.MSVCRT.dll__wtoi]
push edi
lea eax, [esp + 0xe4]
push 0x64
push eax
call dword [sym.imp.MSVCRT.dll_fgetws]
add esp, 0xc
test eax, eax
je 0x40608d
mov esi, dword [sym.imp.MSVCRT.dll_wcsstr]
lea ecx, [esp + 0xe0]
push str.panelpage
push ecx
call esi
add esp, 8
test eax, eax
je 0x406064
lea edx, [esp + 0xf4]
push edx
call ebp
add esp, 4
mov dword [ebx + 0x5bc], eax
jmp 0x40601b
lea eax, [esp + 0xe0]
push str.showtip
push eax
call esi
add esp, 8
test eax, eax
je 0x40601b
lea ecx, [esp + 0xf0]
push ecx
call ebp
add esp, 4
mov dword [ebx + 0x5c0], eax
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x4060ad
mov dword [ebx + 0x5bc], 0
mov dword [ebx + 0x5c0], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x1b0], 0xffffffff
call fcn.00465724
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a4
ret 8