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

Disassembly:
push 0x360
mov eax, 0x510665
call fcn.004f41e2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x350], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x344], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x354], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x33c], ecx
mov dword [ebp - 0x330], esi
mov dword [ebp - 0x348], eax
call fcn.0048855a
lea ecx, [ebp - 0x2d0]
mov dword [esi], eax
mov byte [ebp - 0x340], 1
call fcn.004e25a1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x334], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x35c], eax
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x358], eax
lea eax, [ebp - 0x2d0]
push eax
push edi
push 1
call fcn.004e4b9e
add esp, 0x20
test al, al
jne 0x485073
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x2d0]
call fcn.0044612f
push eax
call fcn.004e742f
add esp, 0x10
test al, al
je 0x485073
mov eax, dword [ebp - 0x340]
xor ecx, ecx
cmp dword [ebp - 0x35c], 2
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0x340], eax
or esi, 0xffffffff
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 4], esi
call fcn.004e25e0
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x350]
cmp dword [eax + 0x3c], 2
jne 0x485376
mov eax, dword [ebp - 0x33c]
mov eax, dword [eax + 4]
cmp byte [eax + 0x45a0], 0
jne 0x485376
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x34c], edi
call fcn.004e25a1
xor eax, eax
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.004e55bb
add esp, 0xc
test eax, eax
je 0x4850f1
xor eax, eax
mov bl, al
jmp 0x48535e
mov ecx, dword [ebx]
test ecx, ecx
je 0x485125
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x485112
cmp eax, esi
je 0x485112
xor edx, edx
mov dword [ecx + 0x38], edx
cmp eax, esi
je 0x485112
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx], 0
je 0x485125
push dword [ebx]
call fcn.004e1bea
xor edx, edx
pop ecx
mov dword [ebx], edx
jmp 0x485127
xor edx, edx
mov ecx, dword [ebp - 0x330]
mov esi, dword [ecx]
test esi, esi
je 0x485147
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x485136
sub esi, ecx
sar esi, 1
jmp 0x485149
mov esi, edx
lea ecx, [ebp - 0x274]
call fcn.0044612f
mov ecx, eax
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x48515b
mov edi, dword [ebp - 0x34c]
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x358], ecx
test edi, edi
je 0x485192
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, word [ebp - 0x334]
jne 0x48517d
sub edi, edx
sar edi, 1
jmp 0x485196
xor eax, eax
mov edi, eax
lea eax, [edi + ecx]
add eax, esi
push 1
lea eax, [eax*2 + 0x5c]
push eax
call fcn.004e1c42
mov dword [ebx], eax
push str.runas
push 6
mov dword [eax], 0x3c
mov ecx, dword [ebx]
mov eax, dword [0x5a22a4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x340]
movzx ecx, al
mov eax, dword [ebx]
shl ecx, 0xf
or ecx, 0x100
mov dword [eax + 4], ecx
mov eax, dword [ebx]
or dword [eax + 4], 0x40
mov ecx, dword [ebx]
lea eax, [ecx + 0x3c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebx]
push dword [eax + 0xc]
call fcn.004ff8ed
mov edx, dword [ebx]
add esp, 0x14
mov ecx, dword [edx + 0xc]
lea eax, [ecx + 2]
mov dword [ebp - 0x338], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x334]
jne 0x485203
sub ecx, dword [ebp - 0x338]
mov eax, dword [edx + 0xc]
sar ecx, 1
lea eax, [eax + ecx*2]
add eax, 4
lea ecx, [ebp - 0x274]
mov dword [edx + 0x10], eax
call fcn.0044612f
push eax
mov eax, dword [ebp - 0x358]
inc eax
push eax
mov eax, dword [ebx]
push dword [eax + 0x10]
call fcn.004ff8ed
mov edx, dword [ebx]
add esp, 0xc
mov ecx, dword [edx + 0x10]
lea eax, [ecx + 2]
mov dword [ebp - 0x338], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x334]
jne 0x485255
sub ecx, dword [ebp - 0x338]
mov eax, dword [edx + 0x10]
sar ecx, 1
lea eax, [eax + ecx*2]
add eax, 4
mov dword [edx + 0x14], eax
cmp dword [ebp - 0x34c], 0
je 0x4852a7
mov eax, dword [ebx]
push 0x20
pop ecx
mov eax, dword [eax + 0x14]
mov word [eax], cx
lea eax, [edi + 1]
push dword [ebp - 0x34c]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x14]
add eax, 2
push eax
call fcn.004ff8ed
add esp, 0xc
mov edx, dword [ebx]
mov edi, dword [edx + 0x14]
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 0x338], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x334]
jne 0x4852b7
sub ecx, dword [ebp - 0x338]
lea eax, [edi + 4]
sar ecx, 1
lea eax, [eax + ecx*2]
xor ecx, ecx
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x330]
mov eax, dword [eax]
test eax, eax
je 0x4852fb
cmp word [eax], cx
je 0x4852fb
push eax
lea eax, [esi + 1]
push eax
mov eax, dword [ebx]
push dword [eax + 0x18]
call fcn.00401a0b
jmp 0x485300
mov eax, dword [ebx]
mov dword [eax + 0x18], ecx
mov eax, dword [ebx]
xor edi, edi
mov esi, dword [ebp - 0x33c]
inc edi
mov ecx, 0x556c10
push 5
mov dword [eax + 0x1c], edi
mov eax, 0x556bb8
cmp dword [0x5a22cc], 6
cmovb eax, ecx
mov ecx, esi
push eax
call fcn.00491e14
mov ecx, dword [esi + 4]
push edi
mov edi, 0x180
add ecx, edi
call fcn.00430302
push dword [ebx]
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esi + 4]
test eax, eax
setne bl
xor eax, eax
push eax
add ecx, edi
call fcn.00430302
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x344]
lea ecx, [ebp - 0x274]
mov dword [eax], esi
call fcn.004e25e0
jmp 0x4855eb
movzx eax, byte [ebp + 0x28]
inc eax
push eax
call dword [sym.imp.USER32.dll_LockSetForegroundWindow]
mov ecx, dword [ebp - 0x33c]
push 5
push 0x556b60
call fcn.00491e14
lea ecx, [ebp - 0x36c]
call fcn.0040ad24
lea ecx, [ebp - 0x36c]
mov dword [ebp - 4], 1
call fcn.0040e6ab
mov esi, dword [ebp - 0x350]
cmp dword [esi + 0x4c], 0
je 0x48554d
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004f5a90
mov eax, dword [ebp - 0x330]
xor ecx, ecx
add esp, 0xc
mov ebx, ecx
mov dword [ebp - 0x334], ebx
mov eax, dword [eax]
test eax, eax
je 0x4853f7
cmp word [eax], cx
jne 0x4854b0
lea eax, [ebp - 0x218]
push eax
push ecx
push ecx
push 0x25
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x485416
cmp word [ebp - 0x218], bx
jne 0x48542c
push 0x556b94
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.00401a0b
mov eax, dword [ebp - 0x330]
lea ecx, [ebp - 0x218]
mov dword [eax], ecx
lea ecx, [ebp - 0x32c]
call fcn.004e25a1
xor eax, eax
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x33c], edi
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.004e55bb
add esp, 0xc
test eax, eax
jne 0x485499
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x33c]
lea ecx, [ebp - 0x32c]
push 0x556b9c
call fcn.0044612f
push eax
call fcn.004e23a5
add esp, 0x24
mov dword [ebp - 0x334], eax
mov ebx, eax
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 1
call fcn.004e25e0
mov ecx, dword [ebp - 0x330]
mov eax, dword [ecx]
push dword [ebp - 0x348]
mov edx, dword [esi + 0x4c]
xor ecx, ecx
push dword [ebp - 0x354]
cmp dword [esi + 0x48], 2
push eax
sete cl
xor eax, eax
push eax
mov eax, dword [ebp - 0x340]
inc ecx
movzx eax, al
add esi, 0x54
shl eax, 4
or eax, 0x4000020
test ebx, ebx
push eax
cmovne edi, ebx
xor eax, eax
push edi
push eax
mov eax, dword [ebp - 0x350]
push ecx
push esi
push dword [eax + 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x344]
mov dword [ecx], eax
mov eax, 0x208
xor ecx, ecx
mov byte [esi], cl
inc esi
sub eax, 1
jne 0x485517
mov eax, dword [ebp - 0x334]
test eax, eax
je 0x485530
push eax
call fcn.004e1bea
pop ecx
mov esi, dword [ebp - 0x348]
cmp byte [ebp + 0x28], 0
jne 0x4855c6
push 2
call dword [sym.imp.USER32.dll_LockSetForegroundWindow]
jmp 0x4855d9
mov eax, dword [ebp - 0x340]
movzx eax, al
shl eax, 4
or eax, 0x4000020
cmp dword [esi + 0x44], 2
mov esi, dword [ebp - 0x348]
jne 0x4855a6
mov ecx, dword [ebp - 0x344]
push ecx
mov ecx, dword [ebp - 0x330]
push esi
push dword [ebp - 0x354]
push dword [ecx]
xor ecx, ecx
push ecx
push eax
push ecx
push ecx
push ecx
push edi
push ecx
call fcn.004369b5
add esp, 0x2c
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x344]
mov dword [ecx], eax
jmp 0x485536
mov ecx, dword [ebp - 0x330]
push esi
push dword [ebp - 0x354]
push dword [ecx]
xor ecx, ecx
push ecx
push eax
push ecx
push ecx
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x485591
test bl, bl
je 0x4855d9
cmp dword [esi + 8], 0
je 0x4855d9
push dword [esi + 8]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
lea ecx, [ebp - 0x36c]
mov dword [ebp - 4], 3
call fcn.00419fe2
mov al, bl
call fcn.004f418c
ret