Function at 0x1001ff60
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10061070]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x1001ffb5
push 0x100076b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005a4a4
mov ecx, 0x10062fb8
call fcn.100076e0
mov ecx, eax
call fcn.10007740
mov ecx, eax
call fcn.10003130
xor al, al
jmp 0x1002016f
push 0x104
push 0x1005a4c8
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x10020024
push 0x100076b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005a4f8
push 0x1005a4f0
push 0x1005a4d0
mov ecx, 0x10062fb8
call fcn.100076e0
mov ecx, eax
call fcn.100076e0
mov ecx, eax
call fcn.100076e0
mov ecx, eax
call fcn.10007740
mov ecx, eax
call fcn.10003130
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1002016f
mov dword [ebp - 0x20], 0
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
lea eax, [ebp - 0x20]
push eax
push 0xd4
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x100200b2
push 0x100076b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005a530
push 0x1005a528
push str.Failed_to_ControlService__Name_:
mov ecx, 0x10062fb8
call fcn.100076e0
mov ecx, eax
call fcn.100076e0
mov ecx, eax
call fcn.100076e0
mov ecx, eax
call fcn.10007740
mov ecx, eax
call fcn.10003130
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1002016f
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0x14
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10020102
cmp dword [ebp - 0x1c], 1
jne 0x100200e2
mov byte [ebp - 0x21], 1
jmp 0x10020102
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x38]
jb 0x100200ec
jmp 0x10020102
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100200c4
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx ecx, byte [ebp - 0x21]
test ecx, ecx
je 0x10020127
mov dword [ebp - 0x34], str.true
jmp 0x1002012e
mov dword [ebp - 0x34], str.false
push 0x100076b0
mov edx, dword [ebp - 0x34]
push edx
push str.__is_quited_:
push 0x1005a548
push 0x1005a53c
mov ecx, 0x10062fb8
call fcn.100076e0
mov ecx, eax
call fcn.100076e0
mov ecx, eax
call fcn.100076e0
mov ecx, eax
call fcn.100076e0
mov ecx, eax
call fcn.10003130
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002bcee
mov esp, ebp
pop ebp
ret