Function at 0x10040840
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x42c
lea ebp, [esp - 4]
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0x42c], eax
push 0x34
mov eax, 0x1016dbc2
call fcn.10075e22
mov dword [ebp - 0x14], ecx
call fcn.10041669
push eax
mov dword [ebp - 0x20], eax
call fcn.1001dcf9
pop ecx
mov dword [ebp - 0x10], eax
call fcn.10004cf1
mov ecx, eax
call fcn.1001b47e
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
push ebx
push 0
push str.InstallTime
mov edi, str.Setting
push edi
mov dword [ebp - 0x24], ebx
call esi
push ebx
push 0
push str.DelayDailyWordDate
push edi
mov dword [ebp - 0x1c], eax
call esi
imul eax, eax, 0x15180
push eax
call fcn.10079eb8
pop ecx
push ebx
push 0
mov ebx, str.LastPopupDailyWordDate
push ebx
mov edi, str.PushDailyWord
push edi
mov dword [ebp - 0x18], eax
call esi
cmp dword [ebp - 0x10], eax
jne 0x10040910
call fcn.10004cf1
xor esi, esi
cmp dword [eax + 0x224], esi
jne 0x10040912
mov ecx, dword [ebp - 0x14]
call fcn.1003ff4c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x42c]
xor ecx, ebp
call fcn.10075e13
add ebp, 0x430
leave
ret
xor esi, esi
push 0x206
lea eax, [ebp + 0x226]
push esi
push eax
mov word [ebp + 0x224], si
call fcn.10076580
push dword [ebp - 0x10]
lea eax, [ebp + 0x224]
push 0x10174330
push eax
call fcn.100048d5
add esp, 0x18
push dword [ebp - 0x24]
lea eax, [ebp + 0x224]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
push eax
call fcn.10079eb8
cmp eax, dword [ebp - 0x18]
pop ecx
jge 0x10040977
call fcn.10004cf1
cmp dword [eax + 0x224], esi
je 0x100408e3
push str.PushDayWordsCfgAddress
call fcn.10004cf1
mov ecx, eax
call fcn.1000d229
push 0x2710
push 1
mov edi, eax
call fcn.1001db8f
push eax
push edi
lea eax, [ebp + 0x1c]
push str._s_rand_d
push eax
call fcn.100048d5
add esp, 0x18
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x40]
call fcn.100015f0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 4], esi
call fcn.1001fb72
pop ecx
pop ecx
push esi
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.100017f0
push 0x48
call fcn.10052ae7
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, esi
mov byte [ebp - 4], 3
je 0x100409f5
mov ecx, eax
call fcn.1002bc8f
mov dword [ebp - 0x10], eax
jmp 0x100409f8
mov dword [ebp - 0x10], esi
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
mov byte [ebp - 4], 2
jae 0x10040a08
lea eax, [ebp + 4]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.1002bde5
mov ecx, dword [ebp - 0x10]
call fcn.1004849a
mov edi, eax
mov eax, dword [edi + 0x10]
add edi, 0xc
cmp eax, esi
je 0x10040a2c
mov ebx, dword [edi + 8]
sub ebx, eax
jne 0x10040a2f
xor ebx, ebx
inc ebx
push ebx
call fcn.10052b12
push ebx
xor ebx, ebx
mov esi, eax
push ebx
push esi
call fcn.10076580
add esp, 0x10
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10040a64
mov eax, dword [edi + 8]
sub eax, ecx
cmp ebx, eax
jae 0x10040a64
push ebx
mov ecx, edi
call fcn.1002c19a
mov al, byte [eax]
mov byte [ebx + esi], al
inc ebx
jmp 0x10040a44
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10040a71
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x14]
push esi
call fcn.10040596
test eax, eax
jne 0x10040a9e
test esi, esi
je 0x10040a89
push esi
call fcn.10052b17
pop ecx
xor esi, esi
push 0
push 1
lea ecx, [ebp]
call fcn.10001770
mov eax, esi
jmp 0x100408ed
test esi, esi
je 0x10040aa9
push esi
call fcn.10052b17
pop ecx
xor esi, esi
inc esi
jmp 0x10040a8b