Function at 0x10010d50
Capabilities:
Check if file exists
Get common file path
Get token membership
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x620], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x5fc], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [0x1017b7b4]
mov dword [ebp - 0x600], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x624], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.100567e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x100dd6d4
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10055f38
push dword [esi + 0x20]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10055f38
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10010e0d
lea ecx, [ebp - 0x20c]
call fcn.10006a40
push str.index.dat
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10055f38
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [ebp - 0x20c]
add esp, 0xc
push eax
push 0
push 0x100e4008
push str.config
call esi
mov dword [ebp - 0x61c], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.totaldays
push str.config
call esi
mov dword [ebp - 0x614], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.totaltimes
push str.config
call esi
mov dword [ebp - 0x618], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.todaytimes
push str.config
call esi
mov edi, eax
lea eax, [ebp - 0x610]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x2d4], ax
lea eax, [ebp - 0x2d2]
push eax
call fcn.100567e0
movzx eax, word [ebp - 0x60a]
push eax
movzx eax, word [ebp - 0x60e]
push eax
movzx eax, word [ebp - 0x610]
push eax
lea eax, [ebp - 0x2d4]
push str._d_d_d
push eax
call fcn.100080e0
mov eax, dword [ebp - 0x624]
add esp, 0x20
test eax, eax
je 0x10010f16
lea ecx, [ebp - 0x20c]
push ecx
push 0x5dc
push eax
push 0x100e3908
push str.adidcol
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2d4]
push eax
call fcn.100578b6
mov esi, dword [ebp - 0x61c]
add esp, 4
cmp esi, eax
je 0x10010f46
inc dword [ebp - 0x614]
mov edi, 1
mov dword [ebp - 0x61c], eax
mov esi, eax
mov dword [ebx], edi
jmp 0x10010f4d
mov dword [ebx], 0
inc edi
inc dword [ebp - 0x618]
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x39c], ax
lea eax, [ebp - 0x39a]
push eax
call fcn.100567e0
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x464], ax
lea eax, [ebp - 0x462]
push eax
call fcn.100567e0
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x52c], ax
lea eax, [ebp - 0x52a]
push eax
call fcn.100567e0
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x5f4], ax
lea eax, [ebp - 0x5f2]
push eax
call fcn.100567e0
push esi
lea eax, [ebp - 0x39c]
push 0x100e3a14
push eax
call fcn.100080e0
mov ebx, dword [ebp - 0x614]
lea eax, [ebp - 0x464]
push ebx
push 0x100e3a14
push eax
call fcn.100080e0
add esp, 0x48
lea eax, [ebp - 0x52c]
push dword [ebp - 0x618]
push 0x100e3a14
push eax
call fcn.100080e0
push edi
lea eax, [ebp - 0x5f4]
push 0x100e3a14
push eax
call fcn.100080e0
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push eax
lea eax, [ebp - 0x39c]
push eax
push 0x100e4008
push str.config
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x464]
push eax
push str.totaldays
push str.config
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x52c]
push eax
push str.totaltimes
push str.config
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x5f4]
push eax
push str.todaytimes
push str.config
call esi
mov eax, dword [ebp - 0x620]
mov ecx, dword [ebp - 0x5fc]
mov dword [ebp - 0x5fc], 0
mov word [ebp - 0x5f8], 0x500
mov dword [eax], ebx
mov eax, dword [ebp - 0x618]
mov dword [ecx], eax
mov eax, dword [ebp - 0x600]
mov dword [eax], edi
lea eax, [ebp - 0x614]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x5fc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x600], eax
pop edi
pop esi
pop ebx
test eax, eax
je 0x1001110e
lea eax, [ebp - 0x600]
push eax
push dword [ebp - 0x614]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x614]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret 0x18