Function at 0x491fb2
Capabilities:
Terminate process

Disassembly:
push 0xf8
mov eax, 0x54d2b8
call fcn.0053655e
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, ebx
jne 0x491fda
xor al, al
jmp 0x4920b3
push ebx
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.00491efd
and dword [ebp - 4], 0
mov edi, dword [ebp - 0x50]
test edi, edi
je 0x4920a3
push dword [edi]
cmp byte [esi], 0
mov ecx, 0x1001
mov eax, 0x401
push 0
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4920bb
xor ebx, ebx
lea ecx, [ebp - 0x104]
inc ebx
push ebx
push 3
call fcn.00404da4
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__error
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0xf4]
push str.OpenProcess:
push eax
call fcn.0040446a
pop ecx
pop ecx
push eax
call fcn.0040a764
pop ecx
pop ecx
push eax
call fcn.0040446a
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
lea eax, [ebp - 0x104]
push eax
push str.ProcessList::stop
push 0x10d
push str.C:workprojects_rubilnik_src_systemProcess.cpp
push esi
call fcn.00407c20
mov ecx, eax
call fcn.00412039
lea ecx, [ebp - 0x9c]
call fcn.00404fea
lea ecx, [ebp - 0x9c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
xor bl, bl
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4920b1
call fcn.00406959
mov al, bl
call fcn.00536508
ret 4
mov dword [ebp - 0x54], esi
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
push eax
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x44]
xor ebx, ebx
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x492159
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x492228
push ebx
push 3
lea ecx, [ebp - 0x104]
call fcn.00404da4
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__error
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0xf4]
push str.TerminateProcess_wait_timeout:
push eax
call fcn.0040446a
pop ecx
pop ecx
push eax
call fcn.0040a764
pop ecx
pop ecx
push eax
call fcn.0040446a
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
lea eax, [ebp - 0x104]
push eax
push str.ProcessList::stop
push 0x11b
jmp 0x4921b7
push ebx
push 3
lea ecx, [ebp - 0x104]
call fcn.00404da4
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__error
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0xf4]
push str.TerminateProcess:
push eax
call fcn.0040446a
pop ecx
pop ecx
push eax
call fcn.0040a764
pop ecx
pop ecx
push eax
call fcn.0040446a
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
lea eax, [ebp - 0x104]
push eax
push str.ProcessList::stop
push 0x121
push str.C:workprojects_rubilnik_src_systemProcess.cpp
push 0
call fcn.00407c20
mov ecx, eax
call fcn.00412039
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.00404fea
lea ecx, [ebp - 0x9c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
push dword [ebp - 0x48]
lea eax, [ebp - 0x40]
push eax
call fcn.0041d094
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push str.taskkill__f__t__pid
push eax
call fcn.00411f47
push 0
push ebx
push 0
push eax
mov byte [ebp - 4], 6
call fcn.00408992
add esp, 0x24
lea ecx, [ebp - 0x28]
call fcn.0040257a
lea ecx, [ebp - 0x40]
call fcn.0040257a
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4920a5