Function at 0x4a43d0
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 ebx
push ebp
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
lea ecx, [esp + 0x22a]
push ecx
mov dword [esp + 0x18], esi
mov word [esp + 0x22c], ax
call fcn.004e9ba0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2e]
push eax
mov word [esp + 0x30], dx
call fcn.004e9ba0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x44a]
push edx
mov word [esp + 0x44c], cx
call fcn.004e9ba0
add esp, 0x24
cmp dword [esi + 0xa8], 8
jb 0x4a4452
mov eax, dword [esi + 0x94]
jmp 0x4a4458
lea eax, [esi + 0x94]
push str.PeopleCalendar.ini
push eax
lea eax, [esp + 0x430]
push 0x60248c
push eax
call fcn.00403b80
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x10
lea ecx, [esp + 0x428]
push ecx
push 0x104
lea edx, [esp + 0x20]
push edx
push 0x5fd0cc
push str.CfgUserPath
push 0x5fefd4
call ebp
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x18]
push eax
call ebx
test eax, eax
je 0x4a44ed
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a44b4
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0x20]
call fcn.00401c70
mov byte [esi + 0x1d], 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa34]
xor ecx, esp
call fcn.004e8c89
add esp, 0xa38
ret
push edi
push 0
push 0x2b
lea edx, [esp + 0x22c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x224]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4510
mov edx, dword [0x601624]
mov dword [edi], edx
lea edi, [esp + 0x224]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4530
mov ecx, 7
mov esi, 0x5fea14
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x224]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4554
mov dword [edi], edx
lea edi, [esp + 0x224]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4570
mov ecx, 7
mov esi, 0x5fea14
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
test cx, cx
jne 0x4a4594
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 + 0x224]
push edx
push 0x104
mov word [eax + 8], cx
lea eax, [esp + 0x24]
push eax
push 0x5fd0cc
push str.CfgUserPath
push str.Globals
call ebp
lea ecx, [esp + 0x1c]
push ecx
call ebx
test eax, eax
je 0x4a461b
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a45f1
mov esi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x20]
call fcn.00401c70
mov byte [esi + 0x1d], 1
jmp 0x4a479a
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x63e]
push ecx
mov word [esp + 0x640], ax
call fcn.004e9ba0
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0x634], cx
add eax, 2
test cx, cx
jne 0x4a4640
lea edi, [esp + 0x634]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4661
mov ecx, 7
mov esi, 0x5fea14
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x640]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a46f6
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.CfgUserPath
push eax
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a46f6
lea ecx, [esp + 0x1c]
push ecx
call ebx
test eax, eax
je 0x4a46f6
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0x20]
call fcn.00402960
mov byte [esi + 0x1d], 1
jmp 0x4a479a
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea edx, [esp + 0x840]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x83c]
push 0x5c
push eax
call fcn.004e9c3b
push str.PeopleCalendar.ini
lea edx, [esp + 0x848]
xor ecx, ecx
push edx
mov word [eax + 2], cx
lea eax, [esp + 0x43c]
push 0x60248c
push eax
call fcn.00403b80
add esp, 0x18
lea ecx, [esp + 0x42c]
push ecx
push 0x104
lea edx, [esp + 0x24]
push edx
push 0x5fd0cc
push str.CfgUserPath
push 0x5fefd4
call ebp
lea eax, [esp + 0x1c]
push eax
call ebx
test eax, eax
je 0x4a4792
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0x20]
call fcn.00402960
mov byte [esi + 0x1d], 1
jmp 0x4a479a
mov edx, dword [esp + 0x10]
mov byte [edx + 0x1d], 0
mov ecx, dword [esp + 0xa44]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e8c89
add esp, 0xa38
ret