Function at 0x18001dce0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x6a0]
sub rsp, 0x7a0
mov rax, qword [0x1800680c0]
xor rax, rsp
mov qword [rbp + 0x690], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor r14d, r14d
mov qword [rsp + 0x40], r14
lea rdx, [rbp + 0x270]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x18001e25f
lea rsi, [rbp + 0x270]
nop word [rax + rax]
movzx eax, word [rsi]
test ax, ax
je 0x18001e25f
mov word [rbp + 0x50], ax
mov dword [rbp + 0x52], 0x3a
mov r8d, 0x104
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x18001e229
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x10]
call fcn.1800180b0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r14w
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r14w
mov qword [rbp - 0x20], r14
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18001ddf4
lea rax, [rcx + 1]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x10]
cmp rdx, 7
cmova rax, qword [rbp + 0x10]
mov dword [rax + rcx*2], 0x5c
jmp 0x18001de12
mov qword [rsp + 0x20], 1
lea r9, [0x18005e08c]
mov edx, 1
lea rcx, [rbp + 0x10]
call fcn.180020830
lea rax, [rbp + 0x60]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x18001de20
mov rax, qword [rbp - 0x48]
cmp rdx, rax
ja 0x18001de5e
lea rdi, [rbp - 0x60]
cmp rax, 7
cmova rdi, qword [rbp - 0x60]
mov qword [rbp - 0x50], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp + 0x60]
mov rcx, rdi
call fcn.18004bc10
mov word [rbx + rdi], r14w
jmp 0x18001de6b
lea r9, [rbp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.1800206d0
lea rax, [rbp + 0x50]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x18001de76
mov rax, qword [rbp - 0x28]
cmp rdx, rax
ja 0x18001deb4
lea rdi, [rbp - 0x40]
cmp rax, 7
cmova rdi, qword [rbp - 0x40]
mov qword [rbp - 0x30], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp + 0x50]
mov rcx, rdi
call fcn.18004bc10
mov word [rdi + rbx], r14w
jmp 0x18001dec1
lea r9, [rbp + 0x50]
lea rcx, [rbp - 0x40]
call fcn.1800206d0
lea rcx, [rbp + 0x60]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18001ded0
mov qword [rbp - 0x20], rax
mov rax, qword [rsp + 0x38]
cmp rax, qword [rsp + 0x40]
je 0x18001defe
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.18001dc60
add qword [rsp + 0x38], 0x48
jmp 0x18001df0f
lea r8, [rbp - 0x60]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180020c30
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 7
cmova rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x18001e147
cmp eax, 4
je 0x18001e147
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r14
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r14w
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x30]
call fcn.1800180b0
nop
mov qword [rsp + 0x48], r14
xor bl, bl
mov r9, qword [0x18006bb28]
test r9, r9
je 0x18001e036
cmp qword [0x18006bb20], 0
je 0x18001e036
lea rax, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova rax, qword [rbp + 0x30]
mov qword [rsp + 0x68], rax
movzx eax, word [rbp + 0x40]
add ax, ax
mov word [rsp + 0x60], ax
mov word [rsp + 0x62], ax
mov dword [rsp + 0x70], 0x30
mov qword [rsp + 0x78], r14
lea rax, [rsp + 0x60]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], 0x40
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
lea r8, [rsp + 0x70]
mov edx, 1
lea rcx, [rsp + 0x48]
call r9
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18001e036
lea rax, [rbp + 0x480]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], 0x2080208
xor r8d, r8d
lea rdx, [rsp + 0x50]
call qword [0x18006bb20]
test eax, eax
js 0x18001e02a
movzx ecx, word [rsp + 0x50]
mov rax, qword [rsp + 0x58]
mov word [rcx + rax], r14w
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x10]
call fcn.18001fdb0
mov bl, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 7
jbe 0x18001e076
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001e071
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001e371
call fcn.18002368c
test bl, bl
je 0x18001e106
lea r9, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova r9, qword [rbp - 0x10]
mov rdi, qword [rbp]
mov rax, qword [rbp - 0x48]
cmp rdi, rax
ja 0x18001e0c0
lea rbx, [rbp - 0x60]
cmp rax, 7
cmova rbx, qword [rbp - 0x60]
mov qword [rbp - 0x50], rdi
lea r8, [rdi + rdi]
mov rdx, r9
mov rcx, rbx
call fcn.18004bc10
mov word [rbx + rdi*2], r14w
jmp 0x18001e0cc
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.1800206d0
mov rax, qword [rbp]
mov qword [rbp - 0x20], rax
mov rax, qword [rsp + 0x38]
cmp rax, qword [rsp + 0x40]
je 0x18001e0f4
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.18001dc60
add qword [rsp + 0x38], 0x48
jmp 0x18001e106
lea r8, [rbp - 0x60]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180020c30
nop
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x18001e147
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001e141
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001e377
call fcn.18002368c
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x18001e187
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001e182
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001e37d
call fcn.18002368c
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r14w
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x18001e1d8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001e1d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001e37d
call fcn.18002368c
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r14w
mov rdx, qword [rbp + 0x28]
cmp rdx, 7
jbe 0x18001e229
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001e224
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001e365
call fcn.18002368c
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rsi + rax*2], 0
jne 0x18001e230
lea rsi, [rsi + rax*2]
add rsi, 2
lea rcx, [rbp + 0x270]
mov rax, rsi
sub rax, rcx
sar rax, 1
cmp rax, 0x104
jb 0x18001dd50
lea rax, vtable.JSBApi::AutoLock.0
mov qword [rsp + 0x60], rax
lea rbx, [0x18006baf8]
mov qword [rsp + 0x68], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r8, qword [rsp + 0x38]
sub r8, qword [rsp + 0x30]
movabs rsi, 0xe38e38e38e38e39
mov rax, rsi
imul r8
sar rdx, 2
mov r8, rdx
shr r8, 0x3f
add r8, rdx
mov rdx, qword [rsp + 0x30]
call fcn.1800203a0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x18001e335
mov rdi, qword [rsp + 0x38]
cmp rbx, rdi
je 0x18001e2e8
mov rcx, rbx
call fcn.18001e390
add rbx, 0x48
cmp rbx, rdi
jne 0x18001e2d2
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
sub rcx, rbx
mov rax, rsi
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 0x18001e32d
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001e36b
mov rcx, rbx
call fcn.18002368c
mov rcx, qword [rbp + 0x690]
xor rcx, rsp
call fcn.180023640
lea r11, [rsp + 0x7a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1800299a4
nop
call fcn.1800299a4
nop
call fcn.1800299a4
nop
call fcn.1800299a4
nop
call fcn.1800299a4
int3