Function at 0x14001eeb0
Capabilities:
Get uefi variable
Set uefi variable

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, qword [0x14007b518]
lea rax, [0x14007b518]
xor esi, esi
mov qword [rbp + 0x17], rdi
cmp rdi, rax
je 0x14001f675
mov eax, dword [rdi + 0x2ac]
mov qword [rsp + 0xd0], rbx
mov rbx, qword [0x14007b520]
test eax, eax
je 0x14001f66d
nop dword [rax + rax]
cmp eax, 1
je 0x14001f66d
cmp eax, 0x100
jne 0x14001ef48
mov r9d, 1
mov byte [rbp - 0x21], sil
lea r8, [rbp - 0x21]
mov rcx, rdi
lea edx, [r9 + 0x64]
call fcn.14001f690
test eax, eax
jne 0x14001ef67
mov dword [rdi + 0x2ac], 2
cmp rdi, rbx
je 0x14001f66d
mov rdi, qword [rdi]
mov qword [rbp + 0x17], rdi
mov eax, dword [rdi + 0x2ac]
test eax, eax
jne 0x14001ef10
jmp 0x14001f66d
movzx ecx, byte [rbp - 0x21]
mov dword [rdi + 0x2ac], ecx
test cl, cl
jne 0x14001f66d
mov r9d, 8
mov qword [rbp + 0x1f], rsi
lea r8, [rbp + 0x1f]
mov rcx, rdi
lea edx, [r9 + 0x5e]
call fcn.14001f690
test eax, eax
je 0x14001f66d
mov rbx, qword [rbp + 0x1f]
cmp rbx, qword [0x14007b4e0]
je 0x14001f66d
mov rcx, qword [0x14007b4d8]
mov qword [rsp + 0xe0], r13
mov r13d, esi
mov qword [rsp + 0xa8], r14
xor r14d, r14d
mov qword [rsp + 0xa0], r15
mov r15d, r14d
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], r14
test rcx, rcx
je 0x14001eff2
lea edx, [r14 + 0x64]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [0x14007b4d8]
mov qword [rsp + 0xd8], r12
cmp word [rdi + 0x230], si
jbe 0x14001f1c2
xor r9d, r9d
mov qword [rsp + 0x30], rsi
lea rcx, [rdi + 0x18]
mov dword [rsp + 0x28], esi
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14001f1b7
movzx r12d, word [rdi + 0x230]
mov ecx, r12d
call fcn.140040704
mov rsi, rax
test rax, rax
je 0x14001f1ac
mov ecx, r13d
movzx ebx, r12w
mov dword [rbp - 0x29], ecx
mov edi, 8
movzx r13d, r12w
nop word [rax + rax]
test r14d, r14d
mov word [rbp - 0x25], 0xd05a
mov byte [rbp - 0x23], 0x89
setne al
add al, 0xf1
mov byte [rbp - 0x22], al
test r15, r15
je 0x14001f181
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.1400423d0
mov eax, 4
lea r8, [rbp - 0x25]
cmp r12w, ax
mov rdx, rbx
mov rcx, rsi
cmovb ax, r12w
movzx r9d, ax
call fcn.140006a90
mov rcx, qword [0x140079b70]
lea rax, [0x140079b70]
cmp rcx, rax
je 0x14001f0fd
test byte [rcx + 0x1c], 4
je 0x14001f0fd
mov rcx, qword [rcx + 0x10]
lea rdx, str.SetFeature_BLE_OOB_Part1
test r14d, r14d
lea rax, str.SetFeature_BLE_OOB_Part2
cmove rax, rdx
mov edx, 0xa
mov qword [rsp + 0x20], rax
call fcn.14003f070
mov r8d, r13d
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.HID.DLL_HidD_SetFeature]
test al, al
je 0x14001f17e
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.1400423d0
mov r8d, r13d
mov byte [rsi], 0x5a
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.HID.DLL_HidD_GetFeature]
test al, al
je 0x14001f17e
cmp r12w, 0xb
jb 0x14001f17e
cmp byte [rsi], 0x5a
jne 0x14001f17e
cmp byte [rsi + 1], 0xd0
jne 0x14001f17e
cmp byte [rsi + 2], 0x89
jne 0x14001f17e
test r14d, r14d
lea r8, [rsi + 3]
mov eax, r14d
mov edx, 0x10
cmovne rdx, rdi
mov r9, rdi
neg eax
lea rax, [rbp + 7]
sbb rcx, rcx
and ecx, edi
add rcx, rax
call fcn.140006a90
mov ecx, dword [rbp - 0x29]
inc ecx
mov dword [rbp - 0x29], ecx
jmp 0x14001f181
mov ecx, dword [rbp - 0x29]
inc r14d
cmp r14d, 2
jb 0x14001f070
xor r13d, r13d
cmp ecx, 2
setge r13b
mov rcx, rsi
call fcn.14004070c
mov r14, qword [rbp + 7]
mov rbx, qword [rbp + 0x1f]
mov rdi, qword [rbp + 0x17]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor esi, esi
mov r15, qword [rbp + 0xf]
mov rcx, qword [0x14007b4d8]
test rcx, rcx
je 0x14001f1cd
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
test r13d, r13d
je 0x14001f64d
call fcn.14003e990
test eax, eax
je 0x14001f64d
xor eax, eax
lea r8, [rbp - 0x19]
lea rdx, str.3C901928_0243_4778_8ADC_BC2D3C6E6B0E
mov qword [rbp - 0x19], rax
lea rcx, str.BluetoothPairingInfo
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
lea r9d, [rax + 0x19]
mov byte [rbp - 1], al
call qword [sym.imp.api_ms_win_core_firmware_l1_1_0.dll_GetFirmwareEnvironmentVariableW]
test eax, eax
je 0x14001f228
movsd xmm0, qword [rbp - 0x18]
movsd qword [rbp + 0x17], xmm0
cmp rbx, qword [rbp + 0x17]
je 0x14001f64d
lea rbx, [rdi + 0x18]
mov rdx, rbx
lea rcx, str.BLE_Pre_pairing
call fcn.14003f9e0
movzx eax, byte [rbp + 0x16]
lea r8, [rbp - 0x19]
movsd xmm0, qword [rbp + 0x1f]
lea rdx, str.3C901928_0243_4778_8ADC_BC2D3C6E6B0E
mov byte [rbp - 0x10], al
lea rcx, str.BluetoothPairingInfo
movzx eax, byte [rbp + 0x15]
mov r9d, 0x19
mov byte [rbp - 0xf], al
movzx eax, byte [rbp + 0x14]
mov byte [rbp - 0xe], al
movzx eax, byte [rbp + 0x13]
mov byte [rbp - 0xd], al
movzx eax, byte [rbp + 0x12]
mov byte [rbp - 0xc], al
movzx eax, byte [rbp + 0x11]
mov byte [rbp - 0xb], al
movzx eax, byte [rbp + 0x10]
mov byte [rbp - 0xa], al
movzx eax, byte [rbp + 0xe]
mov byte [rbp - 8], al
movzx eax, byte [rbp + 0xd]
mov byte [rbp - 7], al
movzx eax, byte [rbp + 0xc]
mov byte [rbp - 6], al
movzx eax, byte [rbp + 0xb]
mov byte [rbp - 5], al
movzx eax, byte [rbp + 0xa]
mov byte [rbp - 4], al
movzx eax, byte [rbp + 9]
mov byte [rbp - 3], al
movzx eax, byte [rbp + 8]
mov byte [rbp - 2], al
mov byte [rbp - 0x19], 0x81
movsd qword [rbp - 0x18], xmm0
mov byte [rbp - 9], r15b
mov byte [rbp - 1], r14b
mov dword [rsp + 0x20], 7
call qword [sym.imp.api_ms_win_core_firmware_l1_1_0.dll_SetFirmwareEnvironmentVariableExW]
test eax, eax
je 0x14001f648
movsd xmm0, qword [rbp + 0x1f]
movsd qword [0x14007b4e0], xmm0
call fcn.1400186f0
mov ecx, eax
call fcn.14003ea70
test eax, eax
je 0x14001f648
mov eax, esi
mov dword [rbp + 0x1f], esi
mov dword [rbp + 0x17], eax
lea r12, str.SetFeature_Set_pairing_message
test eax, eax
jne 0x14001f648
mov rcx, qword [0x14007b4d8]
test rcx, rcx
je 0x14001f32e
lea edx, [rax + 0x64]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp word [rdi + 0x230], 0
jbe 0x14001f417
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov edx, 0xc0000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001f415
movzx r14d, word [rdi + 0x230]
mov ecx, r14d
mov r15d, r14d
call fcn.140040704
mov rbx, rax
test rax, rax
je 0x14001f408
mov dword [rbp - 0x25], 0xf589d05a
test rsi, rsi
je 0x14001f400
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.1400423d0
mov eax, 4
lea r8, [rbp - 0x25]
cmp r14w, ax
mov edx, r14d
mov rcx, rbx
cmovb ax, r14w
movzx r9d, ax
call fcn.140006a90
mov rcx, qword [0x140079b70]
lea rax, [0x140079b70]
cmp rcx, rax
je 0x14001f3f0
test byte [rcx + 0x1c], 4
je 0x14001f3f0
mov rcx, qword [rcx + 0x10]
mov edx, 0xa
mov qword [rsp + 0x20], r12
call fcn.14003f070
movzx r8d, r14w
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.HID.DLL_HidD_SetFeature]
mov rcx, rbx
call fcn.14004070c
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rbx, [rdi + 0x18]
xor esi, esi
mov rcx, qword [0x14007b4d8]
test rcx, rcx
je 0x14001f429
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
mov rcx, qword [0x14007b298]
test rcx, rcx
je 0x14001f62b
mov edx, 0x64
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14001f62b
mov rcx, qword [0x14007b4d8]
xor r12b, r12b
mov byte [rbp - 0x21], r12b
mov r13d, esi
test rcx, rcx
je 0x14001f470
mov edx, 0x64
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp word [rdi + 0x230], 0
jbe 0x14001f5bc
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov edx, 0xc0000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14001f5bc
movzx esi, word [rdi + 0x230]
mov ecx, esi
mov r15d, esi
call fcn.140040704
mov rbx, rax
test rax, rax
je 0x14001f5b1
mov dword [rbp - 0x29], 0xfe89d05a
test r14, r14
je 0x14001f5a9
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.1400423d0
mov eax, 4
lea r8, [rbp - 0x29]
cmp si, ax
mov edx, esi
mov rcx, rbx
cmovb ax, si
movzx r9d, ax
call fcn.140006a90
mov rcx, qword [0x140079b70]
lea rax, [0x140079b70]
cmp rcx, rax
je 0x14001f53c
test byte [rcx + 0x1c], 4
je 0x14001f53c
mov rcx, qword [rcx + 0x10]
lea rax, str.SetFeature_Get_pairing_message
mov edx, 0xa
mov qword [rsp + 0x20], rax
call fcn.14003f070
movzx r12d, si
mov rdx, rbx
mov r8d, r12d
mov rcx, r14
call qword [sym.imp.HID.DLL_HidD_SetFeature]
test al, al
je 0x14001f5a4
mov r8, r15
xor edx, edx
mov rcx, rbx
call fcn.1400423d0
mov r8d, r12d
mov byte [rbx], 0x5a
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.HID.DLL_HidD_GetFeature]
test al, al
je 0x14001f5a4
cmp si, 4
jb 0x14001f5a4
cmp byte [rbx], 0x5a
jne 0x14001f5a4
cmp byte [rbx + 1], 0xd0
jne 0x14001f5a4
cmp byte [rbx + 2], 0x89
jne 0x14001f5a4
movzx ecx, byte [rbx + 3]
lea eax, [rcx - 4]
cmp al, 1
ja 0x14001f5a4
movzx r12d, cl
mov r13d, 1
jmp 0x14001f5a9
movzx r12d, byte [rbp - 0x21]
mov rcx, rbx
call fcn.14004070c
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor esi, esi
mov rcx, qword [0x14007b4d8]
test rcx, rcx
je 0x14001f5ce
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
test r13d, r13d
je 0x14001f624
cmp r12b, 4
jne 0x14001f624
mov rcx, qword [0x140079b70]
lea rax, [0x140079b70]
cmp rcx, rax
je 0x14001f60c
test byte [rcx + 0x1c], r12b
je 0x14001f60c
mov rcx, qword [rcx + 0x10]
lea rax, str.BLE_Get_pop_up_message
mov edx, 0xb
mov qword [rsp + 0x20], rax
call fcn.14003f070
lea rcx, str.BLE_Get_pop_up_message
call fcn.14003fe60
mov eax, dword [rbp + 0x17]
lea r12, str.SetFeature_Set_pairing_message
jmp 0x14001f633
lea r12, str.SetFeature_Set_pairing_message
mov eax, 1
mov dword [rbp + 0x17], eax
mov ecx, dword [rbp + 0x1f]
lea rbx, [rdi + 0x18]
inc ecx
mov dword [rbp + 0x1f], ecx
cmp ecx, 3
jb 0x14001f311
mov esi, 1
mov r12, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xe0]
mov r14, qword [rsp + 0xa8]
mov r15, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xd0]
mov eax, esi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret