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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x498], ecx
push ecx
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.004139e0
lea ecx, [ebp - 0x41c]
push ecx
call fcn.004ae600
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x210]
push edx
call fcn.004c62e0
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0x418]
push eax
call fcn.004c62e0
add esp, 0xc
push 0x32
push 0
lea ecx, [ebp - 0x460]
push ecx
call fcn.004c62e0
add esp, 0xc
lea edx, [ebp - 0x470]
push edx
call fcn.0047d070
add esp, 4
mov ecx, eax
call fcn.00413b20
push eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x5030b4
push str.path
lea ecx, [ebp - 0x41c]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x470]
call fcn.00413a40
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4af9f6
mov dword [ebp - 0x474], 0
lea ecx, [ebp - 0x41c]
call fcn.00413a40
lea ecx, [ebp + 8]
call fcn.00413a40
mov eax, dword [ebp - 0x474]
jmp 0x4afd11
lea edx, [ebp - 0x478]
push edx
call fcn.0047d070
add esp, 4
mov ecx, eax
call fcn.00413b20
push eax
push 0x19
lea eax, [ebp - 0x460]
push eax
push 0x5030c4
push str.poptime
lea ecx, [ebp - 0x41c]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x478]
call fcn.00413a40
lea ecx, [ebp - 0x47c]
push ecx
call fcn.0047d070
add esp, 4
mov ecx, eax
call fcn.00413b20
push eax
push 0
push str.popnum
lea ecx, [ebp - 0x41c]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x47c]
call fcn.00413a40
lea edx, [ebp - 0x480]
push edx
call fcn.00473840
add esp, 4
mov ecx, eax
call fcn.00413b20
push eax
push 0xffffffffffffffff
push str.enable
lea ecx, [ebp - 0x41c]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x468], eax
lea ecx, [ebp - 0x480]
call fcn.00413a40
lea eax, [ebp - 0x484]
push eax
call fcn.00473840
add esp, 4
mov ecx, eax
call fcn.00413b20
push eax
push 1
push str.webenable
lea ecx, [ebp - 0x41c]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x464], eax
lea ecx, [ebp - 0x484]
call fcn.00413a40
lea ecx, [ebp - 0x488]
push ecx
call fcn.00473840
add esp, 4
mov ecx, eax
call fcn.00413b20
push eax
push 0x104
lea edx, [ebp - 0x418]
push edx
push 0x50310c
push str.proinfo
lea ecx, [ebp - 0x41c]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x488]
call fcn.00413a40
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, 4
call fcn.004121a0
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
call fcn.00413a60
lea eax, [ebp - 0x460]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 8
call fcn.00413a60
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x464]
mov dword [eax + 0x18], ecx
cmp dword [ebp - 0x468], 0xffffffff
jne 0x4afbb0
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x1c], 0
jmp 0x4afbd8
cmp dword [ebp - 0x468], 0
jne 0x4afbc5
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 2
jmp 0x4afbd8
cmp dword [ebp - 0x468], 1
jne 0x4afbd8
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x1c], 1
cmp dword [ebp - 0x468], 1
jne 0x4afbf6
mov edx, dword [ebp - 0x498]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp - 0x498]
mov dword [ecx + 4], eax
mov dword [ebp - 0x42c], 0x503120
mov dword [ebp - 0x428], 0x503138
push fcn.004139c0
push 2
push 4
lea edx, [ebp - 0x424]
push edx
call fcn.00437a30
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x42c]
push ecx
push 2
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
call fcn.00413b20
push eax
call fcn.0042af90
add esp, 0x10
lea edx, [ebp - 0x418]
push edx
call fcn.004c635a
add esp, 4
test eax, eax
jbe 0x4afc6a
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
call fcn.00413a60
jmp 0x4afc7c
lea ecx, [ebp - 0x420]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
call fcn.004121a0
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
call fcn.00412400
movzx edx, al
test edx, edx
je 0x4afcc6
mov eax, dword [ebp + 0xc]
add eax, 0xc
push ecx
mov ecx, esp
push eax
call fcn.004139e0
lea ecx, [ebp - 0x490]
push ecx
mov ecx, dword [ebp - 0x498]
call fcn.004af840
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
call fcn.004121a0
lea ecx, [ebp - 0x490]
call fcn.00413a40
mov edx, dword [ebp - 0x498]
mov eax, dword [edx]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x498]
mov dword [ecx], eax
mov dword [ebp - 0x494], 1
push fcn.00413a40
push 2
push 4
lea edx, [ebp - 0x424]
push edx
call fcn.00437a00
lea ecx, [ebp - 0x41c]
call fcn.00413a40
lea ecx, [ebp + 8]
call fcn.00413a40
mov eax, dword [ebp - 0x494]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret 8