Function at 0x14001d540
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14024a650]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rdx
mov qword [rbp + 7], rdx
lea rcx, str.SystemDrive
call fcn.14011fd90
xor r12d, r12d
mov qword [rbp - 0x19], r12
mov qword [rbp - 9], r12
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x19], r12b
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], r12b
jne 0x14001d5a0
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.140008ae0
nop
mov r8d, 1
lea rdx, [0x14021d65c]
lea rcx, [rbp - 0x19]
call fcn.140008c40
mov dword [rbp + 7], r12d
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rcx, qword [rbp - 0x19]
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp + 7]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, dword [rbp + 7]
lea rcx, [rbp - 0x19]
call fcn.140008a80
lea rdx, [rbp + 0xf]
call fcn.14001d290
nop
cmp qword [rbp + 0x1f], 0
je 0x14001d7bb
test ebx, ebx
je 0x14001d7bb
lea r9, [rbp - 4]
mov r8d, ebx
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x14001d631
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x29], r12
mov ecx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x21], rcx
mov byte [rbp - 0x39], dl
lea rax, [rbp - 4]
cmp r9, rax
je 0x14001d68f
lea r8, [rbp - 4]
sub r8, r9
mov rdx, r9
lea rcx, [rbp - 0x39]
call fcn.140008ae0
mov rcx, qword [rbp - 0x21]
lea rax, [rbp - 0x39]
cmp rcx, 0x10
cmovae rax, qword [rbp - 0x39]
mov rcx, rdi
nop
lea rcx, [rcx + 1]
cmp byte [rax + rcx], 0
jne 0x14001d6a0
lea rcx, [rcx*2 + 1]
call fcn.14010d024
mov r14, rax
lea rcx, [rbp - 0x39]
call fcn.140008a80
lea r15, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae r15, qword [rbp + 0xf]
lea r9, [rbp - 4]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [r9], bl
mov ebx, edx
test edx, edx
jne 0x14001d6e0
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x29], r12
mov eax, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x21], rax
mov byte [rbp - 0x39], dl
lea rcx, [rbp - 4]
cmp r9, rcx
je 0x14001d73a
lea r8, [rbp - 4]
sub r8, r9
mov rdx, r9
lea rcx, [rbp - 0x39]
call fcn.140008ae0
mov rax, qword [rbp - 0x21]
lea rdx, [rbp - 0x39]
cmp rax, 0x10
cmovae rdx, qword [rbp - 0x39]
mov r9, r14
mov r8, r15
call fcn.14001d820
nop
lea rcx, [rbp - 0x39]
call fcn.140008a80
mov qword [rbp - 0x19], r12
mov qword [rbp - 9], r12
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
nop dword [rax]
inc rdi
cmp byte [r14 + rdi], 0
jne 0x14001d770
mov r8, rdi
mov rdx, r14
lea rcx, [rbp - 0x19]
call fcn.140008ae0
mov rcx, r14
call fcn.14010d01c
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 9]
movups xmmword [rsi + 0x10], xmm1
mov qword [rbp - 9], r12
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x19], 0
lea rcx, [rbp - 0x19]
call fcn.140008a80
jmp 0x14001d7e0
mov qword [rsi], r12
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
xor r8d, r8d
lea rdx, [0x140167a90]
mov rcx, rsi
call fcn.140008ae0
nop
lea rcx, [rbp + 0xf]
call fcn.140008a80
mov rax, rsi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14010cca0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret