Function at 0x40b8a3
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
push str._nEntered_On_SM_Exit...
call fcn.00413e70
add esp, 4
push 0x45e1e0
call fcn.00413e70
add esp, 4
call fcn.004045b0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xe8]
push ecx
mov edx, dword [0x46c934]
push edx
push str.UINT_Message__is__d__mgr_class_name_:__s
call fcn.00413e70
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xbb8
push 1
push 0
push 0
mov ecx, dword [0x46c934]
push ecx
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push str.SendMessage_is_sent_and_processed
call fcn.00413e70
add esp, 4
call fcn.0040ac11
test eax, eax
je 0x40b92b
mov ecx, dword [ebp - 0x20]
call fcn.00412ff8
mov ecx, dword [ebp - 0x20]
add ecx, 0x1d0
call fcn.0041e680
push str.m_TrayIcon_is_Removed
call fcn.00413e70
add esp, 4
push 0x467da8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x46c948], 1
call fcn.00411d91
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
je 0x40bb40
push str._nBefore_terminating_JobStartDetectThread_thread...
call fcn.00413e70
add esp, 4
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0xc8], 0
je 0x40ba1f
push 0xffffffffffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40b9b4
push str._nthe_thread_handle_m_hThread_is_signaled___the_thread_has_terminated_gracefully
call fcn.00413e70
add esp, 4
jmp 0x40ba1f
push str.the_thread_handle_m_hThread_is_not_signaled___the_thread_is_still_alive
call fcn.00413e70
add esp, 4
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x10], 0x103
jne 0x40ba1f
mov edx, dword [ebp - 0x10]
push edx
push str._nJobStartDetectThread_thread_is_active_and_have_exitcode__d...
call fcn.00413e70
add esp, 8
push str.Before_TerminateThread__
call fcn.00413e70
add esp, 4
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x40ba1f
push str.TerminateThread___failed
call fcn.00413e70
add esp, 4
push str._nBefore_terminating_ScreenPrint_thread...
call fcn.00413e70
add esp, 4
cmp dword [0x467d9c], 0
je 0x40baa3
push 0xffffffffffffffff
mov edx, dword [0x467d9c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40ba5c
push str._nthe_thread_handle_gScrPrt.m_hThread_is_signaled___the_thread_has_terminated
call fcn.00413e70
add esp, 4
jmp 0x40baa3
push str.the_thread_handle_gScrPrt.m_hThread_is_not_signaled___the_thread_is_still_alive
call fcn.00413e70
add esp, 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x467d9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x10], 0x103
jne 0x40baa3
push 0
mov edx, dword [0x467d9c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x40baa3
push str._nScreenPrint_Thread_Terminated_successfully...
call fcn.00413e70
add esp, 4
push str._nBefore_terminating_Waitforchangeprinter_thread...
call fcn.00413e70
add esp, 4
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0xc0], 0
je 0x40bb22
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40bae6
push str._nthe_thread_handle_m_hPrnDrvThread_is_signaled___the_thread_has_terminated
call fcn.00413e70
add esp, 4
jmp 0x40bb22
push str.the_thread_handle_m_hPrnDrvThread_is_not_signaled___the_thread_is_still_alive
call fcn.00413e70
add esp, 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x10], 0x103
jne 0x40bb22
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str._nAfter_terminating_Waitforchangeprinter_thread...
call fcn.00413e70
add esp, 4
cmp dword [ebp - 0xc], 5
je 0x40bb3b
cmp dword [ebp - 0xc], 6
jne 0x40bb40
call fcn.00412fc8
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
call dword [eax + 0x58]
push str.Called_DestroyWindow___and_will_call_ExitProcess_0_
call fcn.00413e70
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]