Function at 0x450550
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520a80
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x44
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x8c]
push 0
push eax
mov dword [ebp - 0x94], 0
call fcn.004f9050
add esp, 0xc
mov dword [ebp - 0x8c], 0x44
cmp byte [edi + 8], 0
mov eax, 0x52d9b8
xorps xmm0, xmm0
mov dword [ebp - 0x60], 1
cmove eax, dword [ebp - 0x84]
xor ecx, ecx
cmp byte [edi + 1], cl
mov dword [ebp - 0x84], eax
mov eax, 5
cmovne eax, ecx
mov dword [ebp - 0x24], 7
mov word [ebp - 0x5c], ax
mov ecx, 0x1000004
xor eax, eax
mov dword [ebp - 0x28], 0
cmp dword [edi + 0xc], eax
push 0xffffffffffffffff
cmovne eax, ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x94], eax
xor eax, eax
push eax
push esi
movdqu xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x38], ax
call fcn.00407d00
cmp dword [edi + 4], 0
mov esi, dword [ebp - 0x94]
mov dword [ebp - 4], 0
je 0x4506f0
mov eax, dword [edi + 0x20]
lea edx, [edi + 0x14]
or esi, 0x400
mov dword [ebp - 0x84], eax
test edx, edx
je 0x45064e
cmp dword [edx], 0
jne 0x450650
xor edx, edx
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x8c]
push eax
movzx eax, byte [edi + 2]
lea ecx, [ebp - 0x38]
cmovae ecx, dword [ebp - 0x38]
push 0
push dword [edi + 0x10]
push esi
push eax
push 0
push edx
push ecx
push 0
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x450725
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x20]
movdqu xmmword [ebp - 0x20], xmm0
call fcn.00439470
mov eax, dword [edi + 0xc]
mov byte [ebp - 4], 1
test eax, eax
je 0x450738
push dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x45072f
mov esi, dword [ebp - 0x20]
push 1
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
test al, al
je 0x4506e5
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4506ec
mov dword [ebp - 4], 1
xor al, al
jmp 0x45075e
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x8c]
push eax
movzx eax, byte [edi + 2]
lea ecx, [ebp - 0x38]
cmovae ecx, dword [ebp - 0x38]
push 0
push 0
push esi
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x450688
xor al, al
mov byte [ebp - 0x8d], al
jmp 0x450776
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [edi], 0
je 0x450748
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x45075c
lea ecx, [ebp - 0x20]
call fcn.00440310
mov dword [esi], eax
mov al, 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x8d], al
mov byte [ebp - 4], 0
call fcn.00439940
mov al, byte [ebp - 0x8d]
cmp dword [ebp - 0x24], 8
jb 0x45078d
push dword [ebp - 0x38]
call fcn.004085be
mov al, byte [ebp - 0x8d]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret