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

Disassembly:
sub esp, 0xa38
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0xa34], eax
push ebp
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
lea ecx, [esp + 0x226]
push ecx
mov dword [esp + 0x14], esi
mov word [esp + 0x228], ax
call fcn.004e9ba0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2a]
push eax
mov word [esp + 0x2c], dx
call fcn.004e9ba0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x446]
push edx
mov word [esp + 0x448], cx
call fcn.004e9ba0
add esp, 0x24
cmp dword [esi + 0xa8], 8
jb 0x4a4021
mov eax, dword [esi + 0x94]
jmp 0x4a4027
lea eax, [esi + 0x94]
push str.PeopleCalendar.ini
push eax
lea eax, [esp + 0x42c]
push 0x60248c
push eax
call fcn.00403b80
add esp, 0x10
lea ecx, [esp + 0x424]
push ecx
push 0x104
lea edx, [esp + 0x1c]
push edx
push 0x5fd0cc
push str.CfgRootPath
push 0x5fefd4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x14]
push eax
call ebp
test eax, eax
je 0x4a40b9
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a4081
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x3c]
call fcn.00401c70
mov byte [esi + 0x1c], 1
pop esi
pop ebp
mov ecx, dword [esp + 0xa34]
xor ecx, esp
call fcn.004e8c89
add esp, 0xa38
ret
push edi
push 0
push 0x2b
lea edx, [esp + 0x228]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x220]
add edi, 0xfffffffe
jmp 0x4a40e0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a40e0
mov edx, dword [0x601624]
mov dword [edi], edx
lea edi, [esp + 0x220]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4100
mov ecx, 7
mov esi, 0x5fea14
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x220]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4124
mov dword [edi], edx
lea edi, [esp + 0x220]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4140
mov ecx, 7
mov esi, 0x5fea14
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x220]
movsw word es:[edi], word [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a4164
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 + 0x220]
push edx
push 0x104
mov word [eax + 8], cx
lea eax, [esp + 0x20]
push eax
push 0x5fd0cc
push str.CfgRootPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x18]
push ecx
call ebp
test eax, eax
je 0x4a4202
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a41c5
mov esi, dword [esp + 0xc]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esi + 0x3c]
call fcn.00401c70
pop edi
mov byte [esi + 0x1c], 1
pop esi
pop ebp
mov ecx, dword [esp + 0xa34]
xor ecx, esp
call fcn.004e8c89
add esp, 0xa38
ret
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x63a]
push ecx
mov word [esp + 0x63c], ax
call fcn.004e9ba0
add esp, 0xc
xor eax, eax
jmp 0x4a4230
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0x630], cx
add eax, 2
test cx, cx
jne 0x4a4230
lea edi, [esp + 0x630]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4251
mov ecx, 7
mov esi, 0x5fea14
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x63c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a42f9
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.CfgRootPath
push eax
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a42f9
lea ecx, [esp + 0x18]
push ecx
call ebp
test eax, eax
je 0x4a42f9
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x3c]
call fcn.00402960
pop edi
mov byte [esi + 0x1c], 1
pop esi
pop ebp
mov ecx, dword [esp + 0xa34]
xor ecx, esp
call fcn.004e8c89
add esp, 0xa38
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0xc]
push 0x104
lea edx, [esp + 0x83c]
push edx
push 0
mov byte [esi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x838]
push 0x5c
push eax
call fcn.004e9c3b
push str.PeopleCalendar.ini
lea edx, [esp + 0x844]
xor ecx, ecx
push edx
mov word [eax + 2], cx
lea eax, [esp + 0x438]
push 0x60248c
push eax
call fcn.00403b80
add esp, 0x18
lea ecx, [esp + 0x428]
push ecx
push 0x104
lea edx, [esp + 0x20]
push edx
push 0x5fd0cc
push str.CfgRootPath
push 0x5fefd4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x18]
push eax
call ebp
test eax, eax
je 0x4a43b3
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x3c]
call fcn.00402960
pop edi
mov byte [esi + 0x1c], 1
pop esi
pop ebp
mov ecx, dword [esp + 0xa34]
xor ecx, esp
call fcn.004e8c89
add esp, 0xa38
ret
mov ecx, dword [esp + 0xa40]
pop edi
mov byte [esi + 0x1c], 0
pop esi
pop ebp
xor ecx, esp
call fcn.004e8c89
add esp, 0xa38
ret