Function at 0x14020c970
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 - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14038c0c0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r15d, eax
test eax, eax
jne 0x14020c9fb
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Error
lea rdx, str.Failed_to_get_logical_drives.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1402f73e0
lea r11, [rsp + 0xd0]
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
mov r14d, r12d
mov r10d, reloc.WLDAP32.dll_Ordinal_45
lea rbx, [0x14036cb20]
lea r13, [0x14036cb1c]
test r15b, 1
je 0x14020ccd0
lea r9, [rbp + 0x29]
test r14d, r14d
jns 0x14020ca69
mov ecx, r14d
neg ecx
nop word [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dx
shl ax, 2
lea r8d, [rax + rdx]
add r8w, r8w
sub cx, r8w
add cx, 0x30
mov word [r9], cx
mov ecx, edx
test edx, edx
jne 0x14020ca30
add r9, 0xfffffffffffffffe
mov word [r9], r10w
jmp 0x14020caa0
mov r8d, r14d
nop dword [rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x14020ca70
lea r8, [rbp + 0x29]
mov rdx, r9
lea rcx, [rbp - 0x69]
call fcn.140221e00
nop
mov r8, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
sub rax, r8
cmp rax, 2
jb 0x14020cb4f
lea rax, [r8 + 2]
mov qword [rbp - 0x59], rax
lea rsi, [rbp - 0x69]
cmp rcx, 7
cmova rsi, qword [rbp - 0x69]
cmp rbx, rsi
jbe 0x14020cb01
lea rax, [rsi + r8*2]
cmp r13, rax
ja 0x14020cb01
cmp rsi, r13
ja 0x14020caf6
mov rdi, r12
jmp 0x14020cb06
mov rdi, rsi
sub rdi, r13
sar rdi, 1
jmp 0x14020cb06
mov edi, 2
lea rcx, [rsi + 4]
lea r8, [r8*2 + 2]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
lea rbx, [rdi + rdi]
mov r8, rbx
mov rdx, r13
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [r13 + 4]
lea rdx, [rdx + rdi*2]
lea rcx, [rbx + rsi]
mov r8d, 2
sub r8, rdi
add r8, r8
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x69]
jmp 0x14020cb66
mov qword [rsp + 0x28], 2
mov edx, 2
lea rcx, [rbp - 0x69]
call fcn.140225540
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x41], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x31], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rbp - 0x51]
cmp rdx, 7
jbe 0x14020cbd4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14020cbcf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14020cce1
call fcn.1402f7b14
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], 7
mov word [rbp - 0x69], r12w
mov rbx, qword [0x140455c60]
sub rbx, qword [0x140455c58]
sar rbx, 5
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
xor edx, edx
div rbx
shl rdx, 5
add rdx, qword [0x140455c58]
lea rcx, [rbp - 0x21]
call fcn.14020c730
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 7
cmova rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x14020cc76
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14020cc71
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14020cce8
call fcn.1402f7b14
mov qword [rbp - 0x11], r12
mov qword [rbp - 9], 7
mov word [rbp - 0x21], r12w
mov rdx, qword [rbp - 0x29]
cmp rdx, 7
jbe 0x14020ccc3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14020ccbe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14020ccef
call fcn.1402f7b14
lea rbx, [0x14036cb20]
mov r10d, reloc.WLDAP32.dll_Ordinal_45
inc r14d
shr r15d, 1
jne 0x14020ca12
jmp 0x14020c9ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3