Function at 0x66e108d0
Capabilities:
Query service configuration

Disassembly:
push 0xffffffffffffffff
push 0x66f77d48
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66fe31a0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, ecx
push 1
push 0
push 0
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push eax
lea ecx, [esp + 0x28]
call fcn.66e12890
mov ecx, dword [ebp + 0x8c]
mov esi, dword [esp + 0x28]
add ecx, 4
push 1
mov dword [esp + 0x4c], 0
call fcn.66e13a40
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push eax
lea ecx, [esp + 0x20]
call fcn.66e12890
mov eax, dword [esp + 0x20]
mov byte [esp + 0x48], bl
test eax, eax
je 0x66e10b4f
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push eax
mov dword [esp + 0x24], 1
call esi
push dword [esp + 0x14]
call fcn.66e13cb5
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push edi
push dword [esp + 0x2c]
call esi
test eax, eax
je 0x66e10b3e
mov eax, dword [ebp]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call dword [eax + 0x10]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 2
call fcn.66e138a0
push eax
call fcn.66f2c74c
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.66e138e0
push dword [edi + 0xc]
call fcn.66f2c74c
mov ecx, dword [ebp + 0x8c]
add esp, 4
mov al, byte [ecx + 0x2d]
test al, al
jne 0x66e109e9
mov eax, dword [edi + 4]
test eax, eax
je 0x66e109e5
cmp eax, 1
je 0x66e109e5
cmp eax, 2
jne 0x66e109e9
mov byte [ecx + 0x2d], 1
mov ecx, dword [ebp + 0x90]
cmp dword [edi], ecx
jne 0x66e10b2c
cmp dword [edi + 4], 2
mov eax, dword [ebp + 0x8c]
mov al, byte [eax + 0x2d]
jne 0x66e10b2c
cmp dword [edi + 0xc], 0
je 0x66e10b2c
lea ecx, [esp + 0x2c]
call fcn.66e13a40
push eax
push dword [edi + 0xc]
call fcn.66f2b907
add esp, 8
test eax, eax
je 0x66e10b2c
lea ecx, [ebp + 0x94]
call fcn.66e13a90
test eax, eax
jne 0x66e10a5f
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x66e10a5f
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x66e10a50
sub ecx, edx
jne 0x66e10b2c
lea ecx, [ebp + 0x94]
call fcn.66e13a90
test eax, eax
je 0x66e10a97
cmp dword [edi + 0x10], 0
je 0x66e10b2c
lea ecx, [ebp + 0x94]
call fcn.66e13a40
push eax
push dword [edi + 0x10]
call fcn.66f2ae8e
add esp, 8
test eax, eax
jne 0x66e10b2c
mov edx, dword [ebp + 0xa8]
test edx, edx
jne 0x66e10abf
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x66e10abb
lea esi, [ecx + 1]
jmp 0x66e10ab0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x66e10ab0
sub ecx, esi
jne 0x66e10b2c
test edx, edx
je 0x66e10ad4
mov eax, dword [edi + 0x18]
test eax, eax
je 0x66e10b2c
push edx
push eax
call fcn.66f2ae8e
add esp, 8
test eax, eax
jne 0x66e10b2c
cmp dword [edi + 0x20], 0
je 0x66e10b2c
mov ecx, dword [ebp + 0x8c]
add ecx, 4
call fcn.66e13a40
push eax
push dword [edi + 0x20]
call fcn.66f2ae8e
add esp, 8
test eax, eax
jne 0x66e10b2c
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x66e10b2e
push 0x66f8c220
push eax
call fcn.66f2ae8e
add esp, 8
test eax, eax
je 0x66e10b2e
push 0x66f8c22c
push dword [edi + 0x1c]
call fcn.66f2ae8e
add esp, 8
test eax, eax
je 0x66e10b2e
mov byte [ebp + 0xb0], 1
xor bl, bl
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 1
call fcn.66e134c0
jmp 0x66e10b46
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
push edi
call fcn.66e13cbe
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 0
call fcn.66e128b0
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 0xffffffff
call fcn.66e128b0
mov al, bl
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret