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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0e44
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4eb00c]
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_vip.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.0047a4ed
add esp, 4
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x22c], edx
cmp dword [ebp - 0x22c], 0
jne 0x49107d
xor al, al
jmp 0x491486
mov eax, dword [ebp - 0x238]
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00433560
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_vip.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 0x4910e3
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
push eax
call fcn.0047a4e8
add esp, 4
xor al, al
jmp 0x491486
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.0047a4e8
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.00433560
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 0x4cc12c
push 0x4cc134
lea ecx, [ebp - 0x220]
call fcn.0040d470
lea ecx, [ebp - 0x220]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cc138
lea ecx, [ebp - 0x224]
call fcn.0040d470
mov ecx, dword [ebp - 0x24c]
add ecx, 0x16b0
push ecx
lea ecx, [ebp - 0x220]
call fcn.00409610
push 0x4cc148
push 0x4cc150
lea ecx, [ebp - 0x220]
call fcn.0040d470
lea ecx, [ebp - 0x220]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cc154
lea ecx, [ebp - 0x224]
call fcn.0040d470
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 0x4cc164
push 0x4cc16c
lea ecx, [ebp - 0x220]
call fcn.0040d470
lea ecx, [ebp - 0x220]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cc170
lea ecx, [ebp - 0x224]
call fcn.0040d470
call sym.Install_vip.exe_int___cdecl_isSys64_void_
test eax, eax
je 0x49136b
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 0x4cc184
push 0x4cc18c
lea ecx, [ebp - 0x220]
call fcn.0040d470
lea ecx, [ebp - 0x220]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cc190
lea ecx, [ebp - 0x224]
call fcn.0040d470
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 0x4cc19c
push 0x4cc1a4
lea ecx, [ebp - 0x220]
call fcn.0040d470
lea ecx, [ebp - 0x220]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cc1a8
lea ecx, [ebp - 0x224]
call fcn.0040d470
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 0x4cc1b8
push 0x4cc1bc
lea ecx, [ebp - 0x230]
call fcn.0040d470
push 0x4cc1cc
push 0x4cc1d4
lea ecx, [ebp - 0x230]
call fcn.0040d470
lea ecx, [ebp - 0x230]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cc1d8
lea ecx, [ebp - 0x224]
call fcn.0040d470
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00409680
jmp 0x491432
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 0x4cc1ec
push 0x4cc1f4
lea ecx, [ebp - 0x220]
call fcn.0040d470
lea ecx, [ebp - 0x220]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cc1f8
lea ecx, [ebp - 0x224]
call fcn.0040d470
lea ecx, [ebp - 0x220]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cc204
lea ecx, [ebp - 0x224]
call fcn.0040d470
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 0x4cc214
push 0x4cc21c
lea ecx, [ebp - 0x220]
call fcn.0040d470
lea ecx, [ebp - 0x220]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cc220
lea ecx, [ebp - 0x224]
call fcn.0040d470
lea ecx, [ebp - 0x224]
call fcn.004097f0
shl eax, 1
push eax
lea ecx, [ebp - 0x224]
call fcn.00412280
push eax
mov edx, dword [ebp + 8]
push edx
call sym.Install_vip.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.0042e9de
mov esp, ebp
pop ebp
ret 4