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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x577698]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x224], edx
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
mov bl, al
shr eax, 3
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x220], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x228], edx
xor edx, edx
and al, 1
and bl, 1
mov dword [edi], edx
mov dword [ebp - 0x230], edi
mov dword [esi], edx
mov byte [ebp - 0x219], al
cmp ecx, edx
jne 0x42f77d
mov dword [esi], 1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e736b
leave
ret
push edx
push ecx
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x42f7fd
mov ecx, dword [ebp - 0x220]
cmp eax, dword [ecx]
je 0x42f7b4
mov ecx, dword [ebp - 0x224]
push edi
push eax
mov edx, esi
call fcn.0042f52e
pop ecx
pop ecx
test al, al
je 0x42f7fd
mov eax, dword [ebp - 0x22c]
cmp byte [ebp - 0x219], 0
mov ecx, dword [ebp - 0x220]
mov dword [ecx], eax
je 0x42f7f5
lea edx, [ebp - 0x220]
push edx
push 0x1f4
xor ecx, ecx
push ecx
push ecx
push ecx
push 0x482
push eax
mov dword [ebp - 0x220], ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
cmp dword [ebp - 0x220], 1
jne 0x42f76c
xor eax, eax
inc eax
jmp 0x42f76e
test bl, bl
je 0x42f76c
cmp dword [ebp - 0x224], 0
je 0x42f76c
push dword [ebp - 0x224]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
and dword [ebp - 0x220], 0
mov byte [ebp - 0x219], 1
call ebx
test eax, eax
je 0x42f84c
push dword [ebp - 0x224]
call fcn.00405f50
pop ecx
cmp eax, 1
jne 0x42f84c
mov byte [ebp - 0x219], 0
jmp 0x42f857
push dword [ebp - 0x224]
call fcn.00441e3c
cmp byte [ebp - 0x219], 0
sete al
cmp al, 1
jne 0x42f958
xor eax, eax
push 0x208
mov word [ebp - 0x218], ax
xor edi, edi
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.004e7380
add esp, 0xc
cmp dword [ebp - 0x228], edi
je 0x42f8ab
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004ec303
add esp, 0xc
push 0x40
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.004e7380
mov dword [ebp - 0x240], edi
xor eax, eax
lea edi, [ebp - 0x23c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0x258], ax
lea eax, [ebp - 0x240]
push eax
xor edi, edi
lea eax, [ebp - 0x288]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x224]
mov dword [ebp - 0x288], 0x44
mov dword [ebp - 0x25c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42f936
mov dword [ebp - 0x220], edi
mov dword [esi], 0x64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x230]
mov dword [ecx], eax
jmp 0x42f97a
push dword [ebp - 0x23c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x220], 2
call esi
push dword [ebp - 0x240]
call esi
jmp 0x42f97a
push dword [ebp - 0x224]
call ebx
test eax, eax
jne 0x42f974
mov dword [esi], 0x68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x42f97a
mov dword [esi], 2
mov eax, dword [ebp - 0x220]
jmp 0x42f76e