Function at 0x409268
Capabilities:
Get storage device properties

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rax - 0x43a8]
mov eax, 0x4490
call fcn.00422ec0
sub rsp, rax
xorps xmm0, xmm0
mov dword [rbp + 0x184], 0x104
lea rax, [rbp + 0x188]
mov rdi, rdx
mov qword [rbp + 0x178], rax
lea rcx, [rbp + 0x390]
lea rax, [0x0048d7e0]
xor ebx, ebx
xor edx, edx
mov qword [rbp + 0x170], rax
mov r8d, 0x4000
mov dword [rbp + 0x180], ebx
mov word [rbp + 0x188], bx
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call fcn.00424830
mov rax, qword [rdi + 8]
mov dword [rbp + 0x43b0], ebx
mov dword [rdi + 0x10], ebx
test rax, rax
je 0x4092fd
mov word [rax], bx
mov r8d, 0x43
lea rdx, str.._c:
lea rcx, [rbp + 0x170]
call fcn.004012e8
mov rcx, qword [rbp + 0x178]
mov r14d, 3
mov qword [rsp + 0x30], rbx
mov r8d, r14d
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x409397
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x43b0]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 0x20
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x560000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
test eax, eax
jne 0x409391
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409521
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x58]
lea rdx, str..PHYSICALDRIVE_u
lea rcx, [rbp + 0x170]
call fcn.004012e8
mov rcx, qword [rbp + 0x178]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov r8d, r14d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x409505
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x43b0]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
lea rax, [rbp + 0x390]
mov dword [rsp + 0x28], 0x4000
mov r9d, 0xc
mov qword [rsp + 0x20], rax
mov edx, 0x2d1400
mov qword [rsp + 0x44], rbx
mov rcx, rsi
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4094fc
cmp dword [rbp + 0x43b0], 0x28
jb 0x4094fc
mov r14d, 0x100
lea rcx, [rbp + 0x70]
mov r8d, r14d
xor edx, edx
call fcn.00424830
mov r8d, r14d
lea rcx, [rsp + 0x70]
xor edx, edx
call fcn.00424830
cmp dword [rbp + 0x39c], ebx
je 0x409486
mov eax, dword [rbp + 0x39c]
lea r8, [rbp + 0x390]
add r8, rax
lea r9d, [r14 - 1]
mov edx, r14d
lea rcx, [rbp + 0x70]
call fcn.00434fc8
cmp dword [rbp + 0x3a0], ebx
je 0x4094b1
mov eax, dword [rbp + 0x3a0]
lea r8, [rbp + 0x390]
add r8, rax
lea rcx, [rsp + 0x70]
mov r9d, 0xff
mov rdx, r14
call fcn.00434fc8
cmp byte [rbp + 0x70], bl
je 0x4094e2
lea r8, [rbp + 0x70]
mov rcx, rdi
cmp byte [rsp + 0x70], bl
je 0x4094d6
lea r9, [rsp + 0x70]
lea rdx, str._S__S
call fcn.004012e8
jmp 0x4094fc
lea rdx, [0x00490864]
call fcn.004012e8
cmp byte [rsp + 0x70], bl
je 0x4094fc
lea r8, [rsp + 0x70]
mov rcx, rdi
lea rdx, [0x00490864]
call fcn.004012e8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
cmp dword [rdi + 0x10], eax
jb 0x40951d
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x40951d
cmp word [rcx], bx
jne 0x40951f
mov al, bl
mov bl, al
lea r11, [rsp + 0x4490]
mov al, bl
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret