Function at 0x48161c
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov eax, dword [0x52efc0]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, ecx
xor eax, ebp
mov dword [esp + 0xb8], eax
push dword [ebp + 8]
call fcn.004cb8b6
add esp, 4
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 0x18], ebx
mov dword [ebx + 0x2c], eax
test ecx, ecx
je 0x481663
push ecx
call fcn.00459fc0
add esp, 4
push edi
call fcn.004cb8b6
add esp, 4
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
cmp dword [esi + 0x48], edi
setne bl
shl ebx, 0x13
or ebx, 0x40c
cmp dword [eax + 0x1c], edi
je 0x48169d
call fcn.00458140
lea ecx, [ebx + 0x1000000]
cmp eax, 5
cmovl ebx, ecx
mov al, byte [ebp + 0x10]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x30]
xorps xmm0, xmm0
add esi, 4
movaps xmmword [edx], xmm0
movzx eax, al
push edx
push esi
push edi
push edi
push ebx
push eax
push edi
push edi
mov ebx, dword [esp + 0x34]
push ebx
push ecx
mov edi, dword [esp + 0x40]
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x48179d
lea eax, [esp + 0x30]
lea ecx, [esp + 0x20]
push eax
call fcn.00457d90
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4816fe
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x4817b2
mov ecx, dword [edi + 0x14]
mov esi, dword [ebp + 0x1c]
lea eax, [ecx + 1]
cmp eax, 2
jb 0x4818a8
lea eax, [esp + 0x44]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], 0
push eax
push 8
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4817d3
mov eax, dword [esp + 0x44]
lea ebx, [esp + 0x40]
mov dword [ebx], 0
mov ecx, ebx
push eax
call fcn.0040e94a
mov esi, dword [ebx]
lea ebx, [esp + 0x4c]
mov ecx, ebx
push 0x48
call fcn.0040fdfe
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x48]
sub ecx, eax
push edx
push ecx
push eax
push 0x1f
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4817dc
mov esi, dword [esp + 0x4c]
cmp dword [esi], 0
je 0x4817f2
push 0x44
call fcn.004aea96
add esp, 4
mov dword [esp + 8], eax
mov ecx, eax
push dword [esi]
call fcn.0046676c
mov al, 1
mov dword [esp + 0x10], eax
jmp 0x4817ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov edi, 0x12
mov dword [ecx], eax
jmp 0x481947
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x48193e
mov edx, dword [esp + 0xc]
jmp 0x48187d
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x4c]
jmp 0x481802
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
test esi, esi
je 0x481813
mov dword [esp + 0x50], esi
push esi
call fcn.004aeac6
add esp, 4
lea ecx, [esp + 0x40]
call fcn.0040e9a0
xor ebx, ebx
cmp byte [esp + 0x10], 0
je 0x481859
lea eax, [edi + 0x30]
lea esi, [esp + 0x4c]
mov ecx, esi
push eax
push dword [esp + 0xc]
call fcn.00481c94
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push esi
push ebx
push dword [esp + 0x20]
call fcn.0046046f
add esp, 0x18
test eax, eax
mov ecx, esi
sete bl
call fcn.00481dd2
mov eax, dword [esp + 8]
mov esi, dword [ebp + 0x1c]
test eax, eax
je 0x48186d
push eax
call fcn.004aeac6
add esp, 4
test bl, bl
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
je 0x48187d
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
mov dword [ecx], eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x48191c
lea ecx, [edi + 0x14]
call fcn.0040e9a0
lea ecx, [esp + 0x1c]
call fcn.0040e9a0
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.00457f50
test al, al
je 0x4818e6
push dword [esp + 0x20]
call fcn.00465a17
add esp, 4
test eax, eax
mov dword [edi + 0x28], eax
je 0x481901
lea esi, [esp + 0x4c]
lea ecx, [esp + 0x20]
push esi
call fcn.00458010
mov ecx, edi
push esi
call fcn.00457de0
xor edi, edi
jmp 0x48193e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x48193e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x48193e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x1c]
call fcn.0040e9a0
mov edi, 0x15
lea ecx, [esp + 0x20]
call fcn.00457e30
test ebx, ebx
je 0x481954
push ebx
call fcn.00459fc0
add esp, 4
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.004aeb01
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18