Function at 0x447930
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4f1478
push 0x499c10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
sub esp, 0xa78
mov eax, dword [0x4f4008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0xa74], esi
lea eax, [ebp - 0xa88]
push eax
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0xa8c]
push eax
lea eax, [ebp - 0xa78]
push eax
call fcn.00448c10
lea edi, [esi + 0x30]
mov dword [ebp - 0xa7c], edi
mov ecx, dword [edi]
mov eax, dword [ebp - 0xa78]
mov dword [ecx + 0x4f1d8], eax
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00448110
test eax, eax
je 0x4480b2
push ecx
mov ecx, esi
call fcn.004482a0
test eax, eax
je 0x4480bb
mov ecx, esi
call fcn.00448430
test eax, eax
je 0x4480c4
mov ecx, esi
call fcn.00448580
test eax, eax
je 0x4480cd
push dword [ebp - 0xa88]
mov ecx, esi
call fcn.00448720
test eax, eax
je 0x4480d6
mov eax, dword [esi + 0x74]
inc eax
mov dword [esi + 0x74], eax
mov ecx, dword [edi]
call fcn.00402080
mov edx, dword [0x509160]
mov ecx, dword [edi]
mov eax, dword [0x509168]
mov dword [ecx + 0x5714c], eax
mov dword [ecx + 0x57138], edx
mov ecx, esi
call fcn.004487b0
test eax, eax
je 0x4480df
mov ecx, esi
call fcn.00448860
test eax, eax
je 0x4480e8
push dword [ebp - 0xa8c]
mov ecx, esi
call fcn.004489d0
test eax, eax
je 0x4480f1
inc dword [esi + 0x74]
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [ebp - 0xa80]
mov ecx, esi
call fcn.00448a20
test eax, eax
je 0x4480fa
inc dword [esi + 0x74]
mov ecx, dword [edi]
call fcn.00402ae0
inc dword [esi + 0x74]
mov ecx, dword [edi]
call fcn.00402d60
mov dword [ebp - 4], 0xfffffffe
mov dword [esi + 0x70], 1
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.0044b340
mov dword [ebp - 0xa90], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x447af1
mov edx, dword [esi + 4]
test edx, edx
je 0x447d0a
cmp dword [0x509164], 0
je 0x447cf5
mov ecx, dword [0x4fc0fc]
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x70c], eax
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x710], eax
mov eax, dword [edx + 8]
mov dword [ecx + 0x714], eax
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x718], eax
mov eax, dword [edx + 4]
mov dword [ecx + 0x71c], eax
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x720], eax
lea ecx, [ebp - 0x250]
call fcn.0048c9c0
mov eax, dword [0x4fc0fc]
mov dword [ebp - 0xa74], eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
test ecx, ecx
jne 0x447b82
push ecx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.gamemenu.dat
lea eax, [ebp - 0x250]
push eax
push 0x4d4fd0
lea eax, [ebp - 0x458]
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
call edi
add esp, 0xc
xor edx, edx
lea ecx, [ebp - 0x458]
call fcn.00491960
add esp, 4
mov dword [ebp - 0xa78], eax
test eax, eax
je 0x447cfb
movq xmm0, qword [str.SMNU]
movq qword [ebp - 0x30], xmm0
mov cx, word [0x4dc904]
mov word [ebp - 0x28], cx
mov cl, byte [ebp - 0x30]
mov byte [ebp - 0xa84], cl
mov eax, dword [ebp - 0x30]
shr eax, 0x10
mov byte [ebp - 0xa83], al
mov al, byte [ebp - 0x2c]
mov byte [ebp - 0xa82], al
mov eax, dword [ebp - 0x2c]
shr eax, 0x10
mov byte [ebp - 0xa81], al
mov edx, dword [ebp - 0xa84]
mov eax, dword [ebp - 0xa78]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ecx + eax], edx
mov dword [ecx + eax + 4], 0x50d
mov eax, dword [ebp - 0xa78]
add dword [eax + 4], 8
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xa74]
mov eax, dword [eax + 0x70c]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xa78]
add dword [eax + 4], 4
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xa74]
mov eax, dword [eax + 0x710]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xa78]
add dword [eax + 4], 4
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xa74]
mov eax, dword [eax + 0x714]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xa78]
add dword [eax + 4], 4
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xa74]
mov eax, dword [eax + 0x718]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xa78]
add dword [eax + 4], 4
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xa74]
mov eax, dword [eax + 0x71c]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xa78]
add dword [eax + 4], 4
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xa74]
mov eax, dword [eax + 0x720]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xa78]
add dword [eax + 4], 4
mov ecx, eax
call fcn.00491aa0
push 0x48
push dword [esi + 4]
call fcn.00495890
add esp, 8
jmp 0x447d10
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x48
push dword [esi + 4]
call fcn.00495890
add esp, 8
jmp 0x447d10
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x4fc008]
test eax, eax
je 0x447d3d
push 0x34
push eax
call fcn.00495890
add esp, 8
mov ecx, dword [0x4fbf98]
test ecx, ecx
je 0x447d33
call fcn.004914c0
mov dword [0x4fbf98], 0
mov esi, dword [ebp - 0xa7c]
mov ecx, dword [esi]
call fcn.00416cb0
mov esi, dword [esi]
mov ecx, dword [esi + 0x571cc]
test ecx, ecx
je 0x447d5b
call fcn.004914c0
mov dword [esi + 0x571cc], 0
mov ecx, dword [esi + 0x571dc]
test ecx, ecx
je 0x447d74
call fcn.004914c0
mov dword [esi + 0x571dc], 0
mov ecx, dword [esi + 0x571e4]
test ecx, ecx
je 0x447d8e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x571e0]
test ecx, ecx
je 0x447d9d
call fcn.004914c0
mov dword [esi + 0x571e0], 0
mov ecx, dword [esi + 0x571d0]
test ecx, ecx
je 0x447db6
call fcn.004914c0
mov dword [esi + 0x571d0], 0
mov ecx, dword [esi + 0x571d4]
test ecx, ecx
je 0x447dcf
call fcn.004914c0
mov dword [esi + 0x571d4], 0
mov ecx, dword [esi + 0x571d8]
test ecx, ecx
je 0x447de8
call fcn.004914c0
mov dword [esi + 0x571d8], 0
mov eax, dword [ebp - 0xa7c]
mov esi, dword [eax]
test esi, esi
je 0x447e13
mov ecx, esi
call fcn.00401de0
push 0x57254
push esi
call fcn.00495890
add esp, 8
mov edx, dword [0x4fbef8]
test edx, edx
je 0x447f08
movups xmm0, xmmword [str.keyboard]
movups xmmword [ebp - 0x48], xmm0
mov ax, word [0x4d5860]
mov word [ebp - 0x38], ax
mov ecx, 1
mov dword [ebp - 0xa74], ecx
mov eax, dword [edx + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x447f08
nop
test ecx, ecx
je 0x447ee0
cmp dword [0x509164], 0
je 0x447ea1
lea eax, [ebp - 0xa7c]
push eax
push 0
push 0
push 0x4bf480
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
push str.SRPG_Studio
push dword [ebp - 0xa7c]
push 0x4d4fd0
lea eax, [ebp - 0x660]
push eax
call edi
add esp, 0x10
push dword [ebp - 0xa7c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x447eb9
mov eax, dword [0x4fc0fc]
add eax, 0x9a0
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.game.ini
lea eax, [ebp - 0x660]
push eax
push 0x4d4fd0
lea eax, [ebp - 0x868]
push eax
call edi
add esp, 0x10
mov dword [ebp - 0xa74], 0
lea eax, [ebp - 0x868]
push eax
push dword [esi + 0x10]
push dword [esi + 0xc]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, dword [esi + 4]
test esi, esi
mov ecx, dword [ebp - 0xa74]
jne 0x447e50
mov eax, dword [0x4fbf74]
test eax, eax
je 0x448010
movups xmm0, xmmword [str.gamepad]
movups xmmword [ebp - 0x34], xmm0
mov ecx, 1
mov dword [ebp - 0xa74], ecx
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x448010
nop dword [eax]
test ecx, ecx
je 0x447fd0
cmp dword [0x509164], 0
je 0x447f91
lea eax, [ebp - 0xa7c]
push eax
push 0
push 0
push 0x4bf480
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
push str.SRPG_Studio
push dword [ebp - 0xa7c]
push 0x4d4fd0
lea eax, [ebp - 0x458]
push eax
call edi
add esp, 0x10
push dword [ebp - 0xa7c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x447fa9
mov eax, dword [0x4fc0fc]
add eax, 0x9a0
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.game.ini
lea eax, [ebp - 0x458]
push eax
push 0x4d4fd0
lea eax, [ebp - 0xa70]
push eax
call edi
add esp, 0x10
mov dword [ebp - 0xa74], 0
push dword [esi + 8]
push 0x4c44b4
lea eax, [ebp - 0x248]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0xa70]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [esi + 0xc]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, dword [esi + 4]
test esi, esi
mov ecx, dword [ebp - 0xa74]
jne 0x447f40
mov eax, dword [ebp - 0xa90]
jmp 0x448094
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00495852
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push 0
call fcn.00499fd1
push 0
push 0
call fcn.00499fd1
push 0
push 0
call fcn.00499fd1
push 0
push 0
call fcn.00499fd1
push 0
push 0
call fcn.00499fd1
push 0
push 0
call fcn.00499fd1
push 0
push 0
call fcn.00499fd1
push 0
push 0
call fcn.00499fd1
push 0
push 0
call fcn.00499fd1
int3