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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x1400321e8]
xor rax, rsp
mov qword [rbp + 0x230], rax
xor edi, edi
mov rbx, rcx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000126d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140001412
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeSystemEnvironmentPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400012c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140001412
mov r9d, 0xa
lea r8, [rsp + 0x48]
lea rdx, str.A5CE328C_769D_11E9_94C7_8C85906BAC48
lea rcx, str.BootOrder
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
cmp dword [rbx + 8], edi
jne 0x140001337
test eax, eax
je 0x140001337
movzx r8d, word [rsp + 0x48]
lea rdx, str.Boot_04X
lea rcx, [rbp + 0x160]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, 0x1f4
lea r8, [rsp + 0x60]
lea rdx, str.A5CE328C_769D_11E9_94C7_8C85906BAC48
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
test eax, eax
jne 0x1400013ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140001412
lea r8, [0x140020b08]
mov dword [rsp + 0x60], 1
mov edx, 0x14
mov word [rsp + 0x64], di
lea rcx, [rsp + 0x66]
call fcn.14000aee8
movzx eax, word [rsp + 0x64]
lea rcx, [rsp + 0x7a]
movups xmm0, xmmword [rbx + 0x224]
add rcx, rax
mov eax, dword [rbx + 0x220]
mov dword [rcx + 4], eax
mov dword [rcx], 0x2a0104
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov word [rcx + 0x28], 0x202
movups xmmword [rcx + 0x18], xmm0
movzx eax, word [rsp + 0x64]
add ax, 0x2a
mov word [rsp + 0x64], ax
movzx eax, ax
mov dword [rsp + rax + 0x7a], 0x4ff7f
add word [rsp + 0x64], 4
mov eax, 0x80
lea r8, [rsp + 0x48]
lea rdx, str.8BE4DF61_93CA_11D2_AA0D_00E098032B8C
mov word [rsp + 0x48], ax
lea rcx, str.BootOrder
lea r9d, [rax - 0x7e]
call qword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
test eax, eax
jne 0x1400013e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140001412
mov r9d, 0x1f4
lea r8, [rsp + 0x60]
lea rdx, str.8BE4DF61_93CA_11D2_AA0D_00E098032B8C
lea rcx, str.Boot0080
call qword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
test eax, eax
jne 0x140001410
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140001412
mov ebx, edi
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x44], edi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001445
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140007800
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret