Function at 0x18009f670
Capabilities:
Get disk information
Get system firmware table

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x18010c020]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, rcx
mov qword [rbp - 0x51], rcx
xor edi, edi
mov dword [rbp - 0x59], edi
mov qword [rcx], rdi
mov qword [rcx + 0x10], rdi
mov esi, reloc.WS2_32.dll_ntohs
mov qword [rcx + 0x18], rsi
mov byte [rcx], dil
mov r15d, 1
mov dword [rbp - 0x59], r15d
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800edee8]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x18009f784
lea r9, [rbp + 0x2c]
mov ebx, dword [rbp - 0x29]
nop dword [rax]
dec r9
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [r9], bl
mov ebx, edx
test edx, edx
jne 0x18009f700
mov qword [rbp - 0x49], rdi
movdqa xmm0, xmmword [0x1800f1630]
movdqu xmmword [rbp - 0x39], xmm0
mov byte [rbp - 0x49], dl
lea rax, [rbp + 0x2c]
cmp r9, rax
je 0x18009f756
lea r8, [rbp + 0x2c]
sub r8, r9
mov rdx, r9
lea rcx, [rbp - 0x49]
call fcn.180003d40
mov r15d, 0x19
mov dword [rbp - 0x59], r15d
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 0x10
cmovae rdx, qword [rbp - 0x49]
mov r8, qword [rbp - 0x39]
mov rcx, r12
call fcn.1800b85f0
nop
lea rcx, [rbp - 0x49]
call fcn.180005490
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
xor eax, eax
xor ecx, ecx
cpuid
mov dword [rbp + 0x17], eax
mov dword [rbp + 0x1b], ebx
mov dword [rbp + 0x1f], ecx
mov dword [rbp + 0x23], edx
mov r14, rdi
mov ebx, dword [rbp + r14*4 + 0x1b]
lea r9, [rbp + 0x14]
nop dword [rax]
dec r9
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [r9], bl
mov ebx, edx
test edx, edx
jne 0x18009f7b0
mov qword [rbp - 0x49], rdi
mov r8, rdi
mov qword [rbp - 0x39], rdi
mov rax, rsi
mov qword [rbp - 0x31], rax
mov byte [rbp - 0x49], r8b
lea rcx, [rbp + 0x14]
cmp r9, rcx
je 0x18009f810
lea r8, [rbp + 0x14]
sub r8, r9
mov rdx, r9
lea rcx, [rbp - 0x49]
call fcn.180003d40
mov rax, qword [rbp - 0x31]
mov r8, qword [rbp - 0x39]
or r15d, 6
mov dword [rbp - 0x59], r15d
lea rdx, [rbp - 0x49]
cmp rax, 0x10
cmovae rdx, qword [rbp - 0x49]
mov rcx, r12
call fcn.1800b85f0
nop
lea rcx, [rbp - 0x49]
call fcn.180005490
inc r14
cmp r14, 3
jl 0x18009f7a0
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], rsi
mov byte [rbp - 0x21], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18009f9ab
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
mov qword [rbp + 0xf], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
test eax, eax
je 0x18009f96e
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], rsi
mov byte [rbp - 0x49], 0
mov rbx, qword [rbp - 1]
mov r14, qword [rbp + 7]
mov rdx, r14
sub rdx, rbx
cmp rdx, 0xf
jbe 0x18009f8d2
lea rcx, [rbp - 0x49]
call fcn.1800581d0
mov qword [rbp - 0x39], rdi
mov rsi, qword [rbp - 0x31]
lea rax, [rbp - 0x49]
mov qword [rbp + 0x17], rax
cmp rbx, r14
je 0x18009f922
nop
movzx r9d, byte [rbx]
cmp rdi, rsi
jae 0x18009f909
lea rax, [rdi + 1]
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x49]
cmp rsi, 0x10
cmovae rax, qword [rbp - 0x49]
mov byte [rax + rdi], r9b
mov byte [rax + rdi + 1], 0
jmp 0x18009f912
lea rcx, [rbp - 0x49]
call fcn.180058320
inc rbx
mov rsi, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
cmp rbx, r14
jne 0x18009f8e0
cmp qword [rbp - 9], rsi
jae 0x18009f94a
movups xmm2, xmmword [rbp - 0x21]
movups xmm3, xmmword [rbp - 0x11]
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rbp - 0x21], xmm0
movups xmm1, xmmword [rbp - 0x39]
movups xmmword [rbp - 0x11], xmm1
movups xmmword [rbp - 0x49], xmm2
movups xmmword [rbp - 0x39], xmm3
jmp 0x18009f964
lea rdx, [rbp - 0x49]
cmp rsi, 0x10
cmovae rdx, qword [rbp - 0x49]
mov r8, rdi
lea rcx, [rbp - 0x21]
call fcn.180003d40
nop
lea rcx, [rbp - 0x49]
call fcn.180005490
nop
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x18009f9ab
mov rdx, qword [rbp + 0xf]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009f9a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009f9a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d2a34
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rdx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x11]
mov rcx, r12
call fcn.1800b85f0
nop
lea rcx, [rbp - 0x21]
call fcn.180005490
mov rax, r12
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1800d2580
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret