Function at 0x140021d70
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x990]
sub rsp, 0xa90
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp + 0x980], rax
xor ebx, ebx
lea rcx, [rbp + 0x160]
xor edx, edx
mov dword [rsp + 0x40], ebx
mov r8d, 0x208
mov dword [rsp + 0x44], ebx
mov r12d, ebx
mov dword [rsp + 0x48], ebx
mov r13d, ebx
mov r15d, ebx
mov r14d, ebx
call fcn.140034ac0
xor edx, edx
lea rcx, [rbp + 0x370]
mov r8d, 0x208
call fcn.140034ac0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_0.dll_GetSystemFirmwareTable]
mov esi, eax
test eax, eax
je 0x14002215b
mov ecx, esi
mov qword [rsp + 0xac0], rdi
call fcn.140032e84
mov rdi, rax
test rax, rax
je 0x140021e89
mov r9d, esi
mov r8, rax
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_0.dll_GetSystemFirmwareTable]
mov rcx, qword [0x14006c2c8]
mov eax, dword [rdi + 4]
mov dword [0x14006c2c0], eax
test rcx, rcx
je 0x140021e4c
call fcn.140032e8c
mov eax, dword [0x14006c2c0]
test eax, eax
je 0x140021e7a
mov ecx, eax
call fcn.140032e84
mov qword [0x14006c2c8], rax
test rax, rax
je 0x140021e81
mov edx, dword [0x14006c2c0]
lea r8, [rdi + 8]
mov r9d, edx
mov rcx, rax
call fcn.1400067d0
jmp 0x140021e81
mov qword [0x14006c2c8], rbx
mov rcx, rdi
call fcn.140032e8c
mov esi, 1
lea rcx, [rbp + 0x160]
mov edx, esi
call fcn.14002bc50
xor edx, edx
lea rcx, [rbp + 0x370]
mov edi, eax
call fcn.14002bc50
mov rcx, qword [0x14006c2c8]
test rcx, rcx
je 0x140021ec4
call fcn.140032e8c
mov qword [0x14006c2c8], rbx
test edi, edi
je 0x140022153
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140034ac0
mov edx, 0x20
lea rcx, [rbp + 0x160]
call fcn.1400345e8
mov rdi, rax
test rax, rax
je 0x140021f0e
mov edx, 0x104
mov rcx, rax
call fcn.14003fee4
lea r8, [rdi + 2]
cmp rax, 2
jae 0x140021f15
lea r8, [rbp + 0x160]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140036978
xor edx, edx
lea rcx, [rbp + 0x580]
mov r8d, 0x400
call fcn.140034ac0
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14003fee4
mov qword [rsp + 0x38], rbx
lea rcx, [rbp + 0x580]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], 0x400
mov r9d, eax
mov qword [rsp + 0x20], rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov rcx, qword [0x140067b00]
lea rax, [0x140067b00]
cmp rcx, rax
je 0x140021fb6
test byte [rcx + 0x1c], 4
je 0x140021fb6
mov rcx, qword [rcx + 0x10]
lea rax, [rbp + 0x580]
mov qword [rsp + 0x28], rax
mov edx, 0x10
lea rax, str.Product_name
mov qword [rsp + 0x20], rax
call fcn.140032310
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14003fee4
cmp rax, rsi
jb 0x140022105
movzx eax, word [rsp + 0x50]
mov ecx, 0xffdf
sub ax, 0x47
test cx, ax
je 0x140022084
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14003fee4
cmp rax, 2
jb 0x140022066
mov r8d, 2
lea rdx, [0x14005ab80]
lea rcx, [rsp + 0x50]
call fcn.1400406ac
test eax, eax
je 0x140022084
mov r8d, 2
lea rdx, [0x14005ab88]
lea rcx, [rsp + 0x50]
call fcn.1400406ac
test eax, eax
je 0x140022084
mov r8d, 2
lea rdx, [0x14005ab90]
lea rcx, [rsp + 0x50]
call fcn.1400406ac
test eax, eax
je 0x140022084
mov r8d, 2
lea rdx, [0x14005ab98]
lea rcx, [rsp + 0x50]
call fcn.1400406ac
test eax, eax
je 0x140022084
movzx eax, word [rsp + 0x50]
sub ax, 0x42
cmp ax, 0x17
ja 0x140022086
mov ecx, 0x804401
bt ecx, eax
jae 0x140022086
mov r12d, esi
jmp 0x140022086
mov ebx, esi
mov r8d, 6
lea rdx, str.D940MX
lea rcx, [rsp + 0x50]
call fcn.1400406ac
test eax, eax
jne 0x1400220a6
mov r13d, esi
jmp 0x140022105
mov r8d, 5
lea rdx, str.T3300
lea rcx, [rsp + 0x50]
call fcn.1400406ac
test eax, eax
jne 0x1400220c7
mov dword [rsp + 0x40], esi
jmp 0x140022105
mov r8d, 5
lea rdx, str.T3304
lea rcx, [rsp + 0x50]
call fcn.1400406ac
test eax, eax
jne 0x1400220e8
mov dword [rsp + 0x44], esi
jmp 0x140022105
mov r8d, 6
lea rdx, str.UX9702
lea rcx, [rsp + 0x50]
call fcn.1400406ac
test eax, eax
cmove r15d, esi
lea rdx, str.ProArt
lea rcx, [rbp + 0x370]
call fcn.14003469c
test rax, rax
je 0x140022123
mov dword [rsp + 0x48], esi
jmp 0x14002213d
lea rdx, str.MINIPC
lea rcx, [rbp + 0x370]
call fcn.14003469c
test rax, rax
cmovne r14d, esi
lea r8, [rsp + 0x50]
mov edx, 0x104
lea rcx, [0x140069850]
call fcn.140036978
mov rdi, qword [rsp + 0xac0]
neg ebx
mov dword [0x14006799c], r13d
mov dword [0x14006797c], r15d
sbb eax, eax
mov dword [0x140067988], r14d
add eax, 2
mov dword [0x1400679a4], eax
neg r12d
sbb eax, eax
add eax, 2
mov dword [0x1400679a0], eax
mov eax, dword [rsp + 0x40]
mov dword [0x140067984], eax
mov eax, dword [rsp + 0x44]
mov dword [0x140067980], eax
mov eax, dword [rsp + 0x48]
mov dword [0x14006798c], eax
mov rcx, qword [rbp + 0x980]
xor rcx, rsp
call fcn.140032e60
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret