Function at 0x10053621
Capabilities:
Delete service

Disassembly:
push 0x30
mov eax, 0x101692e7
call fcn.101673d5
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], ebx
test edi, edi
jne 0x1005367f
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10053660
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005389b
test byte [eax + 0x44], 1
jne 0x10053887
jmp 0x1005389b
push sym.PrintConfig.dll_Ordinal_276
push str.PrintNotify
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 1
test esi, esi
jne 0x1005370c
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x424
je 0x100536ea
test ebx, ebx
jle 0x100536bc
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x100536ea
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x100536e4
test byte [eax + 0x44], 1
je 0x100536e4
push ebx
push dword [eax + 0x3c]
mov edx, 0x1001a698
push dword [eax + 0x38]
push 0x1f
pop ecx
call fcn.10149ac2
push ebx
jmp 0x1005389c
mov eax, dword [0x101973c0]
mov ebx, 0x101973c0
cmp eax, ebx
je 0x10053780
test byte [eax + 0x44], 0x10
je 0x10053780
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x20
jmp 0x10053775
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x10053759
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1005372c
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005389b
test byte [eax + 0x44], 1
je 0x1005389b
push esi
push dword [eax + 0x3c]
mov edx, 0x1001a698
push dword [eax + 0x38]
push 0x21
jmp 0x10053895
mov eax, dword [0x101973c0]
mov ebx, 0x101973c0
cmp eax, ebx
je 0x10053780
test byte [eax + 0x44], 0x40
je 0x10053780
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x22
mov edx, 0x1001a698
pop ecx
call fcn.10149ac2
sub esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.10149ac2
mov ecx, str.print
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x30]
jne 0x100537a7
sub ecx, edx
sar ecx, 1
push ecx
push str.print
lea ecx, [ebp - 0x2c]
call fcn.10149ac2
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
call fcn.10149ac2
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.10149ac2
mov ecx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHostprint
mov dword [ebp - 0x18], 7
xor eax, eax
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x30]
jne 0x100537fd
sub ecx, edx
sar ecx, 1
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHostprint
lea ecx, [ebp - 0x2c]
call fcn.10149ac2
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 4
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.10149ac2
xor eax, eax
lea ecx, [ebp - 0x2c]
push eax
push 1
call fcn.10149ac2
mov eax, dword [0x101973c0]
cmp eax, ebx
je 0x1005385b
test byte [eax + 0x44], 0x40
je 0x1005385b
push dword [eax + 0x3c]
mov edx, 0x1001a698
push dword [eax + 0x38]
push 0x23
pop ecx
call fcn.10149ac2
cmp dword [ebp - 0x34], 0
je 0x1005386f
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x34], eax
test esi, esi
je 0x1005387a
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.10167384
ret
push esi
push dword [eax + 0x3c]
mov edx, 0x1001a698
push dword [eax + 0x38]
push 0x1e
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x30]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3