Function at 0x1004b8e0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x610], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x618], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x61c], eax
mov ebx, ecx
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x624], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x620], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x614], ebx
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x100afc1c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
push dword [ebx + 0x18]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
mov ecx, dword [ebx + 0x1c]
add esp, 0x18
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
push str.index.dat
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [ebp - 0x20c]
add esp, 0xc
push eax
push 0
push 0x100a50e0
push str.config
call esi
mov dword [ebp - 0x60c], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.totaldays
push str.config
call esi
mov ebx, eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.totaltimes
push str.config
call esi
mov dword [ebp - 0x608], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.todaytimes
push str.config
call esi
mov edi, eax
lea eax, [ebp - 0x604]
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.1006ff30
movzx eax, word [ebp - 0x5fe]
push eax
movzx eax, word [ebp - 0x602]
push eax
movzx eax, word [ebp - 0x604]
push eax
lea eax, [ebp - 0x2d4]
push str._d_d_d
push eax
call fcn.1000fa30
mov eax, dword [ebp - 0x620]
add esp, 0x20
test eax, eax
je 0x1004baa2
lea ecx, [ebp - 0x20c]
push ecx
push dword [ebp + 0x1c]
push eax
push 0x100af9cc
push str.adidcol
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2d4]
push eax
call fcn.10070fb6
mov esi, dword [ebp - 0x60c]
add esp, 4
cmp esi, eax
je 0x1004bad7
mov dword [ebp - 0x60c], eax
mov edi, 1
mov eax, dword [ebp - 0x610]
inc ebx
mov esi, dword [ebp - 0x60c]
mov dword [eax], edi
jmp 0x1004bae4
mov eax, dword [ebp - 0x610]
inc edi
mov dword [eax], 0
inc dword [ebp - 0x608]
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x39c], ax
lea eax, [ebp - 0x39a]
push eax
call fcn.1006ff30
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x464], ax
lea eax, [ebp - 0x462]
push eax
call fcn.1006ff30
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x5f4], ax
lea eax, [ebp - 0x5f2]
push eax
call fcn.1006ff30
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x52c], ax
lea eax, [ebp - 0x52a]
push eax
call fcn.1006ff30
push esi
lea eax, [ebp - 0x39c]
push 0x1009be08
push eax
call fcn.1000fa30
push ebx
lea eax, [ebp - 0x464]
push 0x1009be08
push eax
call fcn.1000fa30
add esp, 0x48
lea eax, [ebp - 0x5f4]
push dword [ebp - 0x608]
push 0x1009be08
push eax
call fcn.1000fa30
push edi
lea eax, [ebp - 0x52c]
push 0x1009be08
push eax
call fcn.1000fa30
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push eax
lea eax, [ebp - 0x39c]
push eax
push 0x100a50e0
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 - 0x618]
mov ecx, dword [ebp - 0x61c]
mov esi, dword [ebp - 0x614]
mov dword [eax], ebx
mov eax, dword [ebp - 0x608]
mov dword [ecx], eax
mov eax, dword [ebp - 0x624]
mov dword [eax], edi
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
je 0x1004bc63
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 0x18