Function at 0x140003f20
Capabilities:
Stop service

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rax, qword [0x140033138]
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 0x1400040ce
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 [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov ecx, dword [rcx + 4]
test rdi, rdi
je 0x140004111
cmp eax, ecx
jg 0x140004157
lea rcx, [0x140033c68]
lea rdx, str.Sending_stop_request...
call fcn.140008610
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 0x14000401b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x14000401b
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400042a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140033c68]
lea rdx, str.Error_sending_stop_request.____lu_
mov r8d, eax
call fcn.140008690
mov rbx, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call rbx
mov rcx, rdi
call rbx
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004199
lea rcx, [0x140033c68]
lea rdx, str.Waiting_for_service_stop...
call fcn.140008610
lea rcx, str.MozillaMaintenance
mov edx, 0x1e
call fcn.140009720
mov esi, eax
lea rcx, [0x14002d0b0]
mov edx, 0x1e
call fcn.140009be0
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400041db
lea rcx, [0x140033c68]
lea rdx, str.Done_waiting_for_service_stop__last_service_state:__lu
mov r8d, esi
call fcn.140008610
xor edi, edi
cmp esi, 1
sete dil
jmp 0x140004140
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000421d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140033c68]
lea rdx, str.Could_not_open_service_manager.____lu_
mov r8d, eax
call fcn.140008690
jmp 0x14000413e
cmp eax, ecx
jg 0x14000425f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140033c68]
lea rdx, str.Could_not_open_service.____lu_
mov r8d, eax
call fcn.140008690
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edi, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000acd0
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x140003f9b
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x140003f9b
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x140004051
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x140004051
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x1400040ad
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x1400040ad
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x1400040f3
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x1400040f3
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x140004119
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x140004119
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x140003fff
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x140003fff