Function at 0x14009fe30
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400d5040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov ebp, eax
test eax, eax
jne 0x14009febd
lea rdx, str.Failed_to_get_SMBIOS_data_size.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14004b900
lea rdx, [0x14004bad0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
xor r8d, r8d
lea rdx, [0x1400a9ea5]
mov rcx, rsi
call fcn.14001e3f0
jmp 0x14009ff8d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.140024b30
mov rcx, qword [rsp + 0x30]
lea rbx, [rcx + rbp]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x38], rbx
mov r9d, ebp
mov r8, qword [rsp + 0x30]
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
cmp eax, ebp
je 0x14009ffb3
lea rdx, str.Failed_to_read_SMBIOS_data.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14004b900
lea rdx, [0x14004bad0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
xor r8d, r8d
lea rdx, [0x1400a9ea5]
mov rcx, rsi
call fcn.14001e3f0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14009ff8d
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009ff88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a0096
call fcn.1400a1ae4
mov rax, rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a1650
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov r8, qword [rsp + 0x30]
mov rax, r8
lea r9, [r8 + rbp]
cmp r8, r9
jae 0x1400a0013
movzx ecx, byte [rax]
cmp cl, 2
je 0x1400a009d
cmp cl, 0x7f
je 0x1400a0013
movzx ecx, byte [rax + 1]
add rax, rcx
mov rcx, rax
sub rcx, r8
inc rcx
cmp rcx, rbp
jge 0x1400a000a
mov rdx, r8
neg rdx
cmp byte [rax], 0
jne 0x14009fffb
cmp byte [rax + 1], 0
je 0x1400a000a
inc rax
lea rcx, [rdx + 1]
add rcx, rax
cmp rcx, rbp
jl 0x14009fff0
add rax, 2
cmp rax, r9
jb 0x14009ffc4
lea rdx, str.Baseboard_Information_Table_not_found.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14004b900
lea rdx, [0x14004bad0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
xor r8d, r8d
lea rdx, [0x1400a9ea5]
mov rcx, rsi
call fcn.14001e3f0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14009ff8d
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009ff88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009ff88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
movzx edx, byte [rax + 1]
cmp dl, 8
jae 0x1400a00b2
lea rdx, str.Baseboard_Information_Table_is_shorter_than_expected.
jmp 0x14009ff14
movzx ecx, byte [rax + 7]
test cl, cl
jne 0x1400a00c6
lea rdx, str.Serial_number_index_not_found.
jmp 0x14009ff14
add rdx, rax
cmp cl, 1
jbe 0x1400a00e9
dec cl
movzx eax, cl
cmp byte [rdx], 0
je 0x1400a00e0
inc rdx
cmp byte [rdx], 0
jne 0x1400a00d8
inc rdx
sub rax, 1
jne 0x1400a00d3
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x1400a0100
jmp 0x14009ff48