Function at 0x422d8c
Capabilities:
Delete service
Terminate process

Disassembly:
push 0x40
mov eax, 0x4c0457
call fcn.004a9c3b
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push dword [0x4f4ad0]
xor esi, esi
push str.ScmDirectStop:__s:_browsing_virt_services_under_the_real_Services_key
push eax
mov dword [ebp - 0x18], esi
call fcn.00462050
add esp, 0xc
call fcn.00421cf5
pop ecx
lea eax, [ebp - 0x4c]
push eax
call fcn.00425647
push esi
push 1
push 1
lea eax, [ebp - 0x4c]
push eax
push ecx
mov dword [ebp - 4], esi
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.SystemCurrentControlSetServices
call fcn.00423416
push SysReAllocStringLen
call fcn.00463b90
add esp, 0x18
cmp eax, esi
jne 0x422e29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
push str.ScmDirectStop:_failed_listing_Services_regkey__LE_d
push ecx
call fcn.00462050
add esp, 0xc
call fcn.00421cf5
pop ecx
inc esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4c]
push eax
call fcn.004238ed
mov eax, esi
jmp 0x4230d7
mov esi, dword [ebp - 0x40]
cmp esi, dword [ebp - 0x3c]
jbe 0x422e36
call fcn.004a4f01
mov eax, dword [ebp - 0x4c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x3c]
cmp dword [ebp - 0x40], esi
jbe 0x422e52
call fcn.004a4f01
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x30], esi
lea edi, [ebp - 0x34]
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.00423944
test al, al
je 0x4230b9
call fcn.0043bff4
push eax
lea ecx, [ebp - 0x14]
call fcn.00423a92
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x4f4ad0
call fcn.00423401
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 2
call fcn.00423a92
mov byte [ebp - 4], 1
call fcn.00421c1e
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x42301d
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [ebp - 0x14]
push str.ScmDirectStop:_found_virtual_service_related_to_this_app:__s
push eax
call fcn.00462050
add esp, 0xc
call fcn.00421cf5
pop ecx
cmp dword [ebp - 0x18], edi
jne 0x422ef2
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x423039
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [ebp - 0x14]
push str.ScmDirectStop:_stopping_virtual_service__s
push eax
call fcn.00462050
add esp, 0xc
call fcn.00421cf5
pop ecx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0046a7f0
pop ecx
pop ecx
test eax, eax
jne 0x422f3d
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
push str.ScmDirectStop:_DoStopSvc_failed__Proceeding_anyways._LE_d
push ecx
call fcn.00462050
add esp, 0xc
call fcn.00421cf5
pop ecx
cmp dword [ebp + 8], edi
je 0x42301d
push 0x10020
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
jne 0x422f76
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
push str.ScmDirectStop:_OpenService_failed__LE_d
push ecx
call fcn.00462050
add esp, 0xc
jmp 0x422fe3
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [ebp - 0x14]
push str.ScmDirectStop:_DeleteService__s_
push eax
call fcn.00462050
add esp, 0xc
call fcn.00421cf5
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x42301d
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
push str.ScmDirectStop:_DeleteService_failed__LE_d_._Forcing_Registry_removal.
push ecx
call fcn.00462050
add esp, 0xc
call fcn.00421cf5
pop ecx
lea eax, [ebp - 0x14]
call fcn.0042355c
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
jne 0x422feb
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str._ScmDirectStop:_PANIC_check__SvcName_regKey_empty__
call fcn.00423416
call fcn.00421cf5
pop ecx
jmp 0x42301d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push str.SystemCurrentControlSetServices_
push eax
call fcn.004236ba
add esp, 0xc
mov byte [ebp - 4], 3
push dword [eax]
push SysReAllocStringLen
call fcn.004635c0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0042101a
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
lea esi, [ebp - 0x2c]
call fcn.00423919
jmp 0x422e45
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.00460c10
test eax, eax
jne 0x423091
call ebx
cmp eax, 5
jne 0x423091
call fcn.00460c60
test eax, eax
jne 0x42308a
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
push str.ScmDirectStop:_FAILED_elevating_process_for_opening_SCM:_LE_d
push ecx
call fcn.00462050
add esp, 0xc
call fcn.00421cf5
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
push 0x11
pop esi
jmp 0x422e15
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
push str.ScmDirectStop:_FAILED_opening_SCM:_LE_d
push ecx
call fcn.00462050
add esp, 0xc
call fcn.00421cf5
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x423077
cmp dword [ebp - 0x18], 0
je 0x4230c8
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4c]
push eax
call fcn.004238ed
xor eax, eax
call fcn.004a9d13
ret