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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5297eb
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x579630]
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 0x4d6255
mov dword [eax], 0
test ebx, ebx
je 0x4d625f
mov dword [ebx], 0
test edi, edi
je 0x4d6269
mov dword [edi], 0
cmp dword [esi + 0x10], 0
mov byte [ebp - 0x9d], 0
je 0x4d64b2
test edi, edi
je 0x4d64b2
mov ecx, esi
call fcn.00423ea0
push 0
push esi
mov dword [ebp - 0x8c], eax
call fcn.0041f410
add esp, 8
test al, al
jne 0x4d64b2
mov esi, dword [ebp - 0x8c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d64b2
push esi
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x4d64b2
lea ecx, [ebp - 0x44]
call fcn.004710c0
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00471480
test al, al
je 0x4d64a3
lea eax, [ebp - 0x28]
push eax
call fcn.0042ebd0
add esp, 4
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
je 0x4d6482
push 0x40
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.004f9050
add esp, 0xc
mov dword [ebp - 0x88], 0x44
cmp byte [ebp + 0x1c], 0
je 0x4d6332
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 0x4d634d
xor esi, esi
jmp 0x4d635f
mov ecx, eax
call fcn.00423ea0
push eax
call fcn.00410a18
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 0x4d63af
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 0x4d63e6
jmp 0x4d6471
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 0x4d6471
cmp dword [ebp - 0x9c], 0
mov dword [edi], 0
je 0x4d643f
push 1
push 0
push 0
mov dword [ebp - 0x8c], 0
call fcn.00450d40
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 0x4d643f
mov eax, dword [ebp - 0x8c]
mov dword [edi], eax
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
je 0x4d6451
mov eax, dword [ebp - 0x94]
mov dword [ecx], eax
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x4d646a
test ebx, ebx
je 0x4d6463
mov dword [ebx], eax
jmp 0x4d646a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x9d], 1
mov byte [ebp - 4], 1
test esi, esi
je 0x4d6482
push esi
call fcn.004039d2
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x4d6493
push dword [ebp - 0x28]
call fcn.004085be
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.00471100
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.00401590
mov esp, ebp
pop ebp
ret 0x24