Function at 0x10094b9
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 0x24
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov eax, dword [section..data]
mov esi, section..data
cmp eax, esi
mov ebx, 0x1008a14
je 0x10094f3
test byte [eax + 0x1c], 0x10
jne 0x100b02b
push 4
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x100b03e
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
push eax
push 1
push eax
call edi
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x44], eax
xor ecx, ecx
cmp eax, ecx
je 0x100b069
push ecx
push ecx
push 1
push ecx
call edi
test eax, eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x48], eax
je 0x100b069
push 0
push 0x10096fc
push 0xa
push 0x10096ec
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov edi, eax
mov eax, dword [section..data]
cmp eax, esi
je 0x1009563
test byte [eax + 0x1c], 0x10
jne 0x100b086
test edi, edi
jne 0x10096d0
push 0x10089ad
push 0x4d2
push 0x21
push edi
push edi
push dword [0x1017554]
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
mov edi, eax
mov eax, dword [section..data]
cmp eax, esi
je 0x100959a
test byte [eax + 0x1c], 0x10
jne 0x100b09a
test edi, edi
jne 0x10096d0
xor eax, eax
inc eax
push eax
push edi
push edi
mov dword [0x1017014], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x100b0ae
push 4
push 0x10096d8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x100b0e4
mov eax, dword [section..data]
cmp eax, esi
je 0x10095ea
test byte [eax + 0x1c], 0x10
jne 0x100b11a
lea eax, [ebp - 0x10]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x100b12d
cmp dword [ebp - 0x30], 1
je 0x10096be
cmp dword [ebp - 0x30], 3
je 0x10096be
mov eax, dword [section..data]
cmp eax, esi
je 0x100962d
test byte [eax + 0x1c], 0x10
jne 0x100b160
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
push eax
push 0
push 0x100000
mov dword [edi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [edi + 0x4c], eax
je 0x100b176
push 0x3020
push 2
push 4
mov ecx, edi
call fcn.010099bf
mov edi, eax
test edi, edi
jl 0x1009685
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.01009723
mov edi, eax
mov eax, dword [section..data]
cmp eax, esi
je 0x1009685
test byte [eax + 0x1c], 0x10
jne 0x100b1b7
cmp dword [ebp - 0xc], 0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x1009696
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 8], 0
je 0x10096a1
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
mov dword [eax + 0x40], edi
mov eax, dword [eax + 0x48]
test eax, eax
je 0x10096b5
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [section..data]
cmp eax, esi
jne 0x100b1bd
jmp 0x100b1d1
jle 0x10096a1
jmp 0x100b1db
push ebx
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dd99
jmp 0x10094f3
mov eax, dword [section..data]
cmp eax, esi
je 0x10096a1
test byte [eax + 0x1c], 0x10
je 0x10096a1
push edi
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e4b5
jmp 0x10096a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x100b07a
mov edi, eax
jmp 0x10096a1
and eax, 0xffff
or eax, 0x80070000
jmp 0x100b073
push edi
push ebx
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e4b5
jmp 0x1009563
push edi
push ebx
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e4b5
jmp 0x100959a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x100b0c2
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, esi
je 0x1009685
test byte [eax + 0x1c], 0x10
je 0x1009685
push edi
push ebx
push 0xf
jmp 0x100b1a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x100b0f8
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, esi
je 0x1009685
test byte [eax + 0x1c], 0x10
je 0x1009685
push edi
push ebx
push 0x10
jmp 0x100b1a7
push ebx
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dd99
jmp 0x10095ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [section..data]
cmp eax, esi
je 0x100b153
test byte [eax + 0x1c], 0x10
je 0x100b153
push edi
push ebx
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e4b5
test edi, edi
jg 0x100b1db
jmp 0x1009685
push dword [ebp - 0x18]
push ebx
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e4b5
jmp 0x100962d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100b18a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, esi
je 0x1009685
test byte [eax + 0x1c], 0x10
je 0x1009685
push edi
push ebx
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e4b5
jmp 0x1009685
push edi
push ebx
push 0x16
jmp 0x100b1a7
test byte [eax + 0x1c], 0x10
je 0x100b1d1
push ebx
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dd99
mov edi, 0x80004005
jmp 0x1009685
and edi, 0xffff
or edi, 0x80070000
jmp 0x1009685