Function at 0x180204870
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 [0x1804cc010]
xor rax, rsp
mov qword [rbp + 0x780], rax
cmp qword [rcx + 0x10], 0
jne 0x1802048c3
mov rax, 0xffffffffffffffff
jmp 0x180204b59
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.180004ad0
nop
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.18015a4f0
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 0x180204915
mov r8d, eax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x20]
call fcn.180213cc0
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 0x1802049d0
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180204954
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x1802049c7
cmp qword [rbx + 0x10], 0
jbe 0x180204b8f
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x180204977
mov rax, qword [rbx]
movzx r9d, word [rax]
cmp rdi, rsi
jae 0x1802049b3
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 0x18020493c
lea rcx, [rsp + 0x40]
call fcn.180032180
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rbx, 0x20
jmp 0x18020493c
cmp qword [rsp + 0x70], 0
jbe 0x180204b89
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 0x180204a1f
mov rax, rdx
cmp word [rax], cx
je 0x180204a67
add rax, 2
sub rdi, 1
jne 0x180204a10
mov rax, 0xffffffffffffffff
mov r15d, r13d
cmp rax, 0xffffffffffffffff
sete r15b
cmp rsi, 8
jb 0x180204a7c
lea rdx, [rsi*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x180204a74
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180204a74
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rax, rax
je 0x180204a1f
sub rax, rdx
sar rax, 1
jmp 0x180204a26
mov rcx, r8
call fcn.180386950
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r13w
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x180204b04
mov rdi, qword [rsp + 0x28]
cmp rbx, rdi
je 0x180204aba
mov rcx, rbx
call fcn.180004e20
add rbx, 0x20
cmp rbx, rdi
jne 0x180204aa4
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x180204aee
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180204aee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180386950
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r13
cmp r12, 8
jb 0x180204b42
lea rdx, [r12*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x180204b3a
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180204b3a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r13w
mov eax, r15d
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.1803868f0
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