Function at 0x180058da0
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 [0x18018a280]
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 0x180058e09
mov qword [r14], rdi
mov qword [r14 + 8], rdi
mov qword [r14 + 0x10], rdi
jmp 0x1800592f8
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 0x180059109
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 0x180058e72
cmp rcx, qword [rbp - 0x10]
je 0x180058e61
mov word [rcx], ax
mov rcx, qword [rbp - 0x18]
add rcx, 2
mov qword [rbp - 0x18], rcx
jmp 0x1800590fa
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.1800488a0
jmp 0x1800590f6
mov r8, rcx
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp + 0x18]
call fcn.180048740
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 0x1800590a2
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 0x1800590a2
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 0x180058f00
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 8]
call fcn.18000acd0
nop
cmp qword [rbp + 8], 0
jne 0x180058f6f
mov rax, qword [rbp + 0x10]
cmp rax, 9
jb 0x180058f5a
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.1800c48b0
mov word [rbx + 0x12], di
jmp 0x180058f6f
lea r9, str.USB_Drive
mov edx, 9
lea rcx, [rbp - 8]
call fcn.180026cc0
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x70]
call fcn.180006650
nop
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x70]
call fcn.180006650
mov dword [rbp - 0x50], edi
mov rdx, qword [rbp - 0x30]
cmp rdx, qword [rbp - 0x28]
je 0x180058fd2
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 0x180058fe8
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x38]
call fcn.180059fe0
mov rax, qword [rbp - 0x58]
mov rbx, qword [rbp - 0x78]
cmp rax, 7
jbe 0x180059024
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005901f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005932d
call fcn.18008ed30
cmp rbx, 7
jbe 0x180059062
lea rdx, [rbx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005905c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005932d
call fcn.18008ed30
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x1800590a2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005909d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180059333
call fcn.18008ed30
mov rcx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x20]
cmp r8, rcx
je 0x1800590b6
mov rcx, r8
mov qword [rbp - 0x18], rcx
mov rdx, qword [rbp + 0x30]
cmp rdx, 7
jbe 0x1800590fa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800590f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180059339
call fcn.18008ed30
mov rcx, qword [rbp - 0x18]
inc si
movzx eax, si
cmp eax, r15d
jb 0x180058e30
mov rbx, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
cmp rbx, rsi
je 0x180059209
nop word [rax + rax]
cmp qword [rbx + 0x10], 1
jbe 0x1800591f8
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 0x18005914a
mov rdx, qword [rbx]
mov r8d, 2
lea rcx, [rsp + 0x40]
call fcn.18000acd0
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x1800591b6
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x1800591a3
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x18005919e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180059345
mov rcx, r8
call fcn.18008ed30
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x10], xmm1
jmp 0x1800591f8
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x1800591f8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800591f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180059345
call fcn.18008ed30
add rbx, 0x48
cmp rbx, rsi
jne 0x180059120
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 0x180059283
mov rax, qword [rbp - 0x10]
sub rax, r8
sar rax, 1
lea rdx, [rax + rax]
mov rax, r8
cmp rdx, 0x1000
jb 0x180059267
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005933f
mov rcx, r8
call fcn.18008ed30
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 0x1800592f8
cmp rsi, rdi
je 0x1800592a5
nop dword [rax]
mov rcx, rsi
call fcn.180052f20
add rsi, 0x48
cmp rsi, rdi
jne 0x180059290
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 0x1800592f0
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180059327
mov rcx, rsi
call fcn.18008ed30
mov rax, r14
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.18008ed10
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.1800a4178
nop
call fcn.1800a4178
nop
call fcn.1800a4178
nop
call fcn.1800a4178
nop
call fcn.1800a4178
nop
call fcn.1800a4178
int3