Function at 0x140138804
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov r15, r9
mov qword [rsp + 0x60], r8
mov dil, dl
mov r14, rcx
mov rbx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rbx, rax
je 0x14013887d
test byte [rbx + 0x1c], 1
je 0x14013887d
cmp byte [rbx + 0x19], 4
jb 0x14013887d
mov rcx, qword [rbx + 0x10]
lea r8, [0x1400144c8]
mov edx, 0x28
call fcn.14001dd24
mov rbx, qword [0x14017d3a8]
xor ecx, ecx
xor eax, eax
xor edx, edx
mov dword [rsp + 0x58], ecx
mov r13d, ecx
mov dword [rsp + 0x48], ecx
mov qword [rsp + 0x68], rcx
mov r12d, ecx
mov qword [rsp + 0x50], rcx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x208
or rsi, 0xffffffffffffffff
mov dword [rsp + 0x70], eax
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x190]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rcx, [rbp - 0x80]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor eax, eax
test r14, r14
je 0x1401388e7
cmp word [r14], ax
jne 0x140138906
lea r8, [0x1400140d8]
lea rcx, [0x1400140a0]
mov edx, 0x2e7
call fcn.1400a8be8
mov rbx, qword [0x14017d3a8]
test r15, r15
jne 0x14013892a
lea r8, [0x140014140]
lea rcx, [0x1400140a0]
mov edx, 0x2e8
call fcn.1400a8be8
mov rbx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rbx, rax
je 0x140138966
test byte [rbx + 0x1c], 1
je 0x140138966
cmp byte [rbx + 0x19], 4
jb 0x140138966
mov rcx, qword [rbx + 0x10]
lea r8, [0x1400144c8]
mov edx, 0x29
mov r9, r14
mov qword [rsp + 0x20], r15
call fcn.140028b0c
mov rbx, qword [0x14017d3a8]
xor eax, eax
test r15, r15
je 0x140138ee3
test r14, r14
je 0x140138ee3
mov qword [rsp + 0x30], rax
lea r8d, [rax + 3]
xor r9d, r9d
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_TraceEvent
mov dword [rsp + 0x20], r8d
mov qword [r15], rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x140138a16
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rbx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rbx, r15
je 0x140138b07
test byte [rbx + 0x1c], 1
je 0x140138ae1
mov sil, 2
cmp byte [rbx + 0x19], sil
jb 0x140138ae1
mov rcx, qword [rbx + 0x10]
lea r8, [0x1400144c8]
mov edx, 0x2a
mov r9, r14
mov dword [rsp + 0x20], edi
call fcn.14001ecbc
mov rbx, qword [0x14017d3a8]
jmp 0x140138ae1
lea rcx, [rsp + 0x58]
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_GetTraceLoggerHandle
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov edx, 0x2d1080
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140138b33
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rbx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rbx, rax
je 0x140138aaa
test byte [rbx + 0x1c], 1
je 0x140138aaa
mov sil, 2
cmp byte [rbx + 0x19], sil
jb 0x140138aaa
lea edx, [r14 + 0x2b]
mov rcx, qword [rbx + 0x10]
lea r8, [0x1400144c8]
mov r9d, edi
call fcn.14001de24
mov rbx, qword [0x14017d3a8]
mov rsi, qword [rsp + 0x40]
cmp rsi, 0xffffffffffffffff
je 0x140138ac5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x14017d3a8]
test r12, r12
je 0x140138ada
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rbx, r15
je 0x140138b07
test byte [rbx + 0x1c], 1
je 0x140138b07
cmp byte [rbx + 0x19], 4
jb 0x140138b07
mov rcx, qword [rbx + 0x10]
lea r8, [0x1400144c8]
mov edx, UnregisterTraceGuids
call fcn.14001dd24
mov eax, edi
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140168920
mov rbx, qword [rsp + 0x708]
add rsp, 0x6c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [0x14017d3a8]
lea rsi, [0x14017d3a8]
cmp rcx, rsi
je 0x140138b7c
test byte [rcx + 0x1c], 1
je 0x140138b7c
cmp byte [rcx + 0x19], 4
jb 0x140138b7c
mov eax, dword [rsp + 0x68]
mov r9d, dword [rsp + 0x6c]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x70]
lea r8, [0x1400144c8]
mov edx, 0x2c
mov dword [rsp + 0x20], eax
call fcn.1400d3284
mov r9d, dword [rsp + 0x6c]
mov ebx, 0x104
lea rcx, [rbp - 0x80]
mov edx, ebx
lea r8, [0x140013ee0]
test dil, dil
jne 0x140138b9f
lea r8, [0x140013f90]
call fcn.1400284c0
mov edi, eax
test eax, eax
jns 0x140138bdb
mov rbx, qword [0x14017d3a8]
cmp rbx, rsi
je 0x140138aaa
test byte [rbx + 0x1c], 1
je 0x140138aaa
mov sil, 2
cmp byte [rbx + 0x19], sil
jb 0x140138aaa
mov edx, 0x2d
jmp 0x140138a90
cmp dword [0x14017d604], r14d
mov sil, 2
jbe 0x140138c8c
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.1401310f4
test eax, eax
jns 0x140138cdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140138c55
test byte [rcx + 0x1c], 1
je 0x140138c55
cmp byte [rcx + 0x19], sil
jb 0x140138c55
mov rcx, qword [rcx + 0x10]
movzx eax, r11w
lea r8, [0x1400144c8]
or eax, 0x80070000
test r11d, r11d
mov edx, 0x2e
cmovle eax, r11d
mov r9d, r13d
mov dword [rsp + 0x20], eax
call fcn.1400d357c
mov eax, 0x88888889
mov edi, 0x8078004f
mul dword [0x14017d604]
shr edx, 4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x14017d604]
mov eax, 0x88888889
mul ecx
shr edx, 4
add r13d, edx
cmp r13d, ecx
jb 0x140138beb
test edi, edi
jns 0x140138cdc
mov rbx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rbx, rax
je 0x140138aaa
test byte [rbx + 0x1c], 1
je 0x140138aaa
cmp byte [rbx + 0x19], sil
jb 0x140138aaa
mov edx, 0x2f
mov r9d, r13d
mov rcx, qword [rbx + 0x10]
lea r8, [0x1400144c8]
mov dword [rsp + 0x20], edi
call fcn.1400d357c
jmp 0x140138aa3
mov r9d, dword [rsp + 0x48]
lea r8, [0x140013f40]
lea rcx, [rbp + 0x190]
mov rdx, rbx
call fcn.1400284c0
mov edi, eax
test eax, eax
jns 0x140138d32
mov rbx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rbx, rax
je 0x140138aaa
test byte [rbx + 0x1c], 1
je 0x140138aaa
cmp byte [rbx + 0x19], sil
jb 0x140138aaa
mov edx, 0x30
jmp 0x140138a90
lea rcx, [rbp + 0x190]
xor r8d, r8d
mov rdx, r15
call fcn.1400a99e4
mov edi, eax
test eax, eax
jns 0x140138d7f
mov rbx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rbx, rax
je 0x140138aaa
test byte [rbx + 0x1c], 1
je 0x140138aaa
cmp byte [rbx + 0x19], sil
jb 0x140138aaa
mov edx, 0x31
jmp 0x140138a90
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.1400a97c0
xor r15d, r15d
mov edi, eax
test eax, eax
jns 0x140138de5
mov rbx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rbx, rax
je 0x140138ddb
test byte [rbx + 0x1c], 1
je 0x140138ddb
cmp byte [rbx + 0x19], sil
jb 0x140138ddb
mov rcx, qword [rbx + 0x10]
lea edx, [r15 + 0x32]
lea r9, [rbp - 0x80]
lea r8, [0x1400144c8]
mov dword [rsp + 0x20], edi
call fcn.14001ecbc
mov r12, qword [rsp + 0x50]
jmp 0x140138aa3
mov r12, qword [rsp + 0x50]
jmp 0x140138aaa
cmp dword [0x14017d604], r15d
mov r12, qword [rsp + 0x50]
lea r13, [0x14017d3a8]
jbe 0x140138e93
lea rdx, [rbp + 0x3a0]
mov r8d, ebx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x140138ec8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x140138e61
test byte [rcx + 0x1c], 1
je 0x140138e61
cmp byte [rcx + 0x19], 4
jb 0x140138e61
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400144c8]
mov edx, 0x33
mov r9d, r14d
mov dword [rsp + 0x20], edi
call fcn.1400d357c
mov eax, 0x88888889
mul dword [0x14017d604]
shr edx, 4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x14017d604]
mov eax, 0x88888889
mul ecx
shr edx, 4
add r14d, edx
cmp r14d, ecx
jb 0x140138dfe
test edi, edi
jns 0x140138ec8
mov rbx, qword [0x14017d3a8]
cmp rbx, r13
je 0x140138aaa
test byte [rbx + 0x1c], 1
je 0x140138aaa
cmp byte [rbx + 0x19], sil
jb 0x140138aaa
mov edx, UnregisterTraceGuids
mov r9d, r14d
jmp 0x140138cc3
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x3a0]
xor r8d, r8d
call fcn.1400a99e4
mov edi, eax
jmp 0x140138aa3
mov edi, 0x80070057
jmp 0x140138aaf