Function at 0x18005ba90
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 [0x18018c280]
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 0x18005baf9
mov qword [r14], rdi
mov qword [r14 + 8], rdi
mov qword [r14 + 0x10], rdi
jmp 0x18005bfe8
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 0x18005bdf9
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 0x18005bb62
cmp rcx, qword [rbp - 0x10]
je 0x18005bb51
mov word [rcx], ax
mov rcx, qword [rbp - 0x18]
add rcx, 2
mov qword [rbp - 0x18], rcx
jmp 0x18005bdea
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.180050e10
jmp 0x18005bde6
mov r8, rcx
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp + 0x18]
call fcn.180050cb0
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 0x18005bd92
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 0x18005bd92
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 0x18005bbf0
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 8]
call fcn.18000acf0
nop
cmp qword [rbp + 8], 0
jne 0x18005bc5f
mov rax, qword [rbp + 0x10]
cmp rax, 9
jb 0x18005bc4a
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.1800c7450
mov word [rbx + 0x12], di
jmp 0x18005bc5f
lea r9, str.USB_Drive
mov edx, 9
lea rcx, [rbp - 8]
call fcn.180026ce0
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x70]
call fcn.180006670
nop
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x70]
call fcn.180006670
mov dword [rbp - 0x50], edi
mov rdx, qword [rbp - 0x30]
cmp rdx, qword [rbp - 0x28]
je 0x18005bcc2
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 0x18005bcd8
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x38]
call fcn.18005ccd0
mov rax, qword [rbp - 0x58]
mov rbx, qword [rbp - 0x78]
cmp rax, 7
jbe 0x18005bd14
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bd0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c01d
call fcn.1800918d0
cmp rbx, 7
jbe 0x18005bd52
lea rdx, [rbx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bd4c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c01d
call fcn.1800918d0
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x18005bd92
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bd8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c023
call fcn.1800918d0
mov rcx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x20]
cmp r8, rcx
je 0x18005bda6
mov rcx, r8
mov qword [rbp - 0x18], rcx
mov rdx, qword [rbp + 0x30]
cmp rdx, 7
jbe 0x18005bdea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bde1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c029
call fcn.1800918d0
mov rcx, qword [rbp - 0x18]
inc si
movzx eax, si
cmp eax, r15d
jb 0x18005bb20
mov rbx, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
cmp rbx, rsi
je 0x18005bef9
nop word [rax + rax]
cmp qword [rbx + 0x10], 1
jbe 0x18005bee8
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 0x18005be3a
mov rdx, qword [rbx]
mov r8d, 2
lea rcx, [rsp + 0x40]
call fcn.18000acf0
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x18005bea6
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x18005be93
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x18005be8e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18005c035
mov rcx, r8
call fcn.1800918d0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x10], xmm1
jmp 0x18005bee8
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x18005bee8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bee3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c035
call fcn.1800918d0
add rbx, 0x48
cmp rbx, rsi
jne 0x18005be10
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 0x18005bf73
mov rax, qword [rbp - 0x10]
sub rax, r8
sar rax, 1
lea rdx, [rax + rax]
mov rax, r8
cmp rdx, 0x1000
jb 0x18005bf57
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c02f
mov rcx, r8
call fcn.1800918d0
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 0x18005bfe8
cmp rsi, rdi
je 0x18005bf95
nop dword [rax]
mov rcx, rsi
call fcn.180055c10
add rsi, 0x48
cmp rsi, rdi
jne 0x18005bf80
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 0x18005bfe0
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c017
mov rcx, rsi
call fcn.1800918d0
mov rax, r14
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.1800918b0
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.1800a6d18
nop
call fcn.1800a6d18
nop
call fcn.1800a6d18
nop
call fcn.1800a6d18
nop
call fcn.1800a6d18
nop
call fcn.1800a6d18
int3