Function at 0x409f00
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 0x40a113
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409f63
sub eax, edx
mov esi, eax
cmp esi, 9
jl 0x409f8d
lea ecx, [esi + edi - 9]
push str.cmd.exe_
push ecx
call fcn.0041193d
add esp, 8
test eax, eax
je 0x40a013
cmp esi, 8
jl 0x409fa8
lea edx, [esi + edi - 8]
push str.cmd.exe
push edx
call fcn.0041193d
add esp, 8
test eax, eax
je 0x40a013
cmp esi, 0xe
jl 0x409fc3
lea eax, [esi + edi - 0xe]
push str._typeperf.exe_
push eax
call fcn.0041193d
add esp, 8
test eax, eax
je 0x40a013
cmp esi, 0xd
jl 0x409fde
lea ecx, [esi + edi - 0xd]
push str._typeperf.exe
push ecx
call fcn.0041193d
add esp, 8
test eax, eax
je 0x40a013
cmp esi, ebx
jl 0x409ff8
lea edx, [esi + edi - 0xe]
push str._nircmd.exe_
push edx
call fcn.0041193d
add esp, 8
test eax, eax
je 0x40a013
cmp esi, 0xb
jl 0x40a018
lea eax, [esi + edi - 0xd]
push str._nircmd.exe
push eax
call fcn.0041193d
add esp, 8
test eax, eax
jne 0x40a018
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 0x40a19e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40a108
call fcn.0040abf0
test eax, eax
je 0x40a108
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, ebp
je 0x40a108
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 0x40a0f9
test ebp, ebp
je 0x40a0f9
lea edx, [esp + 0x14]
push edx
call eax
test eax, eax
je 0x40a0f9
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 0x40a19c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x74
ret
mov esi, dword [esp + 0x8c]
cmp esi, ebp
je 0x40a01f
push 0x41d9a0
push esi
call fcn.0040ad90
add esp, 8
test eax, eax
jne 0x40a192
push 0x41d994
push esi
call fcn.0040ad90
add esp, 8
test eax, eax
jne 0x40a192
push 0x41d984
push esi
call fcn.0040ad90
add esp, 8
test eax, eax
jne 0x40a192
push 0x41d974
push esi
call fcn.0040ad90
add esp, 8
test eax, eax
jne 0x40a192
push 0x41d964
push esi
call fcn.0040ad90
add esp, 8
test eax, eax
jne 0x40a192
push 0x41d954
push esi
call fcn.0040ad90
add esp, 8
test eax, eax
je 0x40a01f
mov word [esp + 0x70], bp
jmp 0x40a01f
xor ebp, ebp
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x90], ebp
je 0x40a23f
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 0x40a220
cmp dword [esp + 0x10], 0x103
jne 0x40a23f
push 0x1f4
call ebx
inc esi
test edi, edi
jle 0x40a201
lea eax, [edi + edi]
cmp eax, esi
jl 0x40a23a
cmp dword [esp + 0x10], 0x103
je 0x40a1d0
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