Function at 0x493584
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov ebx, ecx
lea esi, [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x4f6014]
xor eax, ebp
mov dword [esp + 0x98], eax
push dword [ebp + 8]
call fcn.004bf505
add esp, 4
mov ecx, dword [ebx + 0x2c]
mov dword [esp], ebx
mov dword [ebx + 0x2c], eax
test ecx, ecx
je 0x4935ca
push ecx
call fcn.00453410
add esp, 4
mov esi, dword [esi]
push edi
call fcn.004bf505
add esp, 4
xor ebx, ebx
cmp dword [esi + 0x60], 0
setne bl
shl ebx, 0x13
or ebx, 0x40c
mov ecx, dword [esp]
cmp dword [ecx + 0x1c], 0
mov dword [esp + 4], eax
je 0x493605
call fcn.00453320
lea ecx, [ebx + 0x1000000]
cmp eax, 5
cmovl ebx, ecx
movzx eax, byte [esi + 0x10]
pxor xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi], xmm0
lea ecx, [esi + 0x1c]
xor edx, edx
push edi
push ecx
push edx
push edx
push ebx
push eax
push edx
push edx
push dword [esp + 0x24]
push dword [ebp + 8]
mov ebx, dword [esp + 0x28]
push dword [ebx + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x493761
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x10]
movdqa xmmword [ecx], xmm0
push edi
call fcn.00493080
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x493678
mov ecx, dword [esi + 0x98]
cmp ecx, dword [esi + 0x9c]
jne 0x493678
push dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x493779
mov esi, dword [ebx + 0x14]
lea eax, [esi + 1]
cmp eax, 2
lea ebx, [ebp + 0x10]
jb 0x4937e1
xor eax, eax
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x10]
xor edx, edx
dec edx
lea edi, [esp + 0x8c]
mov dword [edi + 8], edx
mov dword [edi + 4], edx
mov dword [edi], edx
push eax
push ecx
push edi
call fcn.0046f920
add esp, 0xc
cmp byte [edi], 0
je 0x4937b3
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x70]
movdqa xmmword [edi], xmm0
mov dword [edi + 0x10], 0xffffffff
lea ecx, [esp + 0x90]
push edi
call fcn.0046ffc0
cmp byte [edi], 0
je 0x49379d
mov eax, dword [esp]
add eax, 0x30
lea edi, [esp + 0x30]
pcmpeqd xmm0, xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov dword [edi + 0x30], 0xffffffff
lea edx, [esp + 0x74]
mov ecx, edi
push eax
push edx
call fcn.004a0bb0
lea eax, [esp + 0xc]
push eax
push edi
push 0
push esi
call fcn.0048ee96
add esp, 0x10
mov dword [esp + 8], eax
mov ecx, edi
call fcn.004a0cc8
lea ecx, [esp + 0x74]
cmp byte [ecx - 4], 0
je 0x49373e
call fcn.0046f7e0
cmp byte [esp + 0x8c], 0
je 0x493754
lea ecx, [esp + 0x90]
call fcn.0046f8f0
cmp dword [esp + 8], 0
jne 0x4937b3
mov esi, dword [esp + 0xc]
jmp 0x4937b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov esi, 0x12
lea ebx, [ebp + 0x10]
jmp 0x4938a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, 0x14
lea ebx, [ebp + 0x10]
jmp 0x49389e
cmp byte [esp + 0x8c], 0
je 0x4937b3
lea ecx, [esp + 0x90]
call fcn.0046f8f0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
mov dword [ecx], eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x49385e
mov eax, dword [esp]
lea ecx, [eax + 0x14]
call fcn.0046f8f0
lea ecx, [esp + 0xc]
call fcn.0046f8f0
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x10]
push eax
call fcn.004932a0
test al, al
je 0x493825
push dword [esp + 0x10]
call fcn.0049be5a
add esp, 4
mov ecx, dword [esp]
mov dword [ecx + 0x28], eax
test eax, eax
mov esi, dword [ebp + 0x18]
je 0x493843
cmp eax, 0x400000
je 0x493885
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, 0x41
jmp 0x49389e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, 0x17
jmp 0x49389e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, 0x2b
jmp 0x49389e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0xc]
call fcn.0046f8f0
mov esi, 0x15
jmp 0x49389e
lea esi, [esp + 0x30]
lea ecx, [esp + 0x10]
push esi
call fcn.004933a0
mov ecx, dword [esp]
push esi
call fcn.004930a0
xor esi, esi
lea ecx, [esp + 0x10]
call fcn.004931d0
mov eax, dword [esp + 4]
test eax, eax
je 0x4938b8
push eax
call fcn.00453410
add esp, 4
mov ecx, ebx
push 0
call fcn.00493cce
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.004a8de3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14