Function at 0x4a4b90
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.004ea880
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x104c], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x206
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x63e]
push ecx
mov word [esp + 0x640], ax
call fcn.004e9ba0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xc62]
push eax
mov word [esp + 0xc64], dx
call fcn.004e9ba0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x85e]
push edx
mov word [esp + 0x860], cx
call fcn.004e9ba0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa72]
push ecx
mov word [esp + 0xa74], ax
call fcn.004e9ba0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x25e]
push eax
mov word [esp + 0x260], dx
call fcn.004e9ba0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x62]
push edx
mov word [esp + 0x64], cx
call fcn.004e9ba0
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0x48
push 0
push 0x2b
lea eax, [esp + 0x63c]
push eax
push 0
call ebp
lea edi, [esp + 0x634]
add edi, 0xfffffffe
jmp 0x4a4c80
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4c80
mov edx, dword [0x601624]
mov dword [edi], edx
lea edi, [esp + 0x634]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4ca0
mov ecx, 7
mov esi, 0x5fea14
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
test ax, ax
jne 0x4a4cc4
mov dword [edi], edx
lea edi, [esp + 0x634]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4ce0
mov ecx, 7
mov esi, 0x5fea14
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
test cx, cx
jne 0x4a4d04
mov ecx, dword [str..ini]
mov edx, dword [0x6145a8]
mov dword [eax], ecx
mov cx, word [0x6145ac]
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 0x5fd0cc
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
jmp 0x4a4d60
movzx ecx, word [esp + eax + 0xc4c]
mov word [esp + eax + 0x224], cx
add eax, 2
test cx, cx
jne 0x4a4d60
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
test cx, cx
jne 0x4a4d80
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a4da0
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x614670]
mov dword [eax], ecx
mov ecx, dword [0x614674]
mov dword [eax + 4], edx
mov edx, dword [0x614678]
mov dword [eax + 8], ecx
mov ecx, dword [0x61467c]
mov dword [eax + 0xc], edx
mov dx, word [0x614680]
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
test ax, ax
jne 0x4a4df0
mov eax, dword [0x601624]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x1c]
push ecx
mov dword [edi], eax
call ebx
test eax, eax
je 0x4a4eda
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x436]
push eax
mov word [esp + 0x438], dx
call fcn.004e9ba0
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
test cx, cx
jne 0x4a4e40
lea edi, [esp + 0x42c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4e60
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 ebx
test eax, eax
je 0x4a4eda
lea eax, [esp + 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a4e92
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.00401c70
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a4ec0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x20]
push eax
jmp 0x4a5615
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xe5e]
push edx
mov word [esp + 0xe60], cx
call fcn.004e9ba0
add esp, 0xc
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0xe54], cx
add eax, 2
test cx, cx
jne 0x4a4f00
lea edi, [esp + 0xe54]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4f21
mov ecx, 7
mov esi, 0x5fea14
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea ecx, [esp + 0xe60]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a5103
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xa48]
push eax
push 0
push 0
push str.InstallPath
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a5103
jmp 0x4a4fa0
movzx ecx, word [esp + eax + 0xa44]
mov word [esp + eax + 0x224], cx
add eax, 2
test cx, cx
jne 0x4a4fa0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
test cx, cx
jne 0x4a4fc0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a4fe0
mov edx, dword [str.1.0.1.0528]
mov ecx, dword [0x614670]
mov dword [eax], edx
mov edx, dword [0x614674]
mov dword [eax + 4], ecx
mov ecx, dword [0x614678]
mov dword [eax + 8], edx
mov edx, dword [0x61467c]
mov dword [eax + 0xc], ecx
mov cx, word [0x614680]
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
test ax, ax
jne 0x4a5030
mov edx, dword [0x601624]
lea eax, [esp + 0x1c]
push eax
mov dword [edi], edx
call ebx
test eax, eax
je 0x4a5103
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x436]
push edx
mov word [esp + 0x438], cx
call fcn.004e9ba0
add esp, 0xc
xor eax, eax
jmp 0x4a5080
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
test cx, cx
jne 0x4a5080
lea edi, [esp + 0x42c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a50a0
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 ebx
test eax, eax
je 0x4a5103
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.00402960
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0x90]
call fcn.00402960
mov ecx, esi
call fcn.004a3ab0
jmp 0x4a5620
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x26
lea edx, [esp + 0x844]
push edx
push 0
call ebp
lea edi, [esp + 0x83c]
add edi, 0xfffffffe
jmp 0x4a5130
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a5130
mov edx, dword [0x601624]
mov dword [edi], edx
lea edi, [esp + 0x83c]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a5150
mov ecx, 7
mov esi, 0x5fea14
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
test ax, ax
jne 0x4a5174
mov dword [edi], edx
xor eax, eax
jmp 0x4a5190
movzx ecx, word [esp + eax + 0x83c]
mov word [esp + eax + 0x224], cx
add eax, 2
test cx, cx
jne 0x4a5190
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
test cx, cx
jne 0x4a51b0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a51d0
mov ecx, dword [str.1.0.1.0528]
mov dword [eax], ecx
mov ecx, dword [0x614670]
mov dword [eax + 4], ecx
mov ecx, dword [0x614674]
mov dword [eax + 8], ecx
mov ecx, dword [0x614678]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x61467c]
mov dword [eax + 0x10], ecx
mov cx, word [0x614680]
lea edi, [esp + 0x1c]
mov word [eax + 0x14], cx
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a5220
mov dword [edi], edx
lea edx, [esp + 0x1c]
push edx
call ebx
test eax, eax
je 0x4a52fa
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x436]
push ecx
mov word [esp + 0x438], ax
call fcn.004e9ba0
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
test cx, cx
jne 0x4a5260
lea edi, [esp + 0x42c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a5280
mov ecx, 9
mov esi, str.PeopleCalendar.exe
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x42c]
push edx
movsw word es:[edi], word [esi]
call ebx
test eax, eax
je 0x4a52fa
lea eax, [esp + 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a52b2
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.00401c70
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a52e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
jmp 0x4a5615
lea edx, [esp + 0xc4c]
push edx
call ebx
test eax, eax
je 0x4a5400
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0xc4c]
mov word [esp + eax + 0x224], cx
add eax, 2
test cx, cx
jne 0x4a5310
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
test cx, cx
jne 0x4a5330
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a5350
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x614670]
mov dword [eax], ecx
mov ecx, dword [0x614674]
mov dword [eax + 4], edx
mov edx, dword [0x614678]
mov dword [eax + 8], ecx
mov ecx, dword [0x61467c]
mov dword [eax + 0xc], edx
mov dx, word [0x614680]
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
test ax, ax
jne 0x4a53a0
mov eax, dword [0x601624]
mov dword [edi], eax
lea eax, [esp + 0x224]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a53c0
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.00401c70
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x4a53f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a53f0
jmp 0x4a560b
lea eax, [esp + 0xa44]
push eax
call ebx
test eax, eax
je 0x4a5510
xor eax, eax
jmp 0x4a5420
movzx ecx, word [esp + eax + 0xa44]
mov word [esp + eax + 0x224], cx
add eax, 2
test cx, cx
jne 0x4a5420
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
test cx, cx
jne 0x4a5440
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a5460
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x614670]
mov dword [eax], ecx
mov ecx, dword [0x614674]
mov dword [eax + 4], edx
mov edx, dword [0x614678]
mov dword [eax + 8], ecx
mov ecx, dword [0x61467c]
mov dword [eax + 0xc], edx
mov dx, word [0x614680]
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
test ax, ax
jne 0x4a54b0
mov eax, dword [0x601624]
mov dword [edi], eax
lea eax, [esp + 0x224]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a54d0
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.00401c70
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x4a5500
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5500
jmp 0x4a560b
xor eax, eax
jmp 0x4a5520
movzx ecx, word [esp + eax + 0x83c]
mov word [esp + eax + 0x224], cx
add eax, 2
test cx, cx
jne 0x4a5520
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
test cx, cx
jne 0x4a5540
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a5560
mov ecx, dword [str.1.0.1.0528]
mov edx, dword [0x614670]
mov dword [eax], ecx
mov ecx, dword [0x614674]
mov dword [eax + 4], edx
mov edx, dword [0x614678]
mov dword [eax + 8], ecx
mov ecx, dword [0x61467c]
mov dword [eax + 0xc], edx
mov dx, word [0x614680]
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
test ax, ax
jne 0x4a55b0
mov eax, dword [0x601624]
mov dword [edi], eax
lea eax, [esp + 0x224]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a55d0
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.00401c70
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x4a5600
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5600
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x90]
call fcn.00401c70
mov ecx, dword [esp + 0x105c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e8c89
add esp, 0x1050
ret