Function at 0x416870
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.0042e440
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x104c], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x63a]
push ebx
push eax
mov dword [esp + 0x1c], ecx
mov word [esp + 0x640], bx
call fcn.0042cac0
push 0x206
lea ecx, [esp + 0xc5e]
push ebx
push ecx
mov word [esp + 0xc64], bx
call fcn.0042cac0
push 0x206
lea edx, [esp + 0x85a]
push ebx
push edx
mov word [esp + 0x860], bx
call fcn.0042cac0
push 0x206
lea eax, [esp + 0xa6e]
push ebx
push eax
mov word [esp + 0xa74], bx
call fcn.0042cac0
push 0x206
lea ecx, [esp + 0x25a]
push ebx
push ecx
mov word [esp + 0x260], bx
call fcn.0042cac0
push 0x206
lea edx, [esp + 0x5e]
push ebx
push edx
mov word [esp + 0x64], bx
call fcn.0042cac0
add esp, 0x48
push ebx
push 0x2b
lea eax, [esp + 0x63c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x634]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x416950
mov edx, dword [0x47fe18]
mov dword [edi], edx
lea edi, [esp + 0x634]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x416970
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, bx
jne 0x416994
mov dword [edi], edx
lea edi, [esp + 0x634]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4169b0
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, bx
jne 0x4169d4
mov ecx, dword [str..ini]
mov edx, dword [0x48096c]
mov dword [eax], ecx
mov cx, word [0x480970]
mov dword [eax + 4], edx
lea edx, [esp + 0x634]
push edx
push 0x104
mov word [eax + 8], cx
lea eax, [esp + 0xc54]
push eax
push 0x47fe24
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
jmp 0x416a30
movzx ecx, word [esp + eax + 0xc4c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bx
jne 0x416a30
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bx
jne 0x416a50
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x416a70
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x480610]
mov dword [eax], ecx
mov ecx, dword [0x480614]
mov dword [eax + 4], edx
mov edx, dword [0x480618]
mov dword [eax + 8], ecx
mov ecx, dword [0x48061c]
mov dword [eax + 0xc], edx
mov dx, word [0x480620]
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, bx
jne 0x416ac0
mov eax, dword [0x47fe18]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x1c]
push ecx
mov dword [edi], eax
call ebp
test eax, eax
je 0x416bca
push 0x206
lea edx, [esp + 0x432]
push ebx
push edx
mov word [esp + 0x438], bx
call fcn.0042cac0
add esp, 0xc
xor eax, eax
jmp 0x416b10
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
cmp cx, bx
jne 0x416b10
lea eax, [esp + 0x42c]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x416b30
mov ecx, dword [str.RiLi.exe]
mov edx, dword [0x48064c]
mov dword [eax], ecx
mov ecx, dword [0x480650]
mov dword [eax + 4], edx
mov edx, dword [0x480654]
mov dword [eax + 8], ecx
mov cx, word [0x480658]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x42c]
push edx
mov word [eax + 0x10], cx
call ebp
test eax, eax
je 0x416bca
lea eax, [esp + 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416b82
mov esi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x228]
push eax
lea ecx, [esi + 0x74]
call fcn.00401850
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416bb0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
jmp 0x417335
push 0x206
lea edx, [esp + 0xe5a]
push ebx
push edx
mov word [esp + 0xe60], bx
call fcn.0042cac0
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0xe54], cx
add eax, 2
cmp cx, bx
jne 0x416bf0
lea edi, [esp + 0xe54]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x416c11
mov ecx, 7
mov esi, str.PeopleCalendar
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0xe60]
push ecx
push reloc.WS2_32.dll_bind
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416e03
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xa48]
push eax
push ebx
push ebx
push str.InstallPath
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416e03
movzx ecx, word [esp + eax + 0xa44]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bx
jne 0x416c80
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bx
jne 0x416ca0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x416cc0
mov edx, dword [str.1.0.1.0528]
mov ecx, dword [0x480610]
mov dword [eax], edx
mov edx, dword [0x480614]
mov dword [eax + 4], ecx
mov ecx, dword [0x480618]
mov dword [eax + 8], edx
mov edx, dword [0x48061c]
mov dword [eax + 0xc], ecx
mov cx, word [0x480620]
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, bx
jne 0x416d10
mov edx, dword [0x47fe18]
lea eax, [esp + 0x1c]
push eax
mov dword [edi], edx
call ebp
test eax, eax
je 0x416e03
push 0x206
lea ecx, [esp + 0x432]
push ebx
push ecx
mov word [esp + 0x438], bx
call fcn.0042cac0
add esp, 0xc
xor eax, eax
jmp 0x416d60
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
cmp cx, bx
jne 0x416d60
lea eax, [esp + 0x42c]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x416d80
mov edx, dword [str.RiLi.exe]
mov ecx, dword [0x48064c]
mov dword [eax], edx
mov edx, dword [0x480650]
mov dword [eax + 4], ecx
mov ecx, dword [0x480654]
mov dword [eax + 8], edx
mov dx, word [0x480658]
mov dword [eax + 0xc], ecx
mov word [eax + 0x10], dx
lea eax, [esp + 0x42c]
push eax
call ebp
test eax, eax
je 0x416e03
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x224]
push edx
lea ecx, [esi + 0x74]
call fcn.00401930
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0x90]
call fcn.00401930
mov ecx, esi
call fcn.00415ae0
jmp 0x417340
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 0x26
lea edx, [esp + 0x844]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x83c]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x416e30
mov edx, dword [0x47fe18]
mov dword [edi], edx
lea edi, [esp + 0x83c]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x416e50
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, bx
jne 0x416e74
mov dword [edi], edx
xor eax, eax
jmp 0x416e90
movzx ecx, word [esp + eax + 0x83c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bx
jne 0x416e90
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bx
jne 0x416eb0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x416ed0
mov ecx, dword [str.1.0.1.0528]
mov dword [eax], ecx
mov ecx, dword [0x480610]
mov dword [eax + 4], ecx
mov ecx, dword [0x480614]
mov dword [eax + 8], ecx
mov ecx, dword [0x480618]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x48061c]
mov dword [eax + 0x10], ecx
mov cx, word [0x480620]
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, bx
jne 0x416f20
mov dword [edi], edx
lea edx, [esp + 0x1c]
push edx
call ebp
test eax, eax
je 0x41701a
push 0x206
lea eax, [esp + 0x432]
push ebx
push eax
mov word [esp + 0x438], bx
call fcn.0042cac0
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, bx
jne 0x416f60
lea eax, [esp + 0x42c]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x416f80
mov ecx, dword [str.RiLi.exe]
mov edx, dword [0x48064c]
mov dword [eax], ecx
mov ecx, dword [0x480650]
mov dword [eax + 4], edx
mov edx, dword [0x480654]
mov dword [eax + 8], ecx
mov cx, word [0x480658]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x42c]
push edx
mov word [eax + 0x10], cx
call ebp
test eax, eax
je 0x41701a
lea eax, [esp + 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416fd2
mov esi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x228]
push eax
lea ecx, [esi + 0x74]
call fcn.00401850
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417000
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
jmp 0x417335
lea edx, [esp + 0xc4c]
push edx
call ebp
test eax, eax
je 0x417120
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0xc4c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bx
jne 0x417030
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bx
jne 0x417050
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x417070
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x480610]
mov dword [eax], ecx
mov ecx, dword [0x480614]
mov dword [eax + 4], edx
mov edx, dword [0x480618]
mov dword [eax + 8], ecx
mov ecx, dword [0x48061c]
mov dword [eax + 0xc], edx
mov dx, word [0x480620]
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, bx
jne 0x4170c0
mov eax, dword [0x47fe18]
mov dword [edi], eax
lea eax, [esp + 0x224]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4170e0
mov esi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x228]
push ecx
lea ecx, [esi + 0x74]
call fcn.00401850
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x417110
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417110
jmp 0x41732b
lea eax, [esp + 0xa44]
push eax
call ebp
test eax, eax
je 0x417230
xor eax, eax
jmp 0x417140
movzx ecx, word [esp + eax + 0xa44]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bx
jne 0x417140
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bx
jne 0x417160
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x417180
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x480610]
mov dword [eax], ecx
mov ecx, dword [0x480614]
mov dword [eax + 4], edx
mov edx, dword [0x480618]
mov dword [eax + 8], ecx
mov ecx, dword [0x48061c]
mov dword [eax + 0xc], edx
mov dx, word [0x480620]
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, bx
jne 0x4171d0
mov eax, dword [0x47fe18]
mov dword [edi], eax
lea eax, [esp + 0x224]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4171f0
mov esi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x228]
push ecx
lea ecx, [esi + 0x74]
call fcn.00401850
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x417220
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417220
jmp 0x41732b
xor eax, eax
jmp 0x417240
movzx ecx, word [esp + eax + 0x83c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bx
jne 0x417240
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bx
jne 0x417260
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x417280
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x480610]
mov dword [eax], ecx
mov ecx, dword [0x480614]
mov dword [eax + 4], edx
mov edx, dword [0x480618]
mov dword [eax + 8], ecx
mov ecx, dword [0x48061c]
mov dword [eax + 0xc], edx
mov dx, word [0x480620]
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, bx
jne 0x4172d0
mov eax, dword [0x47fe18]
mov dword [edi], eax
lea eax, [esp + 0x224]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4172f0
mov esi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x228]
push ecx
lea ecx, [esi + 0x74]
call fcn.00401850
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x417320
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417320
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x90]
call fcn.00401850
mov ecx, dword [esp + 0x105c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042caa2
add esp, 0x1050
ret