Function at 0x1002f858
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push esi
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1002fa7e
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x1002fa6f
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 4]
mov dword [eax], 3
jmp 0x1002f8ef
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jl 0x1002fa6d
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1000f296
mov eax, dword [eax]
neg eax
jne 0x1002f931
push 1
mov ecx, dword [ebp - 8]
call fcn.1000f296
cmp dword [eax], 0
jne 0x1002f931
and dword [ebp - 0x24], 0
jmp 0x1002f938
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1000f296
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1002f96d
push 6
pop eax
test eax, eax
jne 0x1002f96d
and dword [ebp - 0x1c], 0
jmp 0x1002f974
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1000f296
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax]
jne 0x1002f991
mov dword [ebp - 0x34], 1
jmp 0x1002f995
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1002f9aa
mov dword [ebp - 0x2c], 1
jmp 0x1002f9ae
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1000f296
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax]
jge 0x1002f9cb
mov dword [ebp - 0x3c], 1
jmp 0x1002f9cf
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0xf204
jle 0x1002f9e1
mov dword [ebp - 0x20], 1
jmp 0x1002f9e5
and dword [ebp - 0x20], 0
push 0
mov ecx, dword [ebp - 8]
call fcn.1000f296
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax]
je 0x1002f9ff
mov dword [ebp - 0x28], 1
jmp 0x1002fa03
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0x6700
je 0x1002fa17
xor eax, eax
inc eax
jne 0x1002fa17
and dword [ebp - 0x30], 0
jmp 0x1002fa1e
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x30], eax
jge 0x1002fa34
cmp dword [ebp - 0x18], 0
jne 0x1002fa34
and dword [ebp - 0x38], 0
jmp 0x1002fa3b
mov dword [ebp - 0x38], 1
push 1
mov ecx, dword [ebp - 8]
call fcn.1000f296
mov ecx, dword [ebp - 0x38]
sub ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x88]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1000f296
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x70], eax
jmp 0x1002f8e4
jmp 0x1002fa79
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x1002fb64
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x30]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x1002faf9
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x1002fada
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 1
jge 0x1002faf7
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x64]
call fcn.1000f296
mov dword [eax], 0xc7c8a6b9
jmp 0x1002facf
jmp 0x1002fb64
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 2
jmp 0x1002fb30
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jl 0x1002fb64
mov dword [ebp - 0x8c], 3
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
push 2
mov ecx, dword [ebp - 0x94]
call fcn.1000f296
mov dword [eax], esi
jmp 0x1002fb25
pop esi
mov esp, ebp
pop ebp
ret