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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563996
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5c7cec]
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 0x4f3634
mov ecx, dword [ebp - 0xb0]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xac]
test edx, edx
je 0x4f363e
mov dword [edx], 0
test ecx, ecx
je 0x4f3648
mov dword [ecx], 0
cmp dword [eax + 0x10], 0
mov byte [ebp - 0xa1], 0
je 0x4f39f7
test ecx, ecx
je 0x4f39f7
cmp dword [eax + 0x14], 8
mov dword [ebp - 0xa8], eax
jb 0x4f3675
mov ecx, dword [eax]
mov dword [ebp - 0xa8], ecx
push 0
push eax
call fcn.00424aa0
add esp, 8
test al, al
jne 0x4f39f7
push dword [ebp - 0xa8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f39f7
push dword [ebp - 0xa8]
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x4f39f7
lea ecx, [ebp - 0x44]
call fcn.0048f750
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.0048fb30
test al, al
je 0x4f39ef
lea eax, [ebp - 0x28]
push eax
call fcn.0048fa80
add esp, 4
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
je 0x4f3816
lea ecx, [ebp - 0x8c]
call fcn.00447580
mov byte [ebp - 4], 2
test edi, edi
je 0x4f3752
mov eax, dword [edi + 0x28]
or eax, dword [edi + 0x2c]
je 0x4f3752
push 1
lea ecx, [ebp - 0x8c]
call fcn.00447810
test al, al
je 0x4f3730
push dword [edi + 0x30]
lea eax, [edi + 0x28]
push eax
push 0x20007
lea ecx, [ebp - 0x8c]
call fcn.004478c0
test al, al
jne 0x4f3752
lea ecx, [ebp - 0x8c]
call fcn.0044faa0
lea ecx, [ebp - 0x28]
call fcn.00408e50
lea ecx, [ebp - 0x44]
call fcn.0048f7d0
mov al, 1
jmp 0x4f39fd
cmp byte [ebp + 0x1c], 0
je 0x4f3768
mov eax, 1
mov dword [ebp - 0x60], 1
mov word [ebp - 0x5c], ax
test edi, edi
je 0x4f3775
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x84], eax
cmp dword [esi + 0x10], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xa0], xmm0
jne 0x4f3789
xor esi, esi
jmp 0x4f379c
cmp dword [esi + 0x14], 8
jb 0x4f3791
mov esi, dword [esi]
push esi
call fcn.00414ad3
add esp, 4
mov esi, eax
mov dword [ebp - 0xbc], esi
cmp dword [ebp - 0x90], 0
mov byte [ebp - 4], 3
je 0x4f3823
test edi, edi
je 0x4f37b8
mov ecx, dword [edi + 0x10]
jmp 0x4f37ba
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 0x4f388c
mov byte [ebp - 4], 4
test esi, esi
je 0x4f380b
push esi
call fcn.004097f9
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.0044faa0
lea ecx, [ebp - 0x28]
call fcn.00408e50
jmp 0x4f39ef
test edi, edi
je 0x4f382c
mov ecx, dword [edi + 0x10]
jmp 0x4f382e
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 0x4f388c
mov byte [ebp - 4], 5
test esi, esi
je 0x4f3874
push esi
call fcn.004097f9
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.0044faa0
lea ecx, [ebp - 0x28]
call fcn.00408e50
jmp 0x4f39ef
test edi, edi
je 0x4f38ee
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4f38ee
push dword [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x4f38ee
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], 6
test esi, esi
je 0x4f38d6
push esi
call fcn.004097f9
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.0044faa0
lea ecx, [ebp - 0x28]
call fcn.00408e50
jmp 0x4f39ef
cmp dword [ebp - 0xa0], 0
mov edi, dword [ebp - 0xac]
mov dword [edi], 0
je 0x4f394d
push 1
push 0
push 0
mov dword [ebp - 0x90], 0
call fcn.0046a830
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 0x4f394d
mov eax, dword [ebp - 0x90]
mov dword [edi], eax
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
je 0x4f395f
mov eax, dword [ebp - 0x98]
mov dword [ecx], eax
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x4f397e
mov ecx, dword [ebp - 0xb8]
test ecx, ecx
je 0x4f3977
mov dword [ecx], eax
jmp 0x4f397e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xa1], 1
mov byte [ebp - 4], 7
test esi, esi
je 0x4f3996
push esi
call fcn.004097f9
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.0044faa0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x4f39db
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4f39d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f3a1a
push edx
push ecx
call fcn.004097e6
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x44]
call fcn.0048f7d0
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.0040154f
mov esp, ebp
pop ebp
ret 0x28
call fcn.0052cae1
int3