Function at 0x104839b
Capabilities:
Query service status

Disassembly:
push 0x60
mov eax, 0x1058a1d
call fcn.01022092
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.0103eba1
mov esi, dword [ebp - 0x1c]
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.01045f67
push 0x100e56c
lea ecx, [ebp - 0x24]
call fcn.01016a0f
mov byte [ebp - 4], 4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.010466e3
mov byte [ebp - 4], 5
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.0104fe7f
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x1048418
call fcn.0101ab3d
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.010151a6
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
jne 0x1048483
lea ecx, [ebp + 0xc]
call fcn.010155dc
mov byte [ebp - 4], 6
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push 0x100fe50
push eax
call fcn.01015d39
pop ecx
pop ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.010157a2
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.010476d5
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x34]
call fcn.0104769e
push 0x105f134
lea eax, [ebp - 0x34]
push eax
call fcn.01021535
lea eax, [ebp - 0x28]
push eax
call fcn.01046c8e
mov byte [ebp - 4], 9
push dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0104fe7f
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x10484ad
call fcn.0101ab3d
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x10], ebx
jne 0x10484f8
lea ecx, [ebp + 0xc]
call fcn.010155dc
mov byte [ebp - 4], 0xa
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push 0x100fd28
push eax
call fcn.01015d39
pop ecx
pop ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.010157a2
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
call fcn.010476d5
mov byte [ebp - 4], 0xc
jmp 0x104846c
mov ecx, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.0104608d
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.010466e3
mov byte [ebp - 4], 0xe
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.0104fe7f
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x1048536
call fcn.0101ab3d
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.010151a6
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
jne 0x10485b1
lea ecx, [ebp + 0xc]
call fcn.010155dc
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x38]
push eax
call fcn.01045ffd
mov byte [ebp - 4], 0x10
push dword [ebp + 8]
push dword [eax]
lea eax, [ebp + 0xc]
push 0x100fcc8
push eax
call fcn.01015d39
add esp, 0x10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x38]
call fcn.010151a6
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.010157a2
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2c]
call fcn.010476d5
mov byte [ebp - 4], 0x12
jmp 0x104846c
lea eax, [ebp - 0x28]
push eax
call fcn.01046c8e
mov byte [ebp - 4], 0x13
push dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0104fe7f
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x10485db
call fcn.0101ab3d
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x10], ebx
jne 0x1048626
lea ecx, [ebp + 0xc]
call fcn.010155dc
mov byte [ebp - 4], 0x14
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push 0x100fc58
push eax
call fcn.01015d39
pop ecx
pop ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.010157a2
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2c]
call fcn.010476d5
mov byte [ebp - 4], 0x16
jmp 0x104846c
lea ecx, [ebp - 0x18]
call fcn.010155dc
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.01045ffd
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x18]
call fcn.01015b0a
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x38]
call fcn.010151a6
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
jne 0x10486a9
lea ecx, [ebp + 0xc]
call fcn.010155dc
mov byte [ebp - 4], 0x19
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push 0x1010250
push eax
call fcn.01015d39
pop ecx
pop ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.010157a2
mov byte [ebp - 4], 0x1a
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2c]
call fcn.010476d5
mov byte [ebp - 4], 0x1b
jmp 0x104846c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0104679d
mov byte [ebp - 4], 0x1c
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.0104fe7f
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x10486d9
call fcn.0101ab3d
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x1048726
lea ecx, [ebp + 0xc]
call fcn.010155dc
mov byte [ebp - 4], 0x1d
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push 0x10101e0
push eax
call fcn.01015d39
pop ecx
pop ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.010157a2
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x2c]
call fcn.010476d5
mov byte [ebp - 4], 0x1f
jmp 0x104846c
add eax, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.01015b0a
push 0x10101b8
lea ecx, [ebp - 0x18]
call fcn.01015ced
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.010466e3
mov byte [ebp - 4], 0x20
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.0104fe7f
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x104876f
call fcn.0101ab3d
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
jne 0x1048794
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.010151a6
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
call fcn.0101ab3d
mov dword [ebp - 0x10], ebx
jmp 0x104894d
push 0x10101a0
lea ecx, [ebp - 0x24]
call fcn.01016a0f
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.01046851
mov byte [ebp - 4], 0x22
push dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0104fe7f
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x10487d6
call fcn.0101ab3d
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x24]
call fcn.010151a6
cmp dword [ebp - 0x10], ebx
je 0x1048932
lea ecx, [ebp - 0x50]
call fcn.0101526d
mov byte [ebp - 4], 0x23
mov ecx, dword [ebp - 0x10]
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.01045ffd
mov byte [ebp - 4], 0x24
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], ebx
je 0x1048819
push eax
lea ecx, [ebp - 0x50]
call fcn.01017b73
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.01046581
mov byte [ebp - 4], 0x25
push dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0104fe7f
mov byte [ebp - 4], 0x24
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x1048846
call fcn.0101ab3d
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x24]
call fcn.010151a6
cmp dword [ebp - 0x10], ebx
jne 0x10487f7
push 0xe0000000
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x38], eax
je 0x1048926
mov dword [ebp - 0x28], edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x50]
cmp eax, ebx
mov dword [ebp - 0x30], eax
je 0x104890f
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x50]
call fcn.01014be7
push eax
lea ecx, [ebp - 0x24]
call fcn.010157a2
mov byte [ebp - 4], 0x26
push 0x80000000
push dword [ebp - 0x24]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x10488d3
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x24]
call fcn.010151a6
cmp dword [ebp - 0x30], ebx
jne 0x1048890
jmp 0x104890c
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 0x10488f5
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x1048900
push 0x1388
call dword [0x1001180]
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x24]
call fcn.010151a6
mov esi, dword [ebp - 0x1c]
inc dword [ebp - 0x20]
cmp dword [ebp - 0x28], ebx
jne 0x1048921
cmp dword [ebp - 0x20], 0xd
jb 0x104887b
push dword [ebp - 0x38]
call edi
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x50]
call fcn.01014fc6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.010151a6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
call fcn.0101ab3d
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x104895e
mov ecx, esi
call fcn.0101ab3d
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
call fcn.0102217e
ret 8