Function at 0x140033430
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 [0x14006afb8]
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 0x140033d09
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 0x1400335e9
cmp dword [rsp + 0x158], 1
jne 0x14003357e
mov ebx, dword [rsp + 0x160]
call fcn.14001226c
cmp dword [rax], 4
jbe 0x14003364c
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, [0x14005bec8]
mov rcx, rax
call fcn.14000c22c
jmp 0x14003364c
call fcn.14001226c
cmp dword [rax], 2
jbe 0x1400335d5
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, [0x14005bd51]
mov rcx, rax
call fcn.1400010b8
nop
lea rcx, [rsp + 0x70]
call fcn.1400134e0
mov eax, 0x80004005
jmp 0x140033d98
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 0x140033c7c
mov ebx, dword [rsp + 0x8c]
cmp ebx, esi
jne 0x140033c69
xorps xmm0, xmm0
movups xmmword [rsp + 0xd8], xmm0
movdqa xmm1, xmmword [0x14004b1c0]
movdqu xmmword [rsp + 0xe8], xmm1
mov word [rsp + 0xd8], r13w
movups xmmword [rsp + 0x138], xmm0
mov qword [rsp + 0x148], r13
mov eax, 7
mov qword [rsp + 0x150], rax
mov word [rsp + 0x138], r13w
movups xmmword [rsp + 0x118], xmm0
mov qword [rsp + 0x128], r13
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 + 0xb8], xmm0
movdqu xmmword [rsp + 0xc8], xmm1
mov word [rsp + 0xb8], r13w
lea r9, [0x140051c78]
mov r8, r15
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x98]
call fcn.140032f20
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.1400137d4
lea rcx, [rsp + 0x98]
call fcn.140013750
lea r9, [rsp + 0xf8]
lea r8, [rsp + 0x138]
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0xd8]
call fcn.1400341c8
mov r14d, eax
test eax, eax
jns 0x140033815
call fcn.14001226c
cmp dword [rax], 4
jbe 0x1400337bd
lea rcx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rcx, qword [rsp + 0xd8]
mov qword [rsp + 0x60], rcx
lea rcx, str.Failed_to_extract_VID_PID_SerialId_information_from_Device_Instance_Id
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14005c22e]
mov rcx, rax
call fcn.14000d0a0
nop
lea rcx, [rsp + 0xb8]
call fcn.140013750
nop
lea rcx, [rsp + 0xf8]
call fcn.140013750
nop
lea rcx, [rsp + 0x118]
call fcn.140013750
nop
lea rcx, [rsp + 0x138]
call fcn.140013750
nop
lea rcx, [rsp + 0xd8]
call fcn.140013750
nop
lea rcx, [rsp + 0x70]
call fcn.1400134e0
mov eax, r14d
jmp 0x140033d98
cmp qword [rsp + 0x108], r13
jbe 0x140033c23
cmp qword [rsp + 0x148], r13
jbe 0x140033c23
cmp qword [rsp + 0x128], r13
jbe 0x140033c23
cmp qword [rdi], r13
jne 0x14003384a
lea rbx, [rdi + 8]
jmp 0x140033890
call fcn.14001226c
cmp dword [rax], 4
jbe 0x140033879
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, [0x14005bf27]
mov rcx, rax
call fcn.14000c2e0
mov qword [rdi], r13
lea rbx, [rdi + 8]
mov rcx, qword [rbx]
mov qword [rbx], r13
test rcx, rcx
je 0x140033890
call fcn.140009b20
lea rcx, [rsp + 0x98]
call fcn.140031820
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 0x1400338be
call fcn.140009b20
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400338d0
call fcn.140009b20
lea r9, [0x140051c20]
mov r8, r15
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x98]
call fcn.140032f20
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.1400137d4
lea rcx, [rsp + 0x98]
call fcn.140013750
lea r9, [0x140051c60]
mov r8, r15
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x198]
call fcn.140032f20
nop
mov ebx, 1
mov dword [rsp + 0x58], ebx
cmp qword [rax + 0x18], 8
jb 0x140033939
mov rax, qword [rax]
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 0x140033a43
lea r9, [0x140051c38]
mov r8, r15
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x178]
call fcn.140032f20
nop
mov ebx, 3
mov dword [rsp + 0x58], ebx
cmp qword [rax + 0x18], 8
jb 0x140033991
mov rax, qword [rax]
mov rcx, qword [rdi]
add rcx, 0x96c
mov r8, rax
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_wcscpy_s]
nop dword [rax + rax]
test eax, eax
jne 0x140033a43
lea r8, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae r8, qword [rsp + 0xb8]
mov rcx, qword [rdi]
add rcx, 0x7da
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_wcscpy_s]
nop dword [rax + rax]
test eax, eax
jne 0x140033a43
lea rcx, [rsp + 0xb8]
call fcn.14002d944
mov r9, rax
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xb8]
call fcn.14000b3c0
mov ebx, 7
cmp qword [rax + 0x18], 8
jb 0x140033a20
mov rax, qword [rax]
mov rcx, qword [rdi]
add rcx, 0x648
mov r8, rax
mov rdx, rsi
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 0x140033a46
mov sil, 1
test bl, 4
je 0x140033a5c
and ebx, 0xfffffffb
lea rcx, [rsp + 0x98]
call fcn.140013750
nop
test bl, 2
je 0x140033a72
and ebx, 0xfffffffd
lea rcx, [rsp + 0x178]
call fcn.140013750
nop
test bl, 1
je 0x140033a84
lea rcx, [rsp + 0x198]
call fcn.140013750
test sil, sil
je 0x140033b5a
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 0x140033aa8
movzx ebx, ax
or ebx, 0x80070000
call fcn.14001226c
mov rdi, rax
cmp dword [rax], 2
jbe 0x140033b03
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, [0x14005bd17]
mov rcx, rdi
call fcn.1400010b8
nop
lea rcx, [rsp + 0xb8]
call fcn.140013750
nop
lea rcx, [rsp + 0xf8]
call fcn.140013750
nop
lea rcx, [rsp + 0x118]
call fcn.140013750
nop
lea rcx, [rsp + 0x138]
call fcn.140013750
nop
lea rcx, [rsp + 0xd8]
call fcn.140013750
nop
lea rcx, [rsp + 0x70]
call fcn.1400134e0
mov eax, ebx
jmp 0x140033d98
mov byte [r12], 1
call fcn.14001226c
mov rbx, rax
cmp dword [rax], 3
jbe 0x140033c23
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 0x140033bbe
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, [0x14005c049]
mov rcx, rbx
call fcn.140002b78
nop
lea rcx, [rsp + 0xb8]
call fcn.140013750
nop
lea rcx, [rsp + 0xf8]
call fcn.140013750
nop
lea rcx, [rsp + 0x118]
call fcn.140013750
nop
lea rcx, [rsp + 0x138]
call fcn.140013750
nop
lea rcx, [rsp + 0xd8]
call fcn.140013750
nop
lea rcx, [rsp + 0x70]
call fcn.1400134e0
nop
mov eax, r14d
jmp 0x140033d98
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 0x140033c97
movzx ebx, ax
or ebx, 0x80070000
call fcn.14001226c
mov rdi, rax
cmp dword [rax], 2
jbe 0x140033cf8
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, [0x14005bd17]
mov rcx, rdi
call fcn.1400010b8
nop
lea rcx, [rsp + 0x70]
call fcn.1400134e0
mov eax, ebx
jmp 0x140033d98
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 0x140033d24
movzx ebx, ax
or ebx, 0x80070000
call fcn.14001226c
mov rdi, rax
cmp dword [rax], 2
jbe 0x140033d85
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, [0x14005bde4]
mov rcx, rdi
call fcn.140001ab4
nop
lea rcx, [rsp + 0x70]
call fcn.1400134e0
mov eax, ebx
jmp 0x140033d98
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140015f80
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret