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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1604
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4ec00c]
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.0047ac4d
add esp, 4
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x22c], edx
cmp dword [ebp - 0x22c], 0
jne 0x49187d
xor al, al
jmp 0x491c86
mov eax, dword [ebp - 0x238]
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00433ca0
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 0x4918e3
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
push eax
call fcn.0047ac48
add esp, 4
xor al, al
jmp 0x491c86
mov ecx, dword [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x224]
call fcn.004096a0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x248]
push eax
call fcn.0047ac48
add esp, 4
lea ecx, [ebp - 0x220]
call fcn.004097c0
mov byte [ebp - 4], 1
push 0x20a
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00433ca0
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.004095c0
push 0x4cd14c
push 0x4cd154
lea ecx, [ebp - 0x220]
call fcn.0040dc00
lea ecx, [ebp - 0x220]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cd158
lea ecx, [ebp - 0x224]
call fcn.0040dc00
mov ecx, dword [ebp - 0x24c]
add ecx, 0x16b0
push ecx
lea ecx, [ebp - 0x220]
call fcn.00409610
push 0x4cd168
push 0x4cd170
lea ecx, [ebp - 0x220]
call fcn.0040dc00
lea ecx, [ebp - 0x220]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cd174
lea ecx, [ebp - 0x224]
call fcn.0040dc00
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.004095c0
push 0x4cd184
push 0x4cd18c
lea ecx, [ebp - 0x220]
call fcn.0040dc00
lea ecx, [ebp - 0x220]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cd190
lea ecx, [ebp - 0x224]
call fcn.0040dc00
call sym.Install_adv.exe_int___cdecl_isSys64_void_
test eax, eax
je 0x491b6b
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.004095c0
push 0x4cd1a4
push 0x4cd1ac
lea ecx, [ebp - 0x220]
call fcn.0040dc00
lea ecx, [ebp - 0x220]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cd1b0
lea ecx, [ebp - 0x224]
call fcn.0040dc00
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.004095c0
push 0x4cd1bc
push 0x4cd1c4
lea ecx, [ebp - 0x220]
call fcn.0040dc00
lea ecx, [ebp - 0x220]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cd1c8
lea ecx, [ebp - 0x224]
call fcn.0040dc00
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.004096a0
mov byte [ebp - 4], 2
push 0x4cd1d8
push 0x4cd1dc
lea ecx, [ebp - 0x230]
call fcn.0040dc00
push 0x4cd1ec
push 0x4cd1f4
lea ecx, [ebp - 0x230]
call fcn.0040dc00
lea ecx, [ebp - 0x230]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cd1f8
lea ecx, [ebp - 0x224]
call fcn.0040dc00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00409680
jmp 0x491c32
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.004095c0
push 0x4cd20c
push 0x4cd214
lea ecx, [ebp - 0x220]
call fcn.0040dc00
lea ecx, [ebp - 0x220]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cd218
lea ecx, [ebp - 0x224]
call fcn.0040dc00
lea ecx, [ebp - 0x220]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cd224
lea ecx, [ebp - 0x224]
call fcn.0040dc00
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.004095c0
push 0x4cd234
push 0x4cd23c
lea ecx, [ebp - 0x220]
call fcn.0040dc00
lea ecx, [ebp - 0x220]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cd240
lea ecx, [ebp - 0x224]
call fcn.0040dc00
lea ecx, [ebp - 0x224]
call fcn.004097f0
shl eax, 1
push eax
lea ecx, [ebp - 0x224]
call fcn.004129b0
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.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00409680
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.0042f10e
mov esp, ebp
pop ebp
ret 4