Function at 0x140046140
Capabilities:
Print debug messages

Disassembly:
push rbx
push rsi
sub rsp, 0x48
mov ebx, r8d
lea rcx, [0x140119e10]
mov rsi, rdx
mov r8d, 0x1a1
lea rdx, str.CCustomizeHuawei::OnStateChangedDevice
call fcn.140065460
cmp dword [0x1401aef44], 0
jne 0x140046340
cmp dword [0x1401aef40], 0
jne 0x140046340
cmp dword [0x1401aef48], 0
jne 0x140046340
mov qword [rsp + 0x68], rdi
call fcn.140046e10
mov rcx, rsi
test eax, eax
je 0x14004635d
call fcn.140017a40
test eax, eax
je 0x14004633b
mov qword [rsp + 0x60], rbp
lea rdx, str.CCustomizeHuawei::OnStateChangedDevice
mov ebp, dword [rsi + 0x2a8]
lea rcx, [0x140119e10]
mov r8d, 0x1b0
call fcn.140065460
mov eax, ebp
test ebp, ebp
jne 0x1400461e9
mov rcx, rsi
call fcn.14000efe0
mov ebp, dword [rsi + 0x2a8]
mov eax, ebp
xor edi, edi
test eax, eax
je 0x140046336
mov qword [rsp + 0x70], r12
mov r12d, 0x1ee8
mov qword [rsp + 0x78], r14
mov r14d, 0x3e40
mov qword [rsp + 0x40], r15
mov r15d, 0x3286
nop dword [rax]
nop dword [rax + rax]
lea rbx, [rsi + rdi*4]
mov r9d, edi
mov eax, dword [rbx + 0x2ac]
lea rdx, str.CCustomizeHuawei::OnStateChangedDevice
mov r8d, 0x1bc
mov dword [rsp + 0x20], eax
lea rcx, str._s__d_m_rgdwPinWidgetIds__d__d
call fcn.140065460
cmp dword [rbx + 0x2ac], 0x21
je 0x1400462b5
call fcn.14000b810
mov rbx, rax
test rax, rax
je 0x1400462a9
movzx ecx, word [rax + 0x340]
lea rdx, str.CCustomizeHuawei::OnStateChangedDevice
movzx r9d, word [rax + 0x342]
mov r8d, 0x1c8
mov dword [rsp + 0x20], ecx
lea rcx, str._s__d_SubVendorID_:_0x_04x__SubSystemID_:_0x_04x
call fcn.140065460
cmp word [rbx + 0x342], r12w
jne 0x1400462a9
movzx eax, word [rbx + 0x340]
cmp ax, r15w
je 0x1400462b5
cmp ax, r14w
je 0x1400462b5
inc edi
cmp edi, ebp
jb 0x140046220
jmp 0x140046327
mov r8d, 0x1d8
lea rdx, str.CCustomizeHuawei::OnStateChangedDevice
lea rcx, [0x140119e10]
call fcn.140065460
mov rcx, rsi
call fcn.140017a40
test eax, eax
je 0x140046347
lea rcx, [rsi + 0xc8]
call fcn.140010890
lea rdx, str.CCustomizeHuawei::OnStateChangedDevice
mov rbx, rax
test rax, rax
je 0x140046315
mov r8d, 0x1de
lea rcx, str._s__d_Set_UnMute
call fcn.140065460
mov r8, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [r8 + 0x10]
jmp 0x140046327
mov r8d, 0x1e3
lea rcx, str._s__d_pMainLineCtrl_NULL
call fcn.140065460
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x70]
mov r15, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x48
pop rsi
pop rbx
ret
mov r8d, 0x1e8
lea rdx, str.CCustomizeHuawei::OnStateChangedDevice
lea rcx, str._s__d_NOT_render
jmp 0x140046322
xor edi, edi
cmp dword [rsi + 0x1ac], 3
sete dil
call fcn.14000f8b0
mov r9, qword [rsi + 0x168]
lea rdx, str.CCustomizeHuawei::OnStateChangedDevice
mov dword [rsp + 0x30], eax
lea rcx, str._s__d_Endpoint_Id___s__dwNewState___d__IsHeadphones_____d__IsInHeadphonesMode__
mov dword [rsp + 0x28], edi
mov r8d, 0x1f3
mov dword [rsp + 0x20], ebx
call fcn.140065460
cmp ebx, 1
jne 0x14004633b
cmp dword [rsi + 0x1ac], 3
jne 0x14004633b
cmp dword [rsi + 0x170], 0
je 0x14004633b
mov r8d, 0x1f6
lea rdx, str.CCustomizeHuawei::OnStateChangedDevice
lea rcx, [0x140119e10]
call fcn.140065460
lea rcx, [rsi + 0xc8]
call fcn.140010890
lea rdx, str.CCustomizeHuawei::OnStateChangedDevice
mov rbx, rax
test rax, rax
je 0x14004640f
mov r8d, 0x1fa
lea rcx, str._s__d_Set_UnMute
call fcn.140065460
mov r8, qword [rbx]
xor edx, edx
mov rcx, rbx
mov rdi, qword [rsp + 0x68]
add rsp, 0x48
pop rsi
pop rbx
jmp qword [r8 + 0x10]
mov r8d, 0x1ff
lea rcx, str._s__d_pMainLineCtrl_NULL
mov rdi, qword [rsp + 0x68]
add rsp, 0x48
pop rsi
pop rbx
jmp fcn.140065460