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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa7a7
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4e3074]
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_silent.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.00430705
add esp, 4
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x22c], edx
cmp dword [ebp - 0x22c], 0
jne 0x48701d
xor al, al
jmp 0x487426
mov eax, dword [ebp - 0x238]
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00456880
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_silent.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 0x487083
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
push eax
call fcn.004303f9
add esp, 4
xor al, al
jmp 0x487426
mov ecx, dword [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00405080
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x248]
push eax
call fcn.004303f9
add esp, 4
lea ecx, [ebp - 0x220]
call fcn.00405120
mov byte [ebp - 4], 1
push 0x20a
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00456880
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.00405250
push 0x4c554c
push 0x4c5554
lea ecx, [ebp - 0x220]
call fcn.00409a70
lea ecx, [ebp - 0x220]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c5558
lea ecx, [ebp - 0x224]
call fcn.00409a70
mov ecx, dword [ebp - 0x24c]
add ecx, 0x16b0
push ecx
lea ecx, [ebp - 0x220]
call fcn.00404ff0
push 0x4c5568
push 0x4c5570
lea ecx, [ebp - 0x220]
call fcn.00409a70
lea ecx, [ebp - 0x220]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c5574
lea ecx, [ebp - 0x224]
call fcn.00409a70
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.00405250
push 0x4c5584
push 0x4c558c
lea ecx, [ebp - 0x220]
call fcn.00409a70
lea ecx, [ebp - 0x220]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c5590
lea ecx, [ebp - 0x224]
call fcn.00409a70
call sym.Install_silent.exe_int___cdecl_isSys64_void_
test eax, eax
je 0x48730b
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.00405250
push 0x4c55a4
push 0x4c55ac
lea ecx, [ebp - 0x220]
call fcn.00409a70
lea ecx, [ebp - 0x220]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c55b0
lea ecx, [ebp - 0x224]
call fcn.00409a70
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.00405250
push 0x4c55bc
push 0x4c55c4
lea ecx, [ebp - 0x220]
call fcn.00409a70
lea ecx, [ebp - 0x220]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c55c8
lea ecx, [ebp - 0x224]
call fcn.00409a70
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.00405080
mov byte [ebp - 4], 2
push 0x4c55d8
push 0x4c55dc
lea ecx, [ebp - 0x230]
call fcn.00409a70
push 0x4c55ec
push 0x4c55f4
lea ecx, [ebp - 0x230]
call fcn.00409a70
lea ecx, [ebp - 0x230]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c55f8
lea ecx, [ebp - 0x224]
call fcn.00409a70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00405060
jmp 0x4873d2
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.00405250
push 0x4c560c
push 0x4c5614
lea ecx, [ebp - 0x220]
call fcn.00409a70
lea ecx, [ebp - 0x220]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c5618
lea ecx, [ebp - 0x224]
call fcn.00409a70
lea ecx, [ebp - 0x220]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c5624
lea ecx, [ebp - 0x224]
call fcn.00409a70
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.00405250
push 0x4c5634
push 0x4c563c
lea ecx, [ebp - 0x220]
call fcn.00409a70
lea ecx, [ebp - 0x220]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c5640
lea ecx, [ebp - 0x224]
call fcn.00409a70
lea ecx, [ebp - 0x224]
call fcn.004053a0
shl eax, 1
push eax
lea ecx, [ebp - 0x224]
call fcn.00417490
push eax
mov edx, dword [ebp + 8]
push edx
call sym.Install_silent.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.00405060
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00405060
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.0042fc0d
mov esp, ebp
pop ebp
ret 4