Function at 0x10004e00
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x1050
call fcn.100145f0
mov eax, dword [0x10033d40]
xor eax, esp
mov dword [esp + 0x104c], eax
mov eax, dword [esp + 0x1054]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x206
lea ecx, [esp + 0x63a]
push ebp
push ecx
mov dword [esp + 0x1c], eax
mov word [esp + 0x640], bp
call fcn.10013d00
push 0x206
lea edx, [esp + 0xc5e]
push ebp
push edx
mov word [esp + 0xc64], bp
call fcn.10013d00
push 0x206
lea eax, [esp + 0x85a]
push ebp
push eax
mov word [esp + 0x860], bp
call fcn.10013d00
push 0x206
lea ecx, [esp + 0xa6e]
push ebp
push ecx
mov word [esp + 0xa74], bp
call fcn.10013d00
push 0x206
lea edx, [esp + 0x25a]
push ebp
push edx
mov word [esp + 0x260], bp
call fcn.10013d00
push 0x206
lea eax, [esp + 0x5e]
push ebp
push eax
mov word [esp + 0x64], bp
call fcn.10013d00
add esp, 0x48
push ebp
push 0x2b
lea ecx, [esp + 0x63c]
push ecx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x634]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10004ee4
mov edx, dword [0x1002c9dc]
mov dword [edi], edx
lea edi, [esp + 0x634]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10004f02
mov ecx, 7
mov esi, str.PeopleCalendar
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x634]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10004f26
mov dword [edi], edx
lea edi, [esp + 0x634]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10004f40
mov ecx, 7
mov esi, str.PeopleCalendar
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x634]
movsw word es:[edi], word [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x10004f64
mov edx, dword [0x1002c9e0]
mov ecx, dword [0x1002c9e4]
mov dword [eax], edx
mov dx, word [0x1002c9e8]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x634]
push eax
push 0x104
lea ecx, [esp + 0xc54]
push ecx
push 0x1002c29c
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
jmp 0x10004fc0
movzx ecx, word [esp + eax + 0xc4c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x10004fc0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x10004fe0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x10005000
mov edx, dword [str.1.0.1.0528]
mov ecx, dword [0x1002caec]
mov dword [eax], edx
mov edx, dword [0x1002caf0]
mov dword [eax + 4], ecx
mov ecx, dword [0x1002caf4]
mov dword [eax + 8], edx
mov edx, dword [0x1002caf8]
mov dword [eax + 0xc], ecx
mov cx, word [0x1002cafc]
lea edi, [esp + 0x1c]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10005050
mov edx, dword [0x1002c9dc]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x1c]
push eax
mov dword [edi], edx
call ebx
test eax, eax
je 0x10005150
push 0x206
lea ecx, [esp + 0x432]
push ebp
push ecx
mov word [esp + 0x438], bp
call fcn.10013d00
add esp, 0xc
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
cmp cx, bp
jne 0x100050a0
lea eax, [esp + 0x42c]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x100050c0
mov edx, dword [str.RiLi.exe]
mov ecx, dword [0x1002c1f0]
mov dword [eax], edx
mov edx, dword [0x1002c1f4]
mov dword [eax + 4], ecx
mov ecx, dword [0x1002c1f8]
mov dword [eax + 8], edx
mov dx, word [0x1002c1fc]
mov dword [eax + 0xc], ecx
mov word [eax + 0x10], dx
lea eax, [esp + 0x42c]
push eax
call ebx
test eax, eax
je 0x10005150
lea eax, [esp + 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10005112
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x228]
push ecx
lea esi, [edi + 0x74]
call fcn.10002300
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10005140
jmp 0x100058ab
push 0x206
lea eax, [esp + 0xe5a]
push ebp
push eax
mov word [esp + 0xe60], bp
call fcn.10013d00
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0xe54], cx
add eax, 2
cmp cx, bp
jne 0x10005170
lea edi, [esp + 0xe54]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10005191
mov ecx, 7
mov esi, str.PeopleCalendar
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebp
lea edx, [esp + 0xe60]
push edx
push 0x80000002
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005381
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xa48]
push ecx
push ebp
push ebp
push str.InstallPath
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005381
movzx ecx, word [esp + eax + 0xa44]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x10005200
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x10005220
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x10005240
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x1002caec]
mov dword [eax], ecx
mov ecx, dword [0x1002caf0]
mov dword [eax + 4], edx
mov edx, dword [0x1002caf4]
mov dword [eax + 8], ecx
mov ecx, dword [0x1002caf8]
mov dword [eax + 0xc], edx
mov dx, word [0x1002cafc]
lea edi, [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10005290
mov eax, dword [0x1002c9dc]
lea ecx, [esp + 0x1c]
push ecx
mov dword [edi], eax
call ebx
test eax, eax
je 0x10005381
push 0x206
lea edx, [esp + 0x432]
push ebp
push edx
mov word [esp + 0x438], bp
call fcn.10013d00
add esp, 0xc
xor eax, eax
jmp 0x100052e0
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
cmp cx, bp
jne 0x100052e0
lea eax, [esp + 0x42c]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x10005300
mov ecx, dword [str.RiLi.exe]
mov edx, dword [0x1002c1f0]
mov dword [eax], ecx
mov ecx, dword [0x1002c1f4]
mov dword [eax + 4], edx
mov edx, dword [0x1002c1f8]
mov dword [eax + 8], ecx
mov cx, word [0x1002c1fc]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x42c]
push edx
mov word [eax + 0x10], cx
call ebx
test eax, eax
je 0x10005381
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x10]
lea ecx, [ebx + 0x74]
push ecx
lea edx, [esp + 0x228]
call fcn.10002220
lea edx, [ebx + 0x90]
push edx
lea edx, [esp + 0x20]
call fcn.10002220
call fcn.10005ce0
jmp 0x100058c0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push 0x26
lea ecx, [esp + 0x844]
push ecx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x83c]
add edi, 0xfffffffe
jmp 0x100053b0
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x100053b0
mov edx, dword [0x1002c9dc]
mov dword [edi], edx
lea edi, [esp + 0x83c]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x100053d0
mov ecx, 7
mov esi, str.PeopleCalendar
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x83c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x100053f4
mov dword [edi], edx
xor eax, eax
jmp 0x10005410
movzx ecx, word [esp + eax + 0x83c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x10005410
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x10005430
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x10005450
mov ecx, dword [str.1.0.1.0528]
mov dword [eax], ecx
mov ecx, dword [0x1002caec]
mov dword [eax + 4], ecx
mov ecx, dword [0x1002caf0]
mov dword [eax + 8], ecx
mov ecx, dword [0x1002caf4]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x1002caf8]
mov dword [eax + 0x10], ecx
mov cx, word [0x1002cafc]
lea edi, [esp + 0x1c]
mov word [eax + 0x14], cx
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x100054a0
mov dword [edi], edx
lea edx, [esp + 0x1c]
push edx
call ebx
test eax, eax
je 0x1000559a
push 0x206
lea eax, [esp + 0x432]
push ebp
push eax
mov word [esp + 0x438], bp
call fcn.10013d00
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
cmp cx, bp
jne 0x100054e0
lea eax, [esp + 0x42c]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x10005500
mov ecx, dword [str.RiLi.exe]
mov edx, dword [0x1002c1f0]
mov dword [eax], ecx
mov ecx, dword [0x1002c1f4]
mov dword [eax + 4], edx
mov edx, dword [0x1002c1f8]
mov dword [eax + 8], ecx
mov cx, word [0x1002c1fc]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x42c]
push edx
mov word [eax + 0x10], cx
call ebx
test eax, eax
je 0x1000559a
lea eax, [esp + 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10005552
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x228]
push eax
lea esi, [edi + 0x74]
call fcn.10002300
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10005580
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
jmp 0x100058b5
lea edx, [esp + 0xc4c]
push edx
call ebx
test eax, eax
je 0x100056a0
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0xc4c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x100055b0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x100055d0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x100055f0
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x1002caec]
mov dword [eax], ecx
mov ecx, dword [0x1002caf0]
mov dword [eax + 4], edx
mov edx, dword [0x1002caf4]
mov dword [eax + 8], ecx
mov ecx, dword [0x1002caf8]
mov dword [eax + 0xc], edx
mov dx, word [0x1002cafc]
lea edi, [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10005640
mov eax, dword [0x1002c9dc]
mov dword [edi], eax
lea eax, [esp + 0x224]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10005660
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x228]
push ecx
lea esi, [edi + 0x74]
call fcn.10002300
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x10005690
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10005690
jmp 0x100058ab
lea eax, [esp + 0xa44]
push eax
call ebx
test eax, eax
je 0x100057b0
xor eax, eax
jmp 0x100056c0
movzx ecx, word [esp + eax + 0xa44]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x100056c0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x100056e0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x10005700
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x1002caec]
mov dword [eax], ecx
mov ecx, dword [0x1002caf0]
mov dword [eax + 4], edx
mov edx, dword [0x1002caf4]
mov dword [eax + 8], ecx
mov ecx, dword [0x1002caf8]
mov dword [eax + 0xc], edx
mov dx, word [0x1002cafc]
lea edi, [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10005750
mov eax, dword [0x1002c9dc]
mov dword [edi], eax
lea eax, [esp + 0x224]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10005770
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x228]
push ecx
lea esi, [edi + 0x74]
call fcn.10002300
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x100057a0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100057a0
jmp 0x100058ab
xor eax, eax
jmp 0x100057c0
movzx ecx, word [esp + eax + 0x83c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x100057c0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x100057e0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x10005800
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x1002caec]
mov dword [eax], ecx
mov ecx, dword [0x1002caf0]
mov dword [eax + 4], edx
mov edx, dword [0x1002caf4]
mov dword [eax + 8], ecx
mov ecx, dword [0x1002caf8]
mov dword [eax + 0xc], edx
mov dx, word [0x1002cafc]
lea edi, [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10005850
mov eax, dword [0x1002c9dc]
mov dword [edi], eax
lea eax, [esp + 0x224]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10005870
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x228]
push ecx
lea esi, [edi + 0x74]
call fcn.10002300
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x100058a0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100058a0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
lea esi, [edi + 0x90]
call fcn.10002300
mov ecx, dword [esp + 0x105c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10010273
add esp, 0x1050
ret 4