Function at 0x44dac0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x634f14]
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 0x44db1b
mov edx, str.Failed_to_open_service_control_manager
mov ecx, 0x6371f8
call fcn.00456b30
push eax
call fcn.00456de0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00581041
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 0x10
jb 0x44db25
mov eax, dword [edi]
jmp 0x44db27
mov eax, edi
push 0x24
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x44dbcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x44db90
mov edx, 0x62beec
mov ecx, 0x6370e0
call fcn.00456b30
mov edx, edi
mov ecx, eax
call fcn.00456e90
mov edx, str._does_not_exist._Skipping.
mov ecx, eax
call fcn.00456b30
push eax
call fcn.00456de0
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.00581041
mov esp, ebp
pop ebp
ret
mov edx, str.Failed_to_open_service
mov ecx, 0x6371f8
call fcn.00456b30
mov edx, edi
mov ecx, eax
call fcn.00456e90
push eax
call fcn.00456de0
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.00581041
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 0x44dc2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x44dc2f
mov edx, str.Failed_to_send_stop_command_to_service
mov ecx, 0x6371f8
call fcn.00456b30
mov edx, edi
mov ecx, eax
call fcn.00456e90
push eax
call fcn.00456de0
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.00581041
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 0x44dc9a
cmp dword [esp + 0x1c], 1
je 0x44dc69
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x1e
jl 0x44dc36
jmp 0x44dcbb
mov edx, str.Service
mov ecx, 0x6370e0
call fcn.00456b30
mov edx, edi
mov ecx, eax
call fcn.00456e90
mov edx, str._stopped_successfully
mov ecx, eax
call fcn.00456b30
push eax
call fcn.00456de0
mov byte [esp + 0x13], 1
jmp 0x44dce5
mov edx, str.Failed_to_query_service_status_for
mov ecx, 0x6371f8
call fcn.00456b30
mov edx, edi
mov ecx, eax
call fcn.00456e90
push eax
call fcn.00456de0
add esp, 4
mov edx, str.Timeout_waiting_for_service
mov ecx, 0x6371f8
call fcn.00456b30
mov edx, edi
mov ecx, eax
call fcn.00456e90
mov edx, str._to_stop
mov ecx, eax
call fcn.00456b30
push eax
call fcn.00456de0
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.00581041
mov esp, ebp
pop ebp
ret