Function at 0x46c660
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f635
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x160]
mov edx, edi
lea ecx, [ebp - 0x14]
call fcn.0040f020
mov dword [ebp - 4], 0
push str..appx
push dword [ebp - 0x14]
call fcn.004ddab3
add esp, 8
test eax, eax
je 0x46c7b7
push str..msix
push dword [ebp - 0x14]
call fcn.004ddab3
add esp, 8
test eax, eax
je 0x46c7b7
cmp byte [ebp + 8], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
mov ecx, 0x40
mov eax, dword [ebp - 0x58]
cmovne eax, ecx
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x58], eax
mov eax, dword [edi]
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 0x46c71f
push dword [eax - 0xc]
mov ecx, edi
call fcn.004024c0
mov eax, dword [edi]
mov ecx, 1
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x94]
shr eax, 2
test cl, al
mov dword [ebp - 0x50], str.open
mov eax, 0
cmovne ecx, eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x40], ecx
mov ecx, esi
push eax
call fcn.00470b10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x46c775
cmp dword [eax - 4], 1
jle 0x46c772
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004024c0
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 0x46c787
xor ebx, ebx
jmp 0x46c78f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x46c7b5
test ebx, ebx
jne 0x46c7b5
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x46c7b5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x46c832
call fcn.004047f0
mov ebx, eax
test ebx, ebx
je 0x46c8a3
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push dword [edi]
push str.Add_AppPackage__Path___s___n_exit__error.count_n
push eax
call fcn.00408fe0
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.004231a0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.004232e0
test al, al
jne 0x46c824
lea edx, [ebp - 0x1c]
mov ecx, 0xe000002c
call fcn.0044bc10
mov ebx, 0xe000002c
jmp 0x46c826
xor ebx, ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.0044aca0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, ecx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c862
mov edi, dword [edx]
push edx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x46c88d
mov edi, dword [eax]
push eax
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004027d0
int3