Function at 0x18005a230
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 [0x1801d0100]
xor rax, rsp
mov qword [rbp + 0x650], rax
mov r14, rdx
mov qword [rbp - 0x38], rdx
xor edi, edi
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x250]
call fcn.1800aba60
lea rdx, [rbp + 0x250]
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov r15d, eax
cmp eax, 0x200
jbe 0x18005a2ad
mov qword [r14], rdi
mov qword [r14 + 8], rdi
mov qword [r14 + 0x10], rdi
jmp 0x18005a758
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
mov r8, rdi
mov qword [rbp - 8], rdi
movdqu xmmword [rbp - 0x30], xmm1
mov rdx, rdi
mov qword [rbp - 0x20], rdx
movzx esi, di
test r15d, r15d
je 0x18005a66a
mov rcx, qword [rbp - 0x28]
nop dword [rax + rax]
movzx eax, si
lea r8, [rbp + 0x250]
lea r8, [r8 + rax*2]
movzx eax, word [r8]
test ax, ax
je 0x18005a321
cmp rcx, rdx
je 0x18005a310
mov word [rcx], ax
mov rcx, qword [rbp - 0x28]
add rcx, 2
mov qword [rbp - 0x28], rcx
jmp 0x18005a653
mov rdx, rcx
lea rcx, [rbp - 0x30]
call fcn.180053540
jmp 0x18005a64f
mov r8, rcx
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp]
call fcn.1800533e0
nop
lea rcx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x18005a5fb
mov dword [rbp - 0x38], edi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x40]
call fcn.1800aba60
lea rcx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rcx, qword [rbp]
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x38]
mov r8d, 0x104
lea rdx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x18005a5fb
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], rdi
lea rax, [rbp + 0x40]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18005a3c0
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.180007ce0
nop
cmp qword [rbp + 0x30], 0
jne 0x18005a42f
mov rax, qword [rbp + 0x38]
cmp rax, 9
jb 0x18005a41a
lea rbx, [rbp + 0x20]
cmp rax, 7
cmova rbx, qword [rbp + 0x20]
mov qword [rbp + 0x30], 9
mov r8d, Ordinal_21
lea rdx, str.USB_Drive
mov rcx, rbx
call fcn.1800ab3c0
mov word [rbx + 0x12], di
jmp 0x18005a42f
lea r9, str.USB_Drive
mov edx, 9
lea rcx, [rbp + 0x20]
call fcn.1800252d0
mov rax, qword [rbp + 0x10]
cmp rax, 1
jbe 0x18005a4c6
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov r8d, 2
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
lea rcx, [rsp + 0x48]
call fcn.180007ce0
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x18005a4b4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005a4af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005a793
call fcn.18007bb20
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbp + 0x10], xmm1
mov ebx, dword [rbp - 0x38]
lea rdx, [rbp]
lea rcx, [rsp + 0x70]
call fcn.180005380
nop
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x70]
call fcn.180005380
mov dword [rbp - 0x50], ebx
mov dword [rbp - 0x4c], edi
mov rbx, qword [rbp - 0x10]
cmp rbx, qword [rbp - 8]
je 0x18005a527
mov qword [rbp - 0x40], rbx
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.180005380
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x70]
call fcn.180005380
mov eax, dword [rbp - 0x50]
mov dword [rbx + 0x40], eax
mov eax, dword [rbp - 0x4c]
mov dword [rbx + 0x44], eax
add qword [rbp - 0x10], 0x48
jmp 0x18005a539
lea r8, [rsp + 0x70]
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.18005ad50
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x18005a579
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005a574
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005a793
call fcn.18007bb20
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x18005a5bb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005a5b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005a793
call fcn.18007bb20
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x18005a5fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005a5f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005a799
call fcn.18007bb20
mov rcx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x30]
cmp r8, rcx
je 0x18005a60f
mov rcx, r8
mov qword [rbp - 0x28], rcx
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x18005a653
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005a64a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005a79f
call fcn.18007bb20
mov rcx, qword [rbp - 0x28]
inc si
movzx eax, si
mov rdx, qword [rbp - 0x20]
cmp eax, r15d
jb 0x18005a2e0
mov r8, qword [rbp - 8]
mov qword [rbp - 8], rdi
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x10], rdi
mov rax, qword [rbp - 0x18]
mov rbx, rdi
mov qword [rbp - 0x18], rbx
mov qword [r14], rax
mov qword [r14 + 8], rcx
mov qword [r14 + 0x10], r8
mov r8, qword [rbp - 0x30]
test r8, r8
je 0x18005a6df
sub rdx, r8
sar rdx, 1
add rdx, rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x18005a6c3
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005a78d
mov rcx, r8
call fcn.18007bb20
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rdi
mov rdi, qword [rbp - 0x10]
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x18005a758
cmp rbx, rdi
je 0x18005a705
nop dword [rax]
mov rcx, rbx
call fcn.180054810
add rbx, 0x48
cmp rbx, rdi
jne 0x18005a6f0
mov rbx, qword [rbp - 0x18]
mov rcx, qword [rbp - 8]
sub rcx, rbx
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, rbx
cmp rdx, 0x1000
jb 0x18005a750
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005a787
mov rcx, rbx
call fcn.18007bb20
mov rax, r14
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.18007bb00
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.18008a6e4
nop
call fcn.18008a6e4
nop
call fcn.18008a6e4
nop
call fcn.18008a6e4
nop
call fcn.18008a6e4
int3