Function at 0x1081a38
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 [0x111124c]
mov ebx, 0x111124c
cmp eax, ebx
je 0x1081a6f
test byte [eax + 0x1c], 1
je 0x1081a6f
cmp byte [eax + 0x19], 4
jb 0x1081a6f
push 0x10079b8
push 0x5d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
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 0x1081a9e
mov dword [ebp - 0x10], 2
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 0x1007d28
jmp 0x1081ab3
mov dword [ebp - 0x10], 3
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x1007d18
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1081ace
push 0x1007d0c
push 0x767
push 0x1007ab0
call fcn.0107b4be
lea eax, [ebp - 0x34]
push eax
push dword [edi]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
call edi
test eax, eax
jne 0x1081b55
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1081af4
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x1081b4b
test byte [eax + 0x1c], 1
je 0x1081b26
cmp byte [eax + 0x19], 2
jb 0x1081b26
push dword [ebp - 4]
push 0x10079b8
push 0x5e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1081b4b
test byte [eax + 0x1c], 1
je 0x1081b4b
cmp byte [eax + 0x19], 4
jb 0x1081b4b
push 0x10079b8
push 0x62
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
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 0x1081b8d
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x1081c49
test byte [eax + 0x1c], 1
je 0x1081c49
cmp byte [eax + 0x19], 4
jb 0x1081c49
push dword [ebp - 0xc]
push 0x10079b8
push 0x5f
jmp 0x1081c39
mov ebx, 0x1388
cmp eax, dword [ebp - 0x10]
je 0x1081ba2
cmp byte [ebp + 0xc], 0
jne 0x1081be3
cmp eax, 4
jne 0x1081be3
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jae 0x1081bab
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 0x1081c01
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x30], eax
je 0x1081c17
call esi
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
xor ecx, ecx
cmp edx, ecx
ja 0x1081c52
jb 0x1081bde
cmp eax, dword [ebp + 0x10]
ja 0x1081c52
mov eax, dword [ebp - 0x30]
jmp 0x1081b92
cmp eax, dword [ebp - 8]
je 0x1081b21
xor eax, eax
cmp byte [ebp + 0xc], al
sete al
add eax, 0x80780128
mov dword [ebp - 4], eax
jmp 0x1081b21
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1081bf9
and eax, 0xffff
or eax, 0x80070000
jmp 0x1081bf9
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1081c49
test byte [eax + 0x1c], 1
je 0x1081c49
cmp byte [eax + 0x19], 4
jb 0x1081c49
push dword [ebp - 0xc]
push 0x10079b8
push 0x60
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [0x111124c]
and dword [ebp - 4], 0
jmp 0x1081b26
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1081c81
test byte [eax + 0x1c], 1
je 0x1081c81
cmp byte [eax + 0x19], 2
jb 0x1081c81
push 0x10079b8
push 0x61
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
mov dword [ebp - 4], 0x800705b4
jmp 0x1081b26