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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9f34
mov eax, dword fs:[0]
push eax
sub esp, 0x240
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 - 0x24c], ecx
mov eax, dword [ebp + 8]
push eax
call sym.Install_adv.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
add esp, 4
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], edx
mov ecx, dword [ebp - 0x238]
add ecx, 2
push ecx
call fcn.0047912d
add esp, 4
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x22c], edx
cmp dword [ebp - 0x22c], 0
jne 0x49002d
xor al, al
jmp 0x490436
mov eax, dword [ebp - 0x238]
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.004307d0
add esp, 0xc
mov edx, dword [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sym.Install_adv.exe_int___cdecl_NsReadFile_wchar_t_const___void___unsigned_long_int_
add esp, 0xc
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x490093
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
push eax
call fcn.00479128
add esp, 4
xor al, al
jmp 0x490436
mov ecx, dword [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x224]
call fcn.004093e0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x248]
push eax
call fcn.00479128
add esp, 4
lea ecx, [ebp - 0x220]
call fcn.00409500
mov byte [ebp - 4], 1
push 0x20a
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004307d0
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00409300
push 0x4c50cc
push 0x4c50d4
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 0x4c50d8
lea ecx, [ebp - 0x224]
call fcn.0040db10
mov ecx, dword [ebp - 0x24c]
add ecx, 0x16b0
push ecx
lea ecx, [ebp - 0x220]
call fcn.00409350
push 0x4c50e8
push 0x4c50f0
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 0x4c50f4
lea ecx, [ebp - 0x224]
call fcn.0040db10
push 0
push 0x1c
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00409300
push 0x4c5104
push 0x4c510c
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 0x4c5110
lea ecx, [ebp - 0x224]
call fcn.0040db10
call sym.Install_adv.exe_int___cdecl_isSys64_void_
test eax, eax
je 0x49031b
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x220]
call fcn.00409300
push 0x4c5124
push 0x4c512c
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 0x4c5130
lea ecx, [ebp - 0x224]
call fcn.0040db10
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x220]
call fcn.00409300
push 0x4c513c
push 0x4c5144
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 0x4c5148
lea ecx, [ebp - 0x224]
call fcn.0040db10
push 0
push 0x26
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x230]
call fcn.004093e0
mov byte [ebp - 4], 2
push 0x4c5158
push 0x4c515c
lea ecx, [ebp - 0x230]
call fcn.0040db10
push 0x4c516c
push 0x4c5174
lea ecx, [ebp - 0x230]
call fcn.0040db10
lea ecx, [ebp - 0x230]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c5178
lea ecx, [ebp - 0x224]
call fcn.0040db10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.004093c0
jmp 0x4903e2
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x220]
call fcn.00409300
push 0x4c518c
push 0x4c5194
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 0x4c5198
lea ecx, [ebp - 0x224]
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 0x4c51a4
lea ecx, [ebp - 0x224]
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
lea ecx, [ebp - 0x220]
call fcn.00409300
push 0x4c51b4
push 0x4c51bc
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 0x4c51c0
lea ecx, [ebp - 0x224]
call fcn.0040db10
lea ecx, [ebp - 0x224]
call fcn.00409530
shl eax, 1
push eax
lea ecx, [ebp - 0x224]
call fcn.004128d0
push eax
mov edx, dword [ebp + 8]
push edx
call sym.Install_adv.exe_int___cdecl_NsWriteFile_wchar_t_const___void___unsigned_long_int_
add esp, 0xc
mov byte [ebp - 0x225], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.004093c0
mov al, byte [ebp - 0x225]
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