Function at 0x100420f
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 4], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
inc ebx
xor edi, edi
push eax
mov esi, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call fcn.01003fc3
test eax, eax
je 0x100443b
push 2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
lea eax, [ebp - 0xc]
push eax
call ebx
push eax
push dword [ebp - 4]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x100426f
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, esi
call fcn.010040f7
test eax, eax
je 0x10042a6
lea eax, [esi + 8]
push eax
push dword [ebp + 8]
call fcn.01004709
mov dword [esi + 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.010047c4
cmp eax, edi
mov dword [ebp - 0x28], eax
jne 0x10042af
jmp 0x10042ac
mov dword [ebp - 0x28], edi
mov dword [esi + 0xc], edi
mov dword [ebp - 8], edi
call fcn.010044ff
test al, al
je 0x1004390
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.010049cb
movzx ebx, al
cmp ebx, edi
je 0x100441b
push dword [ebp - 0xc]
lea eax, [ebp - 0x7c]
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push eax
call fcn.010044be
mov ecx, esi
call fcn.01004173
cmp eax, edi
mov dword [ebp - 0x20], eax
jne 0x1004306
xor ebx, ebx
jmp 0x100436b
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push edi
push dword [ebp - 8]
push 0xc00
push 1
push edi
push edi
push 0x1001414
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x20]
mov ebx, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp ebx, edi
pop ecx
je 0x100436b
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x14], 0x103
je 0x1004356
xor ebx, ebx
mov dword [ebp - 0x18], edi
jmp 0x100436b
cmp dword [ebp - 0x34], 0xffffffff
mov eax, dword [ebp - 0x38]
mov dword [esi + 4], eax
je 0x100436b
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], edi
je 0x1004379
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x24], edi
je 0x100441b
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
jmp 0x100441b
push dword [ebp - 0xc]
lea eax, [ebp - 0x7c]
push dword [ebp - 4]
push dword [ebp - 0x10]
push 0x1001424
push eax
call fcn.010044be
mov ecx, esi
call fcn.01004173
cmp eax, edi
mov dword [ebp - 0x20], eax
jne 0x10043b9
xor ebx, ebx
jmp 0x100441b
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push edi
push dword [ebp - 8]
push 0xc00
push 1
push edi
push edi
push 0x1001414
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov ebx, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp ebx, edi
pop ecx
je 0x100441b
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x14], 0x103
je 0x1004406
xor ebx, ebx
mov dword [ebp - 0x18], edi
jmp 0x100441b
cmp dword [ebp - 0x34], 0xffffffff
mov eax, dword [ebp - 0x38]
mov dword [esi + 4], eax
je 0x100441b
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], edi
je 0x100442b
push dword [ebp - 8]
call fcn.01004861
mov dword [ebp - 8], edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
cmp ebx, edi
jne 0x100444e
mov dword [ebp - 0x18], edi
cmp dword [esi + 0xc], edi
je 0x100444e
push dword [esi + 8]
push dword [ebp + 8]
call fcn.01004816
mov dword [esi + 0xc], edi
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
pop edi
pop esi
pop ebx
je 0x1004465
cmp eax, dword [ebp - 4]
je 0x1004465
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0xffffffff
je 0x1004474
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0xffffffff
je 0x1004483
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
leave
ret 4