Function at 0x1004a96a
Capabilities:
Query service status

Disassembly:
mov eax, 0x1007ab89
call fcn.10079240
sub esp, 0xa8
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x8c]
push 3
call fcn.100164e9
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], 8
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], ebx
jmp 0x1004a9b7
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x8c]
mov dword [eax + ecx*4], 0x7571177e
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x1004a9a4
mov dword [ebp - 0x24], 2
cmp dword [ebp - 0x24], ebx
jl 0x1004aa9c
push 1
lea ecx, [ebp - 0x6c]
call fcn.100164e9
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], 0x8f6efba1
mov dword [ebp - 0x2c], 0xfffffffa
mov dword [ebp - 0x14], ebx
jmp 0x1004a9fe
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x6c]
mov dword [eax + ecx*4], 0xe2c0d37a
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 1
jl 0x1004a9ee
mov dword [ebp - 0x14], ebx
jmp 0x1004aa1a
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0xb0], 5
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x1004aa09
mov eax, dword [ebp - 0x6c]
mov dword [eax], ebx
mov dword [ebp - 0x2c], 2
lea ecx, [ebp - 0x98]
push 1
call fcn.100164e9
xor esi, esi
mov dword [ebp - 0x1c], ebx
inc esi
jmp 0x1004aa54
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x98]
mov dword [eax + ecx*4], 0xfffffff8
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], esi
jl 0x1004aa41
inc dword [ebp - 0x20]
lea ecx, [ebp - 0x98]
call fcn.1001656b
mov eax, dword [ebp - 0x6c]
inc dword [eax]
cmp dword [eax], 2
jle 0x1004aa25
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1004aa86
push 0x16c0
push ebx
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.1001656b
dec dword [ebp - 0x24]
jns 0x1004a9cd
jmp 0x1004aa9f
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.1001656b
push edi
push 0x3551
push esi
call fcn.10045317
mov dword [ebp - 0x1c], 0x193e0566
add esp, 0xc
mov dword [ebp - 0x14], 0xfffffff7
mov dword [ebp - 0x30], 0xe3b6
mov dword [ebp - 0x2c], 0xa975881d
mov dword [ebp - 0x24], ebx
jmp 0x1004aae8
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x34], esi
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], esi
jl 0x1004aade
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
neg ecx
sbb ecx, ecx
xor edx, edx
inc ecx
cmp eax, ecx
mov eax, dword [ebp - 0x14]
setne dl
add eax, dword [ebp - 0x14]
xor ecx, ecx
cmp eax, 0x53a3
mov eax, dword [ebp - 0x14]
setl cl
sub edx, ecx
xor ecx, ecx
cmp edx, eax
setge cl
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
neg ecx
sbb ecx, ecx
add eax, 0x16580849
inc ecx
add eax, ecx
cmp eax, 0x1db6
jg 0x1004ab46
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x14], ebx
je 0x1004ac0d
mov dword [ebp - 0x28], 8
mov dword [ebp - 0x20], 0xfffffff6
mov dword [ebp - 0x20], 0xe7baa9d7
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], ebx
jl 0x1004ab8d
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1004ab88
push ebx
push ebx
push 0x2018
push 0x9f7
push ebx
call dword [sym.imp.USER32.dll_InsertMenuW]
dec dword [ebp - 0x14]
jns 0x1004ab6c
cmp dword [ebp - 0x28], ebx
je 0x1004ab95
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov eax, dword [ebp - 0x14]
add ecx, 0xffffc1dc
cmp eax, ecx
setg dl
xor eax, eax
cmp edx, 0x3b1067dc
setg al
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], ebx
jne 0x1004abc2
mov ecx, ebx
cmp dword [ebp - 0x34], ebx
je 0x1004abc4
mov ecx, esi
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
sub ecx, eax
mov eax, dword [ebp - 0x34]
cmp ecx, eax
mov eax, dword [ebp - 0x1c]
setl dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x20]
sete cl
xor edx, edx
cmp eax, ecx
setne dl
xor ecx, ecx
imul edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
cmp edx, eax
setle cl
xor eax, eax
neg ecx
cmp ecx, 7
setle al
mov dword [ebp - 0x14], eax
jmp 0x1004aca5
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x20], 0x4bca0f96
mov dword [ebp - 0x24], ebx
jmp 0x1004ac2e
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x80], 0xc31b53a2
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 2
jl 0x1004ac20
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
cmp eax, 0xfffffffe
mov eax, dword [ebp - 0x28]
setge cl
xor edx, edx
cmp ecx, 0xfffffff7
setl dl
xor ecx, ecx
cmp eax, edx
setl cl
imul ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x30]
sub esi, ecx
inc esi
add esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
neg esi
sbb esi, esi
xor edx, edx
inc esi
cmp esi, eax
mov eax, dword [ebp - 0x28]
setne dl
xor ecx, ecx
cmp eax, edx
setne cl
cmp ecx, dword [ebp - 0x14]
jl 0x1004ac8b
cmp dword [ebp - 0x20], ebx
jne 0x1004ac8b
mov ecx, ebx
jmp 0x1004ac8e
xor ecx, ecx
inc ecx
xor edx, edx
add ecx, eax
mov eax, dword [ebp - 0x20]
cmp ecx, eax
setl dl
sub edx, dword [ebp - 0x20]
neg edx
sbb edx, edx
inc edx
mov dword [ebp - 0x7c], edx
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1004acb6
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edi
call fcn.1002d31f
movdqa xmm0, xmmword [0x10007bf0]
mov esi, eax
pop ecx
mov dword [ebp - 0x20], 0xfffffffa
lea eax, [ebp - 0x98]
mov dword [ebp - 0x2c], 0x4524be1
lea ecx, [ebp - 0x78]
push dword [ebp - 0x2c]
movdqu xmmword [ebp - 0xa8], xmm0
push eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x78], ebx
push eax
push ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call fcn.10017bef
mov dword [ebp - 0x14], ebx
jmp 0x1004ad13
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x60], 1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x1004ad05
push 3
mov dword [ebp - 0x14], ebx
pop ecx
jmp 0x1004ad2f
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x40], 0xffffffff
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], ecx
jl 0x1004ad21
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], ebx
jl 0x1004adf8
mov edi, 0x2526041
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x28], 0xc746
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], ebx
jl 0x1004add9
mov eax, dword [ebp - 0x48]
mov eax, dword [ebp + eax*4 - 0x60]
mov eax, dword [ebp - 0x48]
cmp dword [ebp + eax*4 - 0x60], ebx
jne 0x1004ad93
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov edx, dword [ebp + eax*4 - 0x60]
mov eax, dword [ebp - 0x30]
cmp eax, 0xbebf0a0c
setne cl
imul edx, ecx
cmp edx, 0xfffffffe
je 0x1004ad9a
mov eax, dword [ebp - 0x3c]
mov eax, dword [ebp + eax*4 - 0x60]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x58]
mov eax, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov eax, dword [ebp + eax*4 - 0x60]
mov eax, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov eax, dword [ebp + eax*4 - 0x60]
mov eax, dword [ebp - 0x48]
mov eax, dword [ebp + eax*4 - 0x60]
mov eax, dword [ebp - 0x3c]
mov eax, dword [ebp + eax*4 - 0x60]
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
dec dword [ebp - 0x48]
jns 0x1004ad67
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x3c]
push 3
mov dword [ebp + eax*4 - 0x60], ecx
dec dword [ebp - 0x3c]
pop ecx
jns 0x1004ad45
lea ecx, [ebp - 0x78]
call fcn.1001656b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret