Function at 0x140049940
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14006c010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rcx
mov qword [rbp - 9], rcx
xor esi, esi
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], 0xf
mov byte [rbp - 0x31], sil
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [rsi + 3]
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140049a3c
mov qword [r14], rsi
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], 0xf
mov byte [r14], sil
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140049a0c
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049a07
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140049ce8
call fcn.140055f98
mov rax, r14
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400559f0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
lea rax, [sub.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], r12
mov qword [rbp - 1], rsi
mov dword [rbp - 0x11], esi
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rbp - 1]
mov edx, 0x2d1400
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140049ab9
mov qword [r14], rsi
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], 0xf
mov byte [r14], al
test r12, r12
je 0x140049ab4
mov rcx, r12
call sub.KERNEL32.dll_CloseHandle
nop
jmp 0x1400499d1
mov edi, dword [rbp - 5]
mov ecx, edi
call fcn.1400561c8
mov r15, rax
mov qword [rbp - 0x39], rax
mov r8d, edi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x1f], r15
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r15
mov r9d, 0xc
lea r8, [rbp - 1]
mov edx, 0x2d1400
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140049b3c
mov qword [r14], rsi
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], 0xf
mov byte [r14], al
mov rcx, r15
call fcn.140055f98
nop
test r12, r12
je 0x140049b37
mov rcx, r12
call sub.KERNEL32.dll_CloseHandle
nop
jmp 0x1400499d1
mov eax, dword [r15 + 0x18]
test eax, eax
jne 0x140049b72
mov qword [r14], rsi
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], 0xf
mov byte [r14], al
mov rcx, r15
call fcn.140055f98
nop
test r12, r12
je 0x140049b6d
mov rcx, r12
call sub.KERNEL32.dll_CloseHandle
nop
jmp 0x1400499d1
lea rdx, [r15 + rax]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140049b80
lea rcx, [rbp - 0x31]
call fcn.140053980
lea rax, [rbp - 0x31]
mov rcx, qword [rbp - 0x31]
mov r8, qword [rbp - 0x21]
cmp qword [rbp - 0x19], 0x10
jb 0x140049bb6
lea r13, [r8 + rcx]
mov rsi, rcx
lea rbx, [r8 + rcx]
mov rdi, r13
jmp 0x140049bc8
lea rdi, [r8 + rax]
mov r13, rdi
lea rbx, [rbp - 0x31]
add rbx, r8
lea rsi, [rbp - 0x31]
cmp rsi, rbx
je 0x140049c2b
nop dword [rax]
movsx ecx, byte [rsi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x140049be5
inc rsi
cmp rsi, rbx
jne 0x140049bd0
mov r8, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x31]
cmp rsi, rbx
je 0x140049c2b
lea r15, [rsi + 1]
cmp r15, rbx
je 0x140049c27
nop dword [rax + rax]
movsx ecx, byte [r15]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x140049c17
movzx eax, byte [r15]
mov byte [rsi], al
inc rsi
inc r15
cmp r15, rbx
jne 0x140049c00
mov r8, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x31]
mov r15, qword [rbp - 0x39]
lea rax, [rbp - 0x31]
mov rdx, rsi
cmp qword [rbp - 0x19], 0x10
jb 0x140049c3e
sub rdx, rcx
jmp 0x140049c48
sub rdx, rax
mov r13, rdi
lea rcx, [rbp - 0x31]
mov rax, r8
sub r13, rsi
sub rax, rdx
cmp rax, r13
cmovb r13, rax
add rcx, rdx
sub r8, r13
mov qword [rbp - 0x21], r8
sub r8, rdx
inc r8
lea rdx, [rcx + r13]
call sub.VCRUNTIME140.dll_memmove
xor eax, eax
movups xmm0, xmmword [rbp - 0x31]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp - 0x21]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], 0xf
mov byte [rbp - 0x31], al
mov rcx, r15
call fcn.140055f98
nop
test r12, r12
je 0x140049caa
mov rcx, r12
call sub.KERNEL32.dll_CloseHandle
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140049a0c
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049a07
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049a07
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3