Function at 0x1400165f0
Capabilities:
Get system firmware table

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.140024c20
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x100b0], rbx
mov qword [rsp + 0x100b8], rsi
mov qword [rsp + 0x100c0], rdi
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rbp + 0xff70], rax
mov r15d, ecx
xor edx, edx
mov r8d, 0x10000
lea rcx, [rsp + 0x70]
call fcn.140026cc0
mov r14d, 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov edi, eax
lea rcx, [0x140077e88]
test eax, eax
jne 0x140016690
lea rdx, str.Function_failed.
call fcn.1400042c0
mov eax, r14d
jmp 0x14001698b
mov r8d, edi
lea rdx, str.Buffer_size_is__d
call fcn.1400042c0
mov r9d, edi
lea r8, [rsp + 0x70]
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
test eax, eax
jne 0x1400166d3
lea rdx, str.GetSystemFirmwareTable_failed.
lea rcx, [0x140077e88]
call fcn.1400042c0
mov eax, r14d
jmp 0x14001698b
lea rbx, [rsp + 0x78]
lea eax, [rdi - 8]
cmp dword [rsp + 0x74], eax
je 0x1400166fc
lea rdx, str.Smbios_length_error.
lea rcx, [0x140077e88]
call fcn.1400042c0
mov eax, r14d
jmp 0x14001698b
xor r10d, r10d
mov esi, r10d
cmp dword [rsp + 0x74], r10d
jbe 0x140016989
lea rdi, [r10 - 1]
movzx eax, byte [rbx]
test al, al
jne 0x140016725
test r14d, r14d
je 0x140016725
mov r14d, r10d
jmp 0x140016963
cmp al, 1
jne 0x1400167d0
movzx edx, byte [rbx + 0xb]
mov rcx, rbx
call fcn.140016560
mov qword [rsp + 0x60], r10
mov qword [rsp + 0x68], setsockopt
mov byte [rsp + 0x50], 0
mov r8, rdi
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140016750
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001c10
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r8, qword [rsp + 0x50]
lea rdx, str.h__type__1__String_is__s
lea rcx, [0x140077e88]
call fcn.1400042c0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400167c8
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400167c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016b9b
call fcn.140023e64
xor r10d, r10d
jmp 0x140016963
cmp al, 2
jne 0x140016959
cmp r15d, 2
jne 0x140016963
movzx edx, byte [rbx + 5]
mov rcx, rbx
call fcn.140016560
movdqa xmm0, xmmword [0x140067e30]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
inc rdi
cmp byte [rax + rdi], 0
jne 0x140016801
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001c10
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rbx, rdx
lea rdi, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdi, qword [rsp + 0x30]
movdqa xmm0, xmmword [0x140067e20]
movdqu xmmword [rsp + 0x60], xmm0
xor esi, esi
mov word [rsp + 0x50], si
mov rdx, rbx
sub rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140002020
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140016bb0
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
mov edx, 0x104
lea rcx, [0x1400768e0]
call fcn.1400012b0
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae r8, qword [rsp + 0x30]
lea rdx, str.h__type__2__String_is__s
lea rcx, [0x140077e88]
call fcn.1400042c0
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140016902
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400168fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016b95
call fcn.140023e64
movdqa xmm0, xmmword [0x140067e20]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140016952
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001694d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016ba1
call fcn.140023e64
mov eax, 2
jmp 0x14001698b
cmp al, 0x28
jne 0x140016963
cmp r15d, 0x28
je 0x1400169bb
movzx eax, byte [rbx + 1]
add rbx, rax
cmp word [rbx], 0
je 0x140016979
inc rbx
cmp word [rbx], 0
jne 0x140016970
add rbx, 2
inc esi
cmp esi, dword [rsp + 0x74]
jb 0x140016711
xor eax, eax
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.140023e40
lea r11, [rsp + 0x10080]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
movzx eax, byte [rbx + 4]
mov dword [rsp + 0x24], eax
mov esi, 5
mov ecx, 0xa
mov dword [rsp + 0x20], ecx
mov r13d, ecx
mov r15d, r10d
test eax, eax
je 0x140016b7c
nop
movsxd r14, esi
add r14, rbx
movzx r12d, byte [r14]
movzx edx, byte [r14 + 4]
mov rcx, rbx
call fcn.140016560
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], setsockopt
mov byte [rsp + 0x30], 0
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140016a10
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001c10
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
cmovae r8, rcx
mov r9, qword [rsp + 0x40]
cmp r9, 0xc
jne 0x140016ab2
mov rax, qword [r8]
cmp rax, qword [str.PRODUCT_LINE]
jne 0x140016ab2
mov eax, dword [r8 + 8]
cmp eax, dword [0x1400643f8]
jne 0x140016ab2
lea r8, [rsp + 0x30]
cmp rdx, 0x10
cmovae r8, rcx
mov r9d, esi
lea rdx, str.Type_40__s_Location___d
lea rcx, [0x140077e88]
call fcn.1400042c0
movzx eax, byte [r14 + 5]
mov dword [rsp + 0x20], eax
mov r8d, eax
lea rdx, str.Product_Line____d
lea rcx, [0x140077e88]
call fcn.1400042c0
mov rdx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x30]
cmp rdx, 0x10
cmovae r8, rcx
cmp r9, 0xb
jne 0x140016b34
mov rax, qword [r8]
cmp rax, qword [str.PRODUCT_SKU]
jne 0x140016b34
movzx eax, word [r8 + 8]
cmp ax, word [0x140064478]
jne 0x140016b34
movzx eax, byte [r8 + 0xa]
cmp al, byte [0x14006447a]
jne 0x140016b34
lea r8, [rsp + 0x30]
cmp rdx, 0x10
cmovae r8, rcx
mov r9d, esi
lea rdx, str.Type_40__s_Location___d
lea rcx, [0x140077e88]
call fcn.1400042c0
movzx r13d, byte [r14 + 5]
mov r8d, r13d
lea rdx, str.Product_SKU____d
lea rcx, [0x140077e88]
call fcn.1400042c0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add esi, r12d
cmp rdx, 0x10
jb 0x140016b66
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016b61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016b8f
call fcn.140023e64
inc r15d
cmp r15d, dword [rsp + 0x24]
jge 0x140016b78
xor r10d, r10d
jmp 0x1400169e0
mov ecx, dword [rsp + 0x20]
lea eax, [r13*4]
add eax, r13d
lea eax, [rcx + rax*2]
jmp 0x14001698b
call fcn.14002d7d0
nop
call fcn.14002d7d0
nop
call fcn.14002d7d0
int3
call fcn.14002d7d0
int3