Function at 0x1001c7d0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1005c070]
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 0x1001c825
push 0x10007490
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10055d0c
mov ecx, 0x1005dfb8
call fcn.100074c0
mov ecx, eax
call fcn.10007520
mov ecx, eax
call fcn.10003100
xor al, al
jmp 0x1001c9df
push 0x104
push 0x10055d30
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 0x1001c894
push 0x10007490
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10055d60
push 0x10055d58
push 0x10055d38
mov ecx, 0x1005dfb8
call fcn.100074c0
mov ecx, eax
call fcn.100074c0
mov ecx, eax
call fcn.100074c0
mov ecx, eax
call fcn.10007520
mov ecx, eax
call fcn.10003100
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1001c9df
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 0x1001c922
push 0x10007490
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10055d98
push 0x10055d90
push str.Failed_to_ControlService__Name_:
mov ecx, 0x1005dfb8
call fcn.100074c0
mov ecx, eax
call fcn.100074c0
mov ecx, eax
call fcn.100074c0
mov ecx, eax
call fcn.10007520
mov ecx, eax
call fcn.10003100
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 0x1001c9df
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 0x1001c972
cmp dword [ebp - 0x1c], 1
jne 0x1001c952
mov byte [ebp - 0x21], 1
jmp 0x1001c972
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x38]
jb 0x1001c95c
jmp 0x1001c972
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001c934
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 0x1001c997
mov dword [ebp - 0x34], str.true
jmp 0x1001c99e
mov dword [ebp - 0x34], str.false
push 0x10007490
mov edx, dword [ebp - 0x34]
push edx
push str.__is_quited_:
push 0x10055db0
push 0x10055da4
mov ecx, 0x1005dfb8
call fcn.100074c0
mov ecx, eax
call fcn.100074c0
mov ecx, eax
call fcn.100074c0
mov ecx, eax
call fcn.100074c0
mov ecx, eax
call fcn.10003100
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100288d1
mov esp, ebp
pop ebp
ret