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

Disassembly:
sub esp, 0xa38
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0xa34], eax
push ebx
push ebp
push esi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x226]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x18], esi
mov word [esp + 0x22c], bx
call fcn.004afb50
push 0x206
lea ecx, [esp + 0x2a]
push ebx
push ecx
mov word [esp + 0x30], bx
call fcn.004afb50
push 0x206
lea edx, [esp + 0x446]
push ebx
push edx
mov word [esp + 0x44c], bx
call fcn.004afb50
add esp, 0x24
cmp dword [esi + 0xa8], 8
jb 0x46cd0e
mov eax, dword [esi + 0x94]
jmp 0x46cd14
lea eax, [esi + 0x94]
push str.PeopleCalendar.ini
push eax
lea eax, [esp + 0x430]
push 0x575968
push eax
call fcn.00405340
add esp, 0x10
lea ecx, [esp + 0x428]
push ecx
push 0x104
lea edx, [esp + 0x20]
push edx
push 0x5a6624
push str.CfgRootPath
push 0x572fd4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x18]
push eax
call ebp
test eax, eax
je 0x46cda9
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46cd70
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0x3c]
call fcn.00402120
mov byte [esi + 0x1c], 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa34]
xor ecx, esp
call fcn.004aeca3
add esp, 0xa38
ret
push edi
push ebx
push 0x2b
lea edx, [esp + 0x22c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x224]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x46cdc6
mov edx, dword [0x5a6604]
mov dword [edi], edx
lea edi, [esp + 0x224]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x46cde4
mov ecx, 7
mov esi, str.PeopleCalendar
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x224]
add edi, 0xfffffffe
jmp 0x46ce10
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x46ce10
mov dword [edi], edx
lea edi, [esp + 0x224]
add edi, 0xfffffffe
jmp 0x46ce30
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x46ce30
mov ecx, 7
mov esi, str.PeopleCalendar
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x224]
movsw word es:[edi], word [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x46ce54
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 + 0x224]
push edx
push 0x104
mov word [eax + 8], cx
lea eax, [esp + 0x24]
push eax
push 0x5a6624
push str.CfgRootPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x1c]
push ecx
call ebp
test eax, eax
je 0x46cedf
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46ceb5
mov esi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x3c]
call fcn.00402120
mov byte [esi + 0x1c], 1
jmp 0x46d058
push 0x206
lea eax, [esp + 0x63a]
push ebx
push eax
mov word [esp + 0x640], bx
call fcn.004afb50
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0x634], cx
add eax, 2
cmp cx, bx
jne 0x46cf00
lea edi, [esp + 0x634]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x46cf21
mov ecx, 7
mov esi, str.PeopleCalendar
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x640]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46cfb5
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push str.CfgRootPath
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46cfb5
lea eax, [esp + 0x1c]
push eax
call ebp
test eax, eax
je 0x46cfb5
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esi + 0x3c]
call fcn.00403a70
mov byte [esi + 0x1c], 1
jmp 0x46d058
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
push 0x104
lea ecx, [esp + 0x840]
push ecx
push ebx
mov byte [esi + 0x1c], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x83c]
push 0x5c
push edx
call fcn.004afca4
mov word [eax + 2], bx
push str.PeopleCalendar.ini
lea eax, [esp + 0x848]
push eax
lea ecx, [esp + 0x43c]
push 0x575968
push ecx
call fcn.00405340
add esp, 0x18
lea edx, [esp + 0x42c]
push edx
push 0x104
lea eax, [esp + 0x24]
push eax
push 0x5a6624
push str.CfgRootPath
push 0x572fd4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x1c]
push ecx
call ebp
test eax, eax
je 0x46d055
lea edx, [esp + 0x1c]
push edx
lea ecx, [esi + 0x3c]
call fcn.00403a70
mov byte [esi + 0x1c], 1
jmp 0x46d058
mov byte [esi + 0x1c], bl
mov ecx, dword [esp + 0xa44]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004aeca3
add esp, 0xa38
ret