Function at 0x4aefe0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4e8], ecx
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x1c]
call fcn.0047b430
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x4e8]
call fcn.004af580
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4af4a2
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0045a220
jmp 0x4af043
push 0
lea edx, [ebp - 0x4b8]
push edx
lea ecx, [ebp - 0x28]
call fcn.0045a980
lea eax, [ebp - 0x4c0]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0045a250
push eax
lea ecx, [ebp - 0x28]
call fcn.0045a9c0
movzx ecx, al
test ecx, ecx
je 0x4af4a2
lea ecx, [ebp - 0x28]
call fcn.0045a960
push eax
lea ecx, [ebp - 0x444]
call fcn.004139e0
xor edx, edx
mov dword [ebp - 0x4b0], edx
lea ecx, [ebp - 0x4ac]
call fcn.004139c0
lea ecx, [ebp - 0x4a8]
call fcn.004139c0
lea ecx, [ebp - 0x4a4]
call fcn.004139c0
lea ecx, [ebp - 0x4a0]
call fcn.004139c0
xor eax, eax
mov dword [ebp - 0x49c], eax
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x494], eax
push 0x208
push 0
lea ecx, [ebp - 0x238]
push ecx
call fcn.004c62e0
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x440]
push edx
call fcn.004c62e0
add esp, 0xc
push 0x32
push 0
lea eax, [ebp - 0x488]
push eax
call fcn.004c62e0
add esp, 0xc
lea ecx, [ebp - 0x4c4]
push ecx
call fcn.0047d070
add esp, 4
mov ecx, eax
call fcn.00413b20
push eax
push 0x104
lea edx, [ebp - 0x238]
push edx
push 0x503008
push 0x50300c
lea ecx, [ebp - 0x444]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x4c4]
call fcn.00413a40
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4af177
lea ecx, [ebp - 0x4b0]
call fcn.004443a0
lea ecx, [ebp - 0x444]
call fcn.00413a40
jmp 0x4af032
lea ecx, [ebp - 0x4c8]
push ecx
call fcn.0047d070
add esp, 4
mov ecx, eax
call fcn.00413b20
push eax
push 0x19
lea edx, [ebp - 0x488]
push edx
push 0x503018
push 0x50301c
lea ecx, [ebp - 0x444]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x4c8]
call fcn.00413a40
lea eax, [ebp - 0x4cc]
push eax
call fcn.0047d070
add esp, 4
mov ecx, eax
call fcn.00413b20
push eax
push 0
push 0x50302c
lea ecx, [ebp - 0x444]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x4cc]
call fcn.00413a40
lea ecx, [ebp - 0x4d0]
push ecx
call fcn.00473840
add esp, 4
mov ecx, eax
call fcn.00413b20
push eax
push 0xffffffffffffffff
push 0x50303c
lea ecx, [ebp - 0x444]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x490], eax
lea ecx, [ebp - 0x4d0]
call fcn.00413a40
lea edx, [ebp - 0x4d4]
push edx
call fcn.00473840
add esp, 4
mov ecx, eax
call fcn.00413b20
push eax
push 1
push 0x50304c
lea ecx, [ebp - 0x444]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x48c], eax
lea ecx, [ebp - 0x4d4]
call fcn.00413a40
lea eax, [ebp - 0x4d8]
push eax
call fcn.00473840
add esp, 4
mov ecx, eax
call fcn.00413b20
push eax
push 0x104
lea ecx, [ebp - 0x440]
push ecx
push 0x503060
push 0x503064
lea ecx, [ebp - 0x444]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x4d8]
call fcn.00413a40
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x4b0], eax
lea ecx, [ebp - 0x444]
push ecx
lea ecx, [ebp - 0x4ac]
call fcn.004121a0
lea edx, [ebp - 0x238]
push edx
lea ecx, [ebp - 0x4a4]
call fcn.00413a60
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x4a8]
call fcn.00413a60
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x49c], ecx
mov edx, dword [ebp - 0x48c]
mov dword [ebp - 0x498], edx
cmp dword [ebp - 0x490], 0xffffffff
jne 0x4af33a
mov dword [ebp - 0x494], 0
jmp 0x4af362
cmp dword [ebp - 0x490], 0
jne 0x4af34f
mov dword [ebp - 0x494], 2
jmp 0x4af362
cmp dword [ebp - 0x490], 1
jne 0x4af362
mov dword [ebp - 0x494], 1
cmp dword [ebp - 0x490], 1
jne 0x4af380
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [eax + 4]
add ecx, 1
mov edx, dword [ebp - 0x4e8]
mov dword [edx + 4], ecx
mov dword [ebp - 0x454], 0x503074
mov dword [ebp - 0x450], 0x50308c
push fcn.004139c0
push 2
push 4
lea eax, [ebp - 0x44c]
push eax
call fcn.00437a30
lea ecx, [ebp - 0x44c]
push ecx
lea edx, [ebp - 0x454]
push edx
push 2
lea ecx, [ebp - 0x4a4]
call fcn.00413b20
push eax
call fcn.0042af90
add esp, 0x10
lea eax, [ebp - 0x440]
push eax
call fcn.004c635a
add esp, 4
test eax, eax
jbe 0x4af3f4
lea ecx, [ebp - 0x440]
push ecx
lea ecx, [ebp - 0x4a0]
call fcn.00413a60
jmp 0x4af406
lea edx, [ebp - 0x448]
push edx
lea ecx, [ebp - 0x4a0]
call fcn.004121a0
lea ecx, [ebp - 0x4a0]
call fcn.00412400
movzx eax, al
test eax, eax
je 0x4af450
push ecx
mov ecx, esp
lea edx, [ebp - 0x4a4]
push edx
call fcn.004139e0
lea eax, [ebp - 0x4e0]
push eax
mov ecx, dword [ebp - 0x4e8]
call fcn.004af840
push eax
lea ecx, [ebp - 0x4a0]
call fcn.004121a0
lea ecx, [ebp - 0x4e0]
call fcn.00413a40
mov ecx, dword [ebp - 0x4e8]
mov edx, dword [ecx]
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x4e8]
mov dword [eax], edx
lea ecx, [ebp - 0x4b0]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00473b40
push fcn.00413a40
push 2
push 4
lea edx, [ebp - 0x44c]
push edx
call fcn.00437a00
lea ecx, [ebp - 0x4b0]
call fcn.004443a0
lea ecx, [ebp - 0x444]
call fcn.00413a40
jmp 0x4af032
mov ecx, dword [ebp + 8]
call fcn.004aff10
xor ecx, ecx
cmp ecx, eax
sbb edx, edx
neg edx
mov dword [ebp - 0x4e4], edx
lea ecx, [ebp - 0x1c]
call fcn.00460050
mov eax, dword [ebp - 0x4e4]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret 4