Function at 0x45b81c
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45bafc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
push 0x80000004
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x45b86e
mov byte [ebp - 5], 0
jmp 0x45bad4
mov ebx, 0x4800
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x49fd6c
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x49fd70
push 3
push 0x30
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_EnumServicesStatusA
test eax, eax
jne 0x45b8aa
mov byte [ebp - 5], 0
jmp 0x45bad4
mov eax, dword [0x49fd6c]
dec eax
test eax, eax
jl 0x45bacb
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov edi, 0x49fd7c
mov eax, dword [edi]
cmp eax, 7
ja case.0x45b8cf.0
jmp dword [eax*4 + 0x45b8d6]
lea eax, [ebp - 0x1c]
call fcn.00404b00
jmp case.0x45b8cf.0
lea eax, [ebp - 0x1c]
call fcn.00404b00
jmp case.0x45b8cf.0
lea eax, [ebp - 0x1c]
call fcn.00404b00
jmp case.0x45b8cf.0
lea ecx, [ebp - 0x1c]
mov dx, 6
mov ax, 0x2b
call fcn.0045b190
jmp case.0x45b8cf.0
lea eax, [ebp - 0x1c]
call fcn.00404b00
jmp case.0x45b8cf.0
lea eax, [ebp - 0x1c]
call fcn.00404b00
jmp case.0x45b8cf.0
lea eax, [ebp - 0x1c]
call fcn.00404b00
lea eax, [ebp - 0x20]
call fcn.00404b00
mov bl, byte [ebp - 0x18]
mov eax, ebx
call fcn.0045b720
and eax, 0xff
cmp eax, 4
ja case.default.0x45b95e
jmp dword [eax*4 + 0x45b965]
lea ecx, [ebp - 0x20]
mov dx, 4
mov ax, 0x31
call fcn.0045b190
jmp case.default.0x45b95e
lea ecx, [ebp - 0x20]
mov dx, 4
mov ax, 0x35
call fcn.0045b190
jmp case.default.0x45b95e
lea ecx, [ebp - 0x20]
mov dx, 4
mov ax, 0x39
call fcn.0045b190
jmp case.default.0x45b95e
lea ecx, [ebp - 0x20]
mov dx, 4
mov ax, 0x3d
call fcn.0045b190
jmp case.default.0x45b95e
lea ecx, [ebp - 0x20]
mov dx, 6
mov ax, 0x41
call fcn.0045b190
lea eax, [ebp - 0x24]
mov edx, dword [edi - 8]
call fcn.00404cf0
mov eax, ebx
lea edx, [ebp - 0x28]
call fcn.0045b764
cmp dword [ebp - 0x24], 0
je 0x45ba29
mov eax, dword [ebp - 0x24]
call fcn.00404db8
mov esi, eax
test esi, esi
jle 0x45ba29
mov ebx, 1
mov eax, dword [ebp - 0x24]
mov al, byte [eax + ebx - 1]
cmp al, 0x26
je 0x45ba18
mov edx, dword [ebp - 0x24]
cmp al, 0x3c
je 0x45ba18
mov edx, dword [ebp - 0x24]
cmp al, 0x3e
jne 0x45ba25
lea eax, [ebp - 0x24]
call fcn.00405008
mov byte [eax + ebx - 1], 0x5f
inc ebx
dec esi
jne 0x45b9ff
cmp dword [ebp - 0x28], 0
je 0x45ba6c
mov eax, dword [ebp - 0x28]
call fcn.00404db8
mov esi, eax
test esi, esi
jle 0x45ba6c
mov ebx, 1
mov eax, dword [ebp - 0x28]
mov al, byte [eax + ebx - 1]
cmp al, 0x26
je 0x45ba5b
mov edx, dword [ebp - 0x28]
cmp al, 0x3c
je 0x45ba5b
mov edx, dword [ebp - 0x28]
cmp al, 0x3e
jne 0x45ba68
lea eax, [ebp - 0x28]
call fcn.00405008
mov byte [eax + ebx - 1], 0x5f
inc ebx
dec esi
jne 0x45ba42
mov eax, dword [ebp - 4]
push dword [eax]
push dword [ebp - 0x24]
push 0x45bb18
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x28]
call fcn.0045b7c0
push dword [ebp - 0x30]
push 0x45bb18
push dword [ebp - 0x1c]
push 0x45bb18
push dword [ebp - 0x20]
push 0x45bb18
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.00409218
push dword [ebp - 0x34]
push 0x45bb24
mov eax, dword [ebp - 4]
mov edx, 0xb
call fcn.00404e78
inc dword [ebp - 0x18]
add edi, 0x24
dec dword [ebp - 0x2c]
jne 0x45b8c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bb03
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404b24
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404b24
ret