Function at 0x44de00
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x635f14]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
push 1
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jne 0x44de5b
mov edx, 0x62ceb8
mov ecx, 0x6381f8
call fcn.00456e00
push eax
call fcn.004570b0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00581392
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 0x10
jb 0x44de65
mov eax, dword [edi]
jmp 0x44de67
mov eax, edi
push 0x24
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x44df0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x44ded0
mov edx, 0x62cefc
mov ecx, 0x6380e0
call fcn.00456e00
mov edx, edi
mov ecx, eax
call fcn.00457160
mov edx, str._does_not_exist._Skipping.
mov ecx, eax
call fcn.00456e00
push eax
call fcn.004570b0
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00581392
mov esp, ebp
pop ebp
ret
mov edx, str.Failed_to_open_service
mov ecx, 0x6381f8
call fcn.00456e00
mov edx, edi
mov ecx, eax
call fcn.00457160
push eax
call fcn.004570b0
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00581392
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x44df6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x44df6f
mov edx, str.Failed_to_send_stop_command_to_service
mov ecx, 0x6381f8
call fcn.00456e00
mov edx, edi
mov ecx, eax
call fcn.00457160
push eax
call fcn.004570b0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
push ebx
call esi
push dword [esp + 0x10]
call esi
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00581392
mov esp, ebp
pop ebp
ret
mov byte [esp + 0xf], 0
xor esi, esi
lea eax, [esp + 0x14]
push eax
push 0x24
lea eax, [esp + 0x20]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x44dfda
cmp dword [esp + 0x1c], 1
je 0x44dfa9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x1e
jl 0x44df76
jmp 0x44dffb
mov edx, str.Service
mov ecx, 0x6380e0
call fcn.00456e00
mov edx, edi
mov ecx, eax
call fcn.00457160
mov edx, str._stopped_successfully
mov ecx, eax
call fcn.00456e00
push eax
call fcn.004570b0
mov byte [esp + 0x13], 1
jmp 0x44e025
mov edx, str.Failed_to_query_service_status_for
mov ecx, 0x6381f8
call fcn.00456e00
mov edx, edi
mov ecx, eax
call fcn.00457160
push eax
call fcn.004570b0
add esp, 4
mov edx, str.Timeout_waiting_for_service
mov ecx, 0x6381f8
call fcn.00456e00
mov edx, edi
mov ecx, eax
call fcn.00457160
mov edx, str._to_stop
mov ecx, eax
call fcn.00456e00
push eax
call fcn.004570b0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
push ebx
call esi
push dword [esp + 0x10]
call esi
mov ecx, dword [esp + 0x3c]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00581392
mov esp, ebp
pop ebp
ret