Function at 0x14000b9b0
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 0x14000bcb9
call sub.msvcrt.dll_strlen
cmp rax, 4
jbe 0x14000bcb9
cmp byte [rbx], 0x5c
jne 0x14000bcb9
cmp byte [rbx + 1], 0x5c
jne 0x14000bcb9
cmp byte [rbx + 3], 0x5c
jne 0x14000bcb9
mov rdx, qword [str.HG_b_]
test rdx, rdx
jne 0x14000ba1b
lea rdx, [0x140082ac0]
mov r8d, 0xe
mov rcx, rbx
call sub.msvcrt.dll_strncmp
test eax, eax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
jne 0x14000ba82
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 0x14000baac
mov rdx, qword [rsp + 0x48]
lea rcx, [rbx + 4]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
test eax, eax
jne 0x14000baac
mov rcx, qword [rsp + 0x48]
lea rdx, [0x140082ad8]
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 rcx, rbx
sbb eax, eax
xor edx, edx
mov dword [rsp + 0x20], 3
xor r9d, r9d
and eax, 0xfffffffe
mov qword [rsp + 0x30], rdx
mov edx, r14d
lea r8d, [rax + 3]
call r15
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000bbac
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x20
jne 0x14000bb3b
test r12d, r12d
jne 0x14000bb4b
mov rdx, qword [rsp + 0x48]
lea rcx, str.Notice:_Volume_Device_Path_is__s
call fcn.140036717
mov rdx, rbx
lea rcx, str.Waiting_for_access_on__s...
call fcn.140036717
jmp 0x14000bb8c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
je 0x14000bb14
jmp 0x14000bcbf
test ebp, ebp
jne 0x14000bb8c
cmp r12d, 0x32
jle 0x14000bb8c
lea rcx, str.Warning:_Could_not_obtain_exclusive_rights._Retrying_with_write_sharing_enabled...
xor esi, esi
mov ebp, 1
call fcn.140036717
mov dword [rsp + 0x20], esi
mov rcx, qword [rsp + 0x48]
mov r9d, 1
mov r8d, 1
mov edx, 0x2710
call fcn.1400263f7
or eax, 0x40
mov edi, eax
inc r12d
mov ecx, 0x64
call qword [sym.imp.KERNEL32.DLL_Sleep]
cmp r12d, 0x96
jne 0x14000bacd
jmp 0x14000bcbf
test r13d, r13d
je 0x14000bbd4
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.140036717
cmp dword [rsp + 0x1b8], 0
je 0x14000bd20
xor r9d, r9d
xor r10d, r10d
xor r11d, r11d
xor r8d, r8d
lea r13, [rsp + 0x58]
mov qword [rsp + 0x38], r9
mov rcx, rsi
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov r14, qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov edx, 0x90083
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x20], r11
call r14
test eax, eax
je 0x14000bc2c
lea rcx, str.I_O_boundary_checks_disabled
call fcn.140036717
mov r12, qword [sym.imp.KERNEL32.DLL_GetTickCount64]
call r12
mov r15, qword [0x1400b1100]
lea rbp, [rax + 0x3a98]
xor edx, edx
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
mov qword [rsp + 0x38], rdx
mov edx, 0x90018
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov qword [rsp + 0x30], r13
call r14
test eax, eax
jne 0x14000bd20
cmp dword [r15], 0
jns 0x14000bd02
call fcn.140036bd7
mov rdx, rbx
lea rcx, str.Could_not_lock_access_to__s:__s
mov r8, rax
call fcn.140036717
cmp dword [r15], 0
jns 0x14000bcd8
and edi, 7
dec dil
je 0x14000bd20
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000bd1e
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
or rsi, 0xffffffffffffffff
jmp 0x14000bd20
call fcn.140036bd7
mov rdx, rbx
lea rcx, [0x140082bc7]
mov r8, rax
call fcn.140036717
jmp 0x14000bcb9
test dil, dil
jne 0x14000bc9e
xor eax, eax
mov rcx, qword [rsp + 0x48]
mov edx, 0x4e20
mov r9d, 1
mov dword [rsp + 0x20], eax
mov r8d, 1
call fcn.1400263f7
mov edi, eax
jmp 0x14000bc9e
mov ecx, 0x64
call qword [sym.imp.KERNEL32.DLL_Sleep]
call r12
cmp rax, rbp
jb 0x14000bc44
jmp 0x14000bc81
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