Function at 0x140006d30
Capabilities:
Get disk information

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
mov dword [rsp + 0x1b8], edx
mov rbx, rcx
mov r13d, r8d
mov ebp, r9d
test rcx, rcx
je 0x140007023
call sub.msvcrt.dll_strlen
cmp rax, 4
jbe 0x140007023
cmp byte [rbx], 0x5c
jne 0x140007023
cmp byte [rbx + 1], 0x5c
jne 0x140007023
cmp byte [rbx + 3], 0x5c
jne 0x140007023
mov rdx, qword [str._GLOBALROOT]
test rdx, rdx
jne 0x140006d9b
lea rdx, [0x140088420]
mov r8d, 0xe
mov rcx, rbx
call sub.msvcrt.dll_strncmp
test eax, eax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
jne 0x140006e02
lea r12, [rbx + 0xe]
mov rcx, r12
mov rsi, r12
call sub.msvcrt.dll_strlen
mov rdi, qword [rsp + 0x48]
lea rcx, [rax + 1]
mov eax, 0x104
cmp rcx, rax
cmova rcx, rax
mov ecx, ecx
rep movsb byte [rdi], byte [rsi]
mov rcx, r12
call sub.msvcrt.dll_strlen
lea rdx, [rax + 1]
cmp rdx, 0x104
mov edx, 0x103
cmovae rax, rdx
mov byte [rsp + rax + 0x5c], 0
jmp 0x140006e2c
mov rdx, qword [rsp + 0x48]
lea rcx, [rbx + 4]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
test eax, eax
jne 0x140006e2c
mov rcx, qword [rsp + 0x48]
lea rdx, [0x140088438]
call sub.msvcrt.dll_strcpy
cmp r13d, 1
mov r15, qword [sym.imp.KERNEL32.DLL_CreateFileA]
sbb r14d, r14d
xor edi, edi
xor r12d, r12d
and r14d, 0xc0000000
sub r14d, 0x40000000
cmp ebp, 1
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, r14d
mov rcx, rbx
sbb eax, eax
xor r11d, r11d
mov dword [rsp + 0x20], 3
xor r9d, r9d
and eax, 0xfffffffe
mov qword [rsp + 0x30], r11
lea r8d, [rax + 3]
call r15
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140006f1b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x20
jne 0x140006ebc
test r12d, r12d
jne 0x140006ecc
mov rdx, qword [rsp + 0x48]
lea rcx, str.Notice:_Volume_Device_Path_is__s
call fcn.1400380b9
mov rdx, rbx
lea rcx, str.Waiting_for_access_on__s...
call fcn.1400380b9
jmp 0x140006efb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
je 0x140006e95
jmp 0x140007029
test ebp, ebp
jne 0x140006efb
cmp r12d, 0x32
jle 0x140006efb
lea rcx, str.Warning:_Could_not_obtain_exclusive_rights._Retrying_with_write_sharing_enabled...
mov ebp, 1
call fcn.1400380b9
xor r8d, r8d
mov edx, 7
mov ecx, 0x1388
call fcn.14002776c
mov edi, eax
inc r12d
mov ecx, 0x64
call qword [sym.imp.KERNEL32.DLL_Sleep]
cmp r12d, 0x96
jne 0x140006e4d
jmp 0x140007029
test r13d, r13d
je 0x140006f43
test ebp, ebp
lea r8, str.exclusive
mov rdx, rbx
lea rax, str.shared
lea rcx, str.Opened__s_for__s_write_access
cmovne r8, rax
call fcn.1400380b9
cmp dword [rsp + 0x1b8], 0
je 0x14000707b
xor r8d, r8d
xor r9d, r9d
xor r10d, r10d
mov r14, qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
lea r13, [rsp + 0x58]
mov qword [rsp + 0x38], r8
mov rcx, rsi
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov edx, 0x90083
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x20], r10
call r14
test eax, eax
je 0x140006f9b
lea rcx, str.I_O_boundary_checks_disabled
call fcn.1400380b9
mov r12, qword [sym.imp.KERNEL32.DLL_GetTickCount64]
call r12
mov r15, qword [0x1400b42b0]
lea rbp, [rax + 0x3a98]
xor edx, edx
xor ecx, ecx
xor eax, eax
xor r9d, r9d
mov dword [rsp + 0x28], edx
xor r8d, r8d
mov edx, 0x90018
mov qword [rsp + 0x20], rcx
mov rcx, rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
call r14
test eax, eax
jne 0x14000707b
cmp dword [r15], 0
jns 0x14000705d
call fcn.140038579
mov rdx, rbx
lea rcx, str.Could_not_lock_access_to__s:__s
mov r8, rax
call fcn.1400380b9
cmp dword [r15], 0
jns 0x140007042
and edi, 7
dec dil
je 0x14000707b
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007079
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
or rsi, 0xffffffffffffffff
jmp 0x14000707b
call fcn.140038579
mov rdx, rbx
lea rcx, [0x140088527]
mov r8, rax
call fcn.1400380b9
jmp 0x140007023
test dil, dil
jne 0x140007008
xor r8d, r8d
mov edx, 7
mov ecx, 0x1388
call fcn.14002776c
mov edi, eax
jmp 0x140007008
mov ecx, 0x64
call qword [sym.imp.KERNEL32.DLL_Sleep]
call r12
cmp rax, rbp
jb 0x140006fb3
jmp 0x140006feb
xor esi, esi
mov rax, rsi
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret