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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.0050c860
mov eax, dword [0x579aa4]
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.0050c770
add esp, 0xc
lea edx, [ebp - 0x1010]
push edx
call fcn.005073e0
add esp, 4
lea ecx, [ebp - 0x1010]
call fcn.00406010
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x506c71
mov dword [ebp - 0x103c], 0
lea ecx, [ebp - 0x1010]
call fcn.00406190
mov eax, dword [ebp - 0x103c]
jmp 0x506e9b
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.00406010
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x506ce8
mov dword [ebp - 0x1040], 0
lea ecx, [ebp - 0x1010]
call fcn.00406190
mov eax, dword [ebp - 0x1040]
jmp 0x506e9b
cmp dword [ebp - 0x1018], 4
jb 0x506cfa
cmp dword [ebp - 0x101c], 0
jbe 0x506d1a
mov dword [ebp - 0x1044], 0
lea ecx, [ebp - 0x1010]
call fcn.00406190
mov eax, dword [ebp - 0x1044]
jmp 0x506e9b
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.0050acfa
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.0050c770
add esp, 0xc
lea ecx, [ebp - 0x1010]
call fcn.00406010
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 0x506e15
mov eax, dword [ebp - 0x1014]
mov dword [ebp - 0x104c], eax
mov ecx, dword [ebp - 0x104c]
push ecx
call fcn.0050d6e3
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.0050acfa
add esp, 4
mov dword [ebp - 0x1050], eax
mov eax, dword [ebp - 0x1050]
mov dword [ebp - 0x1014], eax
lea ecx, [ebp - 0x1010]
call fcn.00406010
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 0x506e59
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.00506b50
push eax
mov ecx, dword [ebp + 8]
call fcn.004cf030
lea ecx, [ebp - 0x1068]
call fcn.00436bc0
mov ecx, dword [ebp - 0x1014]
mov dword [ebp - 0x106c], ecx
mov edx, dword [ebp - 0x106c]
push edx
call fcn.0050d6e3
add esp, 4
mov ecx, dword [ebp + 8]
call fcn.004240e0
xor ecx, ecx
cmp ecx, eax
sbb edx, edx
neg edx
mov dword [ebp - 0x1070], edx
lea ecx, [ebp - 0x1010]
call fcn.00406190
mov eax, dword [ebp - 0x1070]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0050c75f
mov esp, ebp
pop ebp
ret 4