Function at 0x1400173b0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4a8]
sub rsp, 0x580
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14012dcd0]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov r15, rcx
mov qword [rbp - 0x68], rcx
xor r12d, r12d
mov edi, r12d
mov dword [rsp + 0x40], r12d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x260]
call fcn.1400b5f30
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x50]
call fcn.1400b5f30
mov edx, 0x104
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov qword [rbp - 0x80], rax
cmp rax, 0xffffffffffffffff
je 0x140017d19
lea rax, [rbp + 0x50]
or r13, 0xffffffffffffffff
mov rbx, r13
nop
inc rbx
cmp word [rax + rbx*2], di
jne 0x140017450
dec rbx
call fcn.140004650
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
je 0x140017d0e
lea rsi, [rbp + 0x50]
shr rsi, 0x10
mov qword [rsp + 0x78], rsi
lea r14, [0x1400de340]
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
test rsi, rsi
jne 0x1400174c7
lea rax, [rbp + 0x50]
movzx esi, ax
xor edx, edx
mov ecx, esi
call fcn.140002cd0
test rax, rax
je 0x1400174ec
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400050f0
jmp 0x1400174ec
lea rcx, [rbp + 0x50]
mov rax, r13
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400174d0
mov r8d, eax
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.140007830
nop
or edi, 1
mov dword [rsp + 0x40], edi
mov r8d, 4
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x58]
call fcn.1400180c0
or edi, 2
mov dword [rsp + 0x40], edi
mov rdx, qword [rax]
mov rcx, r12
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r14 + rcx*2 - 2]
jne 0x14001753a
cmp rcx, 5
jne 0x140017520
mov eax, r12d
jmp 0x14001753f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140017550
cmp word [rbp + rbx*2 + 0x50], 0x5c
jne 0x140017550
xor sil, sil
jmp 0x140017553
mov sil, 1
test dil, 2
je 0x140017582
and edi, 0xfffffffd
mov dword [rsp + 0x40], edi
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001757e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
mov edi, dword [rsp + 0x40]
test dil, 1
je 0x1400175ae
and edi, 0xfffffffe
mov dword [rsp + 0x40], edi
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400175ae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
test sil, sil
jne 0x140017d02
add rbx, rbx
cmp rbx, 0x208
jae 0x140017cfc
mov word [rbp + rbx + 0x50], r12w
mov r8d, 0x104
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov r14d, r13d
call fcn.140004650
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
je 0x140017cf1
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x260]
lea rax, [rbp + 0x260]
test rax, 0xffffffffffff0000
jne 0x140017648
movzx ebx, cx
xor edx, edx
mov ecx, ebx
call fcn.140002cd0
test rax, rax
je 0x140017671
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400050f0
jmp 0x140017671
lea rcx, [rbp + 0x260]
mov rax, r13
inc rax
cmp word [rcx + rax*2], 0
jne 0x140017652
mov r8d, eax
lea rdx, [rbp + 0x260]
lea rcx, [rsp + 0x48]
call fcn.140007830
nop
cmp dword [r15 + 0x28], 2
jne 0x1400178e4
call fcn.140004650
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
je 0x140017abb
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rbx, str.DeviceCdRom
mov rsi, rbx
shr rsi, 0x10
test rsi, rsi
jne 0x1400176da
movzx ebx, bx
xor edx, edx
mov ecx, ebx
call fcn.140002cd0
test rax, rax
je 0x1400176ef
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400050f0
jmp 0x1400176ef
mov r8d, ntohl
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140007830
jmp 0x1400176f6
lea rbx, str.DeviceCdRom
mov rax, qword [rsp + 0x60]
mov r8d, dword [rax - 0x10]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400180c0
mov rdx, qword [rax]
mov rcx, r12
movzx eax, word [rdx + rcx*2]
cmp ax, word [rbx + rcx*2]
jne 0x140017738
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [rbx + rcx*2 + 2]
jne 0x140017738
add rcx, 2
cmp rcx, 0xe
jne 0x140017713
mov eax, r12d
jmp 0x14001773d
sbb eax, eax
or eax, 1
test eax, eax
sete bl
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017761
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017780
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
test bl, bl
je 0x140017a07
call fcn.140004650
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
je 0x140017ab0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x68], rdi
test rsi, rsi
jne 0x1400177df
lea rax, str.DeviceCdRom
movzx ebx, ax
xor edx, edx
mov ecx, ebx
call fcn.140002cd0
test rax, rax
je 0x1400177fb
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400050f0
jmp 0x1400177f6
mov r8d, ntohl
lea rdx, str.DeviceCdRom
lea rcx, [rsp + 0x68]
call fcn.140007830
mov rdi, qword [rsp + 0x68]
mov esi, dword [rdi - 0x10]
test esi, esi
cmovs esi, r12d
mov rbx, qword [rsp + 0x48]
mov r14d, dword [rbx - 0x10]
mov eax, 0x7fffffff
cmp eax, esi
js 0x140017aa5
cmp esi, r14d
cmovg esi, r14d
test esi, esi
jle 0x1400178a0
sub r14d, esi
lea r15d, [r14 + 1]
cmp dword [rbx - 8], 1
jle 0x140017844
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.1400043b0
mov rbx, qword [rsp + 0x48]
movsxd r8, r15d
add r8, r8
movsxd rax, esi
lea rdx, [rbx + rax*2]
je 0x14001787d
mov eax, r12d
test rbx, rbx
setne al
test eax, eax
je 0x140017a7f
mov eax, r12d
test rdx, rdx
setne al
test eax, eax
je 0x140017a7f
mov rcx, rbx
call fcn.1400b4ef0
test r14d, r14d
js 0x140017a9a
cmp r14d, dword [rbx - 0xc]
jg 0x140017a9a
mov dword [rbx - 0x10], r14d
movsxd rax, r14d
mov word [rbx + rax*2], r12w
mov r15, qword [rbp - 0x68]
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400178ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
mov rax, qword [rsp + 0x48]
cmp dword [rax - 8], 1
jle 0x1400178d2
mov edx, dword [rax - 0x10]
lea rcx, [rsp + 0x48]
call fcn.1400043b0
mov rcx, qword [rsp + 0x48]
call fcn.1400bc084
mov r14d, eax
jmp 0x140017a07
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80
lea r8d, [r9 + 3]
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140017a07
lea rbx, [rbp - 0x50]
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x560000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rdi, r12
test eax, eax
jne 0x1400179b9
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400179fe
mov ecx, eax
lea rdx, [0x1401336e4]
call fcn.1400af724
mov rdi, rax
mov rbx, rax
test rax, rax
je 0x1400179fe
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x560000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400179f1
mov r8d, dword [rbx]
test r8d, r8d
je 0x1400179f1
mov edx, r12d
mov r9d, dword [r15 + 0x2c]
nop dword [rax + rax]
mov eax, edx
lea rcx, [rax + rax*2]
cmp dword [rbx + rcx*8 + 8], r9d
je 0x1400179e6
inc edx
cmp edx, r8d
jb 0x1400179d0
jmp 0x1400179f1
mov eax, edx
lea rcx, [rax + rax*2]
mov r14d, dword [rbx + rcx*8 + 8]
test rdi, rdi
je 0x1400179fe
mov rcx, rdi
call fcn.1400aee84
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp r14d, dword [r15 + 0x2c]
je 0x140017ad1
mov r8d, 0x104
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x140017ac6
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017a4c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
lea rax, [rbp + 0x50]
mov rbx, r13
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140017a53
dec rbx
call fcn.140004650
mov rdx, rax
test rax, rax
je 0x140017d0e
mov edi, dword [rsp + 0x40]
mov rsi, qword [rsp + 0x78]
jmp 0x140017482
call fcn.1400b79c0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1400b7870
mov ecx, 0x80070057
call fcn.140003970
int3
mov ecx, 0x80070057
call fcn.140003970
int3
mov ecx, 0x80070216
call fcn.140003970
nop
mov ecx, 0x80004005
call fcn.140003970
int3
mov ecx, 0x80004005
call fcn.140003970
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140017cd1
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp - 0x30]
call fcn.1400b5f30
call fcn.140004650
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140017b02
mov ecx, 0x80004005
call fcn.140003970
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0x50]
cmp qword [rsp + 0x78], 0
jne 0x140017b43
movzx ebx, ax
xor edx, edx
mov ecx, ebx
call fcn.140002cd0
test rax, rax
je 0x140017b6c
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400050f0
jmp 0x140017b6c
lea rcx, [rbp + 0x50]
mov rax, r13
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140017b50
mov r8d, eax
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140007830
nop
lea r8, [0x1400de108]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x60]
call fcn.1400145c0
nop
mov rdx, rax
lea rcx, [r15 + 8]
call fcn.14000d2f0
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017bae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017bcd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
mov rax, qword [r15 + 8]
cmp dword [rax - 8], 1
jle 0x140017be3
mov edx, dword [rax - 0x10]
lea rcx, [r15 + 8]
call fcn.1400043b0
mov rdx, qword [r15 + 8]
mov rcx, r15
call fcn.140017d50
mov rax, qword [r15 + 0x40]
sub rax, qword [r15 + 0x38]
sar rax, 3
test rax, rax
je 0x140017cd1
mov rax, qword [r15 + 0x38]
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8d, [r9 + 0x40]
lea rdx, [rbp - 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea rcx, [r15 + 0x18]
test eax, eax
je 0x140017c53
lea rdx, [rbp - 0x30]
mov rax, r13
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x140017c40
mov r8d, eax
lea rdx, [rbp - 0x30]
jmp 0x140017c5d
xor r8d, r8d
lea rdx, [0x1400dd1f0]
call fcn.140007830
mov rax, qword [r15 + 0x40]
sub rax, qword [r15 + 0x38]
sar rax, 3
test eax, eax
jle 0x140017cd1
mov rbx, r12
nop word [rax + rax]
mov rcx, qword [r15 + 0x38]
mov rax, qword [rbx + rcx]
cmp dword [rax - 0x10], 4
jge 0x140017c9c
cmp dword [rax - 0x10], 0
jl 0x140017cc6
movzx eax, word [rax]
mov byte [r15], al
jmp 0x140017cac
movsxd rax, r12d
lea rdx, [rcx + rax*8]
lea rcx, [r15 + 0x10]
call fcn.14000d2f0
inc r12d
add rbx, 8
mov rax, qword [r15 + 0x40]
sub rax, qword [r15 + 0x38]
sar rax, 3
cmp r12d, eax
jge 0x140017cd1
jmp 0x140017c80
mov ecx, 0x80070057
call fcn.140003970
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x140017d02
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
jmp 0x140017d02
mov ecx, 0x80004005
call fcn.140003970
int3
call fcn.1400af23c
int3
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
jmp 0x140017d19
mov ecx, 0x80004005
call fcn.140003970
int3
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.1400af8c0
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x20
call fcn.14000d2f0
mov rcx, rbx
call fcn.140017290
test eax, eax
je 0x1400180ab
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1400173b0
add rsp, 0x20
pop rbx
ret