Function at 0x140042580
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
lea rdx, str.CCustomizeHP::AECustomize
mov rbx, rcx
mov r8d, 0x15a9
lea rcx, [0x1400e9c70]
mov rsi, r9
call fcn.140061d00
test rbx, rbx
jne 0x1400425de
mov r8d, 0x15aa
lea rdx, str.CCustomizeHP::AECustomize
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140061d00
test rdi, rdi
jne 0x1400425eb
mov r8d, 0x15ab
jmp 0x1400425bc
test rsi, rsi
jne 0x1400425f8
mov r8d, 0x15ac
jmp 0x1400425bc
mov r8d, dword [0x140169dd8]
test r8d, r8d
je 0x140042729
cmp dword [0x140169da4], 0
jne 0x140042622
mov rax, qword [0x1401631e0]
test byte [rax + 0x1c], 1
je 0x140042729
mov r9d, dword [rdi + 0xc]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 0xd
lea rcx, str._s__d_m_HostAppPolicy.GlobalOutputMuteLED_UseAudioModule_d
and r9d, 1
mov r8d, 0x15c1
call fcn.140061d00
mov r9d, dword [rdi + 0xc]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 0xe
lea rcx, str._s__d_m_HostAppPolicy.GlobalInputMuteLED_UseAudioModule_d
and r9d, 1
mov r8d, 0x15c2
call fcn.140061d00
mov r9d, dword [rdi + 0xc]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 0xf
lea rcx, str._s__d_m_HostAppPolicy.MuteNewDeviceWhenGlobalOutputIsMute_d
and r9d, 1
mov r8d, 0x15c3
call fcn.140061d00
movzx r9d, word [rdi + 0xe]
lea rdx, str.CCustomizeHP::AECustomize
and r9d, 1
lea rcx, str._s__d_m_HostAppPolicy.MuteNewDeviceWhenGlobalInputIsMute_d
mov r8d, 0x15c4
call fcn.140061d00
mov r9d, dword [rdi + 0xc]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 0x11
lea rcx, str._s__d_m_HostAppPolicy.MuteLedBehaviorTypeValue1_d
and r9d, 1
mov r8d, 0x15c5
call fcn.140061d00
mov r9d, dword [rdi + 0xc]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 0x12
lea rcx, str._s__d_m_HostAppPolicy.MuteLedBehaviorTypeValue2_d
and r9d, 1
mov r8d, 0x15c6
call fcn.140061d00
mov r9d, dword [rdi + 0xc]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 0x13
lea rcx, str._s__d_m_HostAppPolicy.MuteLedBehaviorTypeValue4_d
and r9d, 1
mov r8d, 0x15c7
call fcn.140061d00
mov r8d, dword [0x140169dd8]
mov edx, dword [rdi + 0xc]
mov ecx, edx
mov eax, edx
shr ecx, 0x13
shr eax, 0x12
and ecx, 1
and eax, 1
shr edx, 0x11
and edx, 1
lea ecx, [rax + rcx*2]
lea eax, [rdx + rcx*2]
test eax, eax
je 0x140042853
mov byte [rbx + 0x249], al
mov eax, dword [rdi + 0xc]
shr eax, 0xd
xor eax, dword [rbx + 0x248]
and eax, 1
xor dword [rbx + 0x248], eax
mov eax, dword [rbx + 0x248]
mov ecx, dword [rdi + 0xc]
shr ecx, 0xd
xor ecx, eax
and ecx, 2
xor ecx, eax
mov dword [rbx + 0x248], ecx
mov eax, dword [rdi + 0xc]
and eax, 0x6000
neg eax
mov eax, dword [rsi]
sbb ecx, ecx
btr eax, 0x1b
and ecx, 0x8000000
or ecx, eax
mov dword [rsi], ecx
test r8d, r8d
je 0x140042853
cmp dword [0x140169da4], 0
jne 0x1400427c3
mov rax, qword [0x1401631e0]
test byte [rax + 0x1c], 1
je 0x140042853
movzx r9d, byte [rbx + 0x249]
lea rdx, str.CCustomizeHP::AECustomize
mov r8d, 0x15d7
lea rcx, str._s__d_pGlobalPolicy__MuteLedBehaviorType_d
call fcn.140061d00
mov r9d, dword [rbx + 0x248]
lea rdx, str.CCustomizeHP::AECustomize
and r9d, 1
lea rcx, str._s__d_pGlobalPolicy__MuteLED_AudioOutputDev_d
mov r8d, 0x15d8
call fcn.140061d00
mov r9d, dword [rbx + 0x248]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 1
lea rcx, str._s__d_pGlobalPolicy__MuteLED_AudioInputDev_d
and r9d, 1
mov r8d, 0x15d9
call fcn.140061d00
mov r9d, dword [rsi]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 0x1b
lea rcx, str._s__d_pAEConfig__SetMutedLedByAudioModule_V1_d
and r9d, 1
mov r8d, 0x15da
call fcn.140061d00
test byte [rdi + 0xc], 2
je 0x14004287e
mov r8d, 0x15e1
lea rdx, str.CCustomizeHP::AECustomize
lea rcx, str._s__d_Hard_coding_HP_ACX_projects_as_BNB
call fcn.140061d00
mov dword [0x140169d8c], 0x9c47
jmp 0x140042883
call fcn.140059170
xor ecx, ecx
test dword [rbx + 0x98], 0x100
jne 0x1400428a4
cmp dword [rbx + 0xb0], ecx
jl 0x1400428a4
test dword [rdi + 0xc], 0x8000
mov edx, ecx
je 0x1400428a9
mov edx, 0x20000000
mov eax, dword [rsi]
btr eax, 0x1d
or eax, edx
mov dword [rsi], eax
test dword [rbx + 0x98], 0x100
jne 0x1400428d1
test dword [rbx + 0x38], 0x40000
jne 0x1400428d1
test dword [rdi + 0xc], 0x10000
je 0x1400428d6
mov ecx, 0x40000000
mov rbx, qword [rsp + 0x30]
btr eax, 0x1e
or eax, ecx
mov dword [rsi], eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret