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

Disassembly:
sub esp, 0x74
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov ecx, 0x11
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x88]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x3c], eax
mov eax, 0xfffff830
mov dword [esp + 0x30], ebp
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 5
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov word [esp + 0x70], 7
mov ebx, 0xc
je 0x409703
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409553
sub eax, edx
mov esi, eax
cmp esi, 9
jl 0x40957d
lea ecx, [esi + edi - 9]
push str.cmd.exe_
push ecx
call fcn.0040f01d
add esp, 8
test eax, eax
je 0x409603
cmp esi, 8
jl 0x409598
lea edx, [esi + edi - 8]
push str.cmd.exe
push edx
call fcn.0040f01d
add esp, 8
test eax, eax
je 0x409603
cmp esi, 0xe
jl 0x4095b3
lea eax, [esi + edi - 0xe]
push str._typeperf.exe_
push eax
call fcn.0040f01d
add esp, 8
test eax, eax
je 0x409603
cmp esi, 0xd
jl 0x4095ce
lea ecx, [esi + edi - 0xd]
push str._typeperf.exe
push ecx
call fcn.0040f01d
add esp, 8
test eax, eax
je 0x409603
cmp esi, ebx
jl 0x4095e8
lea edx, [esi + edi - 0xe]
push str._nircmd.exe_
push edx
call fcn.0040f01d
add esp, 8
test eax, eax
je 0x409603
cmp esi, 0xb
jl 0x409608
lea eax, [esi + edi - 0xd]
push str._nircmd.exe
push eax
call fcn.0040f01d
add esp, 8
test eax, eax
jne 0x409608
mov word [esp + 0x70], bp
mov esi, dword [esp + 0x8c]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x44]
push edx
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
push edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], 1
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, ebp
jne 0x40978e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4096f8
call fcn.0040a280
test eax, eax
je 0x4096f8
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, ebp
je 0x4096f8
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push ebx
call ebp
push str.Wow64RevertWow64FsRedirection
push ebx
mov dword [esp + 0x1c], eax
call ebp
mov ebp, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4096e9
test ebp, ebp
je 0x4096e9
lea edx, [esp + 0x14]
push edx
call eax
test eax, eax
je 0x4096e9
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x94]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x40]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jne 0x40978c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x74
ret
mov esi, dword [esp + 0x8c]
cmp esi, ebp
je 0x40960f
push 0x41b864
push esi
call fcn.0040a330
add esp, 8
test eax, eax
jne 0x409782
push 0x41b858
push esi
call fcn.0040a330
add esp, 8
test eax, eax
jne 0x409782
push 0x41b848
push esi
call fcn.0040a330
add esp, 8
test eax, eax
jne 0x409782
push 0x41b838
push esi
call fcn.0040a330
add esp, 8
test eax, eax
jne 0x409782
push 0x41b828
push esi
call fcn.0040a330
add esp, 8
test eax, eax
jne 0x409782
push 0x41b818
push esi
call fcn.0040a330
add esp, 8
test eax, eax
je 0x40960f
mov word [esp + 0x70], bp
jmp 0x40960f
xor ebp, ebp
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x90], ebp
je 0x40982f
mov edi, dword [esp + 0x94]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov dword [esp + 0x10], 0x103
lea ecx, [ecx]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x409810
cmp dword [esp + 0x10], 0x103
jne 0x40982f
push 0x1f4
call ebx
inc esi
test edi, edi
jle 0x4097f1
lea eax, [edi + edi]
cmp eax, esi
jl 0x40982a
cmp dword [esp + 0x10], 0x103
je 0x4097c0
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x74
ret
mov ecx, dword [esp + 0x30]
push ecx
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x74
ret
mov ebp, 2
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x74
ret