Function at 0x451260
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x494810
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4c4074]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x218]
lea edx, [edi + 0x158]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], eax
call fcn.0040ddf0
mov dword [ebp - 4], 0
push str..appx
push dword [ebp - 0x20]
call fcn.00473b16
add esp, 8
test eax, eax
jne 0x451432
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x45158b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push dword [edi + 0x158]
push str.Add_AppxPackage__Path___s___n_exit__error.count_n
push eax
call fcn.00408580
add esp, 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x451595
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x45159f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
lea eax, [ebp]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4513ac
push str.WindowsPowerShell_v1.0powershell.exe
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4513ac
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4513ac
lea ecx, [ebp]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451390
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407350
mov byte [ebp - 4], 7
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041f9c0
test al, al
jne 0x4513d4
lea edx, [ebp - 0x18]
mov ecx, 0xe000002c
call fcn.0042dd10
mov edi, 0xe000002c
jmp 0x4513d6
xor edi, edi
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xa
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x451401
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x451429
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x45152b
mov bl, byte [ebp + 0x214]
xorps xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
test bl, bl
mov eax, dword [ebp - 0x58]
mov ecx, 0x40
cmovne eax, ecx
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x58], eax
mov eax, dword [edi + 0x158]
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x5c], 0x3c
cmp dword [eax - 4], 1
jle 0x451492
push dword [eax - 0xc]
lea ecx, [edi + 0x158]
call fcn.00402260
mov eax, dword [edi + 0x158]
mov dword [ebp - 0x4c], eax
mov edx, 1
mov eax, dword [edi + 0x90]
mov ecx, edi
shr eax, 2
test dl, al
mov dword [ebp - 0x50], str.open
mov eax, 0
cmovne edx, eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x40], edx
call fcn.00455730
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4514e6
cmp dword [eax - 4], 1
jle 0x4514e3
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00402260
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4514f8
xor edi, edi
jmp 0x451500
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test bl, bl
je 0x451524
test edi, edi
jne 0x451524
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x451524
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x451545
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x451564
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0046e38e
lea esp, [ebp + 0x20c]
pop ebp
ret 8
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
int3