Function at 0x404a92
Capabilities:
Read .ini file

Disassembly:
push 0x2f4
mov eax, 0x45a8d4
call fcn.0043f597
mov eax, dword [0x47d1c4]
add eax, 0x2b0
mov ebx, ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.00414d81
push 0x468e58
lea eax, [ebp - 0x300]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040b971
push 0x47b3d8
mov byte [ebp - 4], 1
call fcn.0040bb61
lea edx, [ebp - 0x194]
mov ecx, eax
call fcn.0040ba10
push 0xffffffffffffffff
push edi
lea esi, [ebp - 0x12c]
mov byte [ebp - 4], 2
call fcn.00408eb7
push edi
push 1
lea ecx, [ebp - 0x194]
call fcn.00414e73
lea eax, [ebp - 0x300]
push eax
mov byte [ebp - 4], 0
call fcn.00403160
cmp dword [ebp - 0x114], 0x10
mov eax, dword [ebp - 0x128]
jae 0x404b2f
lea eax, [ebp - 0x128]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push 0x468c58
push str.ConfigVersion
mov esi, str.General
push esi
call edi
cmp byte [ebx + 0x233c], 0
je 0x404e14
cmp byte [ebx + 0x2338], 0
mov eax, dword [ebp - 0x128]
je 0x404b7b
cmp dword [ebp - 0x114], 0x10
jae 0x404b73
lea eax, [ebp - 0x128]
push eax
push 0x468e78
jmp 0x404b90
cmp dword [ebp - 0x114], 0x10
jae 0x404b8a
lea eax, [ebp - 0x128]
push eax
push 0x468e5c
push str.FullScreen
push esi
call edi
cmp byte [ebx + 0x2339], 0
mov eax, dword [ebp - 0x128]
je 0x404bbe
cmp dword [ebp - 0x114], 0x10
jae 0x404bb6
lea eax, [ebp - 0x128]
push eax
push 0x468e78
jmp 0x404bd3
cmp dword [ebp - 0x114], 0x10
jae 0x404bcd
lea eax, [ebp - 0x128]
push eax
push 0x468e5c
push str.ShowMenu
push esi
call edi
cmp byte [ebx + 0x233a], 0
mov eax, dword [ebp - 0x128]
je 0x404c01
cmp dword [ebp - 0x114], 0x10
jae 0x404bf9
lea eax, [ebp - 0x128]
push eax
push 0x468e78
jmp 0x404c16
cmp dword [ebp - 0x114], 0x10
jae 0x404c10
lea eax, [ebp - 0x128]
push eax
push 0x468e5c
push str.ShowFPS
push esi
call edi
lea eax, [ebp - 0x230]
push eax
call fcn.00407512
mov byte [ebp - 4], 3
push dword [ebx + 0x2328]
lea eax, [ebp - 0x230]
push eax
call fcn.00406a63
lea ecx, [ebp - 0x194]
lea eax, [ebp - 0x230]
call fcn.004075a6
cmp dword [ebp - 0x114], 0x10
mov ecx, dword [ebp - 0x128]
jae 0x404c66
lea ecx, [ebp - 0x128]
cmp dword [eax + 0x18], 0x10
jb 0x404c71
mov eax, dword [eax + 4]
jmp 0x404c74
add eax, 4
push ecx
push eax
push str.MaxVRAMCacheSize
push esi
call edi
push 0
push 1
lea ecx, [ebp - 0x194]
call fcn.00414e73
push 0x468bc4
lea ecx, [ebp - 0x148]
call fcn.00414a2c
lea eax, [ebp - 0x148]
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 4
call fcn.00407e60
push 0
push 1
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 3
call fcn.00414e73
mov eax, dword [ebp - 0x230]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x230]
mov ecx, dword [eax + 0x28]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffc
push 0
add ecx, 4
push eax
call fcn.0041262b
push dword [ebx + 0x232c]
lea eax, [ebp - 0x230]
push eax
call fcn.00406a63
lea ecx, [ebp - 0x194]
lea eax, [ebp - 0x230]
call fcn.004075a6
cmp dword [ebp - 0x114], 0x10
mov ecx, dword [ebp - 0x128]
jae 0x404d22
lea ecx, [ebp - 0x128]
cmp dword [eax + 0x18], 0x10
jb 0x404d2d
mov eax, dword [eax + 4]
jmp 0x404d30
add eax, 4
push ecx
push eax
push str.MaxFileCacheSize
push esi
call edi
push 0
push 1
lea ecx, [ebp - 0x194]
call fcn.00414e73
push 0x468bc4
lea ecx, [ebp - 0x148]
call fcn.00414a2c
lea eax, [ebp - 0x148]
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 5
call fcn.00407e60
push 0
push 1
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 3
call fcn.00414e73
mov eax, dword [ebp - 0x230]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x230]
mov ecx, dword [eax + 0x28]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffc
push 0
add ecx, 4
push eax
call fcn.0041262b
push dword [ebx + 0x2330]
lea eax, [ebp - 0x230]
push eax
call fcn.00406a63
lea ecx, [ebp - 0x194]
lea eax, [ebp - 0x230]
call fcn.004075a6
cmp dword [ebp - 0x114], 0x10
mov ecx, dword [ebp - 0x128]
jae 0x404dde
lea ecx, [ebp - 0x128]
cmp dword [eax + 0x18], 0x10
jb 0x404de9
mov eax, dword [eax + 4]
jmp 0x404dec
add eax, 4
push ecx
push eax
push str.ScreenSize
push esi
call edi
push 0
push 1
lea ecx, [ebp - 0x194]
call fcn.00414e73
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00404a76
cmp byte [ebx + 0x233d], 0
je 0x405257
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x110], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x108], eax
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x104], eax
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0x100], eax
mov eax, dword [ebx + 0x98]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebx + 0xa8]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebx + 0xb8]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebx + 0xc8]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebx + 0xd8]
mov dword [ebp - 0xec], eax
mov eax, dword [ebx + 0xe8]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebx + 0xf8]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebx + 0x108]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebx + 0x118]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebx + 0x128]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebx + 0x138]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebx + 0x7c]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebx + 0x8c]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebx + 0x9c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebx + 0xac]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebx + 0xbc]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebx + 0xdc]
mov dword [ebp - 0xac], eax
mov eax, dword [ebx + 0xec]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebx + 0xfc]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebx + 0x10c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebx + 0x11c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebx + 0x12c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 0x13c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x1f0], 0x468b20
mov dword [ebp - 0x1ec], str.DOWN
mov dword [ebp - 0x1e8], str.LEFT
mov dword [ebp - 0x1e4], str.RIGHT
mov dword [ebp - 0x1e0], str.BTN1
mov dword [ebp - 0x1dc], str.BTN2
mov dword [ebp - 0x1d8], str.BTN3
mov dword [ebp - 0x1d4], str.BTN4
mov dword [ebp - 0x1d0], str.BTN5
mov dword [ebp - 0x1cc], str.BTN6
mov dword [ebp - 0x1c8], str.BTN7
mov dword [ebp - 0x1c4], str.BTN8
mov dword [ebp - 0x1c0], str.BTN9
mov dword [ebp - 0x1bc], str.BTN10
mov dword [ebp - 0x1b8], str.BTN11
mov dword [ebp - 0x1b4], str.BTN12
mov dword [ebp - 0x90], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0x88], eax
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x84], eax
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0x80], eax
mov eax, dword [ebx + 0xa0]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx + 0xb0]
mov dword [ebp - 0x78], eax
mov eax, dword [ebx + 0xc0]
mov dword [ebp - 0x74], eax
mov eax, dword [ebx + 0xd0]
mov dword [ebp - 0x70], eax
mov eax, dword [ebx + 0xe0]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx + 0xf0]
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0x100]
mov dword [ebp - 0x64], eax
mov eax, dword [ebx + 0x110]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 0x120]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x130]
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x140]
mov dword [ebp - 0x54], eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x84]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x94]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0xa4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0xb4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0xc4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0xd4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0xe4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xf4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x104]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x114]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x124]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x134]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x144]
mov dword [ebp - 0x14], eax
xor eax, eax
lea edi, [ebp - 0x110]
lea esi, [eax + 1]
push str.KeyConfig_d
lea eax, [ebp - 0x300]
push eax
mov dword [ebp - 0x168], esi
call fcn.0040b971
lea ecx, [ebp - 0x168]
push ecx
mov byte [ebp - 4], 6
call fcn.0040bbc1
lea edx, [ebp - 0x164]
mov ecx, eax
call fcn.0040ba10
lea eax, [ebp - 0x300]
push eax
mov byte [ebp - 4], 8
call fcn.00403160
and dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], edi
mov eax, dword [ebp - 0x16c]
cmp dword [eax], 0
je 0x405214
cmp dword [ebp - 0x114], 0x10
mov eax, dword [ebp - 0x128]
jae 0x4051bf
lea eax, [ebp - 0x128]
push dword [ebp - 0x16c]
lea edi, [ebx + 0x160]
mov dword [ebp - 0x168], eax
call fcn.00406d65
cmp dword [eax + 0x18], 0x10
jb 0x4051e1
mov eax, dword [eax + 4]
jmp 0x4051e4
add eax, 4
cmp dword [ebp - 0x14c], 0x10
mov ecx, dword [ebp - 0x160]
jae 0x4051f9
lea ecx, [ebp - 0x160]
push dword [ebp - 0x168]
push eax
mov eax, dword [ebp - 0x170]
push dword [ebp + eax*4 - 0x1f0]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
inc dword [ebp - 0x170]
add dword [ebp - 0x16c], 4
cmp dword [ebp - 0x170], 0x10
jl 0x40519f
push 0
push 1
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0
call fcn.00414e73
mov edi, dword [ebp - 0x16c]
mov eax, esi
cmp eax, 4
jl 0x40514b
jmp 0x405691
mov eax, dword [0x47d1c4]
add eax, 0x2b0
push eax
lea ecx, [ebp - 0x164]
call fcn.00414d81
push 0x468e58
lea eax, [ebp - 0x258]
push eax
mov byte [ebp - 4], 9
call fcn.0040b971
push 0x47b3dc
mov byte [ebp - 4], 0xa
call fcn.0040bb61
lea edx, [ebp - 0x194]
mov ecx, eax
call fcn.0040ba10
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea esi, [ebp - 0x164]
mov byte [ebp - 4], 0xb
call fcn.00408eb7
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x194]
call fcn.00414e73
lea eax, [ebp - 0x258]
push eax
mov byte [ebp - 4], 9
call fcn.00403160
lea eax, [ebp - 0x2e0]
push eax
call fcn.00407002
mov dword [ebp - 0x1a8], ebx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x1a0], ebx
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 0xd
call fcn.00406cfd
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x19c], esi
mov dword [ebp - 0x16c], 0x47b3f0
mov dword [ebp - 0x168], eax
mov dword [ebp - str.1_0x00], 0x47b430
mov ebx, 0x412511
push str.KeyConfig_d
lea eax, [ebp - 0x258]
push eax
call fcn.0040b971
lea ecx, [ebp - 0x19c]
push ecx
mov byte [ebp - 4], 0xe
call fcn.0040bbc1
lea edx, [ebp - 0x148]
mov ecx, eax
call fcn.0040ba10
lea eax, [ebp - 0x258]
push eax
mov byte [ebp - 4], 0x10
call fcn.00403160
cmp dword [ebp - 0x14c], 0x10
mov ecx, dword [ebp - 0x160]
jae 0x40537c
lea ecx, [ebp - 0x160]
cmp dword [ebp - 0x130], 0x10
mov eax, dword [ebp - 0x144]
jae 0x405391
lea eax, [ebp - 0x144]
mov esi, dword [ebp - 0x170]
push ecx
push 0x100
lea ecx, [ebp - 0x110]
push ecx
push dword [esi]
mov ecx, dword [ebp - 0x16c]
push dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4053c9
push dword [esi]
lea eax, [ebp - 0x110]
push eax
call fcn.0043cf80
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x194]
call fcn.00414a2c
lea eax, [ebp - 0x194]
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 0x11
call fcn.00407e60
push 0
push 1
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 0x10
call fcn.00414e73
mov eax, dword [ebp - 0x2e0]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x2e0]
mov ecx, dword [eax + 0x28]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffc
push 0
add ecx, 4
push eax
call fcn.0041262b
mov eax, dword [ebp - 0x2e0]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x2e0]
mov ecx, dword [eax + 0x10]
and ecx, 0xfffff3ff
or ecx, 0x200
mov dword [eax + 0x10], ecx
lea eax, [ebp - 0x198]
push eax
push ebx
lea eax, [ebp - 0x171]
push eax
push ecx
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x2e0]
push eax
call fcn.00406b75
pop ecx
push eax
call fcn.0040bcad
pop ecx
pop ecx
mov esi, eax
call fcn.00406b5b
push eax
call fcn.00406b75
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 8], 6
je 0x405563
mov eax, dword [ebp - 0x170]
push dword [eax]
lea eax, [ebp - 0x110]
push eax
call fcn.0043cf80
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x194]
call fcn.00414a2c
lea eax, [ebp - 0x194]
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 0x12
call fcn.00407e60
push 0
push 1
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 0x10
call fcn.00414e73
mov eax, dword [ebp - 0x2e0]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x2e0]
mov ecx, dword [eax + 0x28]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffc
push 0
add ecx, 4
push eax
call fcn.0041262b
mov eax, dword [ebp - 0x2e0]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x2e0]
mov ecx, dword [eax + 0x10]
and ecx, 0xfffff3ff
or ecx, 0x200
mov dword [eax + 0x10], ecx
lea eax, [ebp - 0x198]
push eax
push ebx
lea eax, [ebp - 0x171]
push eax
push ecx
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x2e0]
push eax
call fcn.00406b75
pop ecx
push eax
call fcn.0040bcad
pop ecx
pop ecx
mov esi, eax
call fcn.00406b5b
push eax
call fcn.00406b75
mov ecx, dword [ebp - 0x168]
lea eax, [ebp - 0x110]
push eax
call fcn.00414a0f
push 0
push 1
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0xd
call fcn.00414e73
add dword [ebp - 0x16c], 4
add dword [ebp - 0x168], 0x1c
add dword [ebp - 0x170], 4
mov esi, 0x47b430
cmp dword [ebp - 0x16c], esi
jl 0x405329
push str.KeyConfig_d
lea eax, [ebp - 0x258]
push eax
mov dword [ebp - 0x178], 1
call fcn.0040b971
lea ecx, [ebp - 0x178]
push ecx
mov byte [ebp - 4], 0x13
call fcn.0040bbc1
lea edx, [ebp - 0x148]
mov ecx, eax
call fcn.0040ba10
lea eax, [ebp - 0x258]
push eax
mov byte [ebp - 4], 0x15
call fcn.00403160
mov eax, dword [ebp - 0x1a8]
add eax, 4
mov ebx, 0x47b3f0
mov dword [ebp - 0x168], eax
jmp 0x405612
mov eax, dword [ebp - 0x168]
cmp dword [ebp - 0x114], 0x10
mov edx, dword [ebp - 0x128]
jae 0x405627
lea edx, [ebp - 0x128]
cmp dword [eax + 0x14], 0x10
jb 0x40562f
mov eax, dword [eax]
cmp dword [ebp - 0x130], 0x10
mov ecx, dword [ebp - 0x144]
jae 0x405644
lea ecx, [ebp - 0x144]
push edx
push eax
push dword [ebx]
push ecx
call edi
add dword [ebp - 0x168], 0x1c
add ebx, 4
cmp ebx, esi
jl 0x40560c
push 0
push 1
lea ecx, [ebp - 0x148]
call fcn.00414e73
lea esi, [ebp - 0x1ac]
call fcn.00406cd8
lea eax, [ebp - 0x2e0]
mov byte [ebp - 4], 9
call fcn.00403bdf
push 0
push 1
lea ecx, [ebp - 0x164]
call fcn.00414e73
push 0
push 1
lea ecx, [ebp - 0x12c]
call fcn.00414e73
call fcn.0043f61a
ret