Function at 0x140002d70
Capabilities:
Get disk information via ioctl

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rbp + 0x27], rax
cmp qword [rdx], 5
mov rax, r8
mov qword [rbp + 0xf], rax
mov r13, rdx
jne 0x140002dda
or r15, 0xffffffffffffffff
lea rdx, str.boot:
xor esi, esi
inc r15
cmp word [rdx + r15*2], si
jne 0x140002dbe
mov r8d, r15d
mov rcx, rax
call fcn.1400021bc
xor eax, eax
jmp 0x140003071
cmp qword [rdx], 6
jne 0x14000306c
xorps xmm0, xmm0
lea rcx, [rbp - 0x11]
xor esi, esi
mov qword [rbp - 0x11], rsi
movdqu xmmword [rbp - 9], xmm0
call fcn.14001ba28
call fcn.140001b5c
mov rcx, rax
test rax, rax
je 0x1400030a4
mov rax, qword [rax]
call qword [rax + 0x18]
mov r14, qword [rbp - 0x11]
or r15, 0xffffffffffffffff
mov r12, qword [rbp - 9]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x19], rbx
cmp r14, r12
je 0x140002fd3
mov rcx, qword [r14]
call fcn.14001bbd4
mov rdi, rax
cmp rax, r15
je 0x140002f07
lea rdx, [rbp - 0x19]
mov rcx, rax
call fcn.14001bcb8
test eax, eax
je 0x140002e6f
mov rcx, rdi
call qword [fcn.140037368]
test eax, eax
jne 0x140002e66
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp - 0x19]
jmp 0x140002f07
mov rbx, qword [rbp - 0x19]
cmp dword [rbx - 8], 1
jle 0x140002e89
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 0x19]
call fcn.140001588
mov rbx, qword [rbp - 0x19]
cmp dword [rbx], esi
jne 0x140002ed5
cmp dword [r13 + 0x24], 1
jne 0x140002ef4
mov eax, dword [r13 + 0x28]
cmp dword [rbx + 8], eax
jne 0x140002ef4
mov ecx, dword [rbx + 4]
mov r14d, esi
test ecx, ecx
je 0x140002f42
lea rdx, [rbx + 0x38]
cmp dword [rdx - 8], 5
je 0x140002ec4
cmp dword [rdx - 8], 0xf
je 0x140002ec4
mov rax, qword [r13 + 0x10]
cmp qword [rdx], rax
je 0x140002f42
inc r14d
add rdx, 0x90
cmp r14d, ecx
jne 0x140002eaf
jmp 0x140002f42
cmp dword [rbx], 1
jne 0x140002ef4
cmp dword [r13 + 0x24], esi
jne 0x140002ef4
mov rax, qword [rbx + 8]
cmp rax, qword [r13 + 0x28]
jne 0x140002ef4
mov rax, qword [rbx + 0x10]
cmp rax, qword [r13 + 0x30]
je 0x140002f10
mov rcx, rdi
call qword [fcn.140037368]
test eax, eax
jne 0x140002f07
call qword [sym.imp.KERNEL32.dll_GetLastError]
add r14, 8
jmp 0x140002e26
mov ecx, dword [rbx + 4]
mov r14d, esi
test ecx, ecx
je 0x140002f42
movsxd rax, r14d
lea rdx, [rax + rax*8]
add rdx, rdx
mov rax, qword [rbx + rdx*8 + 0x60]
cmp rax, qword [r13 + 0x10]
jne 0x140002f3a
mov rax, qword [rbx + rdx*8 + 0x68]
cmp rax, qword [r13 + 0x18]
je 0x140002f42
inc r14d
cmp r14d, ecx
jne 0x140002f1a
cmp r14d, ecx
mov rcx, rdi
je 0x140002fc3
mov qword [rsp + 0x38], rsi
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp + 0x17]
mov dword [rsp + 0x28], 0xc
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x2d1080
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140002f88
call fcn.14001b570
mov r14d, eax
jmp 0x140002fae
mov r8d, dword [rbp + 0x1b]
lea rdx, str._GLOBALROOTDeviceHarddisk_uPartition_u
movsxd rax, r14d
lea rcx, [rax + rax*8]
add rcx, rcx
mov r9d, dword [rbx + rcx*8 + 0x48]
mov rcx, qword [rbp + 0xf]
call fcn.14001aa6c
mov r14d, esi
mov rcx, rdi
call qword [fcn.140037368]
test eax, eax
jne 0x140002fd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002fd9
call qword [fcn.140037368]
test eax, eax
jne 0x140002fd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, 3
lea rdx, [rbx - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140002ff5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x140003067
mov rdi, qword [rbp - 9]
cmp rbx, rdi
je 0x140003033
mov rdx, qword [rbx]
mov eax, r15d
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140003026
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rbx, 8
cmp rbx, rdi
jne 0x140003007
mov rbx, qword [rbp - 0x11]
mov rdx, qword [rbp - 1]
mov rax, rbx
sub rdx, rbx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x14000305f
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000309e
mov rcx, rbx
call fcn.14003b3dc
mov eax, r14d
jmp 0x140003071
mov eax, 0x80004002
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400408d0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140042010
int3
mov ecx, 0x80004005
call fcn.140002198
int3