Function at 0x45cbf7
Capabilities:
Create process on windows

Disassembly:
push 0x80
mov eax, 0x51b37d
call fcn.004d8abf
mov ebx, edx
mov dword [ebp - 0x1c], ebx
mov edi, ecx
mov dword [ebp - 0x28], edi
xor esi, esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00428857
push str.AutoScript.exe
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00409442
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [ebp - 0x10]
call fcn.0040687a
mov byte [ebp - 4], 5
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 8]
push str._input___ws___output___ws___job___ws_
push eax
call fcn.00409fd2
add esp, 0x14
lea ecx, [ebp - 0x18]
push 0x549004
call fcn.00409f12
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x24]
call fcn.0040a037
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
push ecx
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.0040a037
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.00405d6e
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 9
push 0
push eax
call fcn.004d9f30
mov dword [ebp - 0x8c], esi
add esp, 0xc
mov esi, dword [ebp - 0x10]
cmp dword [esi - 4], 1
jle 0x45cd0a
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406d8c
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x8c]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x45cd7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0xf89
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0x38]
call fcn.00406620
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push eax
mov ecx, edi
call fcn.0040121b
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45cdb3
lea eax, [ebp - 0x48]
cmp ebx, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x45cda4
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
je 0x45cd98
push dword [eax]
call ebx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
and dword [ebp - 0x48], 0
mov dword [ecx], eax
and dword [edi], 0
lea ecx, [edi + 8]
and dword [edi + 4], 0
call fcn.0040687a
cmp dword [ebp - 0x44], 0
je 0x45cdc2
push dword [ebp - 0x44]
call ebx
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x48], 0
je 0x45cdd1
push dword [ebp - 0x48]
call ebx
and dword [ebp - 0x48], 0
lea ecx, [esi - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, edi
call fcn.004d8a8d
ret