Function at 0x401d80
Capabilities:
Check if file exists
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb247
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x4fd5c0]
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 ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
cmp dword [ebx + 0x118], 8
lea esi, [ebx + 0x104]
mov dword [ebp - 4], eax
jb 0x401de4
mov eax, dword [esi]
jmp 0x401de6
mov eax, esi
cmp dword [ebx + 0x100], 8
lea edi, [ebx + 0xec]
jb 0x401df9
mov ecx, dword [edi]
jmp 0x401dfb
mov ecx, edi
lea edx, [ebp - 0x234]
push edx
push 0
push eax
push ecx
push dword [ebx + 8]
call fcn.00409f20
add esp, 0x14
test eax, eax
jne 0x401e43
cmp dword [esi + 0x14], 8
jb 0x401e1d
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x401e25
mov edi, dword [edi]
lea eax, [ebp - 0x234]
push eax
push 0x40
push esi
push edi
push dword [ebx + 8]
call fcn.00409f20
add esp, 0x14
test eax, eax
je 0x402063
push 1
push 0
push 0x4cf818
lea ecx, [ebp - 0x234]
call fcn.00403600
push dword [ebp - 0x224]
inc eax
lea ecx, [ebp - 0x234]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.00403690
mov esi, eax
lea eax, [ebp - 0x234]
cmp eax, esi
je 0x401ec4
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x401e9b
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.004034f0
xor eax, eax
mov dword [ebp - 0x220], 7
push esi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
call fcn.00402e40
mov eax, dword [ebp - 0x27c]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x401ee6
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.004034f0
push 1
push 0
push 0x4cf818
lea ecx, [ebp - 0x234]
call fcn.00403600
push eax
push 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x234]
call fcn.00403690
mov esi, eax
lea eax, [ebp - 0x234]
cmp eax, esi
je 0x401f62
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x401f39
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.004034f0
xor eax, eax
mov dword [ebp - 0x220], 7
push esi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
call fcn.00402e40
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x401f80
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.004034f0
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402063
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004a3390
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
push 0x4cf81c
push 0xffffffffffffffff
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004036e0
push 0x40
lea eax, [ebp - 0x274]
push 0
push eax
call fcn.004a3390
add esp, 0x2c
mov dword [ebp - 0x278], 0x44
mov eax, 5
mov dword [ebp - 0x24c], 0x101
mov word [ebp - 0x248], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x278]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
movups xmmword [ebp - 0x288], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402063
push dword [ebp - 0x284]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x288]
call esi
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x402081
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.004034f0
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.004a10e1
mov esp, ebp
pop ebp
ret 4