Function at 0xd89b60
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0xdc451c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov ebx, ecx
call fcn.00da0839
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
add esp, 4
push eax
mov dword [ebp - 0x24], edx
call fcn.00da04db
mov esi, eax
add esp, 4
mov ecx, 9
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push ecx
inc edx
push edx
add eax, 0x76c
push eax
push str.__d__02d__02d__02d:_02d:_02d_
call fcn.00d9f6dc
add esp, 0x1c
push str._INFO_
call fcn.00d9f6dc
add esp, 4
push str._______Inside_DCStopService_Method________n
call fcn.00d9f6dc
add esp, 4
call fcn.00d9e1f2
add eax, 0x20
push eax
call fcn.00d9ece2
add esp, 4
push 0xf003f
push 0
push 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0xd89d75
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0xd89d6e
lea ecx, [ebp - 0x20]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0xd89d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, 0x41c
jne 0xd89cd4
push str.AgentServiceName
lea ecx, [ebp - 0x30]
call fcn.00d8cc80
mov ecx, ebx
mov ebx, dword [ebp - 0x30]
add esp, 4
mov eax, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0xd89c96
test dx, dx
je 0xd89c92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0xd89c96
add eax, 4
add ecx, 4
test dx, dx
jne 0xd89c70
xor eax, eax
jmp 0xd89c9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0xd89cc7
push 0x97
push edi
call fcn.00d8bad0
add esp, 8
lea edx, [ebp - 0x20]
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0xd89cc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0xd89cd4
push ebx
call fcn.00d9e1b8
add esp, 4
cmp dword [ebp - 0x2c], 0
jne 0xd89d2d
call fcn.00d8d7d0
push str._ERROR_
call fcn.00d9f6dc
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DCStopService_:_Stop_Service_failed___d__n
call fcn.00d9f6dc
call fcn.00d9e1f2
add eax, 0x20
push eax
call fcn.00d9ece2
add esp, 0xc
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d9c668
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x14
lea ecx, [ebp - 0x20]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0xd89e85
push 0x1f4
call ebx
dec esi
test esi, esi
jg 0xd89d43
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.00da0839
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
add esp, 4
push eax
mov dword [ebp - 0x24], edx
call fcn.00da04db
mov esi, eax
add esp, 4
mov ecx, 9
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push ecx
inc edx
push edx
add eax, 0x76c
push eax
push str.__d__02d__02d__02d:_02d:_02d_
call fcn.00d9f6dc
add esp, 0x1c
push str._ERROR_
call fcn.00d9f6dc
add esp, 4
push str.DCStopService_:_Stop_Service_Timed_out...
call fcn.00d9f6dc
add esp, 4
call fcn.00d9e1f2
add eax, 0x20
push eax
call fcn.00d9ece2
add esp, 4
push 0
call fcn.00da0839
lea ecx, [ebp - 0x28]
add esp, 4
push ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.00da04db
mov esi, eax
add esp, 4
mov ecx, 9
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x40]
push edx
inc eax
push eax
add ecx, 0x76c
push ecx
push str.__d__02d__02d__02d:_02d:_02d_
call fcn.00d9f6dc
add esp, 0x1c
push str._INFO_
call fcn.00d9f6dc
add esp, 4
push str.______End_of_DCStopService_Method_______n
call fcn.00d9f6dc
add esp, 4
call fcn.00d9e1f2
add eax, 0x20
push eax
call fcn.00d9ece2
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d9c668
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
mov edx, dword [ebp - 0x24]
push edx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00d9c668
mov esp, ebp
pop ebp
ret