Function at 0x409810
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4292c8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x436ee0]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov ebp, ecx
push 0x40
xor ebx, ebx
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.004193f0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x18], ebx
call fcn.0040ee20
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x409883
push 0x80004005
call fcn.00408a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x11c], 0x10
mov dword [esp + 0x7c], ebx
jb 0x4098a8
mov edx, dword [ebp + 0x108]
jmp 0x4098ae
lea edx, [ebp + 0x108]
cmp edx, ebx
jne 0x4098b6
xor eax, eax
jmp 0x4098c9
mov eax, edx
lea esi, [eax + 1]
jmp 0x4098c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4098c0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00408cb0
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, edx
jge 0x4098fd
push esi
lea ecx, [esp + 0x18]
call fcn.00408c00
mov ecx, dword [esp + 0x14]
cmp esi, ebx
mov byte [edi + ecx], 0x5c
jl 0x409aa2
cmp esi, dword [ecx - 8]
jg 0x409aa2
mov dword [ecx - 0xc], esi
push 0x1a
mov byte [esi + ecx], 0
push 0x42abd8
lea ecx, [esp + 0x1c]
call fcn.004094d0
cmp dword [ebp + 0x120], ebx
je 0x409941
push 5
push str.__log
lea ecx, [esp + 0x1c]
call fcn.004094d0
mov ebx, dword [esp + 0x14]
push ebx
push str.Starting_process...
mov ecx, ebp
call fcn.00401da0
cmp dword [ebp + 0x11c], 0x10
jb 0x409963
mov eax, dword [ebp + 0x108]
jmp 0x409969
lea eax, [ebp + 0x108]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x409a61
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x20]
push ecx
call edi
push 0x1f4
call esi
mov edx, dword [esp + 0x18]
push edx
push str.Process_complete_with_ExitCode_:
mov ecx, ebp
call fcn.00402160
cmp dword [esp + 0x18], 0
je 0x409a29
push 8
call fcn.0040e8cc
add esp, 4
test eax, eax
je 0x409a14
mov ecx, dword [esp + 0x18]
movzx edx, cx
shr ecx, 0x10
mov word [eax], cx
mov word [eax + 2], dx
mov dword [eax + 4], 0x54f
jmp 0x409a16
xor eax, eax
mov dword [esp + 0x1c], eax
push 0x432610
lea eax, [esp + 0x20]
push eax
call fcn.0041977e
lea eax, [ebx - 0x10]
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push 8
call fcn.0040e8cc
mov esi, eax
add esp, 4
test esi, esi
je 0x409a8d
mov ecx, 0x1005
mov edx, 0xa7
mov word [esi], cx
mov word [esi + 2], dx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x409a8f
xor esi, esi
push 0x432610
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], esi
call fcn.0041977e
push 0x80070057
call fcn.00408a10
int3