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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x818
push ebx
mov ebx, dword [ebp + 0x70]
push esi
push edi
xor edx, edx
push 0x10
xor eax, eax
cmp ebx, edx
pop ecx
lea edi, [ebp - 4]
mov dword [ebp - 8], edx
mov dword [ebp + 0x60], edx
mov dword [ebp + 0x5c], edx
rep stosd dword es:[edi], eax
je 0x50086d74
mov ecx, dword [ebp + 0x74]
cmp ecx, edx
jne 0x50086d80
mov dword [ebp + 0x60], 0x80070057
jmp 0x500870a2
mov eax, dword [ebp + 0x78]
cmp eax, edx
jne 0x50086d93
mov dword [ebp + 0x60], 0x80004003
jmp 0x500870a2
cmp dword [ebp + 0x7c], edx
mov edi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, dword [sym.imp.MSVCR70.dll_wcslen]
mov dword [eax], edx
je 0x50086de5
cmp word [ecx], 0x22
je 0x50086de5
push ecx
call esi
pop ecx
lea eax, [eax + eax + 0xa]
push eax
push 0
push dword [0x50297d50]
call edi
push dword [ebp + 0x74]
mov dword [ebp + 0x5c], eax
push 0x50009be8
push eax
call dword [sym.imp.vsansi.dll_wsprintfW]
add esp, 0xc
cmp dword [ebp + 0x5c], 0
je 0x50086de2
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x64], eax
jmp 0x50086de8
mov ecx, dword [ebp + 0x74]
mov dword [ebp + 0x64], ecx
push 0x50009bdc
push ebx
call dword [sym.imp.MSVCR70.dll_wcsstr]
push 0x50009bd4
push ebx
mov dword [ebp + 0x58], eax
call dword [sym.imp.MSVCR70.dll_wcsstr]
add esp, 0x10
cmp dword [ebp + 0x58], ebx
push dword [ebp + 0x64]
mov dword [ebp + 0x54], eax
jb 0x50086e79
call esi
push ebx
mov dword [ebp + 0x7c], eax
call esi
pop ecx
pop ecx
mov ecx, dword [ebp + 0x7c]
add ecx, eax
lea eax, [ecx + ecx + 2]
push eax
push 0
push dword [0x50297d50]
call edi
mov ebx, dword [ebp + 0x70]
mov dword [ebp + 0x7c], eax
mov eax, dword [ebp + 0x58]
sub eax, ebx
sar eax, 1
mov edi, eax
push edi
push ebx
push dword [ebp + 0x7c]
call dword [sym.imp.MSVCR70.dll_wcsncpy]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x64]
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.MSVCR70.dll_wcscpy]
push 0x50009bdc
call esi
add eax, edi
lea eax, [ebx + eax*2]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.MSVCR70.dll_wcscat]
add esp, 0x20
xor esi, esi
jmp 0x50086f0c
cmp eax, ebx
jb 0x50086ed7
call esi
push ebx
mov dword [ebp + 0x7c], eax
call esi
pop ecx
pop ecx
mov ecx, dword [ebp + 0x7c]
add ecx, eax
lea eax, [ecx + ecx + 2]
push eax
push 0
push dword [0x50297d50]
call edi
mov ebx, dword [ebp + 0x70]
mov edi, eax
mov eax, dword [ebp + 0x54]
sub eax, ebx
sar eax, 1
push eax
push ebx
push edi
mov dword [ebp + 0x7c], edi
mov dword [ebp + 0x70], eax
call dword [sym.imp.MSVCR70.dll_wcsncpy]
mov eax, dword [ebp + 0x70]
push dword [ebp + 0x64]
lea eax, [edi + eax*2]
push eax
call dword [sym.imp.MSVCR70.dll_wcscpy]
push 0x50009bd4
call esi
add eax, dword [ebp + 0x70]
lea eax, [ebx + eax*2]
push eax
push edi
jmp 0x50086e69
call esi
push ebx
mov dword [ebp + 0x70], eax
call esi
pop ecx
pop ecx
mov ecx, dword [ebp + 0x70]
add ecx, eax
lea eax, [ecx + ecx + 4]
push eax
xor esi, esi
push esi
push dword [0x50297d50]
call edi
push dword [ebp + 0x64]
mov dword [ebp + 0x7c], eax
push ebx
push 0x500065e4
push eax
call dword [sym.imp.vsansi.dll_wsprintfW]
add esp, 0x10
cmp dword [ebp + 0x5c], esi
je 0x50086f21
push dword [ebp + 0x5c]
push esi
push dword [0x50297d50]
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push esi
lea eax, [ebp - 0x7b0]
push eax
lea eax, [ebp + 0x4c]
push eax
push dword [ebp + 0x74]
mov dword [ebp - 8], 0x44
call dword [sym.imp.MSVCR70.dll__wsplitpath]
add esp, 0x14
cmp word [ebp + 0x4c], si
je 0x50086f70
lea eax, [ebp - 0x7b0]
push eax
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp - 0x214]
push 0x50009bc8
push eax
call dword [sym.imp.vsansi.dll_wsprintfW]
mov ax, word [ebp - 0x214]
add esp, 0x10
jmp 0x50086f7a
xor ax, ax
mov word [ebp - 0x214], ax
neg ax
lea ecx, [ebp - 0x214]
sbb eax, eax
and eax, ecx
lea ecx, [ebp + 0x3c]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x7c]
push esi
call dword [sym.imp.vsansi.dll_CreateProcessW]
test eax, eax
jne 0x50087071
mov dword [ebp + 0x60], 0x80004005
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x50087028
cmp eax, 3
je 0x50087028
mov edi, 0x338b
push edi
call fcn.5005698e
shr eax, 0x10
test ax, ax
push edi
je 0x50086ffb
call fcn.5005698e
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ecx + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.50260700
mov edi, esp
push 0x338b
jmp 0x50087063
call fcn.5005698e
push ebx
push eax
lea eax, [ebp - 0x5ac]
push eax
call dword [sym.imp.vsansi.dll_wsprintfW]
add esp, 0xc
push esi
push esi
push esi
lea eax, [ebp - 0x5ac]
push eax
push 0x80004005
call fcn.50272bbe
jmp 0x5008708d
mov edi, 0x338a
push edi
call fcn.5005698e
shr eax, 0x10
test ax, ax
push edi
je 0x50086ffb
call fcn.5005698e
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ecx + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.50260700
mov edi, esp
push 0x338a
call fcn.5005698e
push eax
push edi
call fcn.5024c7db
jmp 0x50087000
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x78]
push 3
mov dword [ecx], eax
pop edi
push 0x2710
push dword [ebp + 0x3c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
dec edi
jne 0x5008707c
cmp dword [ebp + 0x7c], esi
je 0x500870a2
push dword [ebp + 0x7c]
push esi
push dword [0x50297d50]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp + 0x60]
lea esp, [ebp - 0x7bc]
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10