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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e07b
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x28]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xb0], eax
test eax, eax
je 0x4bf085
mov dword [eax], 0
test ebx, ebx
je 0x4bf08f
mov dword [ebx], 0
test edi, edi
je 0x4bf099
mov dword [edi], 0
cmp dword [esi + 0x10], 0
mov byte [ebp - 0x9d], 0
je 0x4bf2e2
test edi, edi
je 0x4bf2e2
mov ecx, esi
call fcn.0041e2d0
push 0
push esi
mov dword [ebp - 0x8c], eax
call fcn.00419d10
add esp, 8
test al, al
jne 0x4bf2e2
mov esi, dword [ebp - 0x8c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bf2e2
push esi
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x4bf2e2
lea ecx, [ebp - 0x44]
call fcn.00465210
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00465520
test al, al
je 0x4bf2d3
lea eax, [ebp - 0x28]
push eax
call fcn.0042b0d0
add esp, 4
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
je 0x4bf2b2
push 0x40
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.004dead0
add esp, 0xc
mov dword [ebp - 0x88], 0x44
cmp byte [ebp + 0x1c], 0
je 0x4bf162
mov eax, 1
mov dword [ebp - 0x5c], 1
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0xa4]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x9c], xmm0
cmp dword [eax + 0x10], 0
jne 0x4bf17d
xor esi, esi
jmp 0x4bf18f
mov ecx, eax
call fcn.0041e2d0
push eax
call fcn.0040df6a
add esp, 4
mov esi, eax
mov dword [ebp - 0xa4], esi
mov ecx, dword [ebp - 0xac]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4bf1df
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x9c]
push edx
cmovae eax, dword [ebp - 0x28]
lea edx, [ebp - 0x88]
push edx
push eax
push 0
push dword [ebp + 0x18]
push 0
push 0
push 0
push esi
push dword [ebp - 0x8c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4bf216
jmp 0x4bf2a1
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x9c]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x88]
push ecx
push eax
push 0
push dword [ebp + 0x18]
push 0
push 0
push 0
push esi
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4bf2a1
cmp dword [ebp - 0x9c], 0
mov dword [edi], 0
je 0x4bf26f
push 1
push 0
push 0
mov dword [ebp - 0x8c], 0
call fcn.00447970
add esp, 4
push eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
push dword [eax]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4bf26f
mov eax, dword [ebp - 0x8c]
mov dword [edi], eax
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
je 0x4bf281
mov eax, dword [ebp - 0x94]
mov dword [ecx], eax
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x4bf29a
test ebx, ebx
je 0x4bf293
mov dword [ebx], eax
jmp 0x4bf29a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x9d], 1
mov byte [ebp - 4], 1
test esi, esi
je 0x4bf2b2
push esi
call fcn.004039c2
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x4bf2c3
push dword [ebp - 0x28]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.00465250
mov al, byte [ebp - 0x9d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret 0x24