Function at 0x140040da0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14009cb48]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
movdqa xmm0, xmmword [0x140085330]
xor edi, edi
or rsi, 0xffffffffffffffff
mov word [rsp + 0x40], di
mov r8, rsi
mov r14, rdx
mov r15, rcx
movdqu xmmword [rsp + 0x50], xmm0
inc r8
cmp word [rdx + r8*2], di
jne 0x140040dee
lea rcx, [rsp + 0x40]
call fcn.14001ed20
lea rcx, [rsp + 0x40]
call fcn.1400406a0
lea rcx, [rsp + 0x40]
mov bl, al
call fcn.14001b8c0
test bl, bl
je 0x140040e23
mov al, 1
jmp 0x140041092
mov ebx, 7
mov qword [rsp + 0x70], rdi
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x78], rbx
mov rcx, r15
mov word [rsp + 0x60], di
call fcn.14003ffc0
test al, al
je 0x140041085
mov qword [rsp + 0x30], rdi
mov r8, rsi
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x20], di
inc r8
cmp word [r14 + r8*2], di
jne 0x140040e5e
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.14001ed20
mov r9, qword [rsp + 0x38]
lea rax, [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
mov r14d, 8
mov rdx, qword [rsp + 0x30]
cmp r9, r14
cmovae rax, rcx
cmp word [rax + rdx*2 - 2], 0x5c
jne 0x140040f17
movdqa xmm0, xmmword [0x140085330]
lea r8, [rdx - 1]
cmp rdx, r8
mov word [rsp + 0x40], di
movdqu xmmword [rsp + 0x50], xmm0
cmovb r8, rdx
cmp r9, r14
lea rdx, [rsp + 0x20]
cmovae rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.14001ed20
lea rcx, [rsp + 0x20]
call fcn.14001b8c0
movups xmm0, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x40]
mov word [rsp + 0x40], di
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [0x140085330]
movdqu xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x30], xmm1
call fcn.14001b8c0
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
cmp r9, r14
lea rdx, [rsp + 0x20]
cmovae rdx, rcx
cmp qword [rsp + 0x78], r14
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
je 0x140041078
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140040570
lea rcx, [rsp + 0x20]
mov r8b, al
call fcn.1400410c0
test al, al
jne 0x140040fcb
test r8b, r8b
je 0x14004107b
movdqa xmm0, xmmword [0x140085330]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
mov word [rsp + 0x40], di
movdqu xmmword [rsp + 0x50], xmm0
call fcn.140040440
test al, al
je 0x140040fbc
cmp qword [rsp + 0x38], r14
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
cmovae rdx, qword [rsp + 0x20]
cmp qword [rsp + 0x58], r14
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
sete dil
lea rcx, [rsp + 0x40]
call fcn.14001b8c0
jmp 0x14004107b
cmp qword [rsp + 0x38], r14
lea rax, [rsp + 0x20]
mov qword [rbp - 0x80], rdi
lea rdx, [rbp - 0x70]
cmovae rax, qword [rsp + 0x20]
lea rcx, [rbp - 0x80]
mov ebx, 0x104
mov r8d, ebx
mov eax, dword [rax]
mov dword [rbp - 0x80], eax
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x14004107b
cmp eax, ebx
je 0x14004107b
lea rax, [rbp - 0x70]
inc rsi
cmp word [rax + rsi*2], di
jne 0x140041007
mov rax, qword [rsp + 0x30]
mov ebx, esi
lea rcx, [rax - 2]
add rcx, rbx
cmp rcx, qword [rsp + 0x70]
jne 0x14004107b
cmp qword [rsp + 0x78], r14
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 0x14004107b
cmp qword [rsp + 0x38], r14
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
cmovae rdx, qword [rsp + 0x20]
cmp qword [rsp + 0x78], r14
cmovae rax, qword [rsp + 0x60]
add rdx, 4
lea rcx, [rax + rbx*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14004107b
mov dil, 1
lea rcx, [rsp + 0x20]
call fcn.14001b8c0
lea rcx, [rsp + 0x60]
call fcn.14001b8c0
mov al, dil
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400801e0
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret