Function at 0x40e1ad
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
cmp dword [ebp + 0xc], 0
jne 0x40e1d0
call fcn.0040aa4b
mov dword [eax], 0x16
call fcn.0040a8cd
or eax, 0xffffffff
leave
ret
cmp dword [ebp + 0x10], 0
je 0x40e1bb
cmp dword [ebp + 8], 4
jbe 0x40e1e6
call fcn.0040aa36
and dword [eax], 0
jmp 0x40e1bb
push ebx
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
push dword [ebp + 0x14]
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
call fcn.0041475a
or ebx, 0xffffffff
add esp, 0x10
cmp eax, ebx
jne 0x40e224
push dword [ebp - 4]
call fcn.0040aac0
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
call fcn.0040aac0
pop ecx
pop ecx
jmp 0x40e267
cmp dword [ebp + 8], 4
mov dword [ebp - 8], edi
setne al
movzx eax, al
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040e54a
add esp, 0xc
test al, al
jne 0x40e26e
push dword [ebp - 8]
call fcn.0040aac0
push dword [ebp - 4]
mov dword [ebp - 8], edi
call fcn.0040aac0
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
call fcn.0040aac0
add esp, 0xc
mov eax, ebx
jmp 0x40e3af
push esi
call fcn.0040aa36
push 0x44
pop esi
push esi
mov dword [eax], edi
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.004023b0
mov ax, word [ebp - 0x10]
add esp, 0xc
cmp dword [ebp + 8], 4
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], esi
push eax
push edi
push dword [ebp - 4]
mov eax, 0x408
lea ecx, [eax - 8]
cmovne eax, ecx
push eax
push 1
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
test eax, eax
je 0x40e318
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x40e3b3
test eax, eax
jne 0x40e33d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40e318
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp edi, ebx
je 0x40e308
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x40e313
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x18]
jmp 0x40e35a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a9ef
pop ecx
cmp edi, ebx
je 0x40e330
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x40e35a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e35a
cmp eax, 4
jne 0x40e37e
cmp edi, ebx
je 0x40e34d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x40e358
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push dword [ebp - 8]
call fcn.0040aac0
push dword [ebp - 4]
and dword [ebp - 8], 0
call fcn.0040aac0
push dword [ebp - 0xc]
and dword [ebp - 4], 0
call fcn.0040aac0
mov eax, ebx
jmp 0x40e3ab
cmp edi, ebx
je 0x40e389
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call fcn.0040aac0
push dword [ebp - 4]
and dword [ebp - 8], 0
call fcn.0040aac0
push dword [ebp - 0xc]
and dword [ebp - 4], 0
call fcn.0040aac0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
leave
ret
push 0
call fcn.00409dee
int3