Function at 0x140086c40
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9f0]
sub rsp, 0xaf0
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rbp + 0x9e0], rax
mov eax, r8d
mov dword [rsp + 0x30], eax
mov r13, rdx
mov qword [rsp + 0x38], rdx
mov r12, rcx
mov qword [rsp + 0x40], rcx
test rdx, rdx
je 0x1400871a9
test eax, eax
je 0x1400871a9
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x1e0]
call fcn.14035c350
lea rdx, [rbp + 0x1e0]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
dec eax
mov rsi, 0xffffffffffffffff
xor r15d, r15d
cmp eax, 0x3ff
ja 0x140086d86
lea r14, [rbp + 0x1e0]
cmp word [rbp + 0x1e0], r15w
je 0x140086d86
mov rdi, r13
nop dword [rax]
mov rax, rsi
inc rax
cmp word [r14 + rax*2], r15w
jne 0x140086cf3
inc rax
lea rcx, [r14 + rax*2]
mov qword [rsp + 0x40], rcx
mov word [r14 + 4], r15w
mov r8d, 0x104
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x140086d71
lea rax, [rbp - 0x30]
mov rbx, rsi
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x140086d30
mov edx, 0x3b
lea rcx, [rbp - 0x30]
call fcn.14035b3bc
test rax, rax
jne 0x140086d71
mov r13d, dword [rsp + 0x30]
cmp rbx, r13
ja 0x140086d71
lfence
mov r8, rbx
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.14036ef28
test eax, eax
je 0x140086f37
mov rax, qword [rsp + 0x40]
mov r14, rax
cmp word [rax], r15w
jne 0x140086cf0
mov r13, rdi
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x68], r15
mov edi, 7
mov qword [rbp - 0x60], rdi
mov word [rbp - 0x78], r15w
mov r8, rsi
nop
inc r8
cmp word [r13 + r8*2], r15w
jne 0x140086da0
mov rdx, r13
lea rcx, [rbp - 0x78]
call fcn.1400739a0
nop
mov edx, 8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rbx, [0x140677280]
mov eax, dword [rdx + rcx]
cmp dword [0x14068a840], eax
jg 0x1400871f9
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], rdi
mov word [rbp - 0x58], r15w
mov r8, qword [0x140677290]
cmp qword [rbp - 0x68], r8
cmovb r8, qword [rbp - 0x68]
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x58]
call fcn.1400739a0
nop
cmp qword [0x140677298], 8
cmovae rbx, qword [0x140677280]
lea r8, [rbp - 0x58]
mov r14, qword [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae r8, r14
mov rdx, qword [rbp - 0x48]
cmp rdx, qword [0x140677290]
jne 0x140086e81
test rdx, rdx
je 0x14008706f
movzx eax, word [r8]
movzx ecx, word [rbx]
cmp ax, cx
jb 0x140086e81
sub r8, rbx
cmp ax, cx
ja 0x140086e81
cmp rdx, 1
je 0x14008706f
dec rdx
add rbx, 2
movzx eax, word [rbx + r8]
movzx ecx, word [rbx]
cmp ax, cx
jae 0x140086e61
mov qword [r12], r15
mov qword [r12 + 0x10], r15
mov qword [r12 + 0x18], rdi
mov word [r12], r15w
inc rsi
cmp word [r13 + rsi*2], 0
jne 0x140086e94
mov r8, rsi
mov rdx, r13
mov rcx, r12
call fcn.1400739a0
nop
mov rax, qword [rbp - 0x40]
cmp rax, 8
jb 0x140086eef
lea rdx, [rax*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140086ee6
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140087245
mov rcx, r14
call fcn.140359090
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x1400871c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400871a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400871f3
jmp 0x1400871a2
lfence
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x78], r15
mov edi, 7
mov qword [rbp - 0x80], rdi
mov word [rsp + 0x68], r15w
mov rdx, rsi
nop word [rax + rax]
inc rdx
cmp word [r14 + rdx*2], 0
jne 0x140086f60
lea rcx, [rsp + 0x68]
cmp rdx, 7
ja 0x140086f92
mov qword [rsp + 0x78], rdx
lea rdi, [rdx + rdx]
mov r8, rdi
mov rdx, r14
call fcn.14035bc80
mov word [rsp + rdi + 0x68], r15w
jmp 0x140086fa2
lfence
mov qword [rsp + 0x20], rdx
mov r9, r14
call fcn.1400735a0
sub r13, rbx
mov rax, qword [rsp + 0x38]
lea rdx, [rax + rbx*2]
mov r8, r13
lea rcx, [rsp + 0x68]
call fcn.140073720
lea rcx, [rsp + 0x68]
call fcn.1401d4ac0
test al, al
je 0x140087055
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov edi, eax
test eax, eax
je 0x140087055
lfence
mov eax, 2
mul rdi
cmovo rax, rsi
mov rcx, rax
call fcn.140368330
mov rbx, rax
test rax, rax
je 0x140087055
lfence
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
mov r8d, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x14008704d
lfence
inc rsi
cmp word [rbx + rsi*2], 0
jne 0x140087033
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.1400739a0
mov rcx, rbx
call fcn.1403683a0
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [r12], xmm0
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [r12 + 0x10], xmm1
jmp 0x1400871c0
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x48], r15w
mov r8d, 2
lea rdx, [0x1405f37f4]
lea rcx, [rsp + 0x48]
call fcn.1400739a0
nop
lea r9, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r9, qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r8, qword [0x140677290]
xor edx, edx
lea rcx, [rbp - 0x78]
call fcn.1400874a0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14008710c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140087107
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400871ed
call fcn.140359090
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [r12], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [r12 + 0x10], xmm1
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], rdi
mov word [rbp - 0x78], r15w
mov rax, qword [rbp - 0x40]
cmp rax, 8
jb 0x14008716f
lea rdx, [rax*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140087163
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140087245
mov rcx, r14
call fcn.140359090
mov rdi, qword [rbp - 0x60]
cmp rdi, 8
jb 0x1400871c0
lea rdx, [rdi*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400871a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400871f3
call fcn.140359090
jmp 0x1400871c0
xor r15d, r15d
mov qword [rcx], r15
mov qword [rcx + 0x10], r15
mov edi, 7
mov qword [rcx + 0x18], rdi
mov word [rcx], r15w
mov rax, r12
mov rcx, qword [rbp + 0x9e0]
xor rcx, rsp
call fcn.140359070
mov rbx, qword [rsp + 0xb48]
add rsp, 0xaf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140368068
nop
call fcn.140368068
nop
lea rcx, [0x14068a840]
call fcn.1403598e8
cmp dword [0x14068a840], 0xffffffff
jne 0x140086ddf
mov r8d, 0xc
lea rdx, str.DeviceMup_
mov rcx, rbx
call fcn.1400739a0
lea rcx, [0x140510770]
call fcn.14035934c
nop
lea rcx, [0x14068a840]
call fcn.140359888
jmp 0x140086ddf
call fcn.140368068
int3