Function at 0x10001a89
Capabilities:
Continue service
Delete service
Query service status
Start service

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1000b6c0
push 0xfffffffffffffffe
push 0x1000f628
push 0x10005e80
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100112cc]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x100c]
mov dword [ebp - 0x44], eax
mov ebx, ecx
mov byte [ebp + 0x800], 0
mov esi, 0x7ff
push esi
xor edi, edi
push edi
lea eax, [ebp + 0x801]
push eax
call fcn.10009c10
mov byte [ebp], 0
push esi
push edi
lea eax, [ebp + 1]
push eax
call fcn.10009c10
mov dword [ebp - 0x40], edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 0x1c], esi
push 2
pop edi
push edi
push dword [ebx + 8]
push dword [ebp - 0x44]
lea eax, [ebp]
push eax
call fcn.100026e2
mov ebx, dword [ebx + 0x10]
push 0x800
lea eax, [ebp + 0x800]
push eax
push ebx
lea eax, [ebp]
push eax
call fcn.10003da4
add esp, 0x38
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
cmp eax, esi
jne 0x10001b6e
mov dword [ebp - 0x1c], 1
jmp 0x10001d0e
push 0xf01ff
lea ecx, [ebp + 0x800]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x10001b62
lea ecx, [ebp - 0x40]
push ecx
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
call esi
test eax, eax
je 0x10001b62
mov eax, dword [ebp + 0x904]
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x10001bf7
cmp dword [ebp - 0x3c], ebx
je 0x10001be1
lea eax, [ebp - 0x40]
push eax
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10001d0b
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10001be1
cmp dword [ebp - 0x3c], 3
jne 0x10001be1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001bc1
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x10001d0e
jmp 0x10001d0b
cmp eax, edi
jne 0x10001c3d
cmp dword [ebp - 0x3c], 4
je 0x10001c3d
push 0
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x10001d0b
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10001d05
cmp dword [ebp - 0x3c], edi
jne 0x10001d05
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001c16
cmp eax, 3
jne 0x10001c85
cmp dword [ebp - 0x3c], ebx
je 0x10001c85
lea eax, [ebp - 0x40]
push eax
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10001d0b
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10001c7d
cmp dword [ebp - 0x3c], 3
jne 0x10001c7d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001c5d
cmp dword [ebp - 0x3c], ebx
jmp 0x10001d09
cmp eax, 4
jne 0x10001cc7
cmp dword [ebp - 0x3c], eax
jne 0x10001cc7
lea eax, [ebp - 0x40]
push eax
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10001d0b
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10001cc1
cmp dword [ebp - 0x3c], 6
jne 0x10001cc1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001ca1
cmp dword [ebp - 0x3c], 7
jmp 0x10001d09
cmp eax, 5
jne 0x10001d0e
cmp dword [ebp - 0x3c], 7
jne 0x10001d0e
lea eax, [ebp - 0x40]
push eax
push 3
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10001d0b
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10001d05
cmp dword [ebp - 0x3c], 5
jne 0x10001d05
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001ce5
cmp dword [ebp - 0x3c], 4
je 0x10001d0e
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.10001d45
xor eax, eax
cmp dword [ebp - 0x1c], esi
sete al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.1000406a
add ebp, 0x1004
leave
ret