Function at 0x140058190
Capabilities:
Delete service

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor edi, edi
lea rdx, str.MBUpdatrService::UninstallMbUpdatrService
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rbp - 9], xmm1
mov word [rbp - 0x19], di
lea r8d, [rdi + 0x12]
lea rdx, str.MBAMUpdaterService
lea rcx, [rbp - 0x19]
call fcn.14000d3a0
nop
lea rcx, [rbp - 0x19]
call fcn.140067060
movzx ebx, al
lea rcx, [rbp - 0x19]
call fcn.14000c340
test bl, bl
jne 0x140058281
lea rdx, str.MBUpdatrService_is_not_installed.
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov al, 1
jmp 0x1400583fc
mov qword [rbp + 0x47], rdi
mov qword [rbp + 0x47], rdi
mov qword [rbp + 0x3f], rdi
mov qword [rbp + 0x3f], rdi
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp + 0x47], rax
test rax, rax
jne 0x1400582dc
lea rax, [rbp - 0x19]
mov qword [rbp + 7], rax
mov qword [rbp - 9], rdi
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x19], 0
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.OpenSCManager_Failed:
lea rcx, [rbp - 0x19]
call fcn.14000bc80
nop
jmp 0x1400583c1
mov r8d, 0x10024
lea rdx, str.MBAMUpdaterService
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp + 0x3f], rax
test rax, rax
jne 0x140058385
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp - 0x19]
cmp eax, 0x424
jne 0x14005834b
lea rax, [rbp - 0x19]
mov qword [rbp + 7], rax
mov qword [rbp - 9], rdi
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x19], 0
mov r8d, 0x23
lea rdx, str.OpenService___Service_not_installed
call fcn.14000bc80
nop
lea rcx, [rbp - 0x19]
call fcn.14004c6e0
xor bl, bl
jmp 0x1400583e6
mov qword [rbp + 7], rcx
mov edx, eax
lea rcx, [rbp + 0x1f]
call fcn.14004c2f0
nop
mov r8, rax
lea rdx, str.OpenService_Failed:
lea rcx, [rbp - 0x19]
call fcn.1400377a0
nop
mov rcx, rax
call fcn.14004c6e0
nop
lea rcx, [rbp + 0x1f]
call fcn.14000bc00
xor bl, bl
jmp 0x1400583e6
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov qword [rbp - 9], rdi
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x19], 0
mov r8d, reloc.WS2_32.dll_shutdown
lea rcx, [rbp - 0x19]
test eax, eax
lea rax, [rbp - 0x19]
mov qword [rbp + 7], rax
jne 0x1400583ce
lea rdx, str.DeleteSerivce_Failed:
call fcn.14000bc80
nop
lea rcx, [rbp - 0x19]
call fcn.14004c820
xor bl, bl
jmp 0x1400583e6
lea rdx, str.Updatr_Service_removed
call fcn.14000bc80
nop
lea rcx, [rbp - 0x19]
call fcn.14004c6e0
mov bl, 1
lea rcx, [rbp + 0x3f]
call fcn.1400baff0
nop
lea rcx, [rbp + 0x47]
call fcn.1400baff0
movzx eax, bl
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140282c10
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret