Function at 0x4589e3
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0xc4
mov eax, 0x4715bf
call fcn.00443729
mov esi, dword [ebp + 0xa8]
mov dword [ebp - 4], 2
call fcn.0045a099
xor edi, edi
test byte [ebp + 0x98], 8
jne 0x458b72
cmp dword [ebp + 0x1c], edi
je 0x458a7c
push edi
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.0041e1e2
lea ecx, [ebp - 0x40]
call fcn.00401580
cmp dword [ebp + 0x1c], edi
je 0x458a7c
push 0x477c9c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00417088
lea ecx, [ebp + 0x38]
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 3
call fcn.0041b98d
add esp, 0x18
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 4
call fcn.0040cdaa
lea ecx, [ebp - 0x40]
call fcn.00401580
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.00401580
push 0x40
lea eax, [ebp - 0xcc]
push edi
push eax
call fcn.00442700
or dword [ebp - 0xa4], 1
mov ax, word [ebp + 0xa0]
add esp, 0xc
cmp dword [ebp + 0x7c], 0
mov dword [ebp - 0xd0], 0x44
mov word [ebp - 0xa0], ax
je 0x458ac3
cmp dword [ebp + 0x80], 8
lea esi, [ebp + 0x6c]
cmovae esi, dword [ebp + 0x6c]
jmp 0x458ac5
mov esi, edi
push edi
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp + 0x38]
call fcn.0040f5d4
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.0040f579
push 0x4a78d0
lea ecx, [ebp - 0xd0]
push ecx
push esi
push edi
push dword [ebp + 0xa4]
push edi
push edi
push edi
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x8c]
mov esi, eax
mov byte [ebp - 4], 2
call fcn.0040cd3a
test esi, esi
jne 0x458b61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4a78f0], eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0x38]
call fcn.0041532a
lea ecx, [ebp - 0x7c]
call fcn.00401580
sub esp, 0x30
mov ecx, esp
push edi
lea eax, [ebp + 0x38]
push eax
mov dword [ecx], 0x477ab0
mov dword [ecx + 0x28], 0x478490
call fcn.0040c733
call fcn.0045a1a3
add esp, 0x30
jmp 0x458c9d
mov esi, dword [0x4a78d0]
mov ebx, dword [0x4a78d8]
jmp 0x458cbd
push 0x38
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.00442700
mov eax, dword [ebp + 0xa4]
or eax, 0x40
mov dword [ebp - 0x48], eax
lea eax, [esi + 4]
add esp, 0xc
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x4c], 0x3c
jb 0x458b9f
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
push edi
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp + 8]
call fcn.0040f5d4
mov ecx, dword [eax]
mov byte [ebp - 4], 6
mov byte [eax + 4], 1
call fcn.0040f579
mov eax, dword [eax]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
call fcn.0040cd3a
push edi
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp + 0x38]
call fcn.0040f5d4
mov ecx, dword [eax]
mov byte [ebp - 4], 7
mov byte [eax + 4], 1
call fcn.0040f579
mov eax, dword [eax]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
call fcn.0040cd3a
mov eax, dword [ebp + 0xa0]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp + 0x68]
call fcn.0040f5d4
mov ecx, dword [eax]
mov byte [ebp - 4], 8
mov byte [eax + 4], 1
call fcn.0040f579
mov eax, dword [eax]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
call fcn.0040cd3a
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne al
test al, al
jne 0x458ca5
mov eax, dword [ebp - 0x2c]
cmp eax, 0x20
jge 0x458ca5
mov dword [0x4a78f0], eax
push 0x477c9c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00417088
sub esp, 0x24
mov ecx, esp
lea edx, [ebp + 0x38]
push edx
push eax
push ecx
mov byte [ebp - 4], 9
call fcn.0041b98d
add esp, 0xc
call fcn.0045a1a3
add esp, 0x30
lea ecx, [ebp - 0x7c]
call fcn.00401580
or edi, 0xffffffff
jmp 0x458d43
mov esi, dword [ebp - 0x14]
push esi
mov dword [0x4a78d0], esi
call fcn.00457e60
mov ebx, eax
pop ecx
mov dword [0x4a78d8], ebx
push 0x3e8
push esi
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp + 0x9c]
push dword [ebp + 0x98]
push esi
push ebx
call fcn.0045a210
add esp, 0x10
mov ebx, eax
push 0x4a78cc
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test ebx, ebx
je 0x458d43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4a78f0], eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0x38]
call fcn.0041532a
lea ecx, [ebp - 0x7c]
call fcn.00401580
sub esp, 0x30
mov ecx, esp
push edi
lea eax, [ebp + 0x38]
push eax
mov dword [ecx], 0x477ab0
mov dword [ecx + 0x28], 0x478490
call fcn.0040c733
call fcn.0045a1a3
add esp, 0x30
cmp ebx, 0x102
jne 0x458d40
push 0xfffffffffffffffd
jmp 0x458d42
push 0xfffffffffffffffe
pop edi
lea ecx, [ebp + 8]
call fcn.00401580
lea ecx, [ebp + 0x38]
call fcn.00401580
lea ecx, [ebp + 0x68]
call fcn.00401580
mov eax, edi
call fcn.004436d8
ret