Function at 0x422300
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a10b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 4
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x422379
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 0xf
xor eax, eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
mov byte [ebp - 4], 1
cmp ecx, eax
ja 0x4223af
cmp edx, 0x10
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x4223bc
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00419ac0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0x3b
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x422476
cmp eax, 0xea
je 0x422400
cmp eax, 0x7a
jne 0x42240b
nop
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
jmp 0x422398
mov eax, dword [ebp - 0x14]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmp eax, 0x10
jb 0x422449
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004023a0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0041f8f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp eax, 0x10
cmovae esi, ecx
xor ebx, ebx
cmp dword [ebp - 0x2c], ebx
jle 0x422726
add esi, 8
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], 0
mov byte [ebp - 0xc4], 0
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0xac], 0
mov byte [ebp - 4], 2
xor eax, eax
mov edx, dword [esi - 8]
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
cmp word [edx], ax
jne 0x4224ed
xor ecx, ecx
jmp 0x422501
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4224f2
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.0040e4f0
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.0041fc80
mov edi, eax
lea eax, [ebp - 0xc4]
cmp eax, edi
je 0x42256b
mov eax, dword [ebp - 0xb0]
cmp eax, 0x10
jb 0x422544
inc eax
lea ecx, [ebp - 0xc4]
push eax
push dword [ebp - 0xc4]
call fcn.004023a0
push edi
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], 0
mov byte [ebp - 0xc4], 0
call fcn.00405f90
mov eax, dword [ebp - 0x58]
cmp eax, 0x10
jb 0x422580
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.004023a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
cmp eax, 8
jb 0x4225ab
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.00406490
mov edx, dword [esi - 4]
xor eax, eax
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
cmp word [edx], ax
je 0x4225df
mov eax, edx
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4225d0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x54]
call fcn.0040e4f0
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call fcn.0041fc80
mov edi, eax
lea eax, [ebp - 0xac]
cmp eax, edi
je 0x422649
mov eax, dword [ebp - 0x98]
cmp eax, 0x10
jb 0x422622
inc eax
lea ecx, [ebp - 0xac]
push eax
push dword [ebp - 0xac]
call fcn.004023a0
push edi
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0xac], 0
call fcn.00405f90
mov eax, dword [ebp - 0x58]
cmp eax, 0x10
jb 0x42265e
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.004023a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
cmp eax, 8
jb 0x422689
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.00406490
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0xc4]
movups xmmword [ebp - 0x94], xmm0
push eax
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x84], xmm0
call fcn.00422760
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x98]
cmp eax, 0x10
jb 0x4226d7
inc eax
lea ecx, [ebp - 0xac]
push eax
push dword [ebp - 0xac]
call fcn.004023a0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0xac], 0
cmp eax, 0x10
jb 0x422710
inc eax
lea ecx, [ebp - 0xc4]
push eax
push dword [ebp - 0xc4]
call fcn.004023a0
inc ebx
add esi, 0x24
cmp ebx, dword [ebp - 0x2c]
jl 0x422493
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x74]
mov edx, dword [ebp - 0x38]
mov dword [edi], edx
mov edx, dword [ebp - 0x34]
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x30]
mov dword [edi + 8], edx
cmp eax, 0x10
jb 0x422747
inc eax
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004023a0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret