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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.004c65d0
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1074], ecx
xor eax, eax
mov word [ebp - 0x1008], ax
push 0xffe
push 0
lea ecx, [ebp - 0x1006]
push ecx
call fcn.004c62e0
add esp, 0xc
lea edx, [ebp - 0x1010]
push edx
call fcn.0047d070
add esp, 4
lea ecx, [ebp - 0x1010]
call fcn.00413b20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4af601
mov dword [ebp - 0x103c], 0
lea ecx, [ebp - 0x1010]
call fcn.00413a40
mov eax, dword [ebp - 0x103c]
jmp 0x4af82b
xor eax, eax
mov dword [ebp - 0x1038], eax
mov dword [ebp - 0x1034], eax
mov dword [ebp - 0x1030], eax
mov dword [ebp - 0x102c], eax
mov dword [ebp - 0x1028], eax
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x101c], eax
mov dword [ebp - 0x1018], eax
lea ecx, [ebp - 0x1038]
push ecx
push 0
lea ecx, [ebp - 0x1010]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x4af678
mov dword [ebp - 0x1040], 0
lea ecx, [ebp - 0x1010]
call fcn.00413a40
mov eax, dword [ebp - 0x1040]
jmp 0x4af82b
cmp dword [ebp - 0x1018], 4
jb 0x4af68a
cmp dword [ebp - 0x101c], 0
jbe 0x4af6aa
mov dword [ebp - 0x1044], 0
lea ecx, [ebp - 0x1010]
call fcn.00413a40
mov eax, dword [ebp - 0x1044]
jmp 0x4af82b
mov eax, dword [ebp - 0x1018]
xor edx, edx
mov ecx, 3
div ecx
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, dword [ebp - 4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c4a2a
add esp, 4
mov dword [ebp - 0x1048], eax
mov eax, dword [ebp - 0x1048]
mov dword [ebp - 0x1014], eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0x1014]
push edx
call fcn.004c62e0
add esp, 0xc
lea ecx, [ebp - 0x1010]
call fcn.00413b20
push eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x1014]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov dword [ebp - 0x100c], eax
mov edx, dword [ebp - 4]
sub edx, 2
cmp dword [ebp - 0x100c], edx
jne 0x4af7a5
mov eax, dword [ebp - 0x1014]
mov dword [ebp - 0x104c], eax
mov ecx, dword [ebp - 0x104c]
push ecx
call fcn.004c6761
add esp, 4
mov edx, dword [ebp - 0x1018]
mov dword [ebp - 4], edx
xor ecx, ecx
mov eax, dword [ebp - 4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c4a2a
add esp, 4
mov dword [ebp - 0x1050], eax
mov eax, dword [ebp - 0x1050]
mov dword [ebp - 0x1014], eax
lea ecx, [ebp - 0x1010]
call fcn.00413b20
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x1014]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov dword [ebp - 0x100c], eax
mov eax, dword [ebp - 4]
sub eax, 2
cmp dword [ebp - 0x100c], eax
je 0x4af7e9
push 0
mov ecx, dword [ebp - 0x100c]
push ecx
mov edx, dword [ebp - 0x1014]
push edx
lea eax, [ebp - 0x1068]
push eax
mov ecx, dword [ebp - 0x1074]
call fcn.004af4e0
push eax
mov ecx, dword [ebp + 8]
call fcn.0047b540
lea ecx, [ebp - 0x1068]
call fcn.00460050
mov ecx, dword [ebp - 0x1014]
mov dword [ebp - 0x106c], ecx
mov edx, dword [ebp - 0x106c]
push edx
call fcn.004c6761
add esp, 4
mov ecx, dword [ebp + 8]
call fcn.0047b6c0
xor ecx, ecx
cmp ecx, eax
sbb edx, edx
neg edx
mov dword [ebp - 0x1070], edx
lea ecx, [ebp - 0x1010]
call fcn.00413a40
mov eax, dword [ebp - 0x1070]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret 4