Function at 0x487970
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553e00
mov eax, dword fs:[0]
push eax
sub esp, 0x390
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c4], edi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x4879c9
push 0x576bd0
mov ecx, edi
call fcn.00464b60
mov eax, edi
jmp 0x487c61
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2b0]
call fcn.00505dd0
push 0
lea ecx, [ebp - 0x2dc]
call fcn.00505cd0
push str.installer_prefs.json
push esi
lea ecx, [ebp - 0x2bc]
push ecx
call fcn.0044f400
add esp, 0xc
push 1
push 0x40
push 0x20
mov edx, dword [ebp - 0x2bc]
push edx
lea ecx, [ebp - 0x398]
call fcn.004855c0
push 1
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x398]
push ecx
lea ecx, [ebp - 0x2b0]
call fcn.005153d0
test al, al
jne 0x487a73
push 0x576bd0
mov ecx, edi
call fcn.00464b60
lea ecx, [ebp - 0x398]
call fcn.00460fd0
lea ecx, [ebp - 0x2bc]
call fcn.00442750
lea ecx, [ebp - 0x2dc]
call fcn.00507010
lea ecx, [ebp - 0x2b0]
call fcn.00482c10
mov eax, edi
jmp 0x487c61
lea ecx, [ebp - 0x2dc]
call fcn.004f0540
test al, al
je 0x487a34
mov edx, dword [str.single_profile]
push edx
lea ecx, [ebp - 0x2dc]
call fcn.0050a070
test al, al
je 0x487a34
lea ecx, [ebp - 0x2b8]
call fcn.00442700
lea ecx, [ebp - 0x2b4]
call fcn.00442700
push 0
lea ecx, [ebp - 0x2f4]
call fcn.004f3ab0
lea eax, [ebp - 0x2f4]
push eax
mov ecx, dword [str.single_profile]
push ecx
lea edx, [ebp - 0x30c]
push edx
lea ecx, [ebp - 0x2dc]
call fcn.00511620
mov ecx, eax
call int.00509ab0
mov bl, al
lea ecx, [ebp - 0x30c]
call fcn.00507010
lea ecx, [ebp - 0x2f4]
call fcn.00507010
test bl, bl
je 0x487b95
push str.profiledata
push esi
lea eax, [ebp - 0x2c0]
push eax
call fcn.0044f400
add esp, 0xc
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00454c40
lea ecx, [ebp - 0x2c0]
call fcn.00442750
push 0x5830c0
lea ecx, [ebp - 0x2b8]
push ecx
lea edx, [ebp - 0x2c0]
push edx
call fcn.0046d5f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00454c40
lea ecx, [ebp - 0x2c0]
call fcn.00442750
mov eax, dword [ebp - 0x2b4]
cmp dword [eax - 0xc], 0
je 0x487b95
lea ecx, [ebp - 0x2b4]
push ecx
mov ecx, edi
call fcn.00442720
lea ecx, [ebp - 0x2b4]
call fcn.00442750
lea ecx, [ebp - 0x2b8]
call fcn.00442750
jmp 0x487a40
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x487bbc
push 0x576bd0
mov ecx, edi
call fcn.00464b60
jmp 0x487b7a
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00459660
push 0x565100
lea ecx, [ebp - 0x2b8]
call fcn.004502c0
push 0x5830c0
lea ecx, [ebp - 0x2b8]
push ecx
lea edx, [ebp - 0x2c0]
push edx
call fcn.0046d5f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00454c40
lea ecx, [ebp - 0x2c0]
call fcn.00442750
mov eax, dword [ebp - 0x2b4]
cmp dword [eax - 0xc], 0
je 0x487bae
jmp 0x487b6c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret