Function at 0x10009fa0
Capabilities:
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x10044a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.100086d0
push 4
push 0
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x10008cc3
mov eax, dword [0x10054f08]
mov ecx, 0x10054f08
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x6b4]
test eax, eax
mov dword [esp + 0x40], 0
jbe 0x10008c09
push eax
push 0x10047eac
lea ecx, [edi + 0xc]
push ecx
lea edx, [esp + 0x1c]
push str._s_s_X
push edx
call fcn.10006640
add esp, 0x14
jmp 0x10008c28
lea esi, [edi + 0xc]
test esi, esi
jne 0x10008c14
xor eax, eax
jmp 0x10008c1d
push esi
call fcn.10036536
add esp, 4
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.10005c00
mov eax, dword [esp + 0x10]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
je 0x10008c96
xor ebx, ebx
xor esi, esi
lea ecx, [esp + 0x1c]
push ecx
push 1
push ebp
inc ebx
add esi, 0x3e8
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
cmp dword [esp + 0x20], 1
je 0x10008c7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x10008c7e
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0xbb8
jb 0x10008c43
inc ebx
cmp ebx, 3
jne 0x10008c8b
mov dword [esp + 0x18], 0
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10008cc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x10054f08]
mov ecx, 0x10054f08
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 0x6b0]
push ecx
push str.F9E2CFAA_66E4_458e_8C7F_A87AC7B7F3EE
lea edx, [esp + 0x18]
push str._s__s_EXIT
push edx
mov dword [esp + 0x50], 1
call fcn.10006640
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.10006580
mov eax, dword [0x10054f08]
mov ecx, 0x10054f08
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 0x6b0]
push ecx
push str.F9E2CFAA_66E4_458e_8C7F_A87AC7B7F3EE
lea edx, [esp + 0x1c]
push str._s__s
push edx
mov byte [esp + 0x50], 2
call fcn.10006640
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.10006580
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push eax
push 0
push 2
call edi
mov ebp, dword [esp + 0x14]
mov esi, eax
test esi, esi
je 0x10008d90
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
push ebp
push 0
push 0x1f0003
call edi
mov esi, eax
test esi, esi
je 0x10008d90
push 0x7530
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
lea eax, [ebp - 0x10]
mov byte [esp + 0x40], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x10008db3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10008dd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x34
ret
call fcn.10008640
mov ecx, eax
jmp 0x10008b80