Function at 0x1048891
Capabilities:
Query service status

Disassembly:
push 0x60
mov eax, 0x1058e63
call fcn.01021eb9
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.0103ece0
mov esi, dword [ebp - 0x1c]
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.01046459
push 0x100dda8
lea ecx, [ebp - 0x24]
call fcn.010161a7
mov byte [ebp - 4], 4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.01046bd3
mov byte [ebp - 4], 5
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.0104b66e
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x104890e
call fcn.0101a986
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.01015174
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
jne 0x1048979
lea ecx, [ebp + 0xc]
call fcn.010151da
mov byte [ebp - 4], 6
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push 0x100fa40
push eax
call fcn.01015a11
pop ecx
pop ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.010151f2
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.01047bc5
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x34]
call fcn.01047b8e
push 0x105f600
lea eax, [ebp - 0x34]
push eax
call fcn.010212e6
lea eax, [ebp - 0x28]
push eax
call fcn.0104717e
mov byte [ebp - 4], 9
push dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0104b66e
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x10489a3
call fcn.0101a986
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x10], ebx
jne 0x10489ee
lea ecx, [ebp + 0xc]
call fcn.010151da
mov byte [ebp - 4], 0xa
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push 0x100f918
push eax
call fcn.01015a11
pop ecx
pop ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.010151f2
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
call fcn.01047bc5
mov byte [ebp - 4], 0xc
jmp 0x1048962
mov ecx, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.0104657d
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.01046bd3
mov byte [ebp - 4], 0xe
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.0104b66e
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x1048a2c
call fcn.0101a986
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.01015174
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
jne 0x1048aa7
lea ecx, [ebp + 0xc]
call fcn.010151da
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x38]
push eax
call fcn.010464ed
mov byte [ebp - 4], 0x10
push dword [ebp + 8]
push dword [eax]
lea eax, [ebp + 0xc]
push 0x100f8b8
push eax
call fcn.01015a11
add esp, 0x10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x38]
call fcn.01015174
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.010151f2
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2c]
call fcn.01047bc5
mov byte [ebp - 4], 0x12
jmp 0x1048962
lea eax, [ebp - 0x28]
push eax
call fcn.0104717e
mov byte [ebp - 4], 0x13
push dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0104b66e
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x1048ad1
call fcn.0101a986
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x10], ebx
jne 0x1048b1c
lea ecx, [ebp + 0xc]
call fcn.010151da
mov byte [ebp - 4], 0x14
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push 0x100f848
push eax
call fcn.01015a11
pop ecx
pop ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.010151f2
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2c]
call fcn.01047bc5
mov byte [ebp - 4], 0x16
jmp 0x1048962
lea ecx, [ebp - 0x18]
call fcn.010151da
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x10]
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x38]
push eax
call fcn.010464ed
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x18]
call fcn.01015959
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x38]
call fcn.01015174
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
jne 0x1048b9f
lea ecx, [ebp + 0xc]
call fcn.010151da
mov byte [ebp - 4], 0x19
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push 0x100fe40
push eax
call fcn.01015a11
pop ecx
pop ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.010151f2
mov byte [ebp - 4], 0x1a
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2c]
call fcn.01047bc5
mov byte [ebp - 4], 0x1b
jmp 0x1048962
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.01046c8d
mov byte [ebp - 4], 0x1c
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.0104b66e
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x1048bcf
call fcn.0101a986
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x1048c1c
lea ecx, [ebp + 0xc]
call fcn.010151da
mov byte [ebp - 4], 0x1d
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push 0x100fdd0
push eax
call fcn.01015a11
pop ecx
pop ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.010151f2
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x2c]
call fcn.01047bc5
mov byte [ebp - 4], 0x1f
jmp 0x1048962
add eax, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.01015959
push 0x100fda8
lea ecx, [ebp - 0x18]
call fcn.01018c3e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.01046bd3
mov byte [ebp - 4], 0x20
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.0104b66e
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x1048c65
call fcn.0101a986
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
jne 0x1048c8a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.01015174
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
call fcn.0101a986
mov dword [ebp - 0x10], ebx
jmp 0x1048e43
push 0x100fd90
lea ecx, [ebp - 0x24]
call fcn.010161a7
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.01046d41
mov byte [ebp - 4], 0x22
push dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0104b66e
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x1048ccc
call fcn.0101a986
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x24]
call fcn.01015174
cmp dword [ebp - 0x10], ebx
je 0x1048e28
lea ecx, [ebp - 0x50]
call fcn.01014c71
mov byte [ebp - 4], 0x23
mov ecx, dword [ebp - 0x10]
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.010464ed
mov byte [ebp - 4], 0x24
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], ebx
je 0x1048d0f
push eax
lea ecx, [ebp - 0x50]
call fcn.010172fc
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.01046a71
mov byte [ebp - 4], 0x25
push dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0104b66e
mov byte [ebp - 4], 0x24
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x1048d3c
call fcn.0101a986
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x24]
call fcn.01015174
cmp dword [ebp - 0x10], ebx
jne 0x1048ced
push 0xe0000000
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x1048e1c
mov dword [ebp - 0x28], edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x1048e05
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x50]
call fcn.0105038c
push eax
lea ecx, [ebp - 0x24]
call fcn.010151f2
mov byte [ebp - 4], 0x26
push SysReAllocString
push dword [ebp - 0x24]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x1048dc9
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x24]
call fcn.01015174
cmp dword [ebp - 0x30], ebx
jne 0x1048d86
jmp 0x1048e02
lea eax, [ebp - 0x6c]
push eax
push esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
call edi
cmp dword [ebp - 0x20], 0xc
jne 0x1048deb
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x1048df6
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x24]
call fcn.01015174
mov esi, dword [ebp - 0x1c]
inc dword [ebp - 0x20]
cmp dword [ebp - 0x28], ebx
jne 0x1048e17
cmp dword [ebp - 0x20], 0xd
jb 0x1048d71
push dword [ebp - 0x38]
call edi
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x50]
call fcn.01014fbc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.01015174
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
call fcn.0101a986
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x1048e54
mov ecx, esi
call fcn.0101a986
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01015174
call fcn.01021fa5
ret 8