Function at 0x480f00
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x480f2a
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x4811e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 1
mov eax, dword [ebp - 8]
mov edx, 0x4811fc
call fcn.00404734
push 0x80000004
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x480f69
mov byte [ebp - 9], 0
jmp 0x4811bf
mov ebx, 0x4800
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
add eax, 4
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
mov eax, dword [ebp - 4]
add eax, 0x208
push eax
push 3
push 0x30
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_EnumServicesStatusA
test eax, eax
jne 0x480fab
mov byte [ebp - 9], 0
jmp 0x4811bf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
dec eax
test eax, eax
jl 0x4811a6
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x1c]
lea esi, [esi + esi*8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4 + 0x214]
cmp eax, 7
ja case.0x480fda.0
jmp dword [eax*4 + 0x480fe1]
lea eax, [ebp - 0x20]
call 0x480e40
jmp case.0x480fda.0
lea eax, [ebp - 0x20]
call fcn.004046e0
jmp case.0x480fda.0
lea eax, [ebp - 0x20]
call fcn.004046e0
jmp case.0x480fda.0
lea eax, [ebp - 0x20]
call fcn.004046e0
jmp case.0x480fda.0
lea eax, [ebp - 0x20]
call fcn.004046e0
jmp case.0x480fda.0
lea eax, [ebp - 0x20]
call fcn.004046e0
jmp case.0x480fda.0
lea eax, [ebp - 0x20]
call fcn.004046e0
lea eax, [ebp - 0x24]
call fcn.004046e0
mov bl, byte [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004815c0
and eax, 0xff
cmp eax, 4
ja case.default.0x481064
jmp dword [eax*4 + 0x48106b]
lea eax, [ebp - 0x24]
call fcn.00480e78
jmp case.default.0x481064
lea eax, [ebp - 0x24]
call fcn.00480e78
jmp case.default.0x481064
lea eax, [ebp - 0x24]
call fcn.00480e78
jmp case.default.0x481064
lea eax, [ebp - 0x24]
call fcn.00480ea0
jmp case.default.0x481064
lea eax, [ebp - 0x24]
call fcn.00480ec8
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 4]
mov edx, dword [edx + esi*4 + 0x20c]
call fcn.004048d8
mov edx, ebx
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00481604
cmp dword [ebp - 0x28], 0
je 0x48110f
mov eax, dword [ebp - 0x28]
call fcn.004049a0
mov esi, eax
test esi, esi
jle 0x48110f
mov ebx, 1
mov eax, dword [ebp - 0x28]
mov al, byte [eax + ebx - 1]
cmp al, 0x26
je 0x4810fe
cmp al, 0x3c
je 0x4810fe
cmp al, 0x3e
je 0x4810fe
cmp al, 0x22
jne 0x48110b
lea eax, [ebp - 0x28]
call fcn.00404bf8
mov byte [eax + ebx - 1], 0x5f
inc ebx
dec esi
jne 0x4810e7
cmp dword [ebp - 0x2c], 0
je 0x481150
mov eax, dword [ebp - 0x2c]
call fcn.004049a0
mov esi, eax
test esi, esi
jle 0x481150
mov ebx, 1
mov eax, dword [ebp - 0x2c]
mov al, byte [eax + ebx - 1]
cmp al, 0x26
je 0x48113f
cmp al, 0x3c
je 0x48113f
cmp al, 0x3e
je 0x48113f
cmp al, 0x22
jne 0x48114c
lea eax, [ebp - 0x2c]
call fcn.00404bf8
mov byte [eax + ebx - 1], 0x5f
inc ebx
dec esi
jne 0x481128
mov eax, dword [ebp - 8]
push dword [eax]
push 0x481234
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
call fcn.0045e474
push dword [ebp - 0x34]
push 0x48124c
push dword [ebp - 0x28]
push 0x481264
push dword [ebp - 0x2c]
push 0x481280
push dword [ebp - 0x20]
push 0x48129c
push dword [ebp - 0x24]
push 0x4812b4
mov eax, dword [ebp - 8]
mov edx, 0xc
call fcn.00404a60
inc dword [ebp - 0x1c]
dec dword [ebp - 0x30]
jne 0x480fc5
mov eax, dword [ebp - 8]
mov edx, 0x4812c0
call fcn.004049a8
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4811e9
lea eax, [ebp - 0x34]
call fcn.004046e0
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404704
ret