Function at 0x14000f364
Capabilities:
Get storage device properties

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14006afb8]
xor rax, rsp
mov qword [rbp], rax
mov rdi, rdx
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.140013950
nop
mov rcx, qword [rbp - 0x20]
dec rcx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rax, qword [rbp - 0x30]
mov qword [rbp - 0x20], rcx
xor r14d, r14d
mov word [rax + rcx*2], r14w
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp - 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x14000f46c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000f428
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x14000f7a3
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rax, qword [rbp - 0x30]
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, str.CreateFileW_failed_for_volume__ls
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, str.amcorewcd_sourcecommon_src_volumemap.cpp
mov edx, 0x40d
call fcn.1400124ac
jmp 0x14000f7a3
mov dword [rsp + 0x40], r14d
mov qword [rbp - 0xc], r14
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x10], r14d
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x28
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rbp - 0x10]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14000f500
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 1
jne 0x14000f4ed
cmp byte [rsi + 0x60], 2
jne 0x14000f4f1
mov ebx, 0x80070001
jmp 0x14000f7a3
test eax, eax
jle 0x14000f4f9
movzx eax, ax
or eax, 0x80070000
mov ebx, eax
jmp 0x14000f7a3
cmp dword [rbp - 0x54], 0x2800
jbe 0x14000f56c
call fcn.14001226c
cmp dword [rax], 3
jbe 0x14000f562
mov ecx, dword [rbp - 0x54]
mov dword [rsp + 0x58], ecx
cmp qword [rdi + 0x18], 8
jb 0x14000f524
mov rdi, qword [rdi]
mov qword [rsp + 0x48], rdi
lea rcx, str.SetVolumeHardwareInformation_failed___STORAGE_DEVICE_DESCRIPTOR_size___10KB
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14005c1e8]
mov rcx, rax
call fcn.14000a3f8
mov ebx, 0x80004004
jmp 0x14000f7a3
mov edx, dword [rbp - 0x54]
lea rcx, [rbp - 0x78]
call fcn.14000e8d8
nop
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x54]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rbp - 0x10]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14000f5e3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000f5d5
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [rbp - 0x78]
call fcn.140013824
jmp 0x14000f7a3
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.140034ba8
call fcn.1400113d0
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.14003087c
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000f787
call fcn.1400348d4
test al, al
je 0x14000f787
mov rcx, rbx
call fcn.1400330a0
cmp eax, 0xffffffff
jne 0x14000f67c
call fcn.14001226c
cmp dword [rax], 3
jbe 0x14000f6ee
cmp qword [rdi + 0x18], 8
jb 0x14000f646
mov rdi, qword [rdi]
mov qword [rsp + 0x50], rdi
lea rcx, str.SetVolumeHardwareInformation_failed_to_get_extra_attributes___GetDiskNumber_failed
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14005be98]
mov rcx, rax
call fcn.14000d0a0
jmp 0x14000f6ee
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140032adc
test eax, eax
jns 0x14000f711
call fcn.14001226c
cmp dword [rax], 3
jbe 0x14000f6de
cmp qword [rdi + 0x18], 8
jb 0x14000f6a9
mov rdi, qword [rdi]
mov qword [rsp + 0x50], rdi
lea rcx, str.SetVolumeHardwareInformation_failed_to_get_extra_attributes___DetectFromConnectedRemovableDevices_failed
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14005be98]
mov rcx, rax
call fcn.14000d0a0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000f6ee
call fcn.140009b20
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000f6fe
call fcn.140009b20
nop
lea rcx, [rbp - 0x78]
call fcn.140013824
mov ebx, 0x80004005
jmp 0x14000f7a3
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x14000f777
add rdx, 0x4b6
lea rcx, [rsi + 0xf0]
call fcn.14000a120
mov rdx, qword [rsp + 0x60]
add rdx, 0x96c
lea rcx, [rsi + 0x110]
call fcn.14000a120
mov rdx, qword [rsp + 0x60]
add rdx, 0x7da
lea rcx, [rsi + 0x130]
call fcn.14000a120
mov rdx, qword [rsp + 0x60]
add rdx, 0x648
lea rcx, [rsi + 0x150]
call fcn.14000a120
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000f787
call fcn.140009b20
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000f797
call fcn.140009b20
nop
lea rcx, [rbp - 0x78]
call fcn.140013824
mov ebx, r14d
lea rcx, [rbp - 0x80]
call fcn.1400134e0
nop
lea rcx, [rbp - 0x30]
call fcn.140013750
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140015f80
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret