Function at 0x404dc0
Capabilities:
Pause service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 8]
push 1
push 0
push 0
mov esi, dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x404e51
push 0x40
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x404e51
lea eax, ds:[esp + 0x18]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
test eax, eax
je 0x404e4b
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404e66
movzx esi, si
or esi, 0xc0070000
mov eax, dword [ebx + 8]
push dword [eax + 4]
push str.Unable_to_pause
call sym.ProcessHacker.exe_PhConcatStrings2
push eax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
lea ecx, [esp + 0x13]
push ecx
push esi
mov edx, dword [eax + 4]
mov ecx, edi
call fcn.00401680
test al, al
je 0x404fec
xor al, al
cmp byte [esp + 0x13], al
je 0x4050b1
mov ecx, dword [ebx + 8]
mov edx, 3
mov ecx, dword [ecx + 4]
call fcn.004568a0
mov esi, eax
test esi, esi
js 0x404ee3
mov bl, 1
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 8]
push dword [eax + 4]
push str.pause
push str.Unable_to__s__s.
call fcn.00401520
add esp, 0xc
mov ebx, dword [eax + 4]
cmp esi, 0xc0000022
je 0x404f23
cmp esi, 0xc0000005
je 0x404f23
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x404f31
movzx eax, si
jmp 0x404f2d
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jne 0x404f3c
push esi
lfence
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x404f45
push eax
lfence
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x404fae
lfence
lfence
push dword [esi + 4]
push 0x54ace8
test ebx, ebx
je 0x404f70
push ebx
push 0xfffe
push 0x20
push edi
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
jmp 0x404f7b
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x404fcf
lfence
call fcn.004b3960
xor bl, bl
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x404fba
push ebx
push 0x57e1d4
jmp 0x404fc4
push str.Unable_to_perform_the_operation.
push 0x54ace8
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
xor bl, bl
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 8
mov eax, dword ds:[ebx + 8]
push dword [eax + 4]
push str.pause
push str.Unable_to__s__s.
call fcn.00401520
add esp, 0xc
mov ebx, dword [eax + 4]
cmp esi, 0xc0000022
je 0x40502e
cmp esi, 0xc0000005
je 0x40502e
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x405039
movzx eax, si
jmp 0x405035
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jne 0x405042
push esi
call sym.ProcessHacker.exe_PhGetNtMessage
nop
jmp 0x405048
push eax
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x40508e
mov eax, dword [esi + 4]
push eax
push 0x54ace8
test ebx, ebx
je 0x40506e
push ebx
push 0xfffe
push 0x20
push edi
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
jmp 0x405079
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4050af
call fcn.004b3960
jmp 0x4050af
test ebx, ebx
je 0x40509a
push ebx
push 0x57e1d4
jmp 0x4050a4
push str.Unable_to_perform_the_operation.
push 0x54ace8
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
xor al, al
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 8