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 + 0x78], 0xfffffffffffffffe
mov rax, qword [0x14006afb8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov esi, r9d
mov rax, r8
mov r15, rdx
mov qword [rsp + 0x60], 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
test rax, rax
jne 0x140033535
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 0x1400334d4
movzx ebx, ax
or ebx, 0x80070000
call fcn.14001226c
mov rdi, rax
cmp dword [rax], 2
jbe 0x14003352e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], ebx
lea rax, str.CreateFile_failed
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005bde4]
mov rcx, rdi
call fcn.140001ab4
mov eax, ebx
jmp 0x140033d40
mov dword [rsp + 0x68], r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x150], xmm0
movups xmmword [rsp + 0x160], xmm0
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0x150]
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 0x14003364a
cmp dword [rsp + 0x150], 1
jne 0x1400335ea
mov ebx, dword [rsp + 0x158]
call fcn.14001226c
cmp dword [rax], 4
jbe 0x1400336ad
mov dword [rsp + 0x50], ebx
lea rcx, str.Target_device_storage_details
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14005bec8]
mov rcx, rax
call fcn.14000c22c
jmp 0x1400336ad
call fcn.14001226c
mov rcx, rax
cmp dword [rax], 2
jbe 0x140033640
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x50], eax
lea rax, str.Unsupported_removable_device_volume_detected._Volume_disk_extent___1
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x58], 0x80004005
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, [0x14005bd51]
call fcn.1400010b8
mov eax, 0x80004005
jmp 0x140033d40
xor eax, eax
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 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 + 0x80]
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 0x140033cbc
mov ebx, dword [rsp + 0x84]
cmp ebx, esi
jne 0x140033cb4
xorps xmm0, xmm0
movups xmmword [rsp + 0xd0], xmm0
movdqa xmm1, xmmword [0x14004b1c0]
movdqu xmmword [rsp + 0xe0], xmm1
mov word [rsp + 0xd0], r13w
movups xmmword [rsp + 0x130], xmm0
mov qword [rsp + 0x140], r13
mov eax, 7
mov qword [rsp + 0x148], rax
mov word [rsp + 0x130], r13w
movups xmmword [rsp + 0x110], xmm0
mov qword [rsp + 0x120], r13
mov qword [rsp + 0x128], rax
mov word [rsp + 0x110], r13w
movups xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], r13
mov qword [rsp + 0x108], rax
mov word [rsp + 0xf0], r13w
movups xmmword [rsp + 0xb0], xmm0
movdqu xmmword [rsp + 0xc0], xmm1
mov word [rsp + 0xb0], r13w
lea r9, [0x140051c78]
mov r8, r15
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.140032f20
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.1400137d4
lea rcx, [rsp + 0x90]
call fcn.140013750
lea r9, [rsp + 0xf0]
lea r8, [rsp + 0x130]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xd0]
call fcn.140034170
mov r14d, eax
test eax, eax
jns 0x14003386b
call fcn.14001226c
mov rcx, rax
cmp dword [rax], 4
jbe 0x14003381e
lea rax, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rax, qword [rsp + 0xd0]
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, [0x14005c22e]
call fcn.14000d0a0
nop
lea rcx, [rsp + 0xb0]
call fcn.140013750
nop
lea rcx, [rsp + 0xf0]
call fcn.140013750
nop
lea rcx, [rsp + 0x110]
call fcn.140013750
nop
lea rcx, [rsp + 0x130]
call fcn.140013750
nop
lea rcx, [rsp + 0xd0]
call fcn.140013750
mov eax, r14d
jmp 0x140033d40
cmp qword [rsp + 0x100], r13
jbe 0x140033c6e
cmp qword [rsp + 0x140], r13
jbe 0x140033c6e
cmp qword [rsp + 0x120], r13
jbe 0x140033c6e
cmp qword [rdi], r13
jne 0x1400338a0
lea rbx, [rdi + 8]
jmp 0x1400338e6
call fcn.14001226c
cmp dword [rax], 4
jbe 0x1400338cf
lea rcx, str.Removable_media_attributes_filled_with_unexpected_details._Resetting.
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x50]
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 0x1400338e6
call fcn.140009b20
lea rcx, [rsp + 0x90]
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 0x140033914
call fcn.140009b20
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140033926
call fcn.140009b20
lea r9, [0x140051c20]
mov r8, r15
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.140032f20
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.1400137d4
lea rcx, [rsp + 0x90]
call fcn.140013750
lea r9, [0x140051c60]
mov r8, r15
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x190]
call fcn.140032f20
nop
mov ebx, 1
mov dword [rsp + 0x58], ebx
cmp qword [rax + 0x18], 8
jb 0x14003398f
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 0x140033a99
lea r9, [0x140051c38]
mov r8, r15
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x170]
call fcn.140032f20
nop
mov ebx, 3
mov dword [rsp + 0x58], ebx
cmp qword [rax + 0x18], 8
jb 0x1400339e7
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 0x140033a99
lea r8, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae r8, qword [rsp + 0xb0]
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 0x140033a99
lea rcx, [rsp + 0xb0]
call fcn.14002d944
mov r9, rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xb0]
call fcn.14000b3c0
mov ebx, 7
cmp qword [rax + 0x18], 8
jb 0x140033a76
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 0x140033a9c
mov sil, 1
test bl, 4
je 0x140033ab2
and ebx, 0xfffffffb
lea rcx, [rsp + 0x90]
call fcn.140013750
nop
test bl, 2
je 0x140033ac8
and ebx, 0xfffffffd
lea rcx, [rsp + 0x170]
call fcn.140013750
nop
test bl, 1
je 0x140033ada
lea rcx, [rsp + 0x190]
call fcn.140013750
test sil, sil
je 0x140033ba5
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 0x140033afe
movzx ebx, ax
or ebx, 0x80070000
call fcn.14001226c
mov rdi, rax
cmp dword [rax], 2
jbe 0x140033b59
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 + 0xb0]
call fcn.140013750
nop
lea rcx, [rsp + 0xf0]
call fcn.140013750
nop
lea rcx, [rsp + 0x110]
call fcn.140013750
nop
lea rcx, [rsp + 0x130]
call fcn.140013750
nop
lea rcx, [rsp + 0xd0]
call fcn.140013750
mov eax, ebx
jmp 0x140033d40
mov byte [r12], 1
call fcn.14001226c
mov rbx, rax
cmp dword [rax], 3
jbe 0x140033c6e
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 + 0x70], rcx
lea rcx, [rdx + 0x4b6]
mov qword [rsp + 0x80], rcx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140033c09
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x50], eax
lea rax, str.Target_path_attributes:
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005c049]
mov rcx, rbx
call fcn.140002b78
nop
lea rcx, [rsp + 0xb0]
call fcn.140013750
nop
lea rcx, [rsp + 0xf0]
call fcn.140013750
nop
lea rcx, [rsp + 0x110]
call fcn.140013750
nop
lea rcx, [rsp + 0x130]
call fcn.140013750
nop
lea rcx, [rsp + 0xd0]
call fcn.140013750
nop
mov eax, r14d
jmp 0x140033d40
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 0x140033cd7
movzx ebx, ax
or ebx, 0x80070000
call fcn.14001226c
mov rdi, rax
cmp dword [rax], 2
jbe 0x140033d37
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 + 0x90], rax
mov dword [rsp + 0x58], ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005bd17]
mov rcx, rdi
call fcn.1400010b8
mov eax, ebx
jmp 0x140033d40
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140015f80
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret