Function at 0x46d750
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.004b0500
mov eax, dword [0x651788]
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.004afb50
push 0x206
lea ecx, [esp + 0xc5e]
push ebx
push ecx
mov word [esp + 0xc64], bx
call fcn.004afb50
push 0x206
lea edx, [esp + 0x85a]
push ebx
push edx
mov word [esp + 0x860], bx
call fcn.004afb50
push 0x206
lea eax, [esp + 0xa6e]
push ebx
push eax
mov word [esp + 0xa74], bx
call fcn.004afb50
push 0x206
lea ecx, [esp + 0x25a]
push ebx
push ecx
mov word [esp + 0x260], bx
call fcn.004afb50
push 0x206
lea edx, [esp + 0x5e]
push ebx
push edx
mov word [esp + 0x64], bx
call fcn.004afb50
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 0x46d830
mov edx, dword [0x5a6604]
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 0x46d850
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 0x46d874
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 0x46d890
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 0x46d8b4
mov ecx, dword [str..ini]
mov edx, dword [0x581b98]
mov dword [eax], ecx
mov cx, word [0x581b9c]
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 0x5a6624
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
jmp 0x46d910
movzx ecx, word [esp + eax + 0xc4c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bx
jne 0x46d910
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 0x46d930
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x46d950
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x581c4c]
mov dword [eax], ecx
mov ecx, dword [0x581c50]
mov dword [eax + 4], edx
mov edx, dword [0x581c54]
mov dword [eax + 8], ecx
mov ecx, dword [0x581c58]
mov dword [eax + 0xc], edx
mov dx, word [0x581c5c]
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 0x46d9a0
mov eax, dword [0x5a6604]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x1c]
push ecx
mov dword [edi], eax
call ebp
test eax, eax
je 0x46da80
push 0x206
lea edx, [esp + 0x432]
push ebx
push edx
mov word [esp + 0x438], bx
call fcn.004afb50
add esp, 0xc
xor eax, eax
jmp 0x46d9f0
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
cmp cx, bx
jne 0x46d9f0
lea edi, [esp + 0x42c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x46da10
mov ecx, 9
mov esi, str.PeopleCalendar.exe
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x42c]
push eax
movsw word es:[edi], word [esi]
call ebp
test eax, eax
je 0x46da80
lea eax, [esp + 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46da42
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.00402120
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46da70
jmp 0x46e19b
push 0x206
lea eax, [esp + 0xe5a]
push ebx
push eax
mov word [esp + 0xe60], bx
call fcn.004afb50
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0xe54], cx
add eax, 2
cmp cx, bx
jne 0x46daa0
lea edi, [esp + 0xe54]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x46dac1
mov ecx, 7
mov esi, str.PeopleCalendar
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0xe60]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46dc93
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xa48]
push ecx
push ebx
push ebx
push str.InstallPath
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46dc93
movzx ecx, word [esp + eax + 0xa44]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bx
jne 0x46db30
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 0x46db50
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x46db70
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x581c4c]
mov dword [eax], ecx
mov ecx, dword [0x581c50]
mov dword [eax + 4], edx
mov edx, dword [0x581c54]
mov dword [eax + 8], ecx
mov ecx, dword [0x581c58]
mov dword [eax + 0xc], edx
mov dx, word [0x581c5c]
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 0x46dbc0
mov eax, dword [0x5a6604]
lea ecx, [esp + 0x1c]
push ecx
mov dword [edi], eax
call ebp
test eax, eax
je 0x46dc93
push 0x206
lea edx, [esp + 0x432]
push ebx
push edx
mov word [esp + 0x438], bx
call fcn.004afb50
add esp, 0xc
xor eax, eax
jmp 0x46dc10
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
cmp cx, bx
jne 0x46dc10
lea edi, [esp + 0x42c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x46dc30
mov ecx, 9
mov esi, str.PeopleCalendar.exe
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x42c]
push eax
movsw word es:[edi], word [esi]
call ebp
test eax, eax
je 0x46dc93
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.00403a70
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0x90]
call fcn.00403a70
mov ecx, esi
call fcn.0046c7d0
jmp 0x46e1b0
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 0x46dcc0
mov edx, dword [0x5a6604]
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 0x46dce0
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 0x46dd04
mov dword [edi], edx
xor eax, eax
jmp 0x46dd20
movzx ecx, word [esp + eax + 0x83c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bx
jne 0x46dd20
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 0x46dd40
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x46dd60
mov ecx, dword [str.1.0.1.0528]
mov dword [eax], ecx
mov ecx, dword [0x581c4c]
mov dword [eax + 4], ecx
mov ecx, dword [0x581c50]
mov dword [eax + 8], ecx
mov ecx, dword [0x581c54]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x581c58]
mov dword [eax + 0x10], ecx
mov cx, word [0x581c5c]
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 0x46ddb0
mov dword [edi], edx
lea edx, [esp + 0x1c]
push edx
call ebp
test eax, eax
je 0x46de8a
push 0x206
lea eax, [esp + 0x432]
push ebx
push eax
mov word [esp + 0x438], bx
call fcn.004afb50
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 0x46ddf0
lea edi, [esp + 0x42c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x46de10
mov ecx, 9
mov esi, str.PeopleCalendar.exe
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x42c]
push ecx
movsw word es:[edi], word [esi]
call ebp
test eax, eax
je 0x46de8a
lea eax, [esp + 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46de42
mov esi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x228]
push edx
lea ecx, [esi + 0x74]
call fcn.00402120
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46de70
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x20]
push eax
jmp 0x46e1a5
lea ecx, [esp + 0xc4c]
push ecx
call ebp
test eax, eax
je 0x46df9a
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 0x46dea0
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 0x46dec0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x46dee0
mov edx, dword [str.1.0.1.0528]
mov ecx, dword [0x581c4c]
mov dword [eax], edx
mov edx, dword [0x581c50]
mov dword [eax + 4], ecx
mov ecx, dword [0x581c54]
mov dword [eax + 8], edx
mov edx, dword [0x581c58]
mov dword [eax + 0xc], ecx
mov cx, word [0x581c5c]
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 0x46df30
mov edx, dword [0x5a6604]
lea eax, [esp + 0x224]
mov dword [edi], edx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46df50
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.00402120
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x46df80
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46df80
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
jmp 0x46e1a5
lea edx, [esp + 0xa44]
push edx
call ebp
test eax, eax
je 0x46e0a0
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0xa44]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bx
jne 0x46dfb0
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 0x46dfd0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x46dff0
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x581c4c]
mov dword [eax], ecx
mov ecx, dword [0x581c50]
mov dword [eax + 4], edx
mov edx, dword [0x581c54]
mov dword [eax + 8], ecx
mov ecx, dword [0x581c58]
mov dword [eax + 0xc], edx
mov dx, word [0x581c5c]
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 0x46e040
mov eax, dword [0x5a6604]
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 0x46e060
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.00402120
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x46e090
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46e090
jmp 0x46e19b
xor eax, eax
jmp 0x46e0b0
movzx ecx, word [esp + eax + 0x83c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bx
jne 0x46e0b0
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 0x46e0d0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x46e0f0
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x581c4c]
mov dword [eax], ecx
mov ecx, dword [0x581c50]
mov dword [eax + 4], edx
mov edx, dword [0x581c54]
mov dword [eax + 8], ecx
mov ecx, dword [0x581c58]
mov dword [eax + 0xc], edx
mov dx, word [0x581c5c]
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 0x46e140
mov eax, dword [0x5a6604]
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 0x46e160
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.00402120
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x46e190
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46e190
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x90]
call fcn.00402120
mov ecx, dword [esp + 0x105c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004aeca3
add esp, 0x1050
ret