Function at 0x54a1d0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x22c
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 - 0x138], eax
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x140], edx
mov byte [ebp - 0x141], bl
mov dword [ebp - 0x148], esi
jne 0x54a213
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov cl, byte [ebp - 0x141]
test cl, 1
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x54a23c
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov cl, byte [ebp - 0x141]
test cl, 1
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], edx
jne 0x54a265
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
mov cl, byte [ebp - 0x141]
test cl, 1
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x160], edx
jne 0x54a28e
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x154]
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 - 0x15c]
mov dword [esp], edx
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x168], ecx
call fcn.004023c8
mov ecx, 0x14
mov edx, esp
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x168]
mov dword [edx], eax
mov dword [edx + 8], 0x14
mov dword [ebp - 0x16c], 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, 0x587180
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], 0x54aa14
mov dword [ebp - 0x170], eax
mov eax, ecx
call fcn.00579e71
mov eax, dword [ebp - 0x170]
cmp eax, 0
je 0x54a9cc
mov eax, dword [ebp - 0x164]
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 - 0x15c]
mov dword [esi + 4], edi
lea ebx, [ebp - 0x94]
mov dword [esi], ebx
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x17c], ebx
call fcn.00401fa8
mov dword [ebp - 0x3c], 1
mov eax, esp
mov ecx, dword [ebp - 0x17c]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x178]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x164]
mov dword [eax], edx
mov dword [eax + 0xc], 0x64
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x174]
call eax
jmp 0x54a3b5
lea eax, [ebp - 0x94]
mov dword [esp], eax
call fcn.00401d68
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov edx, esp
lea esi, [ebp - 0x78]
mov dword [edx + 4], esi
mov dword [edx], ecx
mov dword [ebp - 0x180], eax
call sub.ADVAPI32.DLL_QueryServiceStatus
sub esp, 8
cmp eax, 0
je 0x54a50c
cmp dword [ebp - 0x74], 4
jne 0x54a50a
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 - 0x164]
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 - 0x15c]
mov dword [edi + 4], ebx
lea ecx, [ebp - 0xb8]
mov dword [edi], ecx
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x18c], edx
mov dword [ebp - 0x190], esi
call fcn.00401fa8
mov dword [ebp - 0x3c], 2
mov eax, esp
mov ecx, dword [ebp - 0x188]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x190]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x164]
mov dword [eax], edx
mov dword [eax + 0xc], 0x64
mov dword [eax + 8], 0x64
mov eax, dword [ebp - 0x18c]
call eax
jmp 0x54a491
lea eax, [ebp - 0xb8]
mov dword [esp], eax
call fcn.00401d68
mov byte [ebp - 0x45], 1
jmp 0x54a9d4
jmp 0x54a50c
xor eax, eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov edx, esp
mov dword [edx], ecx
mov dword [edx + 8], 0
mov dword [edx + 4], 0
mov dword [ebp - 0x1a4], eax
call sub.ADVAPI32.DLL_StartServiceW
sub esp, 0xc
cmp eax, 0
jne 0x54a61f
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 - 0x164]
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 - 0x15c]
mov dword [edi + 4], ebx
lea ecx, [ebp - 0xd4]
mov dword [edi], ecx
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1ac], ecx
mov dword [ebp - 0x1b0], edx
mov dword [ebp - 0x1b4], esi
call fcn.00401fa8
mov dword [ebp - 0x3c], 3
mov eax, esp
mov ecx, dword [ebp - 0x1ac]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x1b4]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x164]
mov dword [eax], edx
mov dword [eax + 0xc], 0x64
mov dword [eax + 8], 0x64
mov eax, dword [ebp - 0x1b0]
call eax
jmp 0x54a5d7
lea eax, [ebp - 0xd4]
mov dword [esp], eax
call fcn.00401d68
mov byte [ebp - 0x45], 0
jmp 0x54a9d4
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov edx, esp
lea esi, [ebp - 0x78]
mov dword [edx + 4], esi
mov dword [edx], ecx
mov dword [ebp - 0x1c0], eax
call sub.ADVAPI32.DLL_QueryServiceStatus
sub esp, 8
cmp eax, 0
jne 0x54a72b
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 - 0x164]
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 - 0x15c]
mov dword [edi + 4], ebx
lea ecx, [ebp - 0xf0]
mov dword [edi], ecx
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1c8], ecx
mov dword [ebp - 0x1cc], edx
mov dword [ebp - 0x1d0], esi
call fcn.00401fa8
mov dword [ebp - 0x3c], 4
mov eax, esp
mov ecx, dword [ebp - 0x1c8]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x1d0]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x164]
mov dword [eax], edx
mov dword [eax + 0xc], 0x64
mov dword [eax + 8], 0x64
mov eax, dword [ebp - 0x1cc]
call eax
jmp 0x54a6e3
lea eax, [ebp - 0xf0]
mov dword [esp], eax
call fcn.00401d68
mov byte [ebp - 0x45], 0
jmp 0x54a9d4
mov dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0x74], 2
jne 0x54a8e8
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0xfc], 0xfa
jae 0x54a767
mov dword [ebp - 0xfc], 0xfa
cmp dword [ebp - 0xfc], 0x2710
jbe 0x54a77d
mov dword [ebp - 0xfc], 0x2710
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x3c], 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], edx
call ecx
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0xfc]
add ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xf4], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov edx, esp
lea esi, [ebp - 0x78]
mov dword [edx + 4], esi
mov dword [edx], ecx
mov dword [ebp - 0x1dc], eax
call sub.ADVAPI32.DLL_QueryServiceStatus
sub esp, 8
cmp eax, 0
jne 0x54a7df
jmp 0x54a8e8
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0xf8]
jbe 0x54a7ff
mov dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xf8], eax
jmp 0x54a812
cmp dword [ebp - 0xf4], 0x1d4c0
jbe 0x54a810
jmp 0x54a8e8
jmp 0x54a812
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x54]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0xf4]
mov esi, 0x1b4e81b5
mov dword [ebp - 0x1e0], edx
mul esi
shr edx, 7
mov dword [ebp - 0x3c], 0xffffffff
mov eax, esp
mov esi, dword [ebp - 0x15c]
mov dword [eax + 4], esi
lea edi, [ebp - 0x118]
mov dword [eax], edi
mov dword [ebp - 0x1e4], ecx
mov dword [ebp - 0x1e8], edx
mov dword [ebp - 0x1ec], edi
call fcn.00401fa8
mov dword [ebp - 0x3c], 5
mov eax, esp
mov ecx, dword [ebp - 0x1ec]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x1e8]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x1e0]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x164]
mov dword [eax], edx
mov dword [eax + 0xc], 0x64
mov eax, dword [ebp - 0x1e4]
call eax
jmp 0x54a8a4
lea eax, [ebp - 0x118]
mov dword [esp], eax
call fcn.00401d68
jmp 0x54a73e
mov eax, dword [ebp - 0x74]
sub eax, 4
sete byte [ebp - 0x55]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xffffffff
mov edx, esp
mov dword [edx], ecx
mov dword [ebp - 0x1f8], eax
call sub.ADVAPI32.DLL_CloseServiceHandle
sub esp, 4
mov ecx, dword [ebp - 0x164]
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 - 0x15c]
mov dword [edi + 4], ebx
lea ecx, [ebp - 0x134]
mov dword [edi], ecx
mov dword [ebp - 0x1fc], eax
mov dword [ebp - 0x200], ecx
mov dword [ebp - 0x204], edx
mov dword [ebp - 0x208], esi
call fcn.00401fa8
mov dword [ebp - 0x3c], 6
mov eax, esp
mov ecx, dword [ebp - 0x200]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x208]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x164]
mov dword [eax], edx
mov dword [eax + 0xc], 0x64
mov dword [eax + 8], 0x64
mov eax, dword [ebp - 0x204]
call eax
jmp 0x54a98e
lea eax, [ebp - 0x134]
mov dword [esp], eax
call fcn.00401d68
jmp 0x54a9cc
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 - 0x211], cl
call fcn.00579e92
mov cl, byte [ebp - 0x211]
and cl, 1
movzx eax, cl
add esp, 0x22c
pop esi
pop edi
pop ebx
pop ebp
ret