Function at 0x10060ca8
Capabilities:
Delete service

Disassembly:
push 0x2c
mov eax, 0x1018bab7
call fcn.10188e66
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], ebx
test edi, edi
je 0x10060e86
push sym.PrintConfig.dll_Ordinal_276
push str.PrintNotify
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 1
test esi, esi
jne 0x10060d60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x424
je 0x10060d3e
test ebx, ebx
jle 0x10060d10
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x10060d3e
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x10060d38
test byte [eax + 0x44], 1
je 0x10060d38
push ebx
push dword [eax + 0x3c]
mov edx, 0x1001ef88
push dword [eax + 0x38]
push 0x21
pop ecx
call fcn.1004a069
push ebx
jmp 0x10060ec2
mov eax, dword [0x101c33f0]
mov ebx, 0x101c33f0
cmp eax, ebx
je 0x10060dd4
test byte [eax + 0x44], 0x10
je 0x10060dd4
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x22
jmp 0x10060dc9
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x10060dad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10060d80
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x10060ec1
test byte [eax + 0x44], 1
je 0x10060ec1
push esi
push dword [eax + 0x3c]
mov edx, 0x1001ef88
push dword [eax + 0x38]
push 0x23
jmp 0x10060ebb
mov eax, dword [0x101c33f0]
mov ebx, 0x101c33f0
cmp eax, ebx
je 0x10060dd4
test byte [eax + 0x44], 0x40
je 0x10060dd4
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x24
mov edx, 0x1001ef88
pop ecx
call fcn.1004a045
sub esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.1005fcfe
push str.print
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1005236c
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
call fcn.1006abff
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10052803
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHostprint
lea ecx, [ebp - 0x28]
call fcn.1005236c
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 4
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1006aab6
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10052803
mov eax, dword [0x101c33f0]
cmp eax, ebx
je 0x10060e5b
test byte [eax + 0x44], 0x40
je 0x10060e5b
push dword [eax + 0x3c]
mov edx, 0x1001ef88
push dword [eax + 0x38]
push 0x25
pop ecx
call fcn.1004a045
cmp dword [ebp - 0x30], 0
je 0x10060e6e
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x30], 0
test esi, esi
je 0x10060e79
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.10188e03
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10060e9b
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x10060ec1
test byte [eax + 0x44], 1
je 0x10060ec1
push esi
push dword [eax + 0x3c]
mov edx, 0x1001ef88
push dword [eax + 0x38]
push 0x20
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x2c]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3