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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de310
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x70]
push str.____________________Entrance____________________
lea ecx, [ebp - 0x28]
push ecx
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], str.StartProcess
call fcn.00471a00
add esp, 0xc
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x40
lea ecx, [ebp - 0x70]
push 0
push ecx
mov byte [ebp - 4], 2
call fcn.004ab3f0
add esp, 0xc
cmp byte [ebx + 0xc0], 0
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], 1
je 0x459471
lea eax, [ebp - 0x20]
mov edx, 5
push eax
mov ecx, ebx
mov word [ebp - 0x44], dx
call fcn.00459670
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004082a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4594cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4594cd
lea ecx, [ebp - 0x20]
push ecx
mov ecx, ebx
call fcn.00453dd0
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004082a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4594ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0xd4]
mov edx, dword [ebx + 0xdc]
xor ecx, ecx
mov dword [ebp - 0x48], 0x101
mov word [ebp - 0x44], cx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov esi, dword [ebp - 0x18]
cmp dword [esi - 4], 1
jle 0x4594e6
mov eax, dword [esi - 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00405cd0
mov esi, dword [ebp - 0x18]
lea edx, [ebx + 0x148]
push edx
lea eax, [ebp - 0x74]
push eax
push 0
push 0
push 0x4010
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov eax, dword [esi - 8]
push eax
push esi
jne 0x45958d
call fcn.004a5cf7
add esp, 8
test eax, eax
jl 0x459583
cmp eax, dword [esi - 8]
jg 0x459583
push esi
mov dword [esi - 0xc], eax
xor ecx, ecx
push str.Failed_to_CreateProcess__s_.
lea edx, [ebp - 0x28]
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x1c]
push edx
push eax
call fcn.00471980
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459562
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
jmp 0x459653
push 0x80070057
call fcn.00405ef0
call fcn.004a5cf7
add esp, 8
test eax, eax
jl 0x459583
cmp eax, dword [esi - 8]
jg 0x459583
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [ebx + 0xd4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
push esi
push str.Success__CreateProcess__s_
lea eax, [ebp - 0x28]
push eax
push ecx
mov dword [ebx + 0xd4], 0
call fcn.004719c0
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4595f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4