Function at 0x10010d278
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r15
sub rsp, 0xf0
mov rsi, rcx
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10010d2cf
test byte [rcx + 0x1c], 1
je 0x10010d2cf
cmp byte [rcx + 0x19], 4
jb 0x10010d2cf
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x41
call fcn.10001c854
xor ebx, ebx
cmp rsi, rbx
jne 0x10010d2ee
lea r8, [0x1000050a8]
lea rcx, [0x100012468]
mov edx, 0x552
call fcn.10009a050
lea rax, [0x100012548]
mov r12d, 4
mov qword [rsp + 0x30], rax
lea rax, [0x100012550]
mov qword [rsp + 0x38], rax
lea rax, [0x100012558]
mov qword [rsp + 0x40], rax
lea rax, [0x100012560]
mov qword [rsp + 0x48], rax
lea rax, [0x100012568]
mov qword [rsp + 0x50], rax
lea rax, [0x100012570]
mov qword [rsp + 0x58], rax
lea rax, [0x100012578]
mov qword [rsp + 0x60], rax
lea rax, [0x100012580]
mov qword [rsp + 0x68], rax
lea rax, [0x100012588]
mov qword [rsp + 0x70], rax
lea rax, [0x100012590]
mov qword [rsp + 0x78], rax
lea rax, [0x100012598]
mov qword [rsp + 0x80], rax
lea rax, [0x1000125a0]
mov qword [rsp + 0x88], rax
lea rax, [0x1000125a8]
mov qword [rsp + 0x90], rax
lea rax, [0x1000125b0]
mov qword [rsp + 0x98], rax
lea rax, [0x1000125b8]
mov qword [rsp + 0xa0], rax
lea rax, [0x1000125c0]
mov qword [rsp + 0xa8], rax
lea rax, [0x1000125c8]
mov qword [rsp + 0xb0], rax
lea rax, [0x1000125d0]
mov qword [rsp + 0xb8], rax
lea rax, [0x1000125d8]
mov qword [rsp + 0xc0], rax
lea rax, [0x1000125e0]
mov qword [rsp + 0xc8], rax
lea rax, [0x1000125e8]
mov qword [rsp + 0xd0], rax
lea rax, [0x1000125f0]
mov qword [rsp + 0xd8], rax
lea rax, [0x1000125f8]
mov qword [rsp + 0xe0], rax
lea rax, [0x100012600]
mov qword [rsp + 0xe8], rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r13d, eax
cmp eax, ebx
jne 0x10010d4a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010d63e
test byte [rcx + 0x1c], 1
je 0x10010d618
cmp byte [rcx + 0x19], 2
jb 0x10010d618
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 0x3e]
lea r8, [0x100002f60]
mov r9d, eax
call fcn.10001c878
jmp 0x10010d611
mov rcx, qword [0x1001653b8]
mov edi, ebx
lea rbp, [rsp + 0x30]
test r13d, r12d
je 0x10010d4fa
cmp rcx, r15
je 0x10010d4ea
test byte [rcx + 0x1c], 1
je 0x10010d4ea
cmp byte [rcx + 0x19], 5
jb 0x10010d4ea
mov r9, qword [rbp]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x44
call fcn.10001db08
mov rcx, qword [0x1001653b8]
inc edi
add r12d, r12d
add rbp, 8
cmp edi, 0x18
jb 0x10010d4b4
jmp 0x10010d52f
cmp rcx, r15
je 0x10010d52f
test byte [rcx + 0x1c], 1
je 0x10010d52f
cmp byte [rcx + 0x19], 4
jb 0x10010d52f
mov rcx, qword [rcx + 0x10]
mov r9d, edi
lea r8, [0x100002f60]
mov r9, qword [rsp + r9*8 + 0x30]
mov edx, 0x43
call fcn.10001db08
mov rcx, qword [0x1001653b8]
cmp edi, 0x18
jne 0x10010d56c
cmp rcx, r15
je 0x10010d562
test byte [rcx + 0x1c], 1
je 0x10010d562
cmp byte [rcx + 0x19], 4
jb 0x10010d562
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x2d]
lea r8, [0x100002f60]
mov r9, rsi
call fcn.10001db08
mov rcx, qword [0x1001653b8]
mov ebx, 1
jmp 0x10010d618
mov eax, edi
mov rdx, rsi
mov rdi, qword [rsp + rax*8 + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
cmp eax, ebx
jne 0x10010d5dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010d63e
test byte [rcx + 0x1c], 1
je 0x10010d618
cmp byte [rcx + 0x19], 2
jb 0x10010d618
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
lea r8, [0x100002f60]
mov edx, 0x46
mov r9, rdi
mov qword [rsp + 0x20], rsi
call fcn.10001e39c
jmp 0x10010d611
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010d63e
test byte [rcx + 0x1c], 1
je 0x10010d618
cmp byte [rcx + 0x19], 4
jb 0x10010d618
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x47
mov r9, rdi
mov qword [rsp + 0x20], rsi
call fcn.10001df74
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010d63e
test byte [rcx + 0x1c], 1
je 0x10010d63e
cmp byte [rcx + 0x19], 4
jb 0x10010d63e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x48
call fcn.10001c854
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
ret