Function at 0x30006884
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov ebx, ecx
push edi
lea esi, [ebx + 0x15c]
push esi
call fcn.30014e45
mov ecx, esi
call fcn.30013ed2
push eax
push 0x30002280
push 1
call fcn.30012b30
add esp, 0xc
call fcn.30013d0c
push 0x80000000
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x300068fb
push esi
call fcn.30014e45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.30013ed2
push eax
push 0x300021a0
push 1
call fcn.30012b30
add esp, 0x10
call fcn.30013d0c
jmp 0x30006af7
push 4
push 0x30002188
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x3000693e
push esi
call fcn.30014e45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.30013ed2
push eax
push 0x300020b0
push 1
call fcn.30012b30
add esp, 0x10
call fcn.30013d0c
jmp 0x30006aee
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
mov dword [ebp - 4], 0xa
call fcn.30006814
jmp 0x30006a70
push 8
pop ecx
xor edx, edx
xor eax, eax
mov dword [ebp - 0x44], edx
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push edx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x30006aa2
mov eax, dword [ebp - 8]
push 0x3c
xor edx, edx
pop ecx
div ecx
test edx, edx
mov dword [ebp - 0x14], edx
jne 0x300069e1
push esi
call fcn.30014e45
push dword [ebp - 0x24]
mov ecx, esi
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.30013ed2
push eax
xor edi, edi
push 0x30001f10
inc edi
push edi
call fcn.30012b30
add esp, 0x30
call fcn.30013d0c
jmp 0x300069e4
xor edi, edi
inc edi
test dword [ebp - 0x40], edi
jne 0x300069f7
test dword [ebp - 0x3c], edi
jne 0x300069f7
mov dword [ebp - 4], 0xa
jmp 0x30006a2f
cmp dword [ebp - 4], 0
push esi
jbe 0x30006ac0
dec dword [ebp - 4]
call fcn.30014e45
mov eax, dword [ebp - 4]
imul eax, eax, 0x3e8
push eax
mov ecx, esi
call fcn.30013ed2
push eax
push 0x30001e50
push edi
call fcn.30012b30
add esp, 0x10
call fcn.30013d0c
cmp dword [ebp - 0x14], 0
jne 0x30006a61
cmp dword [ebp - 4], 0xa
jb 0x30006a61
push esi
call fcn.30014e45
push 0xea60
mov ecx, esi
call fcn.30013ed2
push eax
push 0x30001dc8
push edi
call fcn.30012b30
add esp, 0x10
call fcn.30013d0c
inc dword [ebp - 8]
push edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.3000684f
test al, al
je 0x30006961
push esi
call fcn.30014e45
mov ecx, esi
call fcn.30013ed2
push eax
push 0x30001d10
push 1
call fcn.30012b30
add esp, 0xc
jmp 0x30006ae0
push esi
call fcn.30014e45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.30013ed2
push eax
push 0x30001c28
push 1
jmp 0x30006ad8
call fcn.30014e45
push 0x2710
mov ecx, esi
call fcn.30013ed2
push eax
push 0x30001b70
push edi
call fcn.30012b30
add esp, 0x10
call fcn.30013d0c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call fcn.30014e45
mov ecx, esi
call fcn.30013ed2
push eax
push 0x30001b28
push 1
call fcn.30012b30
add esp, 0xc
call fcn.30013d0c
pop edi
pop esi
pop ebx
leave
ret