Function at 0x461270
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68d3d8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b4
mov eax, dword [0x725fec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x220]
push 0
push 0x1c
push eax
push 0
mov dword [ebp - 0x2c0], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x270], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4612f2
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x280]
call fcn.00403420
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x250]
push 8
xor eax, eax
mov dword [ebp - 0x240], 0
push str.Packages
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
call fcn.00403420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x280]
cmovae ecx, dword [ebp - 0x250]
cmp dword [ebp - 0x26c], 8
push ecx
cmovae eax, dword [ebp - 0x280]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
mov dword [ebp - 0x258], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4613b0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x268]
call fcn.00403420
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 3
call fcn.004035b0
push 0x25
xor eax, eax
mov dword [ebp - 0x288], 0
push str.Microsoft.MicrosoftEdge_8wekyb3d8bbwe
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
call fcn.00403420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x298]
cmp dword [ebp - 0x284], 8
lea eax, [ebp - 0x268]
cmovae ecx, dword [ebp - 0x298]
cmp dword [ebp - 0x254], 8
push ecx
cmovae eax, dword [ebp - 0x268]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x461471
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00403420
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 6
call fcn.004035b0
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x461509
movups xmm0, xmmword [ebp - 0x238]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov word [ebp - 0x238], ax
movq xmm0, qword [ebp - 0x228]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
jmp 0x4615c5
push 0x18
xor eax, eax
mov dword [ebp - 0x240], 0
push str.Microsoft.MicrosoftEdge
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
call fcn.00403420
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x2b0]
call fcn.0046aba0
add esp, 4
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 9
call fcn.004035b0
lea edx, [ebp - 0x2b0]
lea ecx, [ebp - 0x2bc]
call fcn.0046a810
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x2bc]
cmp eax, dword [ebp - 0x2b8]
jne 0x46159e
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4615af
push eax
lea edx, [ebp - 0x268]
mov ecx, esi
call fcn.0046aba0
add esp, 4
lea ecx, [ebp - 0x2bc]
call fcn.004055e0
lea ecx, [ebp - 0x2b0]
call fcn.004035b0
lea ecx, [ebp - 0x238]
call fcn.004035b0
lea ecx, [ebp - 0x268]
call fcn.004035b0
lea ecx, [ebp - 0x280]
call fcn.004035b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0063db0b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4