Function at 0x1400661d0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1400913a8]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r15d, r15d
mov rdi, rdx
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x40], r15
mov r14, rcx
mov qword [rsp + 0x50], r15
mov r8, rbx
lea r13d, [r15 + 7]
mov qword [rsp + 0x58], r13
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140066225
lea rcx, [rsp + 0x40]
call fcn.14001cda0
lea rcx, [rsp + 0x40]
call fcn.140065810
mov rdx, qword [rsp + 0x58]
mov sil, al
cmp rdx, 8
jb 0x14006628b
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140066286
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140066286
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d8c0
test sil, sil
je 0x140066297
mov al, 1
jmp 0x14006665e
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], r15
mov rcx, r14
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r13
call fcn.140064e00
test al, al
jne 0x1400662bf
mov bl, r15b
jmp 0x140066560
mov qword [rsp + 0x20], r15
mov r8, rbx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r13
inc r8
cmp word [rdi + r8*2], r15w
jne 0x1400662d1
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14001cda0
mov r9, qword [rsp + 0x38]
lea rax, [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
cmp r9, 8
mov rdx, qword [rsp + 0x30]
cmovae rax, rcx
cmp word [rax + rdx*2 - 2], 0x5c
jne 0x1400663a4
lea r8, [rdx - 1]
mov qword [rsp + 0x40], r15
cmp rdx, r8
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r13
cmovb r8, rdx
cmp r9, 8
lea rdx, [rsp + 0x20]
cmovae rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.14001cda0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140066386
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140066381
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140066381
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d8c0
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x20], xmm0
mov rcx, qword [rsp + 0x20]
movups xmmword [rsp + 0x30], xmm1
mov r9, qword [rsp + 0x38]
cmp r9, 8
lea rdx, [rsp + 0x20]
cmovae rdx, rcx
cmp qword [rsp + 0x78], 8
lea rcx, [rsp + 0x60]
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400663d3
mov bl, 1
jmp 0x14006650f
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.1400655e0
cmp qword [rsp + 0x30], 3
mov r9b, al
jb 0x1400665ac
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x20]
mov r8, qword [rsp + 0x20]
cmp rdx, 8
cmovae rcx, r8
cmp word [rcx + 2], 0x3a
jne 0x1400665ac
cmp rdx, 8
lea rax, [rsp + 0x20]
cmovae rax, r8
cmp word [rax + 4], 0x5c
jne 0x1400665ac
cmp rdx, 8
lea rax, [rsp + 0x20]
cmovae rax, r8
movzx ecx, word [rax]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x140066452
sub cx, 0x61
cmp cx, 0x19
ja 0x1400665ac
cmp qword [rsp + 0x38], 8
lea rax, [rsp + 0x20]
mov qword [rbp - 0x80], r15
lea rdx, [rbp - 0x70]
cmovae rax, qword [rsp + 0x20]
lea rcx, [rbp - 0x80]
mov edi, 0x104
mov r8d, edi
mov eax, dword [rax]
mov dword [rbp - 0x80], eax
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x14006650c
cmp eax, edi
je 0x14006650c
lea rax, [rbp - 0x70]
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x140066493
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffffe
mov ebx, ebx
add rcx, rbx
cmp rcx, qword [rsp + 0x70]
jne 0x14006650c
cmp qword [rsp + 0x78], 8
lea rcx, [rsp + 0x60]
mov r8d, ebx
lea rdx, [rbp - 0x70]
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x14006650c
cmp qword [rsp + 0x38], 8
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
cmovae rdx, qword [rsp + 0x20]
add rdx, 4
cmp qword [rsp + 0x78], 8
cmovae rax, qword [rsp + 0x60]
lea rcx, [rax + rbx*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400663cc
mov bl, r15b
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140066550
mov r8, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140066548
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400665a5
mov rcx, r8
call fcn.14001d8c0
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r13
mov word [rsp + 0x20], r15w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14006665c
mov rcx, qword [rsp + 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140066657
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140066657
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test r9b, r9b
je 0x14006650c
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r13
call fcn.1400653b0
test al, al
jne 0x1400665dc
mov bl, r15b
jmp 0x140066609
cmp qword [rsp + 0x38], 8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
cmovae rdx, qword [rsp + 0x20]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
sete bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14006650f
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006664d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006664d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d8c0
jmp 0x14006650f
call fcn.14001d8c0
mov al, bl
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140077590
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret