Function at 0x1800587e0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x660]
sub rsp, 0x760
mov rax, qword [0x180223280]
xor rax, rsp
mov qword [rbp + 0x650], rax
mov r14, rdx
mov qword [rbp - 0x40], rdx
xor edi, edi
lea rdx, [rbp + 0x250]
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov r15d, eax
cmp eax, 0x200
jbe 0x180058849
mov qword [r14], rdi
mov qword [r14 + 8], rdi
mov qword [r14 + 0x10], rdi
jmp 0x180058d38
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
mov qword [rbp - 0x28], rdi
movdqu xmmword [rbp - 0x20], xmm1
mov qword [rbp - 0x10], rdi
movzx esi, di
test r15d, r15d
je 0x180058b49
mov rcx, qword [rbp - 0x18]
nop
movzx eax, si
lea r8, [rbp + 0x250]
lea r8, [r8 + rax*2]
movzx eax, word [r8]
test ax, ax
je 0x1800588b2
cmp rcx, qword [rbp - 0x10]
je 0x1800588a1
mov word [rcx], ax
mov rcx, qword [rbp - 0x18]
add rcx, 2
mov qword [rbp - 0x18], rcx
jmp 0x180058b3a
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.18004dc30
jmp 0x180058b36
mov r8, rcx
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp + 0x18]
call fcn.18004dad0
nop
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 7
cmova rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x180058ae2
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 7
cmova rcx, qword [rbp + 0x18]
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x180058ae2
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], rdi
lea rax, [rbp + 0x40]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180058940
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 8]
call fcn.180008f10
nop
cmp qword [rbp + 8], 0
jne 0x1800589af
mov rax, qword [rbp + 0x10]
cmp rax, 9
jb 0x18005899a
lea rbx, [rbp - 8]
cmp rax, 7
cmova rbx, qword [rbp - 8]
mov qword [rbp + 8], 9
mov r8d, Ordinal_21
lea rdx, str.USB_Drive
mov rcx, rbx
call fcn.1800c07f0
mov word [rbx + 0x12], di
jmp 0x1800589af
lea r9, str.USB_Drive
mov edx, 9
lea rcx, [rbp - 8]
call fcn.1800293a0
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x70]
call fcn.1800064c0
nop
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x70]
call fcn.1800064c0
mov dword [rbp - 0x50], edi
mov rdx, qword [rbp - 0x30]
cmp rdx, qword [rbp - 0x28]
je 0x180058a12
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rdx], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movups xmmword [rdx + 0x10], xmm1
mov ebx, 7
mov word [rsp + 0x70], di
movaps xmm0, xmmword [rbp - 0x70]
movups xmmword [rdx + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movups xmmword [rdx + 0x30], xmm1
mov eax, ebx
mov word [rbp - 0x70], di
mov dword [rdx + 0x40], edi
add qword [rbp - 0x30], 0x48
jmp 0x180058a28
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x38]
call fcn.180059740
mov rax, qword [rbp - 0x58]
mov rbx, qword [rbp - 0x78]
cmp rax, 7
jbe 0x180058a64
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180058a5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180058d6d
call fcn.18008ef10
cmp rbx, 7
jbe 0x180058aa2
lea rdx, [rbx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180058a9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180058d6d
call fcn.18008ef10
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x180058ae2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180058add
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180058d73
call fcn.18008ef10
mov rcx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x20]
cmp r8, rcx
je 0x180058af6
mov rcx, r8
mov qword [rbp - 0x18], rcx
mov rdx, qword [rbp + 0x30]
cmp rdx, 7
jbe 0x180058b3a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180058b31
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180058d79
call fcn.18008ef10
mov rcx, qword [rbp - 0x18]
inc si
movzx eax, si
cmp eax, r15d
jb 0x180058870
mov rbx, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
cmp rbx, rsi
je 0x180058c49
nop word [rax + rax]
cmp qword [rbx + 0x10], 1
jbe 0x180058c38
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x180058b8a
mov rdx, qword [rbx]
mov r8d, 2
lea rcx, [rsp + 0x40]
call fcn.180008f10
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x180058bf6
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x180058be3
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x180058bde
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180058d85
mov rcx, r8
call fcn.18008ef10
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x10], xmm1
jmp 0x180058c38
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x180058c38
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180058c33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180058d85
call fcn.18008ef10
add rbx, 0x48
cmp rbx, rsi
jne 0x180058b60
mov rbx, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x28], rdi
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x30], rdi
mov rsi, rdi
mov qword [rbp - 0x38], rdi
mov qword [r14], rbx
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rcx
mov r8, qword [rbp - 0x20]
test r8, r8
je 0x180058cc3
mov rax, qword [rbp - 0x10]
sub rax, r8
sar rax, 1
lea rdx, [rax + rax]
mov rax, r8
cmp rdx, 0x1000
jb 0x180058ca7
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180058d7f
mov rcx, r8
call fcn.18008ef10
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rdi
mov rdi, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x38]
test rsi, rsi
je 0x180058d38
cmp rsi, rdi
je 0x180058ce5
nop dword [rax]
mov rcx, rsi
call fcn.180052a30
add rsi, 0x48
cmp rsi, rdi
jne 0x180058cd0
mov rsi, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x28]
sub rcx, rsi
movabs rax, 0xe38e38e38e38e39
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*8]
shl rdx, 3
mov rax, rsi
cmp rdx, 0x1000
jb 0x180058d30
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180058d67
mov rcx, rsi
call fcn.18008ef10
mov rax, r14
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.18008eef0
lea r11, [rsp + 0x760]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.18009e1e4
nop
call fcn.18009e1e4
nop
call fcn.18009e1e4
nop
call fcn.18009e1e4
nop
call fcn.18009e1e4
nop
call fcn.18009e1e4
int3