Function at 0x426640
Capabilities:
Get uefi variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r15, rcx
mov rdi, rdx
mov rcx, qword [rdx]
xor r12d, r12d
mov qword [rdx + 8], rcx
mov rdx, qword [rdx + 0x10]
cmp rcx, rdx
je 0x4266aa
test rcx, rcx
je 0x4266aa
sub rdx, rcx
cmp rdx, 0x1000
jb 0x42669a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x4268a8
mov rcx, r8
call fcn.00479330
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
lea r14, [r15 + 0x20]
mov ebp, r12d
cmp dword [r14 + 0x28], r12d
je 0x4266c0
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov dl, 1
call fcn.00426450
mov edx, 0x80
lea rcx, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceCFirmwareEvManager.cpp
mov ebx, eax
call fcn.004036d0
mov ecx, 1
mov dword [rsp + 0x20], ebx
lea r13, [0x004bec20]
lea r9, str.SetPrivileges_true__d
lea rdx, [rax*2]
add rdx, r13
lea r8d, [rcx + 0x41]
call fcn.0044a600
test ebx, ebx
jne 0x426711
lea ebp, [rbx + 5]
jmp 0x426848
mov ecx, 0x100
call fcn.0047970c
xor edx, edx
mov r8d, 0x100
mov rcx, rax
mov rbx, rax
lea rsi, [rax + 0x100]
call fcn.004a2370
lea rax, [rsp + 0x40]
cmp rdi, rax
je 0x426757
mov rax, qword [rdi]
mov qword [rdi], rbx
mov rbx, rax
mov rax, qword [rdi + 0x10]
mov qword [rdi + 0x10], rsi
mov qword [rdi + 8], rsi
mov rsi, rax
test rbx, rbx
je 0x426792
sub rsi, rbx
mov rax, rbx
cmp rsi, 0x1000
jb 0x426787
mov rbx, qword [rbx - 8]
add rsi, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x426787
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rsi
mov rcx, rbx
call fcn.00479330
mov r8, qword [rdi]
mov rax, qword [rdi + 8]
sub rax, r8
cmp qword [r15 + 0x18], 8
jb 0x4267a6
mov r15, qword [r15]
mov r9d, eax
lea rcx, str.OA30
mov rdx, r15
call qword [sym.imp.api_ms_win_core_firmware_l1_1_0.dll_GetFirmwareEnvironmentVariableW]
test eax, eax
jne 0x42680a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, 0x80
lea rcx, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceCFirmwareEvManager.cpp
mov ebp, eax
call fcn.004036d0
mov ecx, 1
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
lea r9, str._s:_failed__GetLastError_return__d_0x_08x_
lea rdx, [rax*2]
lea rax, str.CFirmwareEvManager::GetOA30Data
add rdx, r13
lea r8d, [rcx + 0x4f]
mov qword [rsp + 0x20], rax
call fcn.0044a600
xor edx, edx
call fcn.00426450
mov edx, 0x80
lea rcx, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceCFirmwareEvManager.cpp
mov ebx, eax
call fcn.004036d0
mov ecx, 1
mov dword [rsp + 0x20], ebx
lea r9, str.SetPrivileges_false__d
lea rdx, [rax*2]
add rdx, r13
lea r8d, [rcx + 0x53]
call fcn.0044a600
cmp dword [r14 + 0x28], r12d
je 0x426857
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test ebp, ebp
je 0x4268af
mov rcx, qword [rdi]
mov qword [rdi + 8], rcx
mov rdx, qword [rdi + 0x10]
cmp rcx, rdx
je 0x4268a4
test rcx, rcx
je 0x4268a4
sub rdx, rcx
cmp rdx, 0x1000
jb 0x426894
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x4268a8
mov rcx, r8
call fcn.00479330
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov eax, ebp
jmp 0x4268b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor eax, eax
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret