Function at 0x180205040
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7b8]
sub rsp, 0x890
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1804cd010]
xor rax, rsp
mov qword [rbp + 0x780], rax
cmp qword [rcx + 0x10], 0
jne 0x180205093
mov rax, 0xffffffffffffffff
jmp 0x180205329
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.180004ad0
nop
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.18015aba0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor r13d, r13d
mov qword [rsp + 0x30], r13
lea rdx, [rbp - 0x80]
mov ecx, 0x3fe
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1802050e5
mov r8d, eax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x20]
call fcn.180214490
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov rdi, r13
mov qword [rsp + 0x50], r13
mov esi, 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x40], r13w
mov rbx, qword [rsp + 0x20]
cmp rbx, qword [rsp + 0x28]
je 0x1802051a0
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180205124
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x180205197
cmp qword [rbx + 0x10], 0
jbe 0x18020535f
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x180205147
mov rax, qword [rbx]
movzx r9d, word [rax]
cmp rdi, rsi
jae 0x180205183
lea rax, [rdi + 1]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp rsi, 8
cmovae rax, qword [rsp + 0x40]
mov word [rax + rdi*2], r9w
mov word [rax + rdi*2 + 2], r13w
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rbx, 0x20
jmp 0x18020510c
lea rcx, [rsp + 0x40]
call fcn.1800328a0
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rbx, 0x20
jmp 0x18020510c
cmp qword [rsp + 0x70], 0
jbe 0x180205359
lea rax, [rsp + 0x60]
mov r14, qword [rsp + 0x60]
mov r12, qword [rsp + 0x78]
cmp r12, 8
cmovae rax, r14
movzx ecx, word [rax]
lea rdx, [rsp + 0x40]
mov r8, qword [rsp + 0x40]
cmp rsi, 8
cmovae rdx, r8
test rdi, rdi
je 0x1802051ef
mov rax, rdx
cmp word [rax], cx
je 0x180205237
add rax, 2
sub rdi, 1
jne 0x1802051e0
mov rax, 0xffffffffffffffff
mov r15d, r13d
cmp rax, 0xffffffffffffffff
sete r15b
cmp rsi, 8
jb 0x18020524c
lea rdx, [rsi*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x180205244
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180205244
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rax, rax
je 0x1802051ef
sub rax, rdx
sar rax, 1
jmp 0x1802051f6
mov rcx, r8
call fcn.180388460
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r13w
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x1802052d4
mov rdi, qword [rsp + 0x28]
cmp rbx, rdi
je 0x18020528a
mov rcx, rbx
call fcn.180004e20
add rbx, 0x20
cmp rbx, rdi
jne 0x180205274
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x1802052be
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802052be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180388460
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r13
cmp r12, 8
jb 0x180205312
lea rdx, [r12*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x18020530a
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18020530a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r13w
mov eax, r15d
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.180388400
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.18000ae90
nop
call fcn.18000ae90
int3