Function at 0x1400153b0
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1400153f5
mov eax, dword [rsp + 0x30]
jmp 0x14001567f
movsxd rax, dword [rsp + 0x20]
mov rcx, rax
call fcn.140018108
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x60], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x80], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
mov rcx, qword [rsp + 0x80]
rep stosb byte [rdi], al
mov r9d, dword [rsp + 0x20]
mov r8, qword [rsp + 0x38]
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1400154ac
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.140017f84
cmp qword [rsp + 0x68], 0
jne 0x14001548d
mov qword [rsp + 0x88], 0
jmp 0x1400154a3
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x30]
jmp 0x14001567f
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0x60], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x28], rax
jae 0x14001563b
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
cmp eax, 0xb
jne 0x1400155da
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 1]
cmp eax, 5
jl 0x1400155da
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 4]
cmp eax, dword [rsp + 0xb8]
jle 0x1400155d8
mov r8d, dword [rsp + 0xb8]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xb0]
call fcn.1400152c0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140015573
jmp 0x14001563b
mov edx, 0x208
mov rcx, qword [rsp + 0x58]
call fcn.140015370
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
inc eax
cdqe
mov qword [rsp + 0x90], rax
mov rdi, qword [rsp + 0xc0]
xor eax, eax
mov rcx, qword [rsp + 0x90]
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x40]
inc ecx
movsxd rcx, ecx
mov r9, rax
mov r8, qword [rsp + 0x58]
mov rdx, rcx
mov rcx, qword [rsp + 0xc0]
call fcn.14000ba40
mov dword [rsp + 0x30], 1
jmp 0x14001563b
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 1]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
test eax, eax
je 0x140015628
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x28], rax
jae 0x140015628
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x1400155f3
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
jmp 0x1400154e6
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140017f84
cmp qword [rsp + 0x70], 0
jne 0x140015665
mov qword [rsp + 0x98], 0
jmp 0x14001567b
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x30]
add rsp, 0xa0
pop rdi
ret