Function at 0x140001280
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 - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14005d028]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rcx
mov qword [rbp + 0x70], rcx
xor r12d, r12d
mov r14d, r12d
mov dword [rsp + 0x40], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, r15d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400015f4
mov r9d, r15d
mov r8, rax
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
test eax, eax
je 0x1400015f4
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x70]
call fcn.140002000
nop
movzx edx, byte [rsi + 0xc]
lea rcx, [rbp - 0x80]
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___int____ptr64]
movzx edx, byte [rsi + 0xd]
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___int____ptr64]
movzx edx, byte [rsi + 0x10]
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___int____ptr64]
lea rcx, [rsp + 0x48]
call fcn.140001690
nop
xorps xmm0, xmm0
xorps xmm1, xmm1
cmp byte [rax + 0x20], r12b
movups xmmword [rbp + 0x70], xmm0
movdqu xmmword [rbp + 0x80], xmm1
je 0x1400013a4
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x80], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], r12b
or r14d, 2
jmp 0x1400013bd
xor r8d, r8d
lea rdx, [0x14004dbd8]
lea rcx, [rbp + 0x70]
call fcn.140002440
mov r14d, 2
mov rdx, qword [rbp + 0x70]
lea rax, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovb rdx, rax
mov r8, qword [rbp + 0x80]
lea rcx, [rbp - 0x80]
call fcn.140002680
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x140001423
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000141e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000141e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002c710
movdqa xmm0, xmmword [0x140054350]
movdqu xmmword [rbp + 0x80], xmm0
mov byte [rbp + 0x70], 0
lea rcx, [rsp + 0x48]
call fcn.1400020c0
mov dword [rbp + 0x70], r12d
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x70]
xor r8d, r8d
xor edx, edx
lea rcx, str.C:__
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [rbp + 0x70]
test eax, eax
cmove edx, dword [rbp + 0x70]
cmove edx, r12d
lea rcx, [rbp - 0x80]
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___unsigned_long_int____ptr64]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x70], xmm0
xor eax, eax
xor ecx, ecx
cpuid
mov dword [rbp + 0x70], eax
mov dword [rbp + 0x74], ebx
mov dword [rbp + 0x78], ecx
mov dword [rbp + 0x7c], edx
movdqu xmm1, xmmword [rbp + 0x70]
movdqa xmm0, xmm1
psrldq xmm0, 8
paddw xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
paddw xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 2
paddw xmm1, xmm0
movd eax, xmm1
movzx edx, ax
lea rcx, [rbp - 0x80]
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___int____ptr64]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
or r14d, 8
mov dword [rsp + 0x40], r14d
mov rcx, qword [rbp - 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140001540
mov rax, qword [rbp - 0x38]
mov rbx, qword [rax]
test rbx, rbx
je 0x140001540
mov rax, qword [rbp - 0x58]
mov r9, qword [rax]
cmp rbx, qword [rbp - 0x10]
cmovb rbx, qword [rbp - 0x10]
jmp 0x140001562
test cl, 4
jne 0x140001598
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140001598
mov rax, qword [rbp - 0x60]
mov r9, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd rbx, dword [rax]
add rbx, rcx
mov rax, r9
sub rbx, r9
test rax, rax
je 0x140001598
lea rcx, [rsp + 0x48]
cmp rbx, 0xf
ja 0x14000158f
mov qword [rsp + 0x58], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x48], 0
jmp 0x140001598
mov rdx, rbx
call fcn.140002540
nop
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x10], xmm1
mov byte [rdi + 0x20], 1
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rdx + 0x70], rax
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea ebx, [rdx - 0x98]
mov dword [rsp + rdx + 0x6c], ebx
lea rcx, [rbp - 0x78]
call fcn.140001f40
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x1400015f8
mov byte [rdi + 0x20], r12b
mov rax, rdi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14002c6f0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret