Function at 0x140058f40
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rax, qword [0x1400c7070]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r14, rdx
mov qword [rbp - 0x51], rdx
mov r15, rcx
mov qword [rbp - 0x59], rcx
mov qword [rbp + 0x17], rcx
test rdx, rdx
je 0x1400590c2
mov r8d, 8
lea rdx, str.device_
mov rcx, r14
call fcn.14006fb24
test eax, eax
jne 0x1400590c2
xor r13d, r13d
lea r12, [0x1400cba40]
lea rdi, [r13 - 1]
cmp byte [0x1400cb924], r13b
jne 0x140059085
movzx r14d, r13w
xor esi, esi
lea r15, [0x1400cba40]
nop word [rax + rax]
mov eax, dword [0x1400b0dd4]
mov dword [rbp + 0x17], eax
movzx eax, word [0x1400b0dd8]
mov word [rbp + 0x1b], ax
lea eax, [r14 + 0x41]
mov word [rbp + 0x17], ax
imul r12, r13, 0x208
lea rbx, [r12 + r15]
mov r8d, 0x104
mov rdx, rbx
lea rcx, [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 3
jb 0x14005902f
lea edx, [rax - 3]
add rdx, rsi
cmp word [r15 + rdx*2], 0x5c
je 0x14005902f
add eax, 0xfffffffe
mov ecx, eax
add rcx, rsi
mov eax, 0x5c
mov word [r15 + rcx*2], ax
xor eax, eax
mov word [r12 + r15 + 0x204], ax
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140059040
mov word [r12 + r15 + 0x206], ax
inc r14w
inc r13
add rsi, 0x104
cmp r14w, 0x1a
jb 0x140058fd0
mov byte [0x1400cb924], 1
mov r15, qword [rbp - 0x59]
mov r14, qword [rbp - 0x51]
lea r12, [0x1400cba40]
xor r13d, r13d
movzx ebx, r13w
nop dword [rax]
movzx eax, bx
imul rdx, rax, 0x208
add rdx, r12
cmp word [rdx], 0
je 0x1400590b9
movzx esi, word [rdx + 0x206]
mov r8d, esi
mov rcx, r14
call fcn.14006fb24
test eax, eax
je 0x1400590f1
inc bx
cmp bx, 0x1a
jb 0x140059090
mov byte [r15 + 0x20], 0
mov rax, r15
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400625f0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [0x1400b0dd4]
mov dword [rbp + 0x17], eax
movzx eax, word [0x1400b0dd8]
mov word [rbp + 0x1b], ax
add bx, 0x41
mov word [rbp + 0x17], bx
lea rdx, [rsi - 1]
lea rdx, [r14 + rdx*2]
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], r13w
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140059130
lea rcx, [rbp - 0x29]
call fcn.14001c900
nop
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], r13w
lea rax, [rbp + 0x17]
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140059160
mov r8, rdi
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x49]
call fcn.14001c900
nop
lea r9, [rbp - 0x29]
lea r8, [rbp - 0x49]
lea rcx, [rbp - 9]
call fcn.140059eb0
movups xmm0, xmmword [rbp - 9]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbp + 7]
movups xmmword [r15 + 0x10], xmm1
mov byte [r15 + 0x20], 1
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x1400591df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400591d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005922a
call fcn.140062610
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x1400590c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005921a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140059224
call fcn.140062610
jmp 0x1400590c7
call fcn.1400695b8
nop
call fcn.1400695b8
int3