Function at 0x418652
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
push 0x44
pop edi
xor ebx, ebx
push edi
mov esi, eax
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.00427d80
add esp, 0xc
mov dword [ebp - 0x78], edi
cmp byte [esi + 8], bl
je 0x418682
mov dword [ebp - 0x70], 0x43e170
xor eax, eax
cmp byte [esi + 1], bl
mov dword [ebp - 0x4c], 1
setne al
dec eax
and eax, 5
mov word [ebp - 0x48], ax
mov eax, dword [esi + 0x10]
cmp eax, ebx
jne 0x4186aa
cmp dword [esi + 0x14], ebx
jne 0x4186aa
cmp dword [esi + 0x18], ebx
je 0x4186c0
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x4c], 0x101
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], ebx
cmp dword [esi + 0xc], ebx
je 0x4186cf
mov dword [ebp - 8], 0x1000004
cmp byte [esi + 0x1c], bl
je 0x4186db
or dword [ebp - 8], 0x1000000
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp eax, ebx
je 0x41876c
or dword [ebp - 8], 0x400
push ebx
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x418717
lea edi, [ebp - 0x1c]
call fcn.0041ae0b
xor al, al
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x418731
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x78]
push ecx
movzx ecx, byte [esi + 2]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
push ecx
push ebx
push ebx
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
lea eax, [ebp - 0x30]
push eax
call fcn.004185ef
push dword [ebp - 0xc]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp edi, ebx
jne 0x4187bd
jmp 0x418708
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x418786
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x78]
push ecx
movzx ecx, byte [esi + 2]
push ebx
push ebx
push dword [ebp - 8]
push ecx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
lea eax, [ebp - 0x30]
push eax
call fcn.004185ef
cmp byte [ebp - 1], bl
jne 0x418708
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4187f6
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x4187ed
push 1
push dword [ebp - 0x1c]
call fcn.00417f63
pop ecx
pop ecx
lea edi, [ebp - 0x1c]
call fcn.0041ae0b
mov al, bl
jmp 0x418712
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [esi], bl
je 0x418805
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x41882c
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
cmp esi, ebx
je 0x41882a
cmp esi, 0xffffffff
je 0x41882a
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.0041a7a3
pop ecx
mov dword [edi], esi
mov bl, 1
jmp 0x4187de