Function at 0x4a7e51
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
je 0x4a8005
push 9
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x141fc
call fcn.00482e72
mov dword [0x53068c], eax
cmp dword [0x53068c], 0
jne 0x4a7e98
push 1
push 9
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x141fc
call fcn.00482ee6
push 8
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x141fc
call fcn.00482e72
mov dword [0x530688], eax
cmp dword [0x530688], 0
jne 0x4a7ecc
push 1
push 8
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x141fc
call fcn.00482ee6
push 7
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x141fc
call fcn.00482e72
mov dword [0x530684], eax
cmp dword [0x530684], 0
jne 0x4a7f00
push 1
push 7
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x141fc
call fcn.00482ee6
push 6
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x141fc
call fcn.00482e72
mov dword [0x530680], eax
cmp dword [0x530680], 0
jne 0x4a7f34
push 1
push 6
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x141fc
call fcn.00482ee6
push 0
mov ecx, dword [ebp - 0x14]
call fcn.0040c800
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x71458]
mov dword [0x53067c], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x71458], 0
push 0x52fa5c
push 0xc3
push 0x520eb4
push 0x520ed0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 4], eax
push 0x52fa5c
push 0
push 0x520eec
push 0x520f10
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00409a53
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00411591
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x11bc], 0
je 0x4a8000
mov ecx, dword [ebp - 0x14]
add ecx, 0x894
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x8c
push edx
mov eax, dword [0x5348f8]
push eax
call fcn.004ae3bb
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x90c], 1
mov edx, dword [ebp - 0x14]
add edx, 0x894
push edx
mov eax, dword [0x5348f8]
push eax
call fcn.004ae4ef
add esp, 8
jmp 0x4a814a
push 0
mov ecx, dword [0x5348f8]
push ecx
call fcn.004af404
add esp, 8
mov edx, dword [0x53068c]
push edx
push 9
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x141fc
call fcn.00482ee6
mov eax, dword [0x530688]
push eax
push 8
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x141fc
call fcn.00482ee6
mov ecx, dword [0x530684]
push ecx
push 7
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x141fc
call fcn.00482ee6
mov edx, dword [0x530680]
push edx
push 6
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x141fc
call fcn.00482ee6
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x71494]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040c800
mov edx, dword [ebp - 0x14]
mov eax, dword [0x53067c]
mov dword [edx + 0x71458], eax
push 0x52fa5c
push 0xc3
push str.eq_selection
push 0x520f48
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0xc], eax
push 0x52fa5c
push 0
push str.eq_selection_item
push str.EFFECT_WINDOW
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00409a53
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00411591
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x11bc], 0
je 0x4a814a
mov edx, dword [ebp - 0x14]
add edx, 0x894
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x8c
push eax
mov ecx, dword [0x5348f8]
push ecx
call fcn.004ae3bb
add esp, 0xc
mov edx, dword [ebp - 0x14]
xor eax, eax
cmp dword [edx + 0x140fc], 0
sete al
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x90c], eax
mov edx, dword [ebp - 0x14]
add edx, 0x894
push edx
mov eax, dword [0x5348f8]
push eax
call fcn.004ae4ef
add esp, 8
mov esp, ebp
pop ebp
ret 4