Function at 0x140045d70
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x140125998]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r14, rcx
mov qword [rsp + 0x38], rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov dword [rsp + 0x30], 1
lea rdx, [rbp - 0x60]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edx, 0x7ff
cmp eax, edx
jae 0x140045dfc
lea rdx, [rbp - 0x60]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edx, eax
test eax, eax
je 0x140046131
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov r8d, edx
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.14000bf20
nop
mov qword [rsp + 0x40], r13
mov r15d, 0xf
mov qword [rsp + 0x58], r15
mov r12, r13
mov qword [rsp + 0x50], r13
mov byte [rsp + 0x40], r12b
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x70], 1
mov word [rbp - 0x80], 0x5c
mov rdx, r13
nop dword [rax]
lea rdi, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
cmp rcx, 1
jb 0x140045f11
lea rax, [rcx - 1]
cmp rdx, rax
ja 0x140045f11
lea rsi, [rcx + rdi]
lea rcx, [rdi + rdx]
mov r8, rsi
sub r8, rcx
mov edx, 0x5c
call sub.VCRUNTIME140.dll_memchr
test rax, rax
mov rbx, rax
je 0x140045f11
cmp byte [rax], 0x5c
jne 0x140045eb7
mov ecx, r13d
jmp 0x140045ebc
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x140045ece
inc rbx
mov r8, rsi
sub r8, rbx
mov rcx, rbx
jmp 0x140045e9b
sub rbx, rdi
cmp rbx, 0xffffffffffffffff
je 0x140045f11
lea r9, [rsp + 0x40]
cmp r15, 0x10
cmovae r9, qword [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov r8d, 1
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14001a320
mov r12, qword [rsp + 0x50]
lea rdx, [rbx + r12]
mov r15, qword [rsp + 0x58]
jmp 0x140045e60
cmp r15, 0x10
jb 0x140045f4d
lea rdx, [r15 + 1]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045f48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140045f48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2238
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14004a870
mov rdi, rax
cmp r14, rax
je 0x14004603c
mov rbx, qword [r14]
test rbx, rbx
je 0x14004601b
mov rsi, qword [r14 + 8]
cmp rbx, rsi
je 0x140045fd8
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140045fbd
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140045fb8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400460e4
mov rcx, r8
call fcn.1400e2238
mov byte [rbx], 0
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 0xf
add rbx, 0x20
cmp rbx, rsi
jne 0x140045f83
mov rbx, qword [r14]
mov rdx, qword [r14 + 0x10]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
cmp rdx, 0x1000
jb 0x140046008
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1400460e4
mov rbx, rcx
mov rcx, rbx
call fcn.1400e2238
mov qword [r14], r13
mov qword [r14 + 8], r13
mov qword [r14 + 0x10], r13
mov rax, qword [rdi]
mov qword [r14], rax
mov rax, qword [rdi + 8]
mov qword [r14 + 8], rax
mov rax, qword [rdi + 0x10]
mov qword [r14 + 0x10], rax
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400460f1
mov rdi, qword [rsp + 0x48]
cmp rcx, rdi
je 0x1400460b7
lea rbx, [rcx + 0x18]
nop dword [rax + rax]
mov rdx, qword [rbx]
cmp rdx, 0x10
jb 0x140046096
mov rcx, qword [rbx - 0x18]
inc rdx
cmp rdx, 0x1000
jb 0x140046091
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400460e4
mov rcx, r8
call fcn.1400e2238
mov byte [rbx - 0x18], 0
mov qword [rbx - 8], r13
mov qword [rbx], 0xf
add rbx, 0x20
lea rax, [rbx - 0x18]
cmp rax, rdi
jne 0x140046060
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400460eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400460eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2238
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140046131
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004612c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004612c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2238
mov rax, r14
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400e25b0
lea r11, [rsp + 0x8b0]
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