Function at 0x100665ab
Capabilities:
Query service status

Disassembly:
push 0x80
mov eax, 0x1011319c
call fcn.1006051e
mov edi, edx
mov dword [ebp - 0x40], edi
mov esi, ecx
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], ecx
mov ecx, 0x800
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x58], ebx
je 0x10066858
test eax, eax
je 0x10066858
test edx, edx
je 0x10066858
cmp dword [ebp - 0x3c], ebx
je 0x10066858
test esi, esi
je 0x10066858
call fcn.100029f0
push eax
lea ecx, [ebp - 0x50]
call fcn.1000281b
mov dword [ebp - 4], ebx
call fcn.100029f0
push eax
lea ecx, [ebp - 0x54]
call fcn.1000281b
push esi
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push 0x10134634
push eax
call fcn.10008c51
push esi
lea eax, [ebp - 0x54]
push 0x10134640
push eax
call fcn.10008c51
mov esi, dword [ebp - 0x50]
add esp, 0x18
test edi, edi
mov edi, dword [ebp - 0x54]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x44], eax
je 0x10066844
mov ecx, dword [ebp - 0x40]
push eax
push esi
push ecx
call fcn.1004d7d4
add esp, 0xc
test eax, eax
jne 0x10066844
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
push edi
lea eax, [eax + ecx*2]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x8c]
push eax
call dword [ebp - 0x58]
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x7c], 0x18
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x7c]
push eax
push 1
lea eax, [ebp - 0x38]
mov dword [ebp - 0x78], ebx
push eax
mov dword [ebp - 0x70], 0x40
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call dword [ebp - 0x5c]
test eax, eax
jne 0x100667cc
push dword [ebp - 0x30]
call fcn.10041699
mov eax, dword [ebp - 0x34]
add eax, eax
push eax
mov dword [ebp - 0x34], eax
call fcn.1004c039
mov dword [ebp - 0x30], eax
pop ecx
pop ecx
test eax, eax
je 0x10066794
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0x34]
push 1
push ebx
push ecx
push eax
push dword [ebp - 0x38]
call dword [ebp - 0x60]
cmp eax, 0x105
je 0x100666dc
cmp eax, 0xc0000023
je 0x100666dc
mov ecx, dword [ebp - 0x30]
test eax, eax
jne 0x10066783
cmp word [ecx], bx
jbe 0x10066783
lea eax, [ecx + 4]
mov dword [ebp - 0x34], eax
cmp word [eax + 4], bx
jbe 0x10066780
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x10066761
mov eax, dword [eax + 8]
test eax, eax
jne 0x10066751
mov eax, 0x1013270c
push eax
push ecx
call fcn.10043f14
pop ecx
pop ecx
test eax, eax
jne 0x100667b7
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
mov eax, dword [eax]
test ecx, ecx
je 0x1006679f
test eax, eax
jne 0x10066773
mov eax, 0x1013270c
push eax
call fcn.10066860
test eax, eax
je 0x100667b7
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10041699
cmp dword [ebp - 0x38], 0
pop ecx
je 0x10066844
push dword [ebp - 0x38]
call dword [ebp - 0x3c]
jmp 0x10066844
test eax, eax
jne 0x100667a8
mov eax, 0x1013270c
push eax
push dword [ebp - 0x44]
call fcn.10043f14
pop ecx
pop ecx
test eax, eax
je 0x1006677d
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [ebp - 0x34], eax
cmp word [eax - 4], bx
ja 0x10066738
jmp 0x10066780
cmp eax, 0xc0000022
jne 0x10066844
push str.Driver
push dword [ebp - 0x4c]
call fcn.10043f14
pop ecx
pop ecx
test eax, eax
jne 0x10066844
push 5
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x10066844
mov ecx, dword [ebp - 0x40]
push 5
add ecx, 0x10
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x1006683b
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10066832
cmp dword [ebp - 0x2c], 1
je 0x10066829
cmp dword [ebp - 0x2c], 2
jne 0x10066832
cmp dword [ebp - 0x28], 4
jne 0x10066832
xor ebx, ebx
inc ebx
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [edi - 0x10]
call fcn.10002a86
lea ecx, [esi - 0x10]
call fcn.10002a86
mov eax, ebx
jmp 0x1006685a
xor eax, eax
call fcn.100604c8
ret