Function at 0x1081aeb
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x111024c]
mov ebx, 0x111024c
cmp eax, ebx
je 0x1081b22
test byte [eax + 0x1c], 1
je 0x1081b22
cmp byte [eax + 0x19], 4
jb 0x1081b22
push 0x10079c8
push 0x5d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
and dword [ebp - 4], 0
call esi
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
je 0x1081b51
mov dword [ebp - 0x10], 2
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 0x1007d38
jmp 0x1081b66
mov dword [ebp - 0x10], 3
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x1007d28
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1081b81
push 0x1007d1c
push 0x767
push 0x1007ac0
call fcn.0107b644
lea eax, [ebp - 0x34]
push eax
push dword [edi]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
call edi
test eax, eax
jne 0x1081c08
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1081ba7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x1081bfe
test byte [eax + 0x1c], 1
je 0x1081bd9
cmp byte [eax + 0x19], 2
jb 0x1081bd9
push dword [ebp - 4]
push 0x10079c8
push 0x5e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1081bfe
test byte [eax + 0x1c], 1
je 0x1081bfe
cmp byte [eax + 0x19], 4
jb 0x1081bfe
push 0x10079c8
push 0x62
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 8]
jne 0x1081c40
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x1081cfc
test byte [eax + 0x1c], 1
je 0x1081cfc
cmp byte [eax + 0x19], 4
jb 0x1081cfc
push dword [ebp - 0xc]
push 0x10079c8
push 0x5f
jmp 0x1081cec
mov ebx, 0x1388
cmp eax, dword [ebp - 0x10]
je 0x1081c55
cmp byte [ebp + 0xc], 0
jne 0x1081c96
cmp eax, 4
jne 0x1081c96
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jae 0x1081c5e
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call edi
test eax, eax
je 0x1081cb4
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x30], eax
je 0x1081cca
call esi
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
xor ecx, ecx
cmp edx, ecx
ja 0x1081d05
jb 0x1081c91
cmp eax, dword [ebp + 0x10]
ja 0x1081d05
mov eax, dword [ebp - 0x30]
jmp 0x1081c45
cmp eax, dword [ebp - 8]
je 0x1081bd4
xor eax, eax
cmp byte [ebp + 0xc], al
sete al
add eax, 0x80780128
mov dword [ebp - 4], eax
jmp 0x1081bd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1081cac
and eax, 0xffff
or eax, 0x80070000
jmp 0x1081cac
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1081cfc
test byte [eax + 0x1c], 1
je 0x1081cfc
cmp byte [eax + 0x19], 4
jb 0x1081cfc
push dword [ebp - 0xc]
push 0x10079c8
push 0x60
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [0x111024c]
and dword [ebp - 4], 0
jmp 0x1081bd9
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1081d34
test byte [eax + 0x1c], 1
je 0x1081d34
cmp byte [eax + 0x19], 2
jb 0x1081d34
push 0x10079c8
push 0x61
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
mov dword [ebp - 4], 0x800705b4
jmp 0x1081bd9