Function at 0x10017d5c
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10017e4b
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x7c]
movzx eax, byte [eax]
test eax, eax
je 0x10017dfb
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x10017dd9
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 3
jge 0x10017df9
mov eax, dword [ebp - 0x10]
push dword [eax]
mov ecx, dword [ebp - 0xac]
call fcn.1002364c
mov dword [eax], 0x28c1
jmp 0x10017dce
jmp 0x10017e46
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
jmp 0x10017e26
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x19
jg 0x10017e46
mov byte [ebp - 5], 0
movzx eax, byte [ebp - 5]
test eax, eax
je 0x10017e44
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x10017e1b
jmp 0x10018161
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x9c], eax
lea eax, [ebp + 0x34]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax]
test eax, eax
je 0x10017ef0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x10017ece
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 2
jge 0x10017eeb
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x78]
call fcn.1002364c
mov dword [eax], 0xc160ec25
jmp 0x10017ec3
jmp 0x10018161
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
add eax, dword [ecx]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
je 0x10017f5e
mov dword [ebp - 0x64], 1
jmp 0x10017f62
and dword [ebp - 0x64], 0
cmp dword [ebp - 0x64], 1
jle 0x10017f71
mov dword [ebp - 0x28], 1
jmp 0x10017f75
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0xffffffff
jb 0x10017f84
mov dword [ebp - 0x68], 1
jmp 0x10017f88
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x68], eax
jl 0x10017f9b
mov dword [ebp - 0x30], 1
jmp 0x10017f9f
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
imul eax, dword [ecx]
mov ecx, dword [ebp - 0x14]
sub eax, dword [ecx]
cmp eax, 0x43818264
jl 0x10017fc2
mov dword [ebp - 0x50], 1
jmp 0x10017fc6
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x50], eax
je 0x10017fd9
mov dword [ebp - 0x38], 1
jmp 0x10017fdd
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
jne 0x10017ff0
mov dword [ebp - 0x60], 1
jmp 0x10017ff4
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x60], eax
jg 0x10018007
mov dword [ebp - 0x40], 1
jmp 0x1001800b
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x40]
jg 0x1001801e
mov dword [ebp - 0x58], 1
jmp 0x10018022
and dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0x4283
jne 0x10018034
mov dword [ebp - 0x48], 1
jmp 0x10018038
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0x3fa9
jne 0x1001804a
mov dword [ebp - 0x24], 1
jmp 0x1001804e
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
cmp eax, 0xfff9
je 0x10018068
or eax, 0xffffffff
jne 0x10018068
and dword [ebp - 0x2c], 0
jmp 0x1001806f
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x2c]
jg 0x10018082
mov dword [ebp - 0x34], 1
jmp 0x10018086
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0x8a06
jle 0x10018098
mov dword [ebp - 0x3c], 1
jmp 0x1001809c
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x3c], eax
jle 0x100180b2
mov dword [ebp - 0xc0], 1
jmp 0x100180b9
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xc8]
cmp dword [eax], 0
je 0x100180e0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x100180e0
mov dword [ebp - 0x44], 1
jmp 0x100180e4
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0xfffa
je 0x100180f6
mov dword [ebp - 0x4c], 1
jmp 0x100180fa
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x4c], eax
jle 0x1001810f
or eax, 0xffffffff
jne 0x1001810f
and dword [ebp - 0x54], 0
jmp 0x10018116
mov dword [ebp - 0x54], 1
cmp dword [ebp - 0x54], 0x5156be82
jne 0x10018128
mov dword [ebp - 0x5c], 1
jmp 0x1001812c
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x5c], eax
jne 0x1001813f
mov dword [ebp - 0x20], 1
jmp 0x10018143
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0x3d06ce12
je 0x10018155
mov dword [ebp - 0x6c], 1
jmp 0x10018159
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x6c]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret