Function at 0x41f210
Capabilities:
Enumerate services

Disassembly:
push 0x64
mov eax, 0x4b1151
call fcn.0048bc6e
xor ebx, ebx
mov byte [ebp - 0x11], bl
push 4
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x38], edi
cmp edi, ebx
je 0x41f43c
push dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
lea esi, [ebp - 0x48]
call fcn.0042083b
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 3
push dword [ebp + 0xc]
push ebx
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
call esi
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x41f426
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
push eax
call fcn.00488f5f
pop ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], eax
push ebx
push ebx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x28]
push eax
push 3
push dword [ebp + 0xc]
push ebx
push edi
call esi
test eax, eax
je 0x41f41a
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], eax
jae 0x41f41a
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x2c
mov ecx, dword [ebp - 0x34]
lea edi, [eax + ecx]
push 1
push dword [edi]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x41f412
push dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
lea esi, [ebp - 0x40]
call fcn.0042083b
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
call esi
cmp dword [ebp - 0x18], ebx
je 0x41f406
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
push eax
call fcn.00488f5f
pop ecx
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x3c]
push eax
push dword [ebp - 0x2c]
call esi
test eax, eax
je 0x41f3e5
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
cmp eax, 2
je 0x41f353
cmp eax, ebx
je 0x41f353
cmp eax, 1
jne 0x41f3e5
lea eax, [ebp - 0x54]
push eax
call fcn.0041d653
mov byte [ebp - 4], 4
mov dword [ebp - 0x54], 1
push str.HKEY_LOCAL_MACHINE
lea ecx, [ebp - 0x50]
call fcn.00405c8e
mov esi, 0x4c2ce4
push esi
lea eax, [ebp - 0x50]
push eax
call fcn.0040f07d
push str.SYSTEMCurrentControlSetServices
lea eax, [ebp - 0x50]
push eax
call fcn.0040f07d
push esi
lea eax, [ebp - 0x50]
push eax
call fcn.0040f07d
push dword [edi]
lea eax, [ebp - 0x50]
push eax
call fcn.0040f07d
mov eax, dword [ebp - 0x28]
push dword [eax + 0xc]
lea ecx, [ebp - 0x70]
call fcn.004040b1
mov byte [ebp - 4], 5
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x70]
call fcn.0041d707
pop ecx
pop ecx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.0040515f
mov byte [ebp - 4], 3
lea eax, [ebp - 0x54]
push eax
call fcn.0040838a
push dword [ebp - 0x28]
call fcn.00488e42
pop ecx
mov dword [ebp - 4], 2
jmp 0x41f406
mov byte [ebp - 4], 1
lea esi, [ebp - 0x40]
call fcn.0041cd27
inc dword [ebp - 0x1c]
jmp 0x41f2b2
push dword [ebp - 0x44]
call fcn.00488e42
pop ecx
mov dword [ebp - 4], ebx
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x48]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x11]
call fcn.0048bd13
ret