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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x414]
mov ebx, ecx
push 0
push eax
call fcn.00507800
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00507800
add esp, 0x18
mov dword [ebp - 0xa34], 0
lea eax, [ebp - 0x414]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4a3ee0
mov eax, dword [0x560cec]
mov dword [edi], eax
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a3f00
mov ecx, 7
mov esi, str.PuddingDesktop
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x4a3f23
mov dword [edi], eax
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a3f40
mov ecx, 7
mov esi, str.PuddingDesktop
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x414]
add ecx, 0xfffffffe
movsw word es:[edi], word [esi]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4a3f63
mov eax, dword [str..ini]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ecx], eax
mov eax, dword [0x560d38]
mov dword [ecx + 4], eax
mov ax, word [0x560d3c]
mov word [ecx + 8], ax
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x560c80
push str.InstallPath
push str.Globals
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
jne 0x4a3fd4
lea eax, [ebp - 0x414]
push eax
call fcn.00500c3a
add esp, 4
push 0x208
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.00507800
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.00507800
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0x560c80
push str.InstallPath
push str.Globals
call edi
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x824]
push str.PDUtty.exe
push eax
call fcn.00501308
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x414]
push eax
je 0x4a404e
push 0x560d80
jmp 0x4a4053
push 0x560d9c
push 0x560d84
push str.Globals
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x4a4155
cmp word [ebp - 0x20c], 0
mov dword [ebx + 0xc], 1
jne 0x4a4089
xor ecx, ecx
jmp 0x4a40a1
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4092
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x18]
call fcn.00499940
cmp word [ebp - 0x20c], 0
jne 0x4a40bf
xor edx, edx
jmp 0x4a40df
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4a40d0
sub edx, ecx
sar edx, 1
push edx
lea eax, [ebp - 0x20c]
lea ecx, [ebx + 0x30]
push eax
call fcn.00499940
cmp word [ebp - 0x20c], 0
jne 0x4a411c
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push eax
lea ecx, [ebx + 0x60]
call fcn.00499940
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcc20
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4125
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x60]
call fcn.00499940
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcc20
mov esp, ebp
pop ebp
ret
push 0x206
lea eax, [ebp - 0x61a]
push 0
push eax
call fcn.00507800
movups xmm0, xmmword [0x560da0]
mov eax, dword [0x560db0]
lea edi, [ebp - 0x61c]
add esp, 0xc
mov dword [ebp - 0x60c], eax
movups xmmword [ebp - 0x61c], xmm0
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4190
mov ecx, 7
lea eax, [ebp - 0xa30]
mov esi, str.PuddingDesktop
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x61c]
movsw word es:[edi], word [esi]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a4252
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xa38], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0xa30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a4252
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a4252
lea eax, [ebp - 0x20c]
mov dword [ebx + 0xc], 1
push eax
lea ecx, [ebx + 0x18]
mov dword [ebp - 0xa34], 1
call fcn.004a1230
lea eax, [ebp - 0x20c]
lea ecx, [ebx + 0x30]
push eax
call fcn.004a1230
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x60]
call fcn.004a1230
push dword [ebp - 0xa30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa34], 0
jne 0x4a433c
push 0
push 0x26
lea eax, [ebp - 0x20c]
mov dword [ebx + 0xc], 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x20c], 0
jne 0x4a4293
xor ecx, ecx
jmp 0x4a42af
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a42a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
lea esi, [ebx + 0x30]
push eax
mov ecx, esi
call fcn.00499940
push 1
push 0x560cec
mov ecx, esi
call fcn.004a5a50
push 0xe
push str.PuddingDesktop
mov ecx, esi
call fcn.004a5a50
push 1
push 0x560cec
mov ecx, esi
call fcn.004a5a50
lea ecx, [ebx + 0x18]
cmp ecx, esi
je 0x4a42fc
push 0xffffffffffffffff
push 0
push esi
call fcn.00499820
lea ecx, [ebx + 0x60]
cmp ecx, esi
je 0x4a430d
push 0xffffffffffffffff
push 0
push esi
call fcn.00499820
lea eax, [ebp - 0x414]
push eax
call fcn.00500c3a
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x4a4324
mov esi, dword [esi]
lea eax, [ebp - 0x414]
push eax
push esi
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bcc20
mov esp, ebp
pop ebp
ret