Function at 0x514eb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x28
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [0x85016c]
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xac4
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateJobObject_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.0050e8b0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0xac5
call fcn.0050eab0
mov dword [esp], 0
xor ecx, ecx
mov edx, ebx
mov eax, 0xac6
call fcn.00514d80
lea ecx, [ebp - 0x1c]
mov edx, str.wait
mov eax, 0xac8
call fcn.0050e8d0
mov eax, dword [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [0x850164]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xacb
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.AssignProcessToJobObject_error__lu_n
call fcn.0050e8b0
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov dword [esp], 0xacc
call fcn.0050eab0
mov dword [esp], 1
mov ecx, 1
mov edx, ebx
mov eax, 0xacd
call fcn.00514d80
mov dword [esp + 4], 0x7b
mov dword [esp], ebx
call dword [0x85015c]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xad0
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.TerminateJobObject_error__lu_n
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.0050e8b0
mov dword [esp + 4], 0x3e8
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov dword [ebp - 0x20], eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xad4
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], str.WaitForSingleObject_returned__lu_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
cmp dword [ebp - 0x20], 0x102
je 0x515240
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0xad6
call fcn.0050eab0
mov dword [esp], 0
mov edx, ebx
mov ecx, 1
mov eax, 0xad7
call fcn.00514d80
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xada
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.GetExitCodeProcess_error__lu_n
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.0050e8b0
call fcn.0057d110
mov edx, 1
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xadb
mov eax, dword [ebp - 0x20]
cmp eax, 0x7b
je 0x5150f8
xor edx, edx
mov edi, eax
or edi, dword [0x8f0770]
sete dl
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.wrong_exitcode__lu_n
call fcn.0050e8b0
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x18]
sub esp, 4
mov dword [esp], eax
call esi
lea ecx, [ebp - 0x1c]
mov edx, str.exit
mov eax, 0xae2
sub esp, 4
call fcn.0050e8d0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xae3
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.0057d980
mov eax, dword [ebp - 0x1c]
mov edx, dword fs:[0x18]
mov dword [ebp - 0x24], edx
mov dword [edx + 0x34], 0xdeadbeef
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [0x850164]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xae7
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.AssignProcessToJobObject_unexpectedly_succeeded_n
mov dword [esp], eax
call fcn.0050e8b0
mov edx, dword [ebp - 0x24]
mov edi, dword [edx + 0x34]
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xae8
xor eax, eax
cmp edi, 5
sete al
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov dword [esp + 8], 5
mov dword [esp + 4], str.Expected_GetLastError___to_be__d__ERROR_ACCESS_DENIED__is__d_n
call fcn.0050e8b0
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp], 0xae9
call fcn.0050eab0
mov dword [esp], 0
mov edx, ebx
mov ecx, 1
mov eax, 0xaea
call fcn.00514d80
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x18]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp], ebx
call esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
sub esp, 8
jmp 0x515055