Function at 0x4471c0
Capabilities:
Check if file exists
Create directory

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 0x4f06c8
push 0x499860
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
sub esp, 0xa78
mov eax, dword [0x4f3008]
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 - 0xa78], esi
lea eax, [ebp - 0xa88]
push eax
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0xa8c]
push eax
lea eax, [ebp - 0xa74]
push eax
call fcn.00448420
lea edi, [esi + 0x30]
mov dword [ebp - 0xa7c], edi
mov ecx, dword [edi]
mov eax, dword [ebp - 0xa74]
mov dword [ecx + 0x4f1d8], eax
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00447940
test eax, eax
je 0x4478df
push ecx
mov ecx, esi
call fcn.00447ad0
test eax, eax
je 0x4478e8
mov ecx, esi
call fcn.00447c60
test eax, eax
je 0x4478f1
mov ecx, esi
call fcn.00447db0
test eax, eax
je 0x4478fa
push dword [ebp - 0xa88]
mov ecx, esi
call fcn.00447f50
test eax, eax
je 0x447903
mov eax, dword [esi + 0x74]
inc eax
mov dword [esi + 0x74], eax
mov ecx, dword [edi]
call fcn.00402080
mov edx, dword [0x508180]
mov ecx, dword [edi]
mov eax, dword [0x508188]
mov dword [ecx + 0x5714c], eax
mov dword [ecx + 0x57138], edx
mov ecx, esi
call fcn.00447fe0
test eax, eax
je 0x44790c
mov ecx, esi
call fcn.00448090
test eax, eax
je 0x447915
push dword [ebp - 0xa8c]
mov ecx, esi
call fcn.00448200
test eax, eax
je 0x44791e
inc dword [esi + 0x74]
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [ebp - 0xa80]
mov ecx, esi
call fcn.00448250
test eax, eax
je 0x447927
inc dword [esi + 0x74]
mov ecx, dword [edi]
call fcn.00402af0
inc dword [esi + 0x74]
mov ecx, dword [edi]
call fcn.00402d70
mov dword [ebp - 4], 0xfffffffe
mov dword [esi + 0x70], 1
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.0044ab10
mov dword [ebp - 0xa90], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x447381
mov edx, dword [esi + 4]
test edx, edx
je 0x44759a
cmp dword [0x508184], 0
je 0x447585
mov ecx, dword [0x4fb114]
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.0048be80
mov eax, dword [0x4fb114]
mov dword [ebp - 0xa78], 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 0x447412
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 0x4d4c98
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.00491470
add esp, 4
mov dword [ebp - 0xa74], eax
test eax, eax
je 0x44758b
movq xmm0, qword [str.SMNU]
movq qword [ebp - 0x30], xmm0
mov cx, word [0x4dbb8c]
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 - 0xa74]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ecx + eax], edx
mov dword [ecx + eax + 4], 0x506
mov eax, dword [ebp - 0xa74]
add dword [eax + 4], 8
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xa78]
mov eax, dword [eax + 0x70c]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xa74]
add dword [eax + 4], 4
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xa78]
mov eax, dword [eax + 0x710]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xa74]
add dword [eax + 4], 4
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xa78]
mov eax, dword [eax + 0x714]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xa74]
add dword [eax + 4], 4
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xa78]
mov eax, dword [eax + 0x718]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xa74]
add dword [eax + 4], 4
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xa78]
mov eax, dword [eax + 0x71c]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xa74]
add dword [eax + 4], 4
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xa78]
mov eax, dword [eax + 0x720]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xa74]
add dword [eax + 4], 4
mov ecx, eax
call fcn.004915b0
push 0x48
push dword [esi + 4]
call fcn.004954e0
add esp, 8
jmp 0x4475a0
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x48
push dword [esi + 4]
call fcn.004954e0
add esp, 8
jmp 0x4475a0
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x4fb024]
test eax, eax
je 0x4475cd
push 0x34
push eax
call fcn.004954e0
add esp, 8
mov ecx, dword [0x4fafb4]
test ecx, ecx
je 0x4475c3
call fcn.00490fd0
mov dword [0x4fafb4], 0
mov esi, dword [ebp - 0xa7c]
mov ecx, dword [esi]
call fcn.00416c60
mov esi, dword [esi]
mov ecx, dword [esi + 0x571cc]
test ecx, ecx
je 0x4475eb
call fcn.00490fd0
mov dword [esi + 0x571cc], 0
mov ecx, dword [esi + 0x571dc]
test ecx, ecx
je 0x447604
call fcn.00490fd0
mov dword [esi + 0x571dc], 0
mov ecx, dword [esi + 0x571e4]
test ecx, ecx
je 0x44761e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x571e0]
test ecx, ecx
je 0x44762d
call fcn.00490fd0
mov dword [esi + 0x571e0], 0
mov ecx, dword [esi + 0x571d0]
test ecx, ecx
je 0x447646
call fcn.00490fd0
mov dword [esi + 0x571d0], 0
mov ecx, dword [esi + 0x571d4]
test ecx, ecx
je 0x44765f
call fcn.00490fd0
mov dword [esi + 0x571d4], 0
mov ecx, dword [esi + 0x571d8]
test ecx, ecx
je 0x447678
call fcn.00490fd0
mov dword [esi + 0x571d8], 0
mov eax, dword [ebp - 0xa7c]
mov esi, dword [eax]
test esi, esi
je 0x4476a3
mov ecx, esi
call fcn.00401de0
push 0x57254
push esi
call fcn.004954e0
add esp, 8
mov edx, dword [0x4faf14]
test edx, edx
je 0x44775d
movups xmm0, xmmword [str.keyboard]
movups xmmword [ebp - 0x48], xmm0
mov ax, word [0x4d5380]
mov word [ebp - 0x38], ax
mov ecx, 1
mov dword [ebp - 0xa7c], ecx
mov eax, dword [edx + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x44775d
nop
test ecx, ecx
je 0x447739
cmp dword [0x508184], 0
je 0x4476fa
lea ecx, [ebp - 0x660]
call fcn.0048be80
jmp 0x447712
mov eax, dword [0x4fb114]
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 0x4d4c98
lea eax, [ebp - 0x868]
push eax
call edi
add esp, 0x10
mov dword [ebp - 0xa7c], 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 - 0xa7c]
jne 0x4476e0
mov eax, dword [0x4faf90]
test eax, eax
je 0x447829
movups xmm0, xmmword [str.gamepad]
movups xmmword [ebp - 0x34], xmm0
mov ecx, 1
mov dword [ebp - 0xa7c], ecx
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x447829
nop
test ecx, ecx
je 0x4477e9
cmp dword [0x508184], 0
je 0x4477aa
lea ecx, [ebp - 0x458]
call fcn.0048be80
jmp 0x4477c2
mov eax, dword [0x4fb114]
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 0x4d4c98
lea eax, [ebp - 0xa70]
push eax
call edi
add esp, 0x10
mov dword [ebp - 0xa7c], 0
push dword [esi + 8]
push 0x4c4404
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 - 0xa7c]
jne 0x447790
mov eax, dword [ebp - 0xa90]
jmp 0x4478c1
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.004954a2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push 0
call fcn.00499bfe
push 0
push 0
call fcn.00499bfe
push 0
push 0
call fcn.00499bfe
push 0
push 0
call fcn.00499bfe
push 0
push 0
call fcn.00499bfe
push 0
push 0
call fcn.00499bfe
push 0
push 0
call fcn.00499bfe
push 0
push 0
call fcn.00499bfe
push 0
push 0
call fcn.00499bfe
int3