Function at 0x54aa54
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2ec
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov bl, 1
test bl, 1
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x198], ecx
mov dword [ebp - 0x19c], edx
mov byte [ebp - 0x19d], bl
mov dword [ebp - 0x1a4], esi
jne 0x54aa97
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1a4]
mov cl, byte [ebp - 0x19d]
test cl, 1
mov edx, dword [ebp - 0x19c]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1ac], edx
jne 0x54aac0
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1ac]
mov cl, byte [ebp - 0x19d]
test cl, 1
mov edx, dword [ebp - 0x198]
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1b4], edx
jne 0x54aae9
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x1b4]
mov cl, byte [ebp - 0x19d]
test cl, 1
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1bc], edx
jne 0x54ab12
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x1b0]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 0x55], 0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x1b8]
mov dword [esp], edx
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1c4], ecx
call fcn.004023c8
mov ecx, 0xac
mov edx, esp
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x1c4]
mov dword [edx], eax
mov dword [edx + 8], 0xac
mov dword [ebp - 0x1c8], ecx
call sub.ADVAPI32.DLL_OpenServiceW
sub esp, 0xc
lea ecx, [ebp - 0x44]
lea edx, [0x5792b4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], edx
mov edx, 0x5871a8
mov dword [ebp - 0x24], edx
mov edx, ebp
mov dword [ebp - 0x20], edx
mov edx, esp
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], 0x54b5d2
mov dword [ebp - 0x1cc], eax
mov eax, ecx
call fcn.00579e71
mov eax, dword [ebp - 0x1cc]
cmp eax, 0
je 0x54b58a
mov eax, 1
lea ecx, [ebp - 0x8c]
mov edx, 0x24
lea esi, [ebp - 0x60]
lea edi, [ebp - 0x68]
mov dword [ebp - 0x68], 0
mov ebx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x1d0], eax
mov eax, esp
mov dword [ebp - 0x1d4], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1dc], ecx
mov ecx, dword [ebp - 0x1d8]
mov dword [eax + 0x14], ecx
lea ecx, [ebp - 0x60]
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0x8c]
mov dword [eax + 8], ecx
mov dword [eax], ebx
mov dword [eax + 0xc], 0x24
mov dword [eax + 4], 1
mov dword [ebp - 0x1e0], edi
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x1e8], esi
call sub.ADVAPI32.DLL_EnumDependentServicesW
sub esp, 0x18
mov ecx, 0xffffffff
mov edx, 0x24
mov esi, dword [ebp - 0x60]
add esi, 0x24
mov dword [ebp - 0x94], esi
mov esi, dword [ebp - 0x94]
mov dword [ebp - 0x1ec], eax
mov eax, esi
mul edx
seto bl
test bl, 1
mov dword [ebp - 0x1f0], eax
mov dword [ebp - 0x1f4], ecx
jne 0x54ac91
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x3c], 0xffffffff
mov dword [esp], eax
call fcn.0055e258
mov ecx, 1
lea edx, [ebp - 0x60]
lea esi, [ebp - 0x68]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x94]
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x1f8], eax
mov eax, esp
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x200], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x204], ecx
mov ecx, dword [ebp - 0x200]
mov dword [eax + 0x14], ecx
lea ecx, [ebp - 0x60]
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], edi
mov ecx, dword [ebp - 0x1f8]
mov dword [eax], ecx
mov dword [eax + 4], 1
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], edx
call sub.ADVAPI32.DLL_EnumDependentServicesW
sub esp, 0x18
cmp eax, 0
je 0x54ae0f
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x68]
jae 0x54ae0d
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x98]
lea edx, [edx + edx*8]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0x3c], 0xffffffff
mov edx, esp
mov dword [edx + 4], ecx
lea ecx, [ebp - 0xb4]
mov dword [edx], ecx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], ecx
call fcn.00401cd8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], 1
mov ecx, esp
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x214]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x210]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x1c0]
mov dword [ecx], edx
call fcn.0054aa54
mov byte [ebp - 0x215], al
jmp 0x54adba
lea eax, [ebp - 0xb4]
mov dword [esp], eax
call fcn.00401d68
mov eax, dword [ebp - 0x98]
add eax, 1
mov dword [ebp - 0x98], eax
jmp 0x54ad3b
jmp 0x54ae0f
mov eax, dword [ebp - 0x90]
cmp eax, 0
mov dword [ebp - 0x224], eax
je 0x54ae2e
mov eax, dword [ebp - 0x224]
mov dword [esp], eax
call fcn.0055a798
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x54]
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x3c], 0xffffffff
mov esi, esp
mov edi, dword [ebp - 0x1b8]
mov dword [esi + 4], edi
lea ebx, [ebp - 0xf4]
mov dword [esi], ebx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x230], ebx
call fcn.00401fa8
mov dword [ebp - 0x3c], 2
mov eax, esp
mov ecx, dword [ebp - 0x230]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x22c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c0]
mov dword [eax], edx
mov dword [eax + 0xc], 0x64
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x228]
call eax
jmp 0x54aea8
lea eax, [ebp - 0xf4]
mov dword [esp], eax
call fcn.00401d68
lea eax, [ebp - 0xd8]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov edx, esp
lea esi, [ebp - 0xd8]
mov dword [edx + 4], esi
mov dword [edx], ecx
mov dword [ebp - 0x234], eax
call sub.ADVAPI32.DLL_QueryServiceStatus
sub esp, 8
cmp eax, 0
je 0x54b008
cmp dword [ebp - 0xd4], 1
jne 0x54b006
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, esp
mov dword [ecx], eax
call sub.ADVAPI32.DLL_CloseServiceHandle
sub esp, 4
mov ecx, dword [ebp - 0x1c0]
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x3c], 0xffffffff
mov edi, esp
mov ebx, dword [ebp - 0x1b8]
mov dword [edi + 4], ebx
lea ecx, [ebp - 0x110]
mov dword [edi], ecx
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x244], esi
call fcn.00401fa8
mov dword [ebp - 0x3c], 3
mov eax, esp
mov ecx, dword [ebp - 0x23c]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x244]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c0]
mov dword [eax], edx
mov dword [eax + 0xc], 0x64
mov dword [eax + 8], 0x64
mov eax, dword [ebp - 0x240]
call eax
jmp 0x54af8d
lea eax, [ebp - 0x110]
mov dword [esp], eax
call fcn.00401d68
mov byte [ebp - 0x45], 1
jmp 0x54b592
jmp 0x54b008
mov eax, 1
lea ecx, [ebp - 0xd8]
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov esi, esp
lea edi, [ebp - 0xd8]
mov dword [esi + 8], edi
mov dword [esi], edx
mov dword [esi + 4], 1
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x25c], ecx
call sub.ADVAPI32.DLL_ControlService
sub esp, 0xc
cmp eax, 0
jne 0x54b12c
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, esp
mov dword [ecx], eax
call sub.ADVAPI32.DLL_CloseServiceHandle
sub esp, 4
mov ecx, dword [ebp - 0x1c0]
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x3c], 0xffffffff
mov edi, esp
mov ebx, dword [ebp - 0x1b8]
mov dword [edi + 4], ebx
lea ecx, [ebp - 0x12c]
mov dword [edi], ecx
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x26c], esi
call fcn.00401fa8
mov dword [ebp - 0x3c], 4
mov eax, esp
mov ecx, dword [ebp - 0x264]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x26c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c0]
mov dword [eax], edx
mov dword [eax + 0xc], 0x64
mov dword [eax + 8], 0x64
mov eax, dword [ebp - 0x268]
call eax
jmp 0x54b0e4
lea eax, [ebp - 0x12c]
mov dword [esp], eax
call fcn.00401d68
mov byte [ebp - 0x45], 0
jmp 0x54b592
mov dword [ebp - 0x130], 0
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x134], eax
xor eax, eax
mov cl, al
cmp dword [ebp - 0xd4], 3
mov byte [ebp - 0x275], cl
je 0x54b16a
mov eax, dword [ebp - 0x134]
cmp eax, dword [ebp - 0xd4]
sete cl
mov byte [ebp - 0x275], cl
mov al, byte [ebp - 0x275]
test al, 1
jne 0x54b179
jmp 0x54b2d1
cmp dword [ebp - 0x130], 0xea60
jbe 0x54b18a
jmp 0x54b2d1
mov eax, 0x3e8
mov ecx, dword [ebp - 0x1c0]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
mov dword [ebp - 0x3c], 0xffffffff
mov dword [esp], ecx
mov dword [esp + 4], 0x3e8
mov dword [ebp - 0x27c], eax
call edx
lea eax, [ebp - 0xd8]
mov ecx, dword [ebp - 0x130]
add ecx, 0x3e8
mov dword [ebp - 0x130], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov edx, esp
lea esi, [ebp - 0xd8]
mov dword [edx + 4], esi
mov dword [edx], ecx
mov dword [ebp - 0x280], eax
call sub.ADVAPI32.DLL_QueryServiceStatus
sub esp, 8
cmp eax, 0
jne 0x54b1fb
jmp 0x54b2d1
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x54]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x130]
mov esi, 0x1b4e81b5
mov dword [ebp - 0x284], edx
mul esi
shr edx, 6
mov dword [ebp - 0x3c], 0xffffffff
mov eax, esp
mov esi, dword [ebp - 0x1b8]
mov dword [eax + 4], esi
lea edi, [ebp - 0x150]
mov dword [eax], edi
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x290], edi
call fcn.00401fa8
mov dword [ebp - 0x3c], 5
mov eax, esp
mov ecx, dword [ebp - 0x290]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x28c]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x284]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c0]
mov dword [eax], edx
mov dword [eax + 0xc], 0x64
mov eax, dword [ebp - 0x288]
call eax
jmp 0x54b28d
lea eax, [ebp - 0x150]
mov dword [esp], eax
call fcn.00401d68
jmp 0x54b142
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x130], 0
cmp dword [ebp - 0xd4], 3
jne 0x54b4a3
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0xfa
jae 0x54b316
mov dword [ebp - 0x158], 0xfa
cmp dword [ebp - 0x158], 0x2710
jbe 0x54b32c
mov dword [ebp - 0x158], 0x2710
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x3c], 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], edx
call ecx
lea eax, [ebp - 0xd8]
mov ecx, dword [ebp - 0x158]
add ecx, dword [ebp - 0x130]
mov dword [ebp - 0x130], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov edx, esp
lea esi, [ebp - 0xd8]
mov dword [edx + 4], esi
mov dword [edx], ecx
mov dword [ebp - 0x29c], eax
call sub.ADVAPI32.DLL_QueryServiceStatus
sub esp, 8
cmp eax, 0
jne 0x54b394
jmp 0x54b4a3
mov eax, dword [ebp - 0xc4]
cmp eax, dword [ebp - 0x154]
jbe 0x54b3ba
mov dword [ebp - 0x130], 0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x154], eax
jmp 0x54b3cd
cmp dword [ebp - 0x130], 0x1d4c0
jbe 0x54b3cb
jmp 0x54b4a3
jmp 0x54b3cd
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x54]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x130]
mov esi, 0x1b4e81b5
mov dword [ebp - 0x2a0], edx
mul esi
shr edx, 7
mov dword [ebp - 0x3c], 0xffffffff
mov eax, esp
mov esi, dword [ebp - 0x1b8]
mov dword [eax + 4], esi
lea edi, [ebp - 0x174]
mov dword [eax], edi
mov dword [ebp - 0x2a4], ecx
mov dword [ebp - 0x2a8], edx
mov dword [ebp - 0x2ac], edi
call fcn.00401fa8
mov dword [ebp - 0x3c], 6
mov eax, esp
mov ecx, dword [ebp - 0x2ac]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x2a8]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x2a0]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c0]
mov dword [eax], edx
mov dword [eax + 0xc], 0x64
mov eax, dword [ebp - 0x2a4]
call eax
jmp 0x54b45f
lea eax, [ebp - 0x174]
mov dword [esp], eax
call fcn.00401d68
jmp 0x54b2e7
mov eax, dword [ebp - 0xd4]
sub eax, 1
sete byte [ebp - 0x55]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov edx, esp
mov dword [edx], ecx
mov dword [ebp - 0x2b8], eax
call sub.ADVAPI32.DLL_CloseServiceHandle
sub esp, 4
mov ecx, dword [ebp - 0x1c0]
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x3c], 0xffffffff
mov edi, esp
mov ebx, dword [ebp - 0x1b8]
mov dword [edi + 4], ebx
lea ecx, [ebp - 0x190]
mov dword [edi], ecx
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2c0], ecx
mov dword [ebp - 0x2c4], edx
mov dword [ebp - 0x2c8], esi
call fcn.00401fa8
mov dword [ebp - 0x3c], 7
mov eax, esp
mov ecx, dword [ebp - 0x2c0]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x2c8]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c0]
mov dword [eax], edx
mov dword [eax + 0xc], 0x64
mov dword [eax + 8], 0x64
mov eax, dword [ebp - 0x2c4]
call eax
jmp 0x54b54c
lea eax, [ebp - 0x190]
mov dword [esp], eax
call fcn.00401d68
jmp 0x54b58a
mov al, byte [ebp - 0x55]
and al, 1
mov byte [ebp - 0x45], al
lea eax, [ebp - 0x44]
mov cl, byte [ebp - 0x45]
mov dword [esp], eax
mov byte [ebp - 0x2d1], cl
call fcn.00579e92
mov cl, byte [ebp - 0x2d1]
and cl, 1
movzx eax, cl
add esp, 0x2ec
pop esi
pop edi
pop ebx
pop ebp
ret