Function at 0x140056060
Capabilities:
Query or enumerate registry value
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x1400d0128]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor ebx, ebx
movzx edi, dl
cmp byte [rcx + 0x20], bl
je 0x140056171
lea r9, str.common
mov r8d, 0x7d1
lea rdx, [rbp + 7]
call fcn.140055550
cmp byte [rbp + 0x27], bl
je 0x140056171
cmp qword [rbp + 0x1f], 8
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 7]
cmovae rdx, qword [rbp + 7]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 0x10]
lea r8, str.NoRestrictBDAppsOnUpdate
mov qword [rsp + 0x20], rbx
mov rcx, 0xffffffff80000002
mov dword [rbp - 0x21], ebx
mov dword [rbp - 0x29], 4
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x14005611d
mov dword [rbp - 0x19], eax
lea rax, section..data
mov qword [rbp - 0x11], rax
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm0
mov rcx, qword [rbp - 0x11]
mov eax, dword [rbp - 0x19]
jmp 0x140056126
mov eax, ebx
lea rcx, [0x1400d0020]
mov rdx, qword [rcx + 8]
mov r8, qword [0x1400d0028]
cmp rdx, r8
jne 0x14005613f
test eax, eax
jne 0x14005613f
mov ecx, dword [rbp - 0x21]
jmp 0x140056146
mov ecx, ebx
cmp rdx, r8
jne 0x140056163
test eax, eax
jne 0x140056163
test ecx, ecx
je 0x140056163
cmp byte [rbp + 0x27], bl
je 0x14005615c
lea rcx, [rbp + 7]
call fcn.140004530
xor al, al
jmp 0x140056269
cmp byte [rbp + 0x27], bl
je 0x140056171
lea rcx, [rbp + 7]
call fcn.140004530
lea rax, [rbp - 0x29]
mov qword [rbp - 0x29], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str..DEFAULTSoftwareSetID_bd.update.configure
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400561b0
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400561b0
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
je 0x140056266
test bl, bl
je 0x140056266
mov r9d, 0xf003f
lea rcx, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
call fcn.140058a00
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14005623b
mov r8d, 4
lea rdx, str.UPDATESRV
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140056201
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005622c
lea rdx, [rbp + 0x2f]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14005623f
call qword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
test eax, eax
je 0x140056247
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14005623b
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
jmp 0x140056266
movups xmm0, xmmword [rbp + 0x2f]
movups xmmword [rbp - 0x19], xmm0
cmp dword [rbp - 0x15], 4
mov rcx, rdi
sete bl
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140056266
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, bl
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14006a600
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret