Function at 0x474b18
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x474b20
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x474e36
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x24
mov eax, dword [ebp - 8]
call fcn.00408d18
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x474dfb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00474874
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 3
push 0x30
mov eax, dword [esi + 0x38]
push eax
call sub.advapi32.dll_EnumServicesStatusA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x474b9d
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xea
je 0x474b9d
call fcn.0040e454
test bl, bl
jne 0x474bd9
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xea
jne 0x474bd9
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00402b20
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 3
push 0x30
mov eax, dword [esi + 0x38]
push eax
call sub.advapi32.dll_EnumServicesStatusA
lea eax, [ebp - 0x28]
push eax
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
lea eax, [ebp - 0x38]
mov cx, 8
mov edx, 3
call fcn.00414e58
lea edx, [ebp - 0x28]
lea eax, [esi + 0x40]
call fcn.004109a4
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x474de5
inc eax
mov dword [ebp - 0x18], eax
xor ebx, ebx
lea edi, [ebx + ebx*8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + edi*4]
lea edx, [ebp - 0x14]
call fcn.00409f10
push 0
push ebx
push 2
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x14]
call fcn.00414a34
lea eax, [ebp - 0x48]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0041507c
add esp, 0x14
mov eax, dword [ebp - 4]
mov eax, dword [eax + edi*4 + 4]
lea edx, [ebp - 0x14]
call fcn.00409f10
push 1
push ebx
push 2
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x14]
call fcn.00414a34
lea eax, [ebp - 0x58]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0041507c
add esp, 0x14
mov eax, dword [ebp - 4]
mov eax, dword [eax + edi*4 + 0xc]
cmp eax, 7
ja case.0x474c93.0
jmp dword [eax*4 + 0x474c9a]
push 2
push ebx
push 2
lea eax, [ebp - 0x68]
mov edx, 0x474e4c
call fcn.00414a34
lea eax, [ebp - 0x68]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0041507c
add esp, 0x14
jmp case.0x474c93.0
push 2
push ebx
push 2
lea eax, [ebp - 0x78]
mov edx, 0x474e5c
call fcn.00414a34
lea eax, [ebp - 0x78]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0041507c
add esp, 0x14
jmp case.0x474c93.0
push 2
push ebx
push 2
lea eax, [ebp - 0x88]
mov edx, 0x474e74
call fcn.00414a34
lea eax, [ebp - 0x88]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0041507c
add esp, 0x14
jmp case.0x474c93.0
push 2
push ebx
push 2
lea eax, [ebp - 0x98]
mov edx, 0x474e8c
call fcn.00414a34
lea eax, [ebp - 0x98]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0041507c
add esp, 0x14
jmp case.0x474c93.0
push 2
push ebx
push 2
lea eax, [ebp - 0xa8]
mov edx, 0x474e9c
call fcn.00414a34
lea eax, [ebp - 0xa8]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0041507c
add esp, 0x14
jmp case.0x474c93.0
push 2
push ebx
push 2
lea eax, [ebp - 0xb8]
mov edx, 0x474eb8
call fcn.00414a34
lea eax, [ebp - 0xb8]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0041507c
add esp, 0x14
jmp case.0x474c93.0
push 2
push ebx
push 2
lea eax, [ebp - 0xc8]
mov edx, 0x474ed0
call fcn.00414a34
lea eax, [ebp - 0xc8]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0041507c
add esp, 0x14
inc ebx
dec dword [ebp - 0x18]
jne 0x474c23
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474e02
mov eax, dword [ebp - 4]
call fcn.00402b00
ret