Function at 0x455928
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x455b86
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
xor edx, edx
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x30]
movzx eax, byte [ebp + 0x10]
sub al, 1
jb 0x45597f
je 0x455986
dec al
je 0x45598d
jmp 0x455b52
mov edi, 3
jmp 0x455992
mov edi, 1
jmp 0x455992
mov edi, 2
movzx eax, byte [ebp - 9]
sub al, 1
jb 0x4559a5
je 0x4559ac
dec al
je 0x4559b3
jmp 0x455b52
mov esi, 0x3b
jmp 0x4559b8
mov esi, 0x30
jmp 0x4559b8
mov esi, 0xb
cmp byte [ebp + 0xc], 0
je 0x4559c4
or esi, 0x100
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x48]
push eax
push edi
push esi
mov eax, dword [ebx + 0x48]
push eax
call sub.advapi32.dll_EnumServicesStatusA
mov dword [ebp - 0x24], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xea
jne 0x455b38
mov eax, dword [ebp - 0x14]
mov ecx, 0x24
xor edx, edx
div ecx
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x455908]
call fcn.00405884
add esp, 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
add eax, eax
add eax, eax
lea eax, [eax + eax*8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
push esi
mov eax, dword [ebx + 0x48]
push eax
call sub.advapi32.dll_EnumServicesStatusA
test eax, eax
je 0x455b52
mov esi, dword [ebp - 0x18]
dec esi
test esi, esi
jl 0x455b52
inc esi
xor ebx, ebx
lea edi, [ebx + ebx*8]
mov eax, dword [ebp - 4]
cmp dword [eax + edi*4], 0
je 0x455b2e
movzx eax, byte [ebp + 8]
sub al, 1
jb 0x455a9a
je 0x455ab8
dec al
je 0x455ad4
jmp 0x455b2e
lea eax, [ebp - 0x4c]
lea edx, [ebx + ebx*8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx*4]
call fcn.00404a0c
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x455b2e
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 4]
mov edx, dword [edx + edi*4 + 4]
call fcn.00404a0c
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x455b2e
lea eax, [ebp - 0x158]
lea edx, [ebx + ebx*8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx*4]
call fcn.004034ac
lea edx, [ebp - 0x158]
lea eax, [ebp - 0x58]
call fcn.00404a78
push dword [ebp - 0x58]
push 0x455ba0
lea eax, [ebp - 0x15c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + edi*4 + 4]
call fcn.00404a0c
push dword [ebp - 0x15c]
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00404ba8
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
dec esi
jne 0x455a77
jmp 0x455b52
cmp dword [ebp - 0x24], 0
jne 0x455b52
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4550b8]
call fcn.004554f0
call fcn.0040425c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455b8d
lea eax, [ebp - 0x15c]
call fcn.00404814
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404838
lea eax, [ebp - 4]
mov edx, dword [0x455908]
call fcn.00405890
ret