Function at 0x1002f561
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x120
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002f5c0
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x98], eax
push 0x4fb4
push dword [ebp - 0x98]
push 0x6f3d
push 0x68bb
push 1
push 0x2d91
call fcn.1002facc
add esp, 0x18
jmp 0x1002fabb
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xf4], eax
lea eax, [ebp + 0x3c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x44]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0xfc], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x90], eax
lea eax, [ebp + 8]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
movzx eax, byte [eax]
test eax, eax
je 0x1002f6cc
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x74]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0xd8]
mov edx, dword [edx]
shl edx, 4
lea ecx, [edx + ecx*8 + 0x1060975c]
mov edx, dword [ebp - 0x34]
mov eax, dword [ecx + eax*4]
mov dword [edx], eax
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
je 0x1002f6c7
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
or eax, 0x200
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
jmp 0x1002fabb
mov dword [ebp - 0x44], 0x1e53
mov dword [ebp - 0xa8], 0x1000a168
cmp dword [ebp - 0x44], 0x2015
jle 0x1002f786
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
and dword [ebp - 0x24], 0
jmp 0x1002f701
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x352a
jge 0x1002f786
and dword [ebp - 0x30], 0
jmp 0x1002f717
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x1b45
jge 0x1002f781
and dword [ebp - 0x2c], 0
jmp 0x1002f72d
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x5b22
jge 0x1002f77f
and dword [ebp - 0x18], 0
jmp 0x1002f743
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xf6c
jge 0x1002f77d
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x2c]
xor eax, dword [ebp - 0x24]
xor eax, dword [ebp - 0x18]
cdq
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], edx
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
mov ecx, 0x10609cb8
call fcn.1000fe1e
jmp 0x1002f73c
jmp 0x1002f726
jmp 0x1002f710
jmp 0x1002f6fa
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x7c], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x44], 0x1bd3
jge 0x1002f7ac
mov edx, dword [ebp - 0xa8]
mov ecx, 0x10609cb8
call fcn.100118c8
jmp 0x1002f7c8
or dword [ebp - 4], 0xffffffff
jmp 0x1002f7d2
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0x3c], 0x67e8
mov dword [ebp - 0xcc], 0x1000a1d0
cmp dword [ebp - 0x3c], 0x6b33
jle 0x1002f91e
and dword [ebp - 0x1c], 0
jmp 0x1002f8ab
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2d3a
jge 0x1002f91e
and dword [ebp - 0x20], 0
jmp 0x1002f8c1
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4ceb
jge 0x1002f91c
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], edx
push dword [ebp - 0x104]
push dword [ebp - 0x108]
lea ecx, [ebp - 0x130]
call fcn.1000d1e0
pop ecx
pop ecx
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
call fcn.1000fdfe
push eax
call fcn.1004bc16
pop ecx
lea ecx, [ebp - 0x130]
call fcn.1000fdf4
jmp 0x1002f8ba
jmp 0x1002f8a4
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x3c], 0x649c
jge 0x1002f943
push dword [ebp - 0xcc]
call fcn.1004bc16
pop ecx
jmp 0x1002f95f
or dword [ebp - 4], 0xffffffff
jmp 0x1002f969
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0xffffffff
jg 0x1002f97a
mov dword [ebp - 0x5c], 1
jmp 0x1002f97e
and dword [ebp - 0x5c], 0
cmp dword [ebp - 0x5c], 1
jb 0x1002f98d
mov dword [ebp - 0x4c], 1
jmp 0x1002f991
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
imul eax, dword [ebp - 0x4c]
cmp eax, 0xfffc
jbe 0x1002f9aa
mov dword [ebp - 0x6c], 1
jmp 0x1002f9ae
and dword [ebp - 0x6c], 0
push 0
mov ecx, dword [ebp - 0xd4]
call fcn.1000ffd1
mov ecx, dword [ebp - 0x6c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x24015e1b
jle 0x1002f9d4
mov dword [ebp - 0x54], 1
jmp 0x1002f9d8
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x54], eax
je 0x1002f9eb
mov dword [ebp - 0x64], 1
jmp 0x1002f9ef
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0x70]
mov ecx, dword [ecx]
sub ecx, dword [ebp - 0x64]
add ecx, dword [eax]
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx]
cmp ecx, dword [eax]
jl 0x1002fa19
mov dword [ebp - 0x48], 1
jmp 0x1002fa1d
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
add eax, dword [ebp - 0x48]
cmp eax, 0x46c20b13
jl 0x1002fa35
mov dword [ebp - 0x50], 1
jmp 0x1002fa39
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp dword [ebp - 0x50], eax
jge 0x1002fa4c
mov dword [ebp - 0x58], 1
jmp 0x1002fa50
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x58], eax
jne 0x1002fa63
mov dword [ebp - 0x60], 1
jmp 0x1002fa67
and dword [ebp - 0x60], 0
imul eax, dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x70]
mov ecx, dword [ecx]
sub ecx, dword [eax]
cmp ecx, 0xfff8
jb 0x1002faa1
mov dword [ebp - 0x38], 1
jmp 0x1002faa5
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov eax, dword [ebp - 0xec]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret