Function at 0x40e450
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507207
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5503dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x40], ebx
xor edi, edi
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 0xb4], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push 4
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x90], esi
test esi, esi
jne 0x40e4d3
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
jmp 0x40e85e
xor ecx, ecx
mov edx, 0xf
xor eax, eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x34], al
mov ebx, dword [ebp - 0x94]
mov byte [ebp - 4], 1
cmp ecx, eax
ja 0x40e50f
cmp edx, 0x10
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov byte [eax + ecx], 0
jmp 0x40e51c
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x34]
call fcn.00412900
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push 1
push 0x3b
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x40e5b0
cmp eax, 0xea
je 0x40e560
cmp eax, 0x7a
jne 0x40e571
nop word [eax + eax]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x90]
jmp 0x40e4f8
mov eax, dword [ebp - 0x20]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 0x10
jb 0x40e844
inc eax
push eax
push dword [ebp - 0x34]
jmp 0x40e83c
mov eax, dword [ebp - 0x20]
lea esi, [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
cmp eax, 0x10
mov dword [ebp - 0x90], 0
cmovae esi, ecx
cmp dword [ebp - 0x38], 0
jle 0x40e811
add esi, 8
nop word [eax + eax]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
sub esp, 0x18
mov byte [ebp - 4], 2
mov edi, dword [esi - 8]
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 8
jb 0x40e62b
mov eax, dword [edx]
jmp 0x40e62d
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [edi], cx
je 0x40e64f
mov ecx, edi
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e640
sub ecx, ebx
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.00407b90
lea ecx, [ebp - 0xb0]
call fcn.0040deb0
add esp, 0x18
mov edi, eax
lea eax, [ebp - 0x8c]
cmp eax, edi
je 0x40e6ae
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x40e68d
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00408290
push edi
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
call fcn.004081c0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x9c]
cmp eax, 0x10
jb 0x40e6fe
mov ecx, dword [ebp - 0xb0]
inc eax
cmp eax, 0x1000
jb 0x40e6f5
test cl, 0x1f
jne 0x40e87c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40e87c
sub ecx, eax
cmp ecx, 4
jb 0x40e87c
cmp ecx, 0x23
ja 0x40e87c
mov ecx, eax
push ecx
call fcn.00469456
add esp, 4
mov edi, dword [esi - 4]
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 8
jb 0x40e71e
mov eax, dword [edx]
jmp 0x40e720
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [edi], cx
jne 0x40e72e
xor eax, eax
jmp 0x40e742
mov eax, edi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e733
sub eax, ebx
sar eax, 1
push eax
push edi
mov ecx, edx
call fcn.00407b90
lea ecx, [ebp - 0xb0]
call fcn.0040deb0
add esp, 0x18
mov edi, eax
lea eax, [ebp - 0x74]
cmp eax, edi
je 0x40e792
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x40e777
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00408290
push edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
call fcn.004081c0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x9c]
cmp eax, 0x10
jb 0x40e7b4
inc eax
lea ecx, [ebp - 0xb0]
push eax
push dword [ebp - 0xb0]
call fcn.00408290
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x8c]
movups xmmword [ebp - 0x5c], xmm0
push eax
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x4c], xmm0
call fcn.00411dd0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.0040e890
mov eax, dword [ebp - 0x90]
add esi, 0x24
inc eax
mov dword [ebp - 0x90], eax
cmp eax, dword [ebp - 0x38]
jl 0x40e5e0
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x18]
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [ebx], edi
mov dword [ebx + 8], edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 0x10
jb 0x40e844
inc eax
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00408290
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.00411e90
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c9018
mov esp, ebp
pop ebp
ret
call fcn.004e12d1
int3