Function at 0x10000b664
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x470
mov rax, qword [0x100029100]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebp, edx
xor edx, edx
mov r12, r8
mov rsi, rcx
lea rcx, [0x100029ac0]
lea r8d, [rdx + 0x50]
call sub.msvcrt.dll_memset
or r13, 0xffffffffffffffff
xor ebx, ebx
lea r15d, [r13 + 2]
mov dword [0x100029adc], ebp
cmp rsi, rbx
je 0x10000b795
mov eax, dword [rsi]
lea rcx, [rsp + 0x34]
lea rdx, [rsp + 0x40]
mov dword [rcx], eax
movzx eax, word [rsi + 4]
mov r8d, 0x104
mov word [rcx + 4], ax
lea rcx, [rsp + 0x34]
mov word [rsp + 0x38], bx
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, ebx
jne 0x10000b6f5
mov ebx, 0xc000000d
jmp 0x10000b9b4
xor eax, eax
lea rdi, [rsp + 0x40]
mov rcx, r13
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
lea rdi, [rcx + rcx + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [0x100029ae8], rax
cmp rax, rbx
jne 0x10000b73a
mov ebx, 0xc0000017
jmp 0x10000b9b4
lea rdx, [rsp + 0x40]
mov r8, rdi
mov rcx, rax
call sub.msvcrt.dll_memcpy
xor eax, eax
add rsi, 4
mov rdi, rsi
mov rcx, r13
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
lea rdi, [rcx + rcx + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [0x100029b08], rax
cmp rax, rbx
je 0x10000b730
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov byte [0x100029ad8], bl
call fcn.10000f6a0
movzx ecx, byte [0x100029ad8]
cmp eax, 2
lea r13, [0x100001f78]
cmove ecx, r15d
cmp r12, rbx
cmovne r13, r12
mov byte [0x100029ad8], cl
xor eax, eax
or r12, 0xffffffffffffffff
mov rdi, r13
mov rcx, r12
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
lea rdi, [rcx + rcx + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [r12 + 9]
mov rcx, rax
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [0x100029ae0], rax
cmp rax, rbx
je 0x10000b730
mov r8, rdi
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
xor ecx, ecx
call fcn.10000b2c0
mov rdi, rax
mov qword [0x100029b00], rax
cmp rax, rbx
jne 0x10000b831
mov ebx, 0xc0000225
jmp 0x10000b9b4
test bpl, 0x10
je 0x10000b84c
mov rcx, rax
call 0x10000aa90
mov rdi, qword [0x100029b00]
mov byte [0x100029ad9], al
xor eax, eax
mov rcx, r12
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
lea rbp, [rcx + rcx + 2]
lea r12, [rbp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x10000b730
mov dword [rax], 2
mov rdx, qword [0x100029b00]
lea rcx, [rax + 0x14]
mov r8, rbp
call sub.msvcrt.dll_memcpy
or rcx, 0xffffffffffffffff
mov qword [0x100029af0], rdi
xor eax, eax
lea rdi, [rsp + 0x40]
mov dword [0x100029af8], r12d
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
lea rbp, [rcx + rcx + 2]
lea r12, [rbp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x10000b730
lea rcx, [rax + 0x14]
lea rdx, [rsp + 0x40]
mov r8, rbp
mov dword [rax], 2
call sub.msvcrt.dll_memcpy
mov dword [0x100029ac8], r12d
mov qword [0x100029ac0], rdi
cmp rsi, rbx
je 0x10000b9b9
lea rax, [0x100001f88]
lea r9, [rsp + 0x34]
lea r8, [0x100001fb8]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x250]
mov edx, 0x104
mov qword [rsp + 0x20], rsi
call fcn.100020d88
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.100010de4
movzx edx, word [rsp + 0x30]
lea rcx, [rsp + 0x250]
call fcn.10001fe70
mov qword [0x100029ad0], rax
cmp rax, rbx
jne 0x10000b9b9
xor edx, edx
lea rcx, [rsp + 0x250]
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x100029ad0], rax
cmp rax, rbx
jne 0x10000b9b9
mov ebx, 0xc0000001
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x100001fd0]
mov r8d, eax
mov ecx, 4
call fcn.100010054
call fcn.10000b538
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.100020910
add rsp, 0x470
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret