Function at 0x140009160
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x868]
sub rsp, 0x940
mov qword [rbp], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140158010]
xor rax, rsp
mov qword [rbp + 0x830], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rax, [0x1400e3c80]
mov qword [rsp + 0x30], rax
lea rax, [0x1400e3c88]
mov qword [rsp + 0x38], rax
lea rax, [0x1400e3c90]
mov qword [rsp + 0x40], rax
lea rax, [0x1400e3c98]
mov qword [rsp + 0x48], rax
lea rax, [0x1400e3ca0]
mov qword [rsp + 0x50], rax
lea rax, [0x1400e3ca8]
mov qword [rsp + 0x58], rax
lea rax, [0x1400e3cb0]
mov qword [rsp + 0x60], rax
lea rax, [0x1400e3cb8]
mov qword [rsp + 0x68], rax
lea rax, [0x1400e3cc0]
mov qword [rsp + 0x70], rax
lea rax, [0x1400e3cc8]
mov qword [rsp + 0x78], rax
lea rax, [0x1400e3cd0]
mov qword [rbp - 0x80], rax
lea rax, [0x1400e3cd8]
mov qword [rbp - 0x78], rax
lea rax, [0x1400e3ce0]
mov qword [rbp - 0x70], rax
lea rax, [0x1400e3ce8]
mov qword [rbp - 0x68], rax
lea rax, [0x1400e3cf0]
mov qword [rbp - 0x60], rax
lea rax, [0x1400e3cf8]
mov qword [rbp - 0x58], rax
lea rax, [0x1400e3d00]
mov qword [rbp - 0x50], rax
lea rax, [0x1400e3d08]
mov qword [rbp - 0x48], rax
lea rax, [0x1400e3d10]
mov qword [rbp - 0x40], rax
lea rax, [0x1400e3d18]
mov qword [rbp - 0x38], rax
lea rax, [0x1400e3d20]
mov qword [rbp - 0x30], rax
lea rax, [0x1400e3d28]
mov qword [rbp - 0x28], rax
lea rax, [0x1400e3d30]
mov qword [rbp - 0x20], rax
lea rax, [0x1400e3d38]
mov qword [rbp - 0x18], rax
lea rax, [0x1400e3d40]
mov qword [rbp - 0x10], rax
lea rax, [0x1400e3d48]
mov qword [rbp - 8], rax
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov r12d, r13d
lea r14, [r13 - 1]
nop
mov r8d, 0x400
lea rdx, [rbp + 0x30]
mov rcx, qword [rsp + r12*8 + 0x30]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_QueryDosDeviceW]
test eax, eax
je 0x1400094cd
call fcn.140004ea0
test rax, rax
je 0x140009672
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 8], rax
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 8]
call fcn.140004660
test al, al
jne 0x14000934f
lea rcx, [rbp + 0x30]
mov rax, r14
inc rax
cmp word [rcx + rax*2], 0
jne 0x140009334
mov r8d, eax
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 8]
call fcn.1400048e0
nop
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.140006b40
lea rdi, [rax + 0x18]
mov qword [rbp + 0x18], rdi
cmp dword [rdi - 0x10], 0xa
jge 0x14000936e
mov eax, r14d
jmp 0x14000938e
lea rcx, [rdi + 0x14]
lea rdx, [0x1400e48b4]
call fcn.1400c4db0
test rax, rax
jne 0x140009388
mov eax, r14d
jmp 0x14000938e
sub rax, rdi
sar rax, 1
mov esi, r13d
test eax, eax
cmovns esi, eax
lea r15, [rdi - 0x18]
cmp esi, dword [rdi - 0x10]
jl 0x1400093b4
mov rcx, r15
call fcn.140006b40
lea rbx, [rax + 0x18]
mov qword [rbp + 0x20], rbx
jmp 0x140009438
mov rcx, qword [r15]
test rcx, rcx
je 0x1400093c7
mov rax, qword [rcx]
call qword [rax + 0x20]
test rax, rax
jne 0x1400093de
call fcn.140004ea0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
test rax, rax
je 0x140009667
test rdi, rdi
jne 0x1400093eb
test esi, esi
jne 0x14000967d
mov r9, qword [rax]
mov r8d, 2
mov edx, esi
mov rcx, rax
call qword [r9]
test rax, rax
je 0x1400096a9
lea rbx, [rax + 0x18]
mov qword [rbp + 0x20], rbx
test esi, esi
js 0x14000969e
cmp esi, dword [rbx - 0xc]
jg 0x14000969e
mov dword [rbx - 0x10], esi
movsxd rdx, esi
mov word [rbx + rdx*2], r13w
mov r9d, esi
mov r8, rdi
mov rcx, rbx
call fcn.140004850
nop
mov rdi, qword [rbp + 8]
test rdi, rdi
je 0x140009693
mov rax, rbx
mov rdx, rdi
sub rdx, rbx
nop
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x140009467
add rax, 2
test cx, cx
jne 0x140009450
mov eax, r13d
jmp 0x14000946c
sbb eax, eax
or eax, 1
test eax, eax
je 0x140009511
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000948f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, r14d
lock xadd dword [r15 + 0x10], eax
sub eax, 1
jg 0x1400094aa
mov rcx, qword [r15]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 8]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400094c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x28]
inc dword [rsp + 0x20]
inc r12
cmp r12, 0x1a
jl 0x1400092e0
mov eax, r13d
mov rcx, qword [rbp + 0x830]
xor rcx, rsp
call fcn.1400beb20
lea r11, [rsp + 0x940]
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
movsxd rax, dword [rsp + 0x20]
mov rbx, qword [rsp + rax*8 + 0x30]
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x140009688
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 0x10], rax
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.140004660
test al, al
jne 0x14000956f
test rbx, rbx
je 0x14000955f
mov rax, r14
inc rax
cmp word [rbx + rax*2], 0
jne 0x140009552
mov r13d, eax
mov r8d, r13d
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.1400048e0
nop
mov rbx, qword [rbp + 0x10]
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x18]
call fcn.14000ba80
mov rdx, qword [rbp + 0x18]
lea rsi, [rdx - 0x18]
mov r15, qword [rsp + 0x28]
mov rdi, qword [r15]
sub rdi, 0x18
cmp rsi, rdi
je 0x1400095e7
cmp dword [rdi + 0x10], 0
jl 0x1400095db
mov rax, qword [rdi]
cmp qword [rsi], rax
jne 0x1400095db
mov rcx, rsi
call fcn.140006b40
mov rbx, rax
mov ecx, r14d
lock xadd dword [rdi + 0x10], ecx
sub ecx, 1
jg 0x1400095ce
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [r15], rax
mov rbx, qword [rbp + 0x10]
jmp 0x1400095e7
mov r8d, dword [rdx - 0x10]
mov rcx, r15
call fcn.1400048e0
mov r13d, 1
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, r13d
jg 0x140009608
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140009627
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, r14d
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x140009641
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 8]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400094de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400094de
mov ecx, 0x80004005
call fcn.140004fd0
nop
mov ecx, 0x80004005
call fcn.140004fd0
nop
mov ecx, 0x80070057
call fcn.140004fd0
nop
mov ecx, 0x80004005
call fcn.140004fd0
int3
mov ecx, 0x80004005
call fcn.140004fd0
nop
mov ecx, 0x80070057
call fcn.140004fd0
int3
call fcn.140004840
int3