Function at 0x48af40
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x26b0
call fcn.004a76f0
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x26ac], ecx
mov ecx, dword [0x4fb118]
push ebx
push esi
push edi
mov eax, dword [ecx]
push 0x815
mov dword [ebp - 0x26a4], str.game
mov dword [ebp - 0x26a0], 0xfffffffd
mov dword [ebp - 0x269c], 0x4c4424
call dword [eax + 4]
mov ecx, dword [0x4fb118]
mov dword [ebp - 0x2698], eax
push 0x816
mov dword [ebp - 0x2694], 0xfffffffe
mov eax, dword [ecx]
mov dword [ebp - 0x2690], 0x4c4424
mov dword [ebp - 0x268c], str.HighPerf
mov dword [ebp - 0x2688], 0
mov dword [ebp - 0x2684], 0
call dword [eax + 4]
mov ecx, dword [0x4fb118]
mov dword [ebp - 0x2680], eax
push 0x817
mov dword [ebp - 0x267c], 0xfffffffe
mov eax, dword [ecx]
mov dword [ebp - 0x2678], 0x4c4424
mov dword [ebp - 0x2674], str.WindowMode
mov dword [ebp - 0x2670], 0
mov dword [ebp - 0x266c], 0
call dword [eax + 4]
mov ecx, dword [0x4fb118]
mov dword [ebp - 0x2668], eax
push 0x818
mov dword [ebp - 0x2664], 0xfffffffe
mov eax, dword [ecx]
mov dword [ebp - 0x2660], 0x4c4424
mov dword [ebp - 0x265c], str.HardwareAcceleration
mov dword [ebp - 0x2658], 0
mov dword [ebp - 0x2654], 0
call dword [eax + 4]
mov ecx, dword [0x4fb118]
mov dword [ebp - 0x2650], eax
push 0x819
mov dword [ebp - 0x264c], 0xfffffffe
mov eax, dword [ecx]
mov dword [ebp - 0x2648], 0x4c4424
mov dword [ebp - 0x2644], str.HardwareFullScreen
mov dword [ebp - 0x2640], 0
mov dword [ebp - 0x263c], 0
call dword [eax + 4]
mov ecx, dword [0x4fb118]
mov dword [ebp - 0x2638], eax
push 0x81a
mov dword [ebp - 0x2634], 0xfffffffe
mov eax, dword [ecx]
mov dword [ebp - 0x2630], 0x4c4424
mov dword [ebp - 0x262c], str.GamePadDInput
mov dword [ebp - 0x2628], 0
mov dword [ebp - 0x2624], 0
call dword [eax + 4]
mov ecx, dword [0x4fb118]
mov dword [ebp - 0x2620], eax
push 0x81b
mov dword [ebp - 0x261c], 0xfffffffe
mov eax, dword [ecx]
mov dword [ebp - 0x2618], 0x4c4424
mov dword [ebp - 0x2614], str.NonActiveMusicPlay
mov dword [ebp - 0x2610], 0
mov dword [ebp - 0x260c], 0
call dword [eax + 4]
mov ecx, dword [0x4fb118]
mov dword [ebp - 0x2608], eax
push 0x81c
mov dword [ebp - 0x2604], 0xfffffffe
mov eax, dword [ecx]
mov dword [ebp - 0x2600], 0x4c4424
mov dword [ebp - 0x25fc], str.ResourceErrorNotify
mov dword [ebp - 0x25f8], 0
mov dword [ebp - 0x25f4], 0
call dword [eax + 4]
mov ecx, dword [0x4fb118]
mov dword [ebp - 0x25f0], eax
push 0x81d
mov dword [ebp - 0x25ec], 0xfffffffe
mov eax, dword [ecx]
mov dword [ebp - 0x25e8], 0x4c4424
mov dword [ebp - 0x25e4], str.ScriptErrorTerminate
mov dword [ebp - 0x25e0], 0
mov dword [ebp - 0x25dc], 0
call dword [eax + 4]
mov ecx, dword [0x4fb118]
mov dword [ebp - 0x25d8], eax
push 0x81e
mov dword [ebp - 0x25d4], 0xfffffffe
mov eax, dword [ecx]
mov dword [ebp - 0x25d0], 0x4c4424
mov dword [ebp - 0x25cc], str.NonActiveAnimationPlay
mov dword [ebp - 0x25c8], 1
mov dword [ebp - 0x25c4], 0
call dword [eax + 4]
mov ecx, dword [0x4fb118]
mov dword [ebp - 0x25c0], eax
push 0x81f
mov dword [ebp - 0x25bc], 0xfffffffe
mov eax, dword [ecx]
mov dword [ebp - 0x25b8], 0x4c4424
mov dword [ebp - 0x25b4], str.ConfirmGameExit
mov dword [ebp - 0x25b0], 0
mov dword [ebp - 0x25ac], 0
call dword [eax + 4]
mov dword [ebp - 0x25a8], eax
mov dword [ebp - 0x25a4], 0xfffffffe
mov dword [ebp - 0x25a0], 0x4c4424
mov dword [ebp - 0x259c], str.MemoryErrorNotify
mov dword [ebp - 0x2598], 0
mov dword [ebp - 0x2594], 0
mov dword [ebp - 0x2590], 0x4c4424
mov dword [ebp - 0x258c], 0xfffffffc
mov dword [ebp - 0x2588], 0x4c4424
mov dword [ebp - 0x2584], str.keyboard
mov dword [ebp - 0x2580], 0xfffffffd
mov dword [ebp - 0x257c], 0x4c4424
mov dword [ebp - 0x2578], str.LEFT
mov dword [ebp - 0x2574], 0xffffffff
mov dword [ebp - 0x2570], str.left
mov dword [ebp - 0x256c], 0x4d5588
mov dword [ebp - 0x2568], 0xffffffff
mov dword [ebp - 0x2564], 0x4d569c
mov dword [ebp - 0x2560], str.RIGHT
mov dword [ebp - 0x255c], 0xffffffff
mov dword [ebp - 0x2558], str.right
mov dword [ebp - 0x2554], str.DOWN
mov dword [ebp - 0x2550], 0xffffffff
mov dword [ebp - 0x254c], str.down
mov dword [ebp - 0x2548], str.SELECT
mov dword [ebp - 0x2544], 0xffffffff
mov dword [ebp - 0x2540], str.z_enter
mov dword [ebp - 0x253c], str.CANCEL
mov dword [ebp - 0x2538], 0xffffffff
mov dword [ebp - 0x2534], str.x_ctrl
mov dword [ebp - 0x2530], str.OPTION
mov dword [ebp - 0x252c], 0xffffffff
mov dword [ebp - 0x2528], 0x4d572c
mov dword [ebp - 0x2524], str.OPTION2
mov dword [ebp - 0x2520], 0xffffffff
mov dword [ebp - 0x251c], str.shift
mov dword [ebp - 0x2518], str.L_SWITCH
mov dword [ebp - 0x2514], 0xffffffff
mov dword [ebp - 0x2510], 0x4d5724
mov dword [ebp - 0x250c], str.R_SWITCH
mov dword [ebp - 0x2508], 0xffffffff
mov dword [ebp - 0x2504], 0x4d5728
mov dword [ebp - 0x2500], str.SYSTEM
mov dword [ebp - 0x24fc], 0xffffffff
mov dword [ebp - 0x24f8], str.x_ctrl
mov dword [ebp - 0x24f4], str.SKIP
mov dword [ebp - 0x24f0], 0xffffffff
mov dword [ebp - 0x24ec], str.space_rclick
mov dword [ebp - 0x24e8], str.FULLSCREEN
mov dword [ebp - 0x24e4], 0xffffffff
mov dword [ebp - 0x24e0], 0x4d56ec
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea esi, [ebp - 0x26a4]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
mov dword [ebp - 0x24dc], str.RESET
mov dword [ebp - 0x24d8], 0xffffffff
mov dword [ebp - 0x24d4], 0x4d571c
mov dword [ebp - 0x24d0], str.EXIT
mov dword [ebp - 0x24cc], 0xffffffff
mov dword [ebp - 0x24c8], 0x4d5670
mov dword [ebp - 0x24c4], 0x4c4424
mov dword [ebp - 0x24c0], 0xfffffffc
mov dword [ebp - 0x24bc], 0x4c4424
mov dword [ebp - 0x24b8], str.gamepad
mov dword [ebp - 0x24b4], 0xfffffffd
mov dword [ebp - 0x24b0], 0x4c4424
mov dword [ebp - 0x24ac], str.LEFT
mov dword [ebp - 0x24a8], 1
mov dword [ebp - 0x24a4], 0
mov dword [ebp - 0x24a0], 0x4d5588
mov dword [ebp - 0x249c], 2
mov dword [ebp - 0x2498], 0
mov dword [ebp - 0x2494], str.RIGHT
mov dword [ebp - 0x2490], 3
mov dword [ebp - 0x248c], 0
mov dword [ebp - 0x2488], str.DOWN
mov dword [ebp - 0x2484], 4
mov dword [ebp - 0x2480], 0
mov dword [ebp - 0x247c], str.SELECT
mov dword [ebp - 0x2478], 5
mov dword [ebp - 0x2474], 0
mov dword [ebp - 0x2470], str.CANCEL
mov dword [ebp - 0x246c], 6
mov dword [ebp - 0x2468], 0
mov dword [ebp - 0x2464], str.OPTION
mov dword [ebp - 0x2460], 7
mov dword [ebp - 0x245c], 0
mov dword [ebp - 0x2458], str.OPTION2
mov dword [ebp - 0x2454], 8
mov dword [ebp - 0x2450], 0
mov dword [ebp - 0x244c], str.L_SWITCH
mov dword [ebp - 0x2448], 9
mov dword [ebp - 0x2444], 0
mov dword [ebp - 0x2440], str.R_SWITCH
mov dword [ebp - 0x243c], 0xa
mov dword [ebp - 0x2438], 0
mov dword [ebp - 0x2434], str.SYSTEM
mov dword [ebp - 0x2430], 0xb
mov dword [ebp - 0x242c], 0
mov dword [ebp - 0x2428], str.SKIP
mov dword [ebp - 0x2424], 0xc
mov dword [ebp - 0x2420], 0
mov dword [ebp - 0x241c], str.FULLSCREEN
mov dword [ebp - 0x2418], 0xfffffffb
mov dword [ebp - 0x2414], 0
mov dword [ebp - 0x2410], str.RESET
mov dword [ebp - 0x240c], 0xfffffffb
mov dword [ebp - 0x2408], 0
mov dword [ebp - 0x2404], str.EXIT
mov dword [ebp - 0x2400], 0xfffffffb
mov dword [ebp - 0x23fc], 0
mov word [ebp - 0x23f8], ax
mov dword [ebp - 0x26a8], 0x39
mov eax, dword [esi + 4]
cmp eax, 0xfffffffb
jne 0x48b6d7
push dword [esi]
lea eax, [ebp - 0x204]
push 0x4dbaf0
push eax
call edi
add esp, 0xc
jmp 0x48b757
cmp eax, 0xfffffffc
jne 0x48b6f0
push 0x4c4424
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x48b757
cmp eax, 0xfffffffd
jne 0x48b70a
push dword [esi]
lea eax, [ebp - 0x204]
push 0x4dbaf8
push eax
call edi
add esp, 0xc
jmp 0x48b757
cmp eax, 0xfffffffe
jne 0x48b732
push 0x4dbb04
lea eax, [ebp - 0x23f8]
push eax
call ebx
push dword [esi]
lea eax, [ebp - 0x204]
push str.___s
push eax
call edi
add esp, 0xc
jmp 0x48b757
cmp eax, 0xffffffff
jne 0x48b743
push dword [esi + 8]
push dword [esi]
push str._s_s
jmp 0x48b74b
push eax
push dword [esi]
push str._s_d
lea eax, [ebp - 0x204]
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x23f8]
push eax
call ebx
push 0x4dbb04
lea eax, [ebp - 0x23f8]
push eax
call ebx
add esi, 0xc
sub dword [ebp - 0x26a8], 1
jne 0x48b6b7
push str.game.ini
push dword [ebp - 0x26ac]
lea eax, [ebp - 0x40c]
push 0x4d4c98
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x23f8]
call fcn.0048a070
push 0
push 0x80
push 2
push 0
push 0
mov edi, eax
lea eax, [ebp - 0x40c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [ebp - 0x26b0]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x48b810
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004954a2
mov esp, ebp
pop ebp
ret