Function at 0x140047930
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 [0x14012d228]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor ebx, ebx
movzx edi, dl
cmp byte [rcx + 0x20], bl
je 0x140047a41
lea r9, str.common
mov r8d, 0x7d1
lea rdx, [rbp + 7]
call fcn.140047340
cmp byte [rbp + 0x27], bl
je 0x140047a41
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 0x1400479ed
mov dword [rbp - 0x19], eax
lea rax, [0x14012f078]
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 0x1400479f6
mov eax, ebx
lea rcx, [0x14012f050]
mov rdx, qword [rcx + 8]
mov r8, qword [0x14012f058]
cmp rdx, r8
jne 0x140047a0f
test eax, eax
jne 0x140047a0f
mov ecx, dword [rbp - 0x21]
jmp 0x140047a16
mov ecx, ebx
cmp rdx, r8
jne 0x140047a33
test eax, eax
jne 0x140047a33
test ecx, ecx
je 0x140047a33
cmp byte [rbp + 0x27], bl
je 0x140047a2c
lea rcx, [rbp + 7]
call fcn.1400040a0
xor al, al
jmp 0x140047b39
cmp byte [rbp + 0x27], bl
je 0x140047a41
lea rcx, [rbp + 7]
call fcn.1400040a0
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 0x140047a80
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140047a80
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
je 0x140047b36
test bl, bl
je 0x140047b36
mov r9d, 0xf003f
lea rcx, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
call fcn.140048410
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140047b0b
mov r8d, 4
lea rdx, str.UPDATESRV
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140047ad1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140047afc
lea rdx, [rbp + 0x2f]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140047b0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
test eax, eax
je 0x140047b17
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140047b0b
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
jmp 0x140047b36
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 0x140047b36
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, bl
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14005aef0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret