Function at 0x4a4350
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
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
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 dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4a43b0
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 0x4a43d0
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 0x4a43f3
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 0x4a4410
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 0x4a4433
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.CfgRootPath
push str.Globals
call edi
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4490
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4a450a
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x4a450a
cmp word [ebp - 0x20c], 0
jne 0x4a44c4
xor ecx, ecx
jmp 0x4a44df
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a44d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x48]
call fcn.00499940
pop edi
pop esi
mov dword [ebx + 0x230], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcc20
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x824]
push 0x5c
push eax
call fcn.00508963
xor ecx, ecx
push 0x208
push ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x61c]
push eax
call fcn.00507800
push str.PuddingDesktop.ini
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push 0x560df4
push eax
call fcn.004a5fd0
add esp, 0x24
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x560c80
push str.CfgRootPath
push str.AppInfo
call edi
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4591
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4a45e0
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x4a45e0
cmp word [ebp - 0x20c], 0
je 0x4a44c0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a45d0
jmp 0x4a44db
cmp dword [ebx + 0x44], 8
lea eax, [ebx + 0x30]
jb 0x4a45eb
mov eax, dword [eax]
push str.PuddingDesktop.ini
push eax
lea eax, [ebp - 0x61c]
push 0x560df4
push eax
call fcn.004a5fd0
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x560c80
push str.CfgRootPath
push str.AppInfo
call edi
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4632
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4a4666
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x4a4666
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x48]
call fcn.004a1230
jmp 0x4a44ef
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx + 0x230], 0
xor ecx, ebp
pop ebx
call fcn.004bcc20
mov esp, ebp
pop ebp
ret