Function at 0x4516d2
Capabilities:
Terminate process
Terminate thread

Disassembly:
push 0x54
mov eax, 0x491090
call fcn.00474ec1
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, 0x4bfcf0
cmp dword [0x4bfb94], ebx
je 0x451780
push dword [0x4bfffc]
lea eax, [ebp - 0x4c]
push str.StopMonitor_eventmanager_handle__0x
call fcn.00418ebf
mov eax, dword [ebp - 0x4c]
xor edi, edi
inc edi
pop ecx
pop ecx
cmp dword [eax - 4], edi
jle 0x451732
push dword [eax - 0xc]
lea eax, [ebp - 0x4c]
push eax
call fcn.00418cc4
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040a4c4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00456a76
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0040bba0
push edi
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.004016f0
mov ecx, esi
call fcn.004437f6
push ebx
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00401524
mov eax, dword [0x4bfffc]
cmp eax, ebx
jne 0x45179c
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
call fcn.00404bd4
mov al, bl
call fcn.00474f44
ret
lea ecx, [ebp - 0x5c]
push ecx
push eax
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, 0x103
test eax, eax
jne 0x4517b6
mov dword [ebp - 0x5c], edi
cmp dword [0x4bfb94], ebx
je 0x4517e4
mov eax, str.Event_manager_thread_still_active
cmp dword [ebp - 0x5c], edi
je 0x4517cd
mov eax, str.Event_manager_thread_not_active
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.00409f78
mov ecx, esi
call fcn.004437f6
cmp dword [ebp - 0x5c], edi
jne 0x4518d9
push dword [0x4c002c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xa
push dword [0x4bfffc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x50], eax
cmp dword [0x4bfb94], ebx
je 0x451891
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x54], eax
push dword [ebp - 0x50]
lea eax, [ebp - 0x54]
push str.Wait_on_thread_handle_result__d
mov byte [ebp - 4], 4
call fcn.00418ebf
mov edi, dword [ebp - 0x54]
cmp dword [edi - 4], 1
pop ecx
pop ecx
jle 0x451853
push dword [edi - 0xc]
lea eax, [ebp - 0x54]
push eax
call fcn.00418cc4
mov edi, dword [ebp - 0x54]
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040a4c4
push 1
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x58], esp
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00456a76
pop ecx
mov ecx, esi
call fcn.004437f6
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040bba0
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.00404bd4
cmp dword [ebp - 0x50], ebx
je 0x4518d9
push 0x54f
push dword [0x4bfffc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
setne al
cmp dword [0x4bfb94], ebx
je 0x4518d9
cmp al, bl
mov eax, str.Successfully_terminated
jne 0x4518c2
mov eax, str.Terminate_thread_failed
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
call fcn.00409f78
mov ecx, esi
call fcn.004437f6
mov eax, dword [0x4c003c]
cmp eax, ebx
je 0x4519b4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x451991
cmp dword [0x4bfb94], ebx
je 0x45197e
push eax
push dword [0x4c003c]
lea eax, [ebp - 0x4c]
push str.StopMonitor_waitonhandle__0x_returning__d
call fcn.00418ebf
mov eax, dword [ebp - 0x4c]
xor edi, edi
inc edi
add esp, 0xc
cmp dword [eax - 4], edi
jle 0x451930
push dword [eax - 0xc]
lea eax, [ebp - 0x4c]
push eax
call fcn.00418cc4
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a4c4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00456a76
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.0040bba0
push edi
sub esp, 0x1c
lea eax, [ebp - 0x48]
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
call fcn.004016f0
mov ecx, esi
call fcn.004437f6
push ebx
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00401524
push 0x54f
push dword [0x4c003c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4519b4
cmp dword [0x4bfb94], ebx
je 0x4519d7
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x58], esp
push str.Remote_process_died_already
call fcn.00409f78
mov ecx, esi
call fcn.004437f6
cmp dword [0x4bfb94], ebx
je 0x4519d7
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x58], esp
push str.StopMonitor_exiting.
call fcn.00409f78
mov ecx, esi
call fcn.004437f6
mov dword [0x4bfffc], ebx
mov bl, 1
jmp 0x451789