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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 8], edi
call fcn.0052d630
pop ecx
mov ecx, dword [edi + 0x2c]
mov dword [edi + 0x2c], eax
test ecx, ecx
je 0x4e04b1
push ecx
call fcn.00525d05
pop ecx
push dword [ebp + 0xc]
call fcn.0052d630
pop ecx
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
mov esi, eax
mov edx, 0x40c
mov eax, 0x8040c
cmp dword [ecx + 0x44], ebx
cmove eax, edx
mov ecx, eax
mov dword [ebp - 4], eax
cmp dword [edi + 0x1c], ebx
je 0x4e04f7
mov dword [ebp + 0xc], eax
call fcn.004f3790
cmp eax, 5
jge 0x4e04f4
mov eax, dword [ebp - 4]
or eax, 0x1000000
mov ecx, eax
jmp 0x4e04f7
mov ecx, dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 8]
push eax
push dword [ebp + 0x14]
movzx eax, byte [ebp + 0x10]
push ebx
push ebx
push ecx
push eax
push ebx
push ebx
push esi
push dword [ebp + 8]
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4e0538
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
push 0x12
pop ebx
mov dword [ecx], eax
jmp 0x4e0627
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.004f5f40
cmp dword [edi + 0x1c], ebx
je 0x4e0575
push dword [ebp - 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x4e0575
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x18]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x14
jmp 0x4e0608
lea ecx, [edi + 0x14]
cmp dword [ecx], ebx
je 0x4e05b8
cmp dword [ecx], 0xffffffff
je 0x4e05b8
mov eax, dword [ebp - 0x14]
push dword [ecx]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x4e05b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x18]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x15
jmp 0x4e0608
lea ecx, [edi + 0x14]
call fcn.004dd846
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x18]
push eax
call fcn.004f6110
test al, al
jne 0x4e05e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x18]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x17
jmp 0x4e0608
push dword [ebp - 0x18]
call fcn.004e491f
mov dword [edi + 0x28], eax
pop ecx
test eax, eax
jne 0x4e060b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x18]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x2b
pop ebx
jmp 0x4e061f
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.004f6210
push eax
mov ecx, edi
call fcn.004f61c0
lea ecx, [ebp - 0x18]
call fcn.004f5fc0
test esi, esi
je 0x4e0632
push esi
call fcn.00525d05
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x18