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

Disassembly:
push 0xc4
mov eax, 0x4cede8
call fcn.0049a06f
mov esi, dword [ebp + 0xa8]
xor edi, edi
mov dword [ebp - 4], 2
test byte [ebp + 0x98], 8
mov dword [0x5218e8], edi
jne 0x4910b8
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
sete al
test al, al
jne 0x490f69
push edi
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.0042aa70
lea ecx, [ebp - 0x40]
call fcn.00404db0
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
sete al
test al, al
jne 0x490fba
push 0x4dcb38
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040c740
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040c8b0
add esp, 0x18
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 4
call fcn.00404140
lea ecx, [ebp - 0x40]
call fcn.00404db0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.00404db0
push 0x40
lea eax, [ebp - 0xcc]
push edi
push eax
call fcn.0049b6a0
or dword [ebp - 0xa4], 1
add esp, 0xc
mov ax, word [ebp + 0xa0]
cmp dword [ebp + 0x7c], 0
mov word [ebp - 0xa0], ax
sete al
mov dword [ebp - 0xd0], 0x44
test al, al
jne 0x491006
cmp dword [ebp + 0x80], 8
lea esi, [ebp + 0x6c]
cmovae esi, dword [ebp + 0x6c]
jmp 0x491008
mov esi, edi
push edi
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp + 0x38]
call fcn.00409e80
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.00404040
push 0x5218f0
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 byte [ebp - 4], 2
mov esi, eax
call fcn.00409da0
test esi, esi
jne 0x4910a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5218e8], eax
lea ecx, [ebp + 0x38]
lea eax, [ebp - 0x7c]
push eax
call fcn.0042a9b0
lea ecx, [ebp - 0x7c]
call fcn.00404db0
sub esp, 0x30
lea eax, [ebp + 0x38]
mov ecx, esp
mov dword [ebp - 0x80], ecx
push edi
push eax
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.00407160
call fcn.004926e6
add esp, 0x30
jmp 0x4911e3
mov esi, dword [0x5218f0]
mov ebx, dword [0x5218f8]
jmp 0x491203
push 0x38
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.0049b6a0
mov eax, dword [ebp + 0xa4]
add esp, 0xc
or eax, 0x40
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], eax
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x4910e5
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
lea ecx, [ebp + 8]
push edi
lea eax, [ebp - 0x8c]
push eax
call fcn.00409e80
mov ecx, dword [eax]
mov byte [ebp - 4], 6
mov byte [eax + 4], 1
call fcn.00404040
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
call fcn.00409da0
push edi
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp + 0x38]
call fcn.00409e80
mov ecx, dword [eax]
mov byte [ebp - 4], 7
mov byte [eax + 4], 1
call fcn.00404040
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
call fcn.00409da0
mov eax, dword [ebp + 0xa0]
lea ecx, [ebp + 0x68]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.00409e80
mov ecx, dword [eax]
mov byte [ebp - 4], 8
mov byte [eax + 4], 1
call fcn.00404040
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
call fcn.00409da0
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne al
test al, al
jne 0x4911eb
mov eax, dword [ebp - 0x2c]
cmp eax, 0x20
jge 0x4911eb
mov dword [0x5218e8], eax
lea eax, [ebp + 8]
push 0x4dcb38
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040c740
sub esp, 0x24
mov byte [ebp - 4], 9
mov ecx, esp
lea edx, [ebp + 0x38]
push edx
push eax
push ecx
call fcn.0040c8b0
add esp, 0xc
call fcn.004926e6
add esp, 0x30
lea ecx, [ebp - 0x7c]
call fcn.00404db0
or edi, 0xffffffff
jmp 0x49128c
mov esi, dword [ebp - 0x14]
push esi
mov dword [0x5218f0], esi
call fcn.004905b6
mov ebx, eax
pop ecx
mov dword [0x5218f8], 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.004927c2
add esp, 0x10
mov ebx, eax
push 0x5218ec
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test ebx, ebx
je 0x49128c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5218e8], eax
lea ecx, [ebp + 0x38]
lea eax, [ebp - 0x7c]
push eax
call fcn.0042a9b0
lea ecx, [ebp - 0x7c]
call fcn.00404db0
sub esp, 0x30
lea eax, [ebp + 0x38]
mov ecx, esp
mov dword [ebp - 0x80], ecx
push edi
push eax
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.00407160
call fcn.004926e6
add esp, 0x30
cmp ebx, 0x102
jne 0x491289
push 0xfffffffffffffffd
jmp 0x49128b
push 0xfffffffffffffffe
pop edi
lea ecx, [ebp + 8]
call fcn.00404db0
lea ecx, [ebp + 0x38]
call fcn.00404db0
lea ecx, [ebp + 0x68]
call fcn.00404db0
mov eax, edi
call fcn.0049a019
ret