Function at 0x4ffa30
Capabilities:
Check if file exists
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ba86
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x2c]
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0xb0], edx
cmp dword [ebp - 0xb0], 0
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xb8], edx
je 0x4ffab4
mov ecx, dword [ebp - 0xb0]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xac]
test edx, edx
je 0x4ffabe
mov dword [edx], 0
test ecx, ecx
je 0x4ffac8
mov dword [ecx], 0
cmp dword [eax + 0x10], 0
mov byte [ebp - 0xa1], 0
je 0x4ffee8
test ecx, ecx
je 0x4ffee8
cmp dword [eax + 0x14], 8
mov dword [ebp - 0xa8], eax
jb 0x4ffaf5
mov ecx, dword [eax]
mov dword [ebp - 0xa8], ecx
push 0
push eax
call fcn.0042ba20
add esp, 8
test al, al
jne 0x4ffee8
push dword [ebp - 0xa8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ffee8
push dword [ebp - 0xa8]
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x4ffee8
lea ecx, [ebp - 0x44]
call fcn.004984d0
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00498810
test al, al
je 0x4ffee0
lea eax, [ebp - 0x28]
push eax
call fcn.00498750
add esp, 4
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
jne 0x4ffb72
lea ecx, [ebp - 0x28]
call fcn.0040a280
jmp 0x4ffee0
lea ecx, [ebp - 0x8c]
call fcn.00431ed0
mov byte [ebp - 4], 2
test edi, edi
je 0x4ffc00
mov eax, dword [edi + 0x28]
or eax, dword [edi + 0x2c]
je 0x4ffc00
push 1
lea ecx, [ebp - 0x8c]
call fcn.00432210
test al, al
je 0x4ffbb9
push dword [edi + 0x30]
lea eax, [edi + 0x28]
push eax
push 0x20007
lea ecx, [ebp - 0x8c]
call fcn.004322c0
test al, al
jne 0x4ffc00
lea ecx, [ebp - 0x8c]
call fcn.00453a50
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x4ffbdd
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00498550
mov al, 1
jmp 0x4ffeee
cmp byte [ebp + 0x1c], 0
je 0x4ffc16
mov eax, 1
mov dword [ebp - 0x60], 1
mov word [ebp - 0x5c], ax
test edi, edi
je 0x4ffc23
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x84], eax
cmp dword [esi + 0x10], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xa0], xmm0
jne 0x4ffc37
xor esi, esi
jmp 0x4ffc4a
cmp dword [esi + 0x14], 8
jb 0x4ffc3f
mov esi, dword [esi]
push esi
call fcn.00414bc3
add esp, 4
mov esi, eax
mov dword [ebp - 0xbc], esi
cmp dword [ebp - 0x90], 0
mov byte [ebp - 4], 4
je 0x4ffcea
test edi, edi
je 0x4ffc6a
mov ecx, dword [edi + 0x10]
jmp 0x4ffc6c
xor ecx, ecx
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0xa0]
push edx
lea edx, [ebp - 0x8c]
push edx
mov edx, dword [ebp - 0x90]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
push dword [ebp + 0x18]
push 0
push 0
push 0
push esi
push dword [ebp - 0xa8]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4ffd68
mov byte [ebp - 4], 5
test esi, esi
je 0x4ffcbd
push esi
call fcn.00409f38
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.00453a50
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x4ffed0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a2e0
jmp 0x4ffed0
test edi, edi
je 0x4ffcf3
mov ecx, dword [edi + 0x10]
jmp 0x4ffcf5
xor ecx, ecx
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0xa0]
push edx
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
push dword [ebp + 0x18]
push 0
push 0
push 0
push esi
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4ffd68
mov byte [ebp - 4], 7
test esi, esi
je 0x4ffd3b
push esi
call fcn.00409f38
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.00453a50
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 8
cmp eax, 8
jb 0x4ffed0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a2e0
jmp 0x4ffed0
test edi, edi
je 0x4ffddf
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4ffddf
push dword [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x4ffddf
push eax
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xc], 0
mov byte [ebp - 4], 9
test esi, esi
je 0x4ffdb2
push esi
call fcn.00409f38
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.00453a50
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xa
cmp eax, 8
jb 0x4ffed0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a2e0
jmp 0x4ffed0
cmp dword [ebp - 0xa0], 0
mov edi, dword [ebp - 0xac]
mov dword [edi], 0
je 0x4ffe3e
push 1
push 0
push 0
mov dword [ebp - 0x90], 0
call fcn.00471e40
add esp, 4
push eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 4]
push dword [eax]
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4ffe3e
mov eax, dword [ebp - 0x90]
mov dword [edi], eax
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
je 0x4ffe50
mov eax, dword [ebp - 0x98]
mov dword [ecx], eax
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x4ffe6f
mov ecx, dword [ebp - 0xb8]
test ecx, ecx
je 0x4ffe68
mov dword [ecx], eax
jmp 0x4ffe6f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xa1], 1
mov byte [ebp - 4], 0xb
test esi, esi
je 0x4ffe87
push esi
call fcn.00409f38
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.00453a50
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4ffed0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 0xc
cmp edx, 0x1000
jb 0x4ffec6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fff0b
push edx
push ecx
call fcn.00409f25
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x44]
call fcn.00498550
mov al, byte [ebp - 0xa1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret 0x28
call fcn.0054223b
int3