Function at 0x450be0
Capabilities:
Get common file path
Terminate process

Disassembly:
sub esp, 0x200
push ebx
push ebp
push esi
push edi
push str.SDL_DISABLE_LOCK_KEYS1
call sub.SDL.dll_SDL_putenv
add esp, 4
push 0xffff
call sub.SDL.dll_SDL_Init
add esp, 4
xor ebx, ebx
push str.MUGEN
push str.X.S.C.
mov dword [0x52b0dc], ebx
mov byte [0x52bf60], bl
mov byte [0x52be60], bl
call sub.SDL.dll_SDL_WM_SetCaption
call fcn.00450b80
push str.Allocating_game_variables_n
call fcn.00444320
add esp, 0xc
push 0x12470
mov ebp, 1
push ebp
call dword [sym.imp.MSVCR90.dll_calloc]
add esp, 8
cmp eax, ebx
jne 0x450c6c
push str.Cant_allocate_game_variables._n_n
mov dword [0x52b0d8], ebp
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
push ebp
call dword [sym.imp.MSVCR90.dll_exit]
mov dword [0x52b40c], eax
add eax, 0x200
push 0x200
push eax
call dword [sym.imp.MSVCR90.dll__getcwd]
mov edx, dword [0x52b40c]
add esp, 8
test eax, eax
je 0x450cf5
lea edi, [edx + 0x200]
mov eax, edi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x450ca0
sub eax, esi
cmp byte [eax + edx + 0x1ff], 0x5c
jne 0x450cc8
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x450cb8
sub eax, esi
mov byte [eax + edx + 0x1ff], bl
mov eax, edi
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x450cd0
sub eax, esi
cmp byte [eax + edx + 0x1ff], 0x2f
je 0x450cf5
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x450ce4
mov ax, word [0x49d254]
mov word [edi], ax
cmp byte [esp + 0x5a0], bl
je 0x450d8b
push 0x200
lea ecx, [edx + 0x200]
push ecx
push edx
mov byte [edx], bl
call dword [sym.imp.MSVCR90.dll_strncat]
lea edx, [esp + 0x5ac]
add esp, 0xc
push edx
call dword [sym.imp.MSVCR90.dll__chdir]
add esp, 4
test eax, eax
je 0x450d8b
mov edx, dword [0x52b40c]
add edx, 0x1205c
mov edi, edx
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x450d40
mov ecx, 7
mov esi, str._nCould_not_change_to_gamedir
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x5a0]
movsw word es:[edi], word [esi]
mov esi, eax
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x450d60
sub eax, esi
dec edx
mov edi, edx
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x450d70
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call int.00443e80
push str.Reading_configuration_file...
call fcn.00444320
add esp, 4
call fcn.0048d770
test eax, eax
jne 0x450dcb
mov eax, dword [0x52b40c]
lea edi, [eax + 0x1205c]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x450db0
mov ecx, 7
mov esi, str._nError_reading_data_xsc01.cfg
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call int.00443e80
push 0x49fcac
call fcn.00444320
mov edx, dword [0x52b40c]
add esp, 4
cmp dword [esp + 0x7a4], ebx
je 0x450ded
mov dword [edx + 0x1187c], ebp
cmp dword [esp + 0x39c], ebx
je 0x450e3e
lea esi, [edx + 0x11930]
mov dword [edx + 0x1192c], ebp
lea eax, [esp + 0x3a0]
mov edx, esi
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, ebp
cmp cl, bl
jne 0x450e10
push 0x49e430
push esi
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
cmp eax, ebx
je 0x450e38
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov edx, dword [0x52b40c]
lea edi, [edx + 0x11b30]
mov ecx, 0x13
lea esi, [esp + 0x7b0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x80c]
mov dword [edx + 0x12460], eax
mov ecx, dword [esp + 0x810]
mov dword [edx + 0x1246c], ecx
mov eax, dword [esp + 0x7a8]
mov dword [edx + 0x11b70], eax
mov ecx, dword [esp + 0x808]
mov dword [edx + 0x10ec8], ecx
mov eax, dword [esp + 0x804]
mov dword [edx + 0x10ec4], eax
cmp byte [esp + 0x258], bl
jne 0x450ea7
mov ecx, dword [esp + 0x214]
mov dword [ecx], ebp
jmp 0x450ead
mov dword [edx + 0x12044], ebp
push str.Initializing_timer...
call fcn.00444320
add esp, 4
cmp dword [0x52b3c8], ebx
jne 0x450ec7
call fcn.00437320
cmp dword [0x52b3cc], ebx
je 0x450edc
push str.performance_timer_enabled...
call fcn.00444320
add esp, 4
mov edx, dword [0x52b844]
mov eax, dword [0x52b840]
push edx
push eax
push str.frequency__lli...
call fcn.00444320
add esp, 0xc
push 0x49fcac
call fcn.00444320
add esp, 4
push str.Initializing_keyboard...
call fcn.00444320
mov esi, dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
push str.Initializing_keyboard._n
call esi
add esp, 4
call fcn.00414a40
push str.configuring...
call fcn.00444320
add esp, 4
push ebx
push ebx
mov dword [0x52b35c], 2
mov dword [0x52a9ec], ebx
mov dword [0x52a9e8], ebx
mov dword [0x4a907c], ebx
call sub.SDL.dll_SDL_EnableKeyRepeat
push 0x49fcac
mov dword [0x4a9080], ebx
mov dword [0x52a5e0], ebp
call fcn.00444320
add esp, 0xc
push str.Initializing_input_engine...
call fcn.00444320
add esp, 4
call fcn.004519a0
call fcn.00411bf0
test eax, eax
jne 0x450f93
push str.Cant_init_input
call fcn.00444120
push 0x49fcac
call fcn.00444320
add esp, 4
push str.Initializing_sound...
call fcn.00444320
add esp, 4
push str.Initializing_sound...
call esi
add esp, 4
cmp dword [esp + 0x7a0], ebx
je 0x450fe9
mov ecx, dword [0x52b40c]
push str.sound_is_disabled_n
mov dword [ecx + 0x10e8c], ebx
mov dword [0x52b370], ebx
call fcn.00444320
add esp, 4
push str.sound_is_disabled_n
call esi
add esp, 4
mov ecx, dword [0x52b40c]
cmp dword [ecx + 0x10e8c], ebx
je 0x451141
mov edx, dword [ecx + 0x118a8]
mov eax, dword [ecx + 0x118a4]
mov ebx, dword [ecx + 0x11884]
push edx
mov edx, dword [ecx + 0x11880]
push eax
mov eax, dword [ecx + 0x11874]
push edx
push eax
mov eax, dword [ecx + 0x11888]
mov ecx, dword [ecx + 0x1188c]
call fcn.00415070
add esp, 0x10
test eax, eax
jne 0x451062
mov ecx, dword [0x52b40c]
xor edi, edi
push str.Could_not_initialize_sound_mixer._n
mov dword [ecx + 0x10e8c], edi
mov dword [0x52b370], edi
call fcn.00444320
add esp, 4
push str.Could_not_initialize_sound_mixer._n
call esi
add esp, 4
jmp 0x451081
push 0x49fcac
mov dword [0x52b370], ebp
call fcn.00444320
add esp, 4
push 0x49fdc4
call esi
add esp, 4
xor edi, edi
mov eax, dword [0x52b40c]
mov dword [0x52b0dc], edi
cmp dword [eax + 0x10e8c], edi
je 0x45113f
cmp dword [eax + 0x1187c], 0
jne 0x45113f
push str.Initializing_BGM...
call fcn.00444320
add esp, 4
push str.Initializing_BGM..._n
call esi
mov eax, dword [0x52b40c]
fld qword [eax + 0x10ea0]
mov edx, dword [eax + 0x118b0]
fmul qword [eax + 0x10e90]
push ecx
mov ecx, dword [eax + 0x118ac]
fdiv qword [0x4a6bc8]
fstp qword [esp]
push edx
mov edx, dword [eax + 0x11890]
push ecx
push edx
call fcn.00408260
add esp, 0x14
test eax, eax
jne 0x451116
push str.Could_not_initialize_BGM._n
call fcn.00444320
add esp, 4
push str.Could_not_initialize_BGM._n
call esi
mov eax, dword [0x52b40c]
mov dword [eax + 0x1187c], ebp
jmp 0x45113c
push 0x49fcac
call fcn.00444320
add esp, 4
push 0x49fcac
call esi
mov ecx, dword [0x52b40c]
mov edx, dword [ecx + 0x118a0]
mov dword [0x4aa274], edx
add esp, 4
xor ebx, ebx
push str.Initializing_graphics...
call fcn.00444320
add esp, 4
push str.Initializing_graphics._n
call esi
mov esi, dword [0x52b40c]
fld dword [esi + 0x11844]
add esp, 4
call fcn.00499690
fld dword [esi + 0x11840]
push eax
call fcn.00499690
push eax
push str.gameCoord__ix_i...
call fcn.00444320
add esp, 0xc
call fcn.00410d10
test eax, eax
jne 0x451191
call int.00443e80
mov eax, dword [0x52b40c]
mov ecx, dword [eax + 0x11864]
mov edx, dword [eax + 0x11860]
push ecx
push edx
push str.render_mode__i__i...
call fcn.00444320
mov eax, dword [0x52b40c]
mov ecx, dword [eax + 0x11860]
add esp, 0xc
cmp ecx, ebx
jl 0x450d86
cmp ecx, 2
jg 0x450d86
mov edx, dword [eax + 0x11858]
push ebx
mov dword [0x52b2fc], ecx
mov ecx, dword [eax + 0x1185c]
mov eax, dword [eax + 0x11854]
push ecx
push edx
push eax
push str.trying__ix_ix_i_mode_0x_X...
call fcn.00444320
mov eax, dword [0x52b40c]
mov ecx, dword [eax + 0x11864]
mov edx, dword [eax + 0x11858]
mov ebx, dword [eax + 0x1185c]
add esp, 0x14
push ecx
mov ecx, dword [eax + 0x11854]
push edx
push ecx
call fcn.00410dd0
add esp, 0xc
test eax, eax
jne 0x451234
push str.failed.
call fcn.00444320
add esp, 4
call int.00443e80
push str.success...
call fcn.00444320
add esp, 4
cmp dword [0x4aa250], 0
je 0x451263
mov edx, dword [0x52b40c]
test byte [edx + 0x11864], 2
je 0x451263
mov dword [0x4aa274], 0
push 0x49fcac
call fcn.00444320
mov eax, dword [0x52b40c]
add esp, 4
push str.Setting_callbacks...
mov dword [eax + 0x11664], ebp
call fcn.00444320
add esp, 4
push 0x49fcac
mov dword [0x52b32c], 0x454b40
call fcn.00444320
add esp, 4
push str.Initializing_font...
call fcn.00444320
add esp, 4
call sub.SDL_ttf.dll_TTF_Init
test eax, eax
je 0x4512c7
push str.failed.
call fcn.00444320
add esp, 4
call int.00443e80
push 0x1ff
lea ecx, [esp + 0x15]
push 0
push ecx
mov byte [esp + 0x1c], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x451319
push 0x1ff
lea eax, [esp + 0x14]
push eax
push 0x52b0f8
call dword [sym.imp.MSVCR90.dll_strncpy]
add esp, 0xc
mov dword [0x52b0f0], 0x52b0f8
push 0x49fcac
call fcn.00444320
add esp, 4
push str.Initializing_game_variables...
call fcn.00444320
add esp, 4
call fcn.00454320
test eax, eax
jne 0x451341
call int.00443e80
push 0x49fcac
call fcn.00444320
add esp, 4
push str.Loading_system_fonts...
call fcn.00444320
add esp, 4
call fcn.004546b0
test eax, eax
jne 0x451369
call int.00443e80
push 0x49fcac
call fcn.00444320
add esp, 4
push str.Loading_options..._n
call fcn.00444320
add esp, 4
call fcn.0048e890
call fcn.0048e900
push str.Options_loaded_OK_n
call fcn.00444320
mov eax, dword [esp + 0x800]
mov ecx, dword [0x52b40c]
add esp, 4
test eax, eax
jle 0x4513b1
mov dword [ecx + 0x11b7c], eax
mov eax, dword [esp + 0x800]
lea edx, [eax + 9]
cmp edx, 0x12
ja 0x4513c6
mov dword [ecx + 0x11b88], eax
push str.Loading_system..._n
call fcn.00444320
add esp, 4
cmp byte [esp + 0x358], 0
je 0x45149a
mov eax, dword [str.data_]
mov esi, dword [0x52b40c]
mov dword [esi + 0xfeb8], eax
mov cx, word [0x49f71c]
lea eax, [esp + 0x358]
mov word [esi + 0xfebc], cx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451410
sub eax, edx
cmp eax, 4
jb 0x451451
lea eax, [esp + 0x358]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451428
sub eax, edx
lea edx, [esp + eax + 0x354]
push str..def
push edx
call dword [sym.imp.MSVCR90.dll__stricmp]
mov esi, dword [0x52b40c]
add esp, 8
test eax, eax
je 0x451482
lea eax, [esp + 0x358]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x451460
mov ecx, dword [str._system.def]
mov edx, dword [0x49ff50]
mov dword [eax], ecx
mov ecx, dword [0x49ff54]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea edx, [esi + 0xfcb8]
lea ebx, [esi + 0xfebd]
lea edi, [esp + 0x358]
call fcn.0040e4b0
call fcn.0048bc50
test eax, eax
jne 0x45152b
mov ebx, dword [0x52b40c]
lea edx, [ebx + 0x1205c]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4514b6
mov ecx, 7
mov esi, str._nError_loading_system_data:
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0xfeb8]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4514d3
mov edi, edx
sub eax, esi
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4514e0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebx + 0xfcb8]
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451500
sub eax, esi
dec edx
mov edi, edx
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x451510
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call int.00443e80
mov eax, dword [0x52b40c]
fld qword [eax + 0x10e90]
sub esp, 8
fdiv qword [0x4a6bc8]
fmul qword [eax + 0x10e98]
fstp qword [esp]
call fcn.00473da0
push str.System_loaded_OK_n
call fcn.00444320
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret