Function at 0x4201ff
Capabilities:
Enumerate services

Disassembly:
push 0x64
mov eax, 0x4b4a81
call fcn.0048ccde
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 0x42042b
push dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
lea esi, [ebp - 0x48]
call fcn.004217cd
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 0x420415
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
push eax
call fcn.00489dc2
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 0x420409
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 0x420409
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 0x420401
push dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
lea esi, [ebp - 0x40]
call fcn.004217cd
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 0x4203f5
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
push eax
call fcn.00489dc2
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 0x4203d4
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
cmp eax, 2
je 0x420342
cmp eax, ebx
je 0x420342
cmp eax, 1
jne 0x4203d4
lea eax, [ebp - 0x54]
push eax
call fcn.0041e642
mov byte [ebp - 4], 4
mov dword [ebp - 0x54], 1
push str.HKEY_LOCAL_MACHINE
lea ecx, [ebp - 0x50]
call fcn.0040656e
mov esi, 0x4c5c2c
push esi
lea eax, [ebp - 0x50]
push eax
call fcn.0040fe10
push str.SYSTEMCurrentControlSetServices
lea eax, [ebp - 0x50]
push eax
call fcn.0040fe10
push esi
lea eax, [ebp - 0x50]
push eax
call fcn.0040fe10
push dword [edi]
lea eax, [ebp - 0x50]
push eax
call fcn.0040fe10
mov eax, dword [ebp - 0x28]
push dword [eax + 0xc]
lea ecx, [ebp - 0x70]
call fcn.004040cf
mov byte [ebp - 4], 5
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x70]
call fcn.0041e6f6
pop ecx
pop ecx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.00405617
mov byte [ebp - 4], 3
lea eax, [ebp - 0x54]
push eax
call fcn.00408e83
push dword [ebp - 0x28]
call fcn.00489ca5
pop ecx
mov dword [ebp - 4], 2
jmp 0x4203f5
mov byte [ebp - 4], 1
lea esi, [ebp - 0x40]
call fcn.0041dd16
inc dword [ebp - 0x1c]
jmp 0x4202a1
push dword [ebp - 0x44]
call fcn.00489ca5
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.0048cd83
ret