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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x100405a0]
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
push edi
mov dword [ebp - 0x600], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.10022310
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x1003c454
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10021692
push str.WEBHOST_GH_CONFIG
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10021692
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001ac36
lea ecx, [ebp - 0x20c]
call fcn.1001aa66
push str.index.dat
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10021692
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push str.lastday
push str.config
call esi
mov dword [ebp - 0x61c], eax
lea eax, [ebp - 0x20c]
push eax
push edi
push str.totaldays
push str.config
call esi
mov dword [ebp - 0x614], eax
lea eax, [ebp - 0x20c]
push eax
push edi
push str.totaltimes
push str.config
call esi
mov dword [ebp - 0x618], eax
lea eax, [ebp - 0x20c]
push eax
push edi
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.10022310
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.10001d75
lea eax, [ebp - 0x2d4]
push eax
call fcn.1002193d
mov esi, dword [ebp - 0x61c]
add esp, 0x24
cmp esi, eax
je 0x1001ad34
inc dword [ebp - 0x614]
xor edi, edi
inc edi
mov dword [ebp - 0x61c], eax
mov dword [ebx], edi
mov esi, eax
jmp 0x1001ad38
and dword [ebx], 0
inc edi
inc dword [ebp - 0x618]
xor eax, eax
push 0xc6
mov word [ebp - 0x39c], ax
xor ebx, ebx
lea eax, [ebp - 0x39a]
push ebx
push eax
call fcn.10022310
xor eax, eax
push 0xc6
mov word [ebp - 0x464], ax
lea eax, [ebp - 0x462]
push ebx
push eax
call fcn.10022310
xor eax, eax
push 0xc6
mov word [ebp - 0x5f4], ax
lea eax, [ebp - 0x5f2]
push ebx
push eax
call fcn.10022310
xor eax, eax
push 0xc6
mov word [ebp - 0x52c], ax
lea eax, [ebp - 0x52a]
push ebx
push eax
call fcn.10022310
push esi
mov esi, 0x1003bfdc
lea eax, [ebp - 0x39c]
push esi
push eax
call fcn.10001d75
mov ebx, dword [ebp - 0x614]
push ebx
lea eax, [ebp - 0x464]
push esi
push eax
call fcn.10001d75
add esp, 0x48
lea eax, [ebp - 0x5f4]
push dword [ebp - 0x618]
push esi
push eax
call fcn.10001d75
push edi
lea eax, [ebp - 0x52c]
push esi
push eax
call fcn.10001d75
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x39c]
push eax
push str.lastday
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 - 0x5f4]
push eax
push str.totaltimes
push str.config
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x52c]
push eax
push str.todaytimes
push str.config
call esi
mov eax, dword [ebp - 0x620]
mov ecx, dword [ebp - 0x618]
mov dword [eax], ebx
mov eax, dword [ebp - 0x5fc]
xor ebx, ebx
mov dword [eax], ecx
mov eax, dword [ebp - 0x600]
mov dword [ebp - 0x5fc], ebx
mov dword [eax], edi
lea eax, [ebp - 0x614]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x5fc]
push eax
mov word [ebp - 0x5f8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x600], eax
test eax, eax
je 0x1001aee4
lea eax, [ebp - 0x600]
push eax
push dword [ebp - 0x614]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x614]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f816
leave
ret 0x10