Function at 0x1000228f
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov eax, 0x10028d6b
call fcn.10028aec
sub esp, 0xf8
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebx, ebx
push ebx
push ebx
call edi
mov esi, eax
push ebx
lea ecx, [esi - 1]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.10002829
cmp dword [ebp - 0x48], 7
lea ecx, [ebp - 0x5c]
cmova ecx, dword [ebp - 0x5c]
push ecx
push esi
call edi
push str.Game.ini
lea edx, [ebp - 0x5c]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xbc]
call fcn.10003c03
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.10003006
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x2c]
push 0x103
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.1000400d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xbc]
cmp dword [ebp - 0xa8], 7
lea eax, [ebp - 0x2c]
cmova ecx, dword [ebp - 0xbc]
cmp dword [ebp - 0x18], 7
push ecx
cmova eax, dword [ebp - 0x2c]
push 0x104
push eax
push ebx
push str.Library
push str.Game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10002639
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x1000263e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RGSSEval
push esi
call edi
mov ebx, eax
test ebx, ebx
jne 0x100023a3
lea eax, [ebp - 0x2c]
mov edx, str.Failed_to_get_address_of_RGSSEval_from
push eax
lea ecx, [ebp - 0xd4]
call fcn.10003f1e
pop ecx
mov byte [ebp - 4], 6
jmp 0x10002668
push str.RGSSErrorMessage
push esi
call edi
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x100023d0
lea eax, [ebp - 0x2c]
mov edx, str.Failed_to_get_address_of_RGSSErrorMessage_from
push eax
lea ecx, [ebp - 0xd4]
call fcn.10003f1e
pop ecx
mov byte [ebp - 4], 7
jmp 0x10002668
lea ecx, [ebp - 0xa4]
call fcn.1000557d
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.10005668
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 7
jbe 0x100023f8
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0xec]
call fcn.1000543a
lea ecx, [ebp - 0x8c]
call fcn.10003006
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xc
call fcn.10003006
lea ecx, [ebp - 0x104]
call fcn.100055c7
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 7
jbe 0x10002436
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.1000543a
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0xf
call fcn.10003006
mov edx, dword [ebp - 0x30]
lea edi, [ebp - 0x44]
mov esi, dword [ebp - 0x44]
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
cmp edx, 0xf
cmova edi, esi
add edi, ecx
cmp edx, 0xf
cmova eax, esi
cmp eax, edi
je 0x10002486
cmp byte [eax], 0x5c
jne 0x10002478
mov byte [eax], 0x2f
inc eax
cmp eax, edi
jne 0x10002470
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x44]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 0x18
jb 0x1000266f
push ecx
cmp edx, 0xf
lea eax, [ebp - 0x44]
cmova eax, esi
push eax
push 0x18
push ecx
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x8c]
call fcn.10004be8
push 1
push 0x10032200
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x10
call fcn.1000305a
push eax
lea ecx, [ebp - 0xa4]
call fcn.100028df
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0xa4]
call fcn.100028be
push eax
lea ecx, [ebp - 0x74]
call fcn.100028df
push 0xc
push str._RgssMod.rb
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x12
call fcn.1000305a
push eax
lea ecx, [ebp - 0x5c]
call fcn.100028df
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0xf
cmova eax, dword [ebp - 0x5c]
push eax
call ebx
pop ecx
lea ecx, [ebp - 0x5c]
mov edi, eax
call fcn.10003034
lea ecx, [ebp - 0x74]
call fcn.10003034
lea ecx, [ebp - 0xa4]
call fcn.10003034
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xf
call fcn.10003034
test edi, edi
je 0x10002604
call dword [ebp - 0x14]
mov edx, edi
lea ecx, [ebp - 0xd4]
mov esi, eax
call fcn.10001421
push 0x18
push ecx
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x14
call fcn.10004c6b
push eax
lea ecx, [ebp - 0x8c]
call fcn.100027ee
push 0x10032220
lea edx, [ebp - 0x8c]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xa4]
call fcn.10003c03
pop ecx
push esi
mov edx, eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x74]
call fcn.10003c03
pop ecx
lea ecx, [ebp - 0xa4]
call fcn.10003006
lea ecx, [ebp - 0x8c]
call fcn.10003006
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x1a
call fcn.10003006
cmp dword [ebp - 0x60], 7
lea edx, [ebp - 0x74]
push dword [ebp - 0x64]
cmova edx, dword [ebp - 0x74]
call fcn.100050cc
pop ecx
mov edx, 0x1003225c
mov ecx, eax
call fcn.10003c63
lea ecx, [ebp - 0x74]
call fcn.10005412
lea ecx, [ebp - 0x74]
call fcn.10003006
lea ecx, [ebp - 0x44]
call fcn.10003034
lea ecx, [ebp - 0xec]
call fcn.10003034
lea ecx, [ebp - 0x2c]
call fcn.10003006
lea ecx, [ebp - 0xbc]
call fcn.10003006
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
call fcn.100058d8
push str.Failed_to_load
lea ecx, [ebp - 0xd4]
call fcn.10002853
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x104]
call fcn.10003c41
pop ecx
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.100058ca
call fcn.10001416
int3