Function at 0x140042460
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x1400d73a8]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rbx, rdx
mov r12, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x20], 0
mov r15, qword [rdx + 0x10]
test r15, r15
jne 0x1400424d3
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], r15
mov byte [rcx], r15b
call fcn.140006070
nop
jmp 0x140042764
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r14d, eax
xor r13d, r13d
lea edi, [r13 + 0x3b]
test r14b, 1
je 0x1400425b7
movzx eax, word [0x1400aff58]
mov word [rsp + 0x20], ax
movzx eax, byte [0x1400aff5a]
mov byte [rsp + 0x22], al
lea eax, [r13 + 0x41]
mov byte [rsp + 0x20], al
mov byte [rbp - 0x70], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp - 0x6f]
call fcn.140086940
mov r8d, 0x104
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x14004271c
mov word [rsp + 0x24], di
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x24]
lea rcx, [rbp - 0x70]
call fcn.140088ff0
mov rsi, rax
test rax, rax
je 0x1400425b7
nop word [rax + rax]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea r9, [rcx - 1]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.140017910
cmp rax, 0xffffffffffffffff
je 0x14004259b
test rax, rax
je 0x1400425cc
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x24]
xor ecx, ecx
call fcn.140088ff0
mov rsi, rax
test rax, rax
jne 0x140042570
lea edi, [rax + 0x3b]
inc r13d
shr r14d, 1
cmp r13d, 0x20
jae 0x140042741
jmp 0x1400424e3
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
mov r9, r15
lea r8, [rcx - 1]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400373a0
nop
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
cmovae rax, rcx
cmp byte [rax], 0x2f
je 0x1400426cd
lea rax, [rsp + 0x40]
cmp rdx, 0x10
cmovae rax, rcx
cmp byte [rax], 0x5c
je 0x1400426cd
lea r8, [rsp + 0x40]
lea rdx, [0x1400aeaa0]
lea rcx, [rsp + 0x68]
call fcn.1400151f0
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x1400426b8
cmp qword [rsp + 0x58], 0x10
jb 0x140042658
mov rcx, qword [rsp + 0x40]
call fcn.140085df8
mov qword [rsp + 0x58], 0xf
xor esi, esi
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], sil
cmp qword [rdi + 0x18], 0x10
jae 0x14004268a
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140085e10
jmp 0x140042695
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x50], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x58], rax
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rsi
mov byte [rdi], sil
jmp 0x1400426ba
xor esi, esi
cmp qword [rbp - 0x80], 0x10
jb 0x1400426cf
mov rcx, qword [rsp + 0x68]
call fcn.140085df8
jmp 0x1400426cf
xor esi, esi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.1400151f0
nop
cmp qword [rsp + 0x58], 0x10
jb 0x1400426f4
mov rcx, qword [rsp + 0x40]
call fcn.140085df8
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], 0
cmp qword [rbx + 0x18], 0x10
jb 0x140042716
mov rcx, qword [rbx]
call fcn.140085df8
mov qword [rbx + 0x10], rsi
jmp 0x14004277b
mov qword [r12 + 0x18], 0xf
mov qword [r12 + 0x10], 0
mov byte [r12], 0
mov rdx, rbx
mov rcx, r12
call fcn.140006070
nop
jmp 0x140042764
mov qword [r12 + 0x18], 0xf
mov qword [r12 + 0x10], 0
mov byte [r12], 0
mov rdx, rbx
mov rcx, r12
call fcn.140006070
nop
cmp qword [rbx + 0x18], 0x10
jb 0x140042773
mov rcx, qword [rbx]
call fcn.140085df8
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov rax, r12
mov byte [rbx], 0
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140086bc0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret