Function at 0x4e3030
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x6480b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0
push 1
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x4c]
push 0
push ecx
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.005015f0
add esp, 0x18
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4e345e
push esi
push 0x12000
call fcn.00479f2b
mov esi, eax
add esp, 4
mov dword [ebp - 0x38], esi
test esi, esi
je 0x4e344d
push edi
push 0x12000
push 0
push esi
call fcn.005c9220
add esp, 0xc
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x44], edi
test edi, edi
je 0x4e343a
push ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push eax
push 0x12000
push esi
push 3
push 0x30
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov ebx, dword [ebp - 0x4c]
cmp eax, 0x800
mov dword [ebp - 0x40], ebx
cmova eax, ecx
mov dword [ebp - 0x3c], eax
push ebx
call fcn.00501f30
xor ecx, ecx
push 7
mov word [ebx + eax*2], cx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
call fcn.00505050
add esp, 0x14
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4e3430
mov ecx, dword [ebp - 0x48]
lea eax, [ecx - 2]
cmp eax, 5
ja 0x4e3424
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
cmp word [eax], 0
je 0x4e3424
mov ebx, 1
mov dword [ebp - 8], 0
xorps xmm0, xmm0
xor edi, edi
movq qword [ebp - 0x10], xmm0
cmp ecx, ebx
jle 0x4e32e7
nop dword [eax]
cmp edi, 3
jge 0x4e32a8
lea esi, [ebx*4]
test bl, 1
je 0x4e3263
mov eax, dword [ebp - 0x34]
mov eax, dword [esi + eax]
cmp word [eax], 0
je 0x4e3251
push str.NONE
push eax
call fcn.005d09f9
add esp, 8
test eax, eax
je 0x4e3251
mov eax, dword [ebp - 0x34]
push str.START
push dword [esi + eax]
call fcn.005d09f9
add esp, 8
test eax, eax
jne 0x4e31cc
lea ecx, [eax + 4]
lea edx, [edi*4]
mov eax, dword [ebp + edx - 0x10]
and eax, 0xfffffff8
jmp 0x4e3298
mov eax, dword [ebp - 0x34]
push str.STOP
push dword [esi + eax]
call fcn.005d09f9
add esp, 8
test eax, eax
jne 0x4e31f9
lea ecx, [eax + 1]
lea edx, [edi*4]
mov eax, dword [ebp + edx - 0x10]
and eax, 0xfffffff8
jmp 0x4e3298
mov eax, dword [ebp - 0x34]
push str.PAUSE
push dword [esi + eax]
call fcn.005d09f9
add esp, 8
test eax, eax
jne 0x4e3223
lea ecx, [eax + 2]
lea edx, [edi*4]
mov eax, dword [ebp + edx - 0x10]
and eax, 0xfffffff8
jmp 0x4e3298
mov eax, dword [ebp - 0x34]
push str.CONTINUE
push dword [esi + eax]
call fcn.005d09f9
add esp, 8
test eax, eax
jne 0x4e32dd
lea ecx, [eax + 3]
lea edx, [edi*4]
mov eax, dword [ebp + edx - 0x10]
and eax, 0xfffffff8
jmp 0x4e3298
lea edx, [edi*4]
xor ecx, ecx
mov eax, dword [ebp + edx - 0x10]
and eax, 0xfffffff8
jmp 0x4e3298
push 0
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x34]
push dword [esi + eax]
call fcn.005d1ea6
mov ecx, dword [ebp - 0x58]
add esp, 0xc
mov esi, eax
cmp word [ecx], 0
jne 0x4e32dd
lea edx, [edi*4]
inc edi
mov eax, dword [ebp + edx - 0x10]
lea ecx, [esi*8]
and eax, 7
or eax, ecx
inc ebx
mov dword [ebp + edx - 0x10], eax
cmp ebx, dword [ebp - 0x48]
jl 0x4e3160
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x38]
test eax, eax
jne 0x4e33c3
mov eax, dword [ebp - 0x34]
xor edi, edi
mov ebx, dword [eax]
cmp dword [ebp - 0x3c], edi
jbe 0x4e32ee
push dword [esi + 4]
push ebx
call fcn.005d09f9
add esp, 8
test eax, eax
je 0x4e32ec
inc edi
add esi, 0x24
cmp edi, dword [ebp - 0x3c]
jb 0x4e32c2
jmp 0x4e32ee
mov eax, 0x5d
mov dword [ebp - 0x30], eax
jmp 0x4e32ab
mov eax, dword [ebp - 0x30]
jmp 0x4e32ae
mov ebx, dword [esi]
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
push eax
push ebx
push edi
call fcn.00537040
add esp, 0xc
test eax, eax
je 0x4e33c6
push 0x24
call fcn.00479f06
mov esi, eax
add esp, 4
test esi, esi
je 0x4e341b
mov ecx, dword [ebp - 0x34]
xorps xmm0, xmm0
mov edi, dword [ecx]
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi], 0x5fac28
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movq qword [esi + 0x18], xmm0
mov dword [esi + 0x20], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4e3371
push 2
push eax
call fcn.0058bb51
add esp, 8
mov dword [esi + 0xc], 0
test ebx, ebx
je 0x4e3381
push ebx
call fcn.0050e9a0
add esp, 4
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4e339a
push 2
push eax
call fcn.0058bb51
add esp, 8
mov dword [esi + 0x10], 0
test edi, edi
je 0x4e33aa
push edi
call fcn.0050e9a0
add esp, 4
mov dword [esi + 0x10], eax
movq xmm0, qword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x5c]
movq qword [esi + 0x18], xmm0
push esi
mov dword [esi + 0x20], eax
call fcn.0050bf10
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x48]
call fcn.00505010
add esp, 8
cmp dword [ebp - 0x30], 0
jne 0x4e342d
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e33e3
sub ecx, edx
sar ecx, 1
inc ecx
lea eax, [ebx + ecx*2]
push eax
call fcn.005020d0
mov esi, dword [ebp - 0x38]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x40], eax
cmp word [ebx], 0
jne 0x4e30f6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
jmp 0x4e3441
mov dword [ebp - 0x30], 2
jmp 0x4e33c6
mov dword [ebp - 0x30], 0x5d
jmp 0x4e33c9
mov esi, dword [ebp - 0x38]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
jmp 0x4e3441
mov dword [ebp - 0x30], 0x4b
push 0x24
push esi
call fcn.0058bb51
add esp, 8
pop edi
push 2
push dword [ebp - 0x4c]
call fcn.0058bb51
mov eax, dword [ebp - 0x30]
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret 4