Function at 0x140032068
Capabilities:
Get disk information via ioctl

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x14006cfc0]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov esi, r9d
mov rax, r8
mov r15, rdx
mov qword [rsp + 0x50], rcx
mov rdi, qword [rsp + 0x220]
mov r12, qword [rsp + 0x228]
xor r13d, r13d
mov dword [rsp + 0x58], r13d
mov r14d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
lea ecx, [r13 + 3]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8d, ecx
xor edx, edx
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x70], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140032924
mov dword [rsp + 0x68], r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x158], xmm0
movups xmmword [rsp + 0x168], xmm0
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0x158]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x560000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
je 0x140032221
cmp dword [rsp + 0x158], 1
jne 0x1400321b6
mov ebx, dword [rsp + 0x160]
call fcn.14001279c
cmp dword [rax], 4
jbe 0x140032284
mov dword [rsp + 0x58], ebx
lea rcx, str.Target_device_storage_details
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14005d468]
mov rcx, rax
call fcn.14000d208
jmp 0x140032284
call fcn.14001279c
cmp dword [rax], 2
jbe 0x14003220d
mov ecx, dword [rsp + 0x158]
mov dword [rsp + 0x58], ecx
lea rcx, str.Unsupported_removable_device_volume_detected._Volume_disk_extent___1
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x50], 0x80004005
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14005d2f1]
mov rcx, rax
call fcn.1400010b4
nop
lea rcx, [rsp + 0x70]
call fcn.140013b4c
mov eax, 0x80004005
jmp 0x1400329b3
xor eax, eax
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x68], r13d
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xc
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
je 0x140032897
mov ebx, dword [rsp + 0x8c]
cmp ebx, esi
jne 0x140032884
xorps xmm0, xmm0
movups xmmword [rsp + 0x138], xmm0
movdqa xmm1, xmmword [0x14004bc00]
movdqu xmmword [rsp + 0x148], xmm1
mov word [rsp + 0x138], r13w
movups xmmword [rsp + 0x118], xmm0
mov qword [rsp + 0x128], r13
mov eax, 7
mov qword [rsp + 0x130], rax
mov word [rsp + 0x118], r13w
movups xmmword [rsp + 0xf8], xmm0
mov qword [rsp + 0x108], r13
mov qword [rsp + 0x110], rax
mov word [rsp + 0xf8], r13w
movups xmmword [rsp + 0xd8], xmm0
mov qword [rsp + 0xe8], r13
mov qword [rsp + 0xf0], rax
mov word [rsp + 0xd8], r13w
movups xmmword [rsp + 0xb8], xmm0
movdqu xmmword [rsp + 0xc8], xmm1
mov word [rsp + 0xb8], r13w
lea r9, [0x140052770]
mov r8, r15
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x98]
call fcn.140031b58
mov rdx, rax
lea rcx, [rsp + 0x138]
call fcn.140013ec8
lea rcx, [rsp + 0x98]
call fcn.140013e34
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0x118]
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x138]
call fcn.140032de4
mov r14d, eax
test eax, eax
jns 0x140032443
call fcn.14001279c
mov rbx, rax
cmp dword [rax], 4
jbe 0x1400323eb
lea rcx, [rsp + 0x138]
call fcn.140009b30
mov qword [rsp + 0x60], rax
lea rax, str.Failed_to_extract_VID_PID_SerialId_information_from_Device_Instance_Id
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005d7ce]
mov rcx, rbx
call fcn.14000d994
nop
lea rcx, [rsp + 0xb8]
call fcn.140013e34
nop
lea rcx, [rsp + 0xd8]
call fcn.140013e34
nop
lea rcx, [rsp + 0xf8]
call fcn.140013e34
nop
lea rcx, [rsp + 0x118]
call fcn.140013e34
nop
lea rcx, [rsp + 0x138]
call fcn.140013e34
nop
lea rcx, [rsp + 0x70]
call fcn.140013b4c
mov eax, r14d
jmp 0x1400329b3
cmp qword [rsp + 0xe8], r13
jbe 0x14003283e
cmp qword [rsp + 0x128], r13
jbe 0x14003283e
cmp qword [rsp + 0x108], r13
jbe 0x14003283e
cmp qword [rdi], r13
jne 0x140032478
lea rbx, [rdi + 8]
jmp 0x1400324be
call fcn.14001279c
cmp dword [rax], 4
jbe 0x1400324a7
lea rcx, str.Removable_media_attributes_filled_with_unexpected_details._Resetting.
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14005d4c7]
mov rcx, rax
call fcn.14000d2b4
mov qword [rdi], r13
lea rbx, [rdi + 8]
mov rcx, qword [rbx]
mov qword [rbx], r13
test rcx, rcx
je 0x1400324be
call fcn.14000a4d0
lea rcx, [rsp + 0x98]
call fcn.1400303ac
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rdi], rcx
mov rcx, qword [rbx]
mov qword [rbx], rdx
test rcx, rcx
je 0x1400324ec
call fcn.14000a4d0
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400324fe
call fcn.14000a4d0
lea r9, [0x140052718]
mov r8, r15
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x98]
call fcn.140031b58
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.140013ec8
lea rcx, [rsp + 0x98]
call fcn.140013e34
lea r9, [0x140052758]
mov r8, r15
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x198]
call fcn.140031b58
nop
mov ebx, 1
mov dword [rsp + 0x58], ebx
mov rcx, rax
call fcn.140009b30
mov rcx, qword [rdi]
add rcx, 0x4b6
mov r8, rax
mov esi, 0xc8
mov edx, esi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_wcscpy_s]
nop dword [rax + rax]
test eax, eax
jne 0x14003265e
lea r9, [0x140052730]
mov r8, r15
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x178]
call fcn.140031b58
nop
mov ebx, 3
mov dword [rsp + 0x58], ebx
mov rcx, rax
call fcn.140009b30
mov rcx, qword [rdi]
add rcx, 0x96c
mov r8, rax
mov edx, esi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_wcscpy_s]
nop dword [rax + rax]
test eax, eax
jne 0x14003265e
lea rcx, [rsp + 0xb8]
call fcn.140009b30
mov rcx, qword [rdi]
add rcx, 0x7da
mov r8, rax
mov edx, esi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_wcscpy_s]
nop dword [rax + rax]
test eax, eax
jne 0x14003265e
lea rcx, [rsp + 0xb8]
call fcn.14002c224
mov r9, rax
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xb8]
call fcn.14000a7b0
mov ebx, 7
mov rcx, rax
call fcn.140009b30
mov rcx, qword [rdi]
add rcx, 0x648
mov r8, rax
mov edx, esi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_wcscpy_s]
nop dword [rax + rax]
test eax, eax
mov sil, r13b
je 0x140032661
mov sil, 1
test bl, 4
je 0x140032677
and ebx, 0xfffffffb
lea rcx, [rsp + 0x98]
call fcn.140013e34
nop
test bl, 2
je 0x14003268d
and ebx, 0xfffffffd
lea rcx, [rsp + 0x178]
call fcn.140013e34
nop
test bl, 1
je 0x14003269f
lea rcx, [rsp + 0x198]
call fcn.140013e34
test sil, sil
je 0x140032775
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 0x1400326c3
movzx ebx, ax
or ebx, 0x80070000
call fcn.14001279c
mov rdi, rax
cmp dword [rax], 2
jbe 0x14003271e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x50], eax
lea rax, str.Failed_to_copy_removable_media_attributes
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x58], ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005d2b7]
mov rcx, rdi
call fcn.1400010b4
nop
lea rcx, [rsp + 0xb8]
call fcn.140013e34
nop
lea rcx, [rsp + 0xd8]
call fcn.140013e34
nop
lea rcx, [rsp + 0xf8]
call fcn.140013e34
nop
lea rcx, [rsp + 0x118]
call fcn.140013e34
nop
lea rcx, [rsp + 0x138]
call fcn.140013e34
nop
lea rcx, [rsp + 0x70]
call fcn.140013b4c
mov eax, ebx
jmp 0x1400329b3
mov byte [r12], 1
call fcn.14001279c
mov rbx, rax
cmp dword [rax], 3
jbe 0x14003283e
mov rdx, qword [rdi]
lea rcx, [rdx + 0x648]
mov qword [rsp + 0x60], rcx
lea rcx, [rdx + 0x96c]
mov qword [rsp + 0x58], rcx
lea rcx, [rdx + 0x7da]
mov qword [rsp + 0x78], rcx
lea rcx, [rdx + 0x4b6]
mov qword [rsp + 0x88], rcx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x1400327d9
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x50], eax
lea rax, str.Target_path_attributes:
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005d5e9]
mov rcx, rbx
call fcn.140002adc
nop
lea rcx, [rsp + 0xb8]
call fcn.140013e34
nop
lea rcx, [rsp + 0xd8]
call fcn.140013e34
nop
lea rcx, [rsp + 0xf8]
call fcn.140013e34
nop
lea rcx, [rsp + 0x118]
call fcn.140013e34
nop
lea rcx, [rsp + 0x138]
call fcn.140013e34
nop
lea rcx, [rsp + 0x70]
call fcn.140013b4c
nop
mov eax, r14d
jmp 0x1400329b3
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 0x1400328b2
movzx ebx, ax
or ebx, 0x80070000
call fcn.14001279c
mov rdi, rax
cmp dword [rax], 2
jbe 0x140032913
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x50], eax
lea rax, str.DeviceIoControl___failed
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x58], ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005d2b7]
mov rcx, rdi
call fcn.1400010b4
nop
lea rcx, [rsp + 0x70]
call fcn.140013b4c
mov eax, ebx
jmp 0x1400329b3
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 0x14003293f
movzx ebx, ax
or ebx, 0x80070000
call fcn.14001279c
mov rdi, rax
cmp dword [rax], 2
jbe 0x1400329a0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x58], ebx
lea rax, str.CreateFile_failed
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005d384]
mov rcx, rdi
call fcn.140001a94
nop
lea rcx, [rsp + 0x70]
call fcn.140013b4c
mov eax, ebx
jmp 0x1400329b3
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.1400165f0
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret