Function at 0x48e570
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9cbe
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], ecx
push 0x20a
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.004307d0
add esp, 0xc
push 0
push 0x26
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x21c]
push edx
push str.prog
mov ecx, dword [ebp + 8]
call fcn.0040db10
lea eax, [ebp - 0x21c]
push eax
call sym.Install_adv.exe_int___cdecl_GetDesktopPath_wchar_t__
add esp, 4
lea ecx, [ebp - 0x21c]
push ecx
push str.desktop
mov ecx, dword [ebp + 8]
call fcn.0040db10
lea edx, [ebp - 0x21c]
push edx
call sym.Install_adv.exe_int___cdecl_GetProgramsPath_wchar_t__
add esp, 4
push 0x4c55d0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 0x224]
add ecx, 0xd08
push ecx
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x21c]
push eax
push 0x4c55d4
mov ecx, dword [ebp + 8]
call fcn.0040db10
mov ecx, dword [ebp - 0x224]
add ecx, 0x16b0
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push str.myapp
mov ecx, dword [ebp + 8]
call fcn.0040db10
push 0
push 0x1c
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x21c]
push edx
push str.appdata
mov ecx, dword [ebp + 8]
call fcn.0040db10
call sym.Install_adv.exe_int___cdecl_isSys64_void_
test eax, eax
je 0x48e75d
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea ecx, [ebp - 0x21c]
push ecx
push 0x4c5610
mov ecx, dword [ebp + 8]
call fcn.0040db10
push 0x104
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x21c]
push eax
push 0x4c561c
mov ecx, dword [ebp + 8]
call fcn.0040db10
push 0
push 0x26
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x220]
call fcn.004093e0
mov dword [ebp - 4], 0
push 0x4c562c
push str.__x86_
lea ecx, [ebp - 0x220]
call fcn.0040db10
lea ecx, [ebp - 0x220]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c5640
mov ecx, dword [ebp + 8]
call fcn.0040db10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.004093c0
jmp 0x48e7be
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x21c]
push ecx
push str.sys
mov ecx, dword [ebp + 8]
call fcn.0040db10
lea edx, [ebp - 0x21c]
push edx
push str.sys64
mov ecx, dword [ebp + 8]
call fcn.0040db10
push 0
push 0x26
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
push ecx
push str.prog64
mov ecx, dword [ebp + 8]
call fcn.0040db10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret 4