Function at 0x140003d80
Capabilities:
Stop service

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rax, qword [0x140036138]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x140003f2e
mov rsi, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov ecx, dword [rcx + 4]
test rdi, rdi
je 0x140003f71
cmp eax, ecx
jg 0x140003fb7
lea rcx, [0x140036e28]
lea rdx, str.Sending_stop_request...
call fcn.1400084d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x28]
mov rcx, rdi
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140003e7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x140003e7b
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004101
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140036e28]
lea rdx, str.Error_sending_stop_request.____lu_
mov r8d, eax
call fcn.1400086f0
mov rbx, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call rbx
mov rcx, rdi
call rbx
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003ff9
lea rcx, [0x140036e28]
lea rdx, str.Waiting_for_service_stop...
call fcn.1400084d0
lea rcx, str.MozillaMaintenance
mov edx, 0x1e
call fcn.140009730
mov esi, eax
lea rcx, [0x14002f7f8]
mov edx, 0x1e
call fcn.140009c10
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000403b
lea rcx, [0x140036e28]
lea rdx, str.Done_waiting_for_service_stop__last_service_state:__lu
mov r8d, esi
call fcn.1400084d0
xor edi, edi
cmp esi, 1
sete dil
jmp 0x140003fa0
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000407d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140036e28]
lea rdx, str.Could_not_open_service_manager.____lu_
mov r8d, eax
call fcn.1400086f0
jmp 0x140003f9e
cmp eax, ecx
jg 0x1400040bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140036e28]
lea rdx, str.Could_not_open_service.____lu_
mov r8d, eax
call fcn.1400086f0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edi, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000ac40
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140003dfb
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140003dfb
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140003eb1
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140003eb1
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140003f0d
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140003f0d
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140003f53
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140003f53
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140003f79
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140003f79
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140003e5f
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140003e5f