Function at 0x453c70
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e990
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
lea ebx, [edi + 4]
mov eax, dword [edi]
push ebx
push str.StopService:__S
push edi
call dword [eax + 0x38]
add esp, 0xc
push 0xf003f
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x453cfb
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Unable_to_open_SCM_stopping__S__err_d
push edi
call dword [esi + 0x38]
add esp, 0x10
mov esi, 0x568771
jmp 0x453e14
push 0xf01ff
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x453d2f
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Unable_to_open_handle_to__S__err_d
push edi
call dword [esi + 0x38]
add esp, 0x10
mov esi, 0x568771
jmp 0x453e0b
lea ecx, [ebp - 0x30]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x453d60
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Unable_to_send_STOP_command_to__S__err_d
push edi
call dword [esi + 0x38]
add esp, 0x10
mov esi, 0x568771
jmp 0x453e02
xor bl, bl
mov byte [ebp - 0x31], bl
xor esi, esi
mov dword [ebp - 0x44], esi
cmp esi, 0x64
jge 0x453dca
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x453db1
mov ecx, dword [ebp - 0x2c]
cmp ecx, 3
je 0x453dae
cmp ecx, 1
jne 0x453d9f
mov bl, cl
mov byte [ebp - 0x31], bl
jmp 0x453dca
mov eax, dword [edi]
push ecx
push str.Unexpected_service_state__d_after_STOP_command
push edi
call dword [eax + 0x38]
add esp, 0xc
inc esi
jmp 0x453d67
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 4]
push eax
push str.Unable_to_QueryServiceStatus_on__S_err_d
push edi
call dword [esi + 0x38]
add esp, 0x10
movzx edx, bl
mov dword [ebp - 0x38], edx
lea ebx, [edi + 4]
mov ecx, dword [edi]
mov esi, 0x568771
mov eax, esi
cmp dword [ebp - 0x3c], 0
cmovne eax, dword [ebp - 0x3c]
push eax
push ebx
mov eax, esi
mov dword [ebp - 0x48], str.NOT
test edx, edx
cmove eax, dword [ebp - 0x48]
push eax
push str.Service__sstopped__s_on__s
push edi
call dword [ecx + 0x38]
add esp, 0x14
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x453e3f
mov ecx, dword [edi]
push edx
mov eax, dword [ebp - 0x3c]
test eax, eax
cmovne esi, eax
push esi
push ebx
push str.Failed_to_tStop_service__s_on__s___d_
push edi
call dword [ecx + 0x38]
add esp, 0x14
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
jmp 0x453e69
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret 4