Function at 0x14011be50
Capabilities:
Query service status

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x260
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r14, rdx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov byte [rdx], r15b
mov esi, 1
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
lea r8d, [r15 + 8]
lea rdx, str.wuauserv
lea rcx, [rsp + 0x48]
call fcn.1400c3720
nop
mov dword [rsp + 0x30], esi
mov dword [rbp + 0x30], 0x114
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp + 0x40], 2
je 0x14011beef
lea edi, [rsi - 0xc]
jmp 0x14011bf9b
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14011bf96
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov r8d, 4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14011bf71
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov rcx, rdi
test eax, eax
jne 0x14011bf56
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14011bf96
mov esi, dword [rbp - 0x6c]
mov dword [rsp + 0x38], esi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, r15d
jmp 0x14011bf85
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, 0xffffffe5
mov dword [rsp + 0x30], edi
test edi, edi
js 0x14011bf9f
cmp esi, 4
jne 0x14011bf9f
mov bl, 1
jmp 0x14011bfa1
mov edi, 0xffffffe5
mov dword [rsp + 0x30], edi
xor bl, bl
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14011bfbe
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.1400c3a10
test bl, bl
je 0x14011bfcb
mov byte [r14], 1
jmp 0x14011c4b5
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.1400cad20
mov rbx, rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.1400cad20
nop
mov r8, rax
lea rdx, str._WUA__GetAgentState__CServiceUtils::GetServiceState_finished_with_rc_
lea rcx, [rbp - 0x30]
call fcn.1400cac40
nop
lea r8, str.__and_service_state_
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400cacb0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400caa50
mov rsi, rax
call fcn.1400dfb30
mov rbx, rax
lea r12, [0x140298b00]
mov qword [rbp - 0x70], r12
mov rcx, r12
call fcn.14016e8f8
test eax, eax
je 0x14011c04d
mov ecx, eax
call fcn.14016e464
mov byte [rbp - 0x68], 1
cmp qword [rbx + 0x48], 0
je 0x14011c08e
mov dword [rsp + 0x38], 1
mov rdi, qword [rbx + 0x48]
test rdi, rdi
jne 0x14011c06f
call fcn.14016e304
int3
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140005fb0]
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call rbx
jmp 0x14011c09a
mov rdx, rsi
mov rcx, rbx
call fcn.1400db0e0
nop
mov rcx, r12
call fcn.14016e91c
test eax, eax
je 0x14011c0ae
mov ecx, eax
call fcn.14016e464
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14011c0cb
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.1400c3a10
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
mov r8, qword [rbp - 0x38]
cmp r8, 8
jb 0x14011c0f9
inc r8
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.1400c3a10
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
mov r8, qword [rbp - 0x18]
cmp r8, 8
jb 0x14011c124
inc r8
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.1400c3a10
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r15
mov word [rbp - 0x30], r15w
mov r8, qword [rbp + 8]
cmp r8, 8
jb 0x14011c14f
inc r8
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x10]
call fcn.1400c3a10
mov qword [rbp + 8], 7
mov qword [rbp], r15
mov word [rbp - 0x10], r15w
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x14011c17c
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.1400c3a10
mov qword [rbp + 0x28], 7
mov qword [rbp + 0x20], r15
mov word [rbp + 0x10], r15w
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
mov r8d, 5
lea rdx, [0x1402396b0]
lea rcx, [rsp + 0x48]
call fcn.1400c3720
nop
mov dword [rsp + 0x30], 2
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r15
mov word [rbp - 0x70], r15w
mov r8d, 0x2a
lea rdx, str.SYSTEMCurrentControlSetServiceswuauserv
lea rcx, [rbp - 0x70]
call fcn.1400c3720
nop
mov dword [rsp + 0x30], 6
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r15
mov word [rsp + 0x70], r15w
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x20], 0
mov r9d, 9
lea r8, [rbp - 0x70]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.140144600
test eax, eax
js 0x14011c2a8
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140144920
test eax, eax
js 0x14011c2a8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14011c258
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], r15
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x14011c274
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400c3a10
mov edi, r15d
mov dword [rsp + 0x30], r15d
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rcx, qword [rbp + 0x10]
mov r9d, 1
lea r8, [0x140239618]
mov rdx, qword [rbp + 0x20]
call fcn.1400c9bb0
test eax, eax
je 0x14011c2e0
mov bl, 1
jmp 0x14011c2e2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14011c2bd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], r15
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x14011c2d9
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400c3a10
or edi, 0xffffffff
mov dword [rsp + 0x30], edi
xor bl, bl
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x14011c2fc
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.1400c3a10
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r15
mov word [rbp - 0x70], r15w
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14011c32a
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.1400c3a10
test bl, bl
je 0x14011c332
mov byte [r14], 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.1400cad20
nop
mov r8, rax
lea rdx, str._WUA__GetAgentState__COesisRegKey::RegUtil_ReadStringFromRegistry_finished_with_rc_
lea rcx, [rbp - 0x50]
call fcn.1400cac40
nop
lea r8, str.__and_service_start_type_
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.1400cacb0
nop
lea r8, [rbp + 0x10]
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.1400fdb80
mov r14, rax
call fcn.1400dfb30
mov rbx, rax
mov qword [rbp - 0x70], r12
mov rcx, r12
call fcn.14016e8f8
test eax, eax
je 0x14011c39c
mov ecx, eax
call fcn.14016e464
mov byte [rbp - 0x68], 1
cmp qword [rbx + 0x48], 0
je 0x14011c3dd
mov dword [rsp + 0x38], 1
mov rsi, qword [rbx + 0x48]
test rsi, rsi
jne 0x14011c3be
call fcn.14016e304
int3
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140005fb0]
lea r8, [rsp + 0x38]
mov rdx, r14
mov rcx, rsi
call rbx
jmp 0x14011c3e9
mov rdx, r14
mov rcx, rbx
call fcn.1400db0e0
nop
mov rcx, r12
call fcn.14016e91c
test eax, eax
je 0x14011c3fd
mov ecx, eax
call fcn.14016e464
nop
mov r8, qword [rbp + 8]
cmp r8, 8
jb 0x14011c417
inc r8
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x10]
call fcn.1400c3a10
mov qword [rbp + 8], 7
mov qword [rbp], r15
mov word [rbp - 0x10], r15w
mov r8, qword [rbp - 0x18]
cmp r8, 8
jb 0x14011c442
inc r8
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.1400c3a10
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r15
mov word [rbp - 0x30], r15w
mov r8, qword [rbp - 0x38]
cmp r8, 8
jb 0x14011c46d
inc r8
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.1400c3a10
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x14011c49b
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.1400c3a10
nop
mov r8, qword [rbp + 0x28]
cmp r8, 8
jb 0x14011c4b5
inc r8
mov rdx, qword [rbp + 0x10]
lea rcx, [rbp + 0x10]
call fcn.1400c3a10
mov eax, edi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14016ce60
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret