Function at 0x180014bc0
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xeb8]
sub rsp, 0xfb8
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rbp + 0xea0], rax
mov r13, r8
mov qword [rsp + 0x40], r8
mov r12, rdx
mov r15d, ecx
xor esi, esi
lea rcx, [rbp + 0xc90]
xor edx, edx
mov r8d, 0x208
mov r14d, esi
call fcn.180113150
lea rdx, [rbp + 0xc90]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x18001501c
mov qword [rsp + 0xfb0], rdi
lea rdi, [rbp + 0xc90]
cmp word [rbp + 0xc90], si
je 0x18001500b
lea r13, [0x180000000]
mov qword [rsp + 0xff0], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x180014fce
movups xmm0, xmmword [str.x:efi_boot_bootia32.efi]
movzx eax, word [0x180155f10]
xor edx, edx
movups xmm1, xmmword [0x180155ef0]
movzx ebx, word [rdi]
lea rcx, [rbp + 0x8a2]
movaps xmmword [rbp + 0x870], xmm0
mov r8d, 0x1d6
movups xmm0, xmmword [0x180155f00]
mov word [rbp + 0x8a0], ax
movaps xmmword [rbp + 0x880], xmm1
movaps xmmword [rbp + 0x890], xmm0
call fcn.180113150
movups xmm0, xmmword [str.x:efi_boot_bootx64.efi]
xor edx, edx
mov r8d, 0x1d8
movups xmm1, xmmword [0x180155f28]
lea rcx, [rbp + 0xab0]
movaps xmmword [rbp + 0xa80], xmm0
movups xmm0, xmmword [0x180155f38]
movaps xmmword [rbp + 0xa90], xmm1
movaps xmmword [rbp + 0xaa0], xmm0
call fcn.180113150
movaps xmm0, xmmword [str.x:efiMicrosoftBoot_bootmgfw.efi]
lea rcx, [rbp + 0x6a6]
movaps xmm1, xmmword [0x180155f60]
xor edx, edx
mov eax, dword [0x180155f90]
mov r8d, 0x1c2
movaps xmmword [rbp + 0x660], xmm0
movaps xmm0, xmmword [0x180155f70]
movaps xmmword [rbp + 0x670], xmm1
movaps xmm1, xmmword [0x180155f80]
mov dword [rbp + 0x6a0], eax
movzx eax, word [0x180155f94]
movaps xmmword [rbp + 0x680], xmm0
movaps xmmword [rbp + 0x690], xmm1
mov word [rbp + 0x6a4], ax
call fcn.180113150
mov word [rbp + 0x870], bx
mov word [rbp + 0xa80], bx
mov word [rbp + 0x660], bx
test bx, bx
jne 0x180014d7a
mov eax, esi
jmp 0x180014daf
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x660]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x180014d96
mov eax, esi
jmp 0x180014daf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
movzx eax, byte [rsp + 0x70]
not al
movzx eax, al
shr eax, 4
and eax, 1
test eax, eax
je 0x180014e3f
cmp word [rbp + 0x870], 0
jne 0x180014dc5
mov eax, esi
jmp 0x180014dfe
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x870]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x180014de3
mov eax, esi
jmp 0x180014dfe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
movzx eax, byte [rbp + 0x1c0]
not al
movzx eax, al
shr eax, 4
and eax, 1
test eax, eax
jne 0x180014fce
cmp word [rbp + 0xa80], ax
je 0x180014e3f
lea rdx, [rbp + 0x410]
lea rcx, [rbp + 0xa80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x180014e3f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test byte [rbp + 0x410], 0x10
je 0x180014fce
movzx ecx, word [rdi]
call sym.SafeBase64.dll_OpenVolumeDriver
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180014fc6
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 0x20
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x560000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x180014fc6
mov eax, dword [rsp + 0x58]
sub eax, 0xffffff80
cmp eax, r15d
jne 0x180014fc6
movzx ecx, word [rdi]
call sym.SafeBase64.dll_OpenVolumeDriver
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180014fc6
lea rdx, [rbp + 0x660]
mov rcx, rax
call fcn.180016f50
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x180014fc6
mov rax, qword [rsp + 0x60]
xor esi, esi
cqo
mov ecx, r14d
and edx, 0x1ff
imul r8, rcx, 0x7a
lea r9, [rdx + rax]
mov rax, qword [rsp + 0x68]
cqo
sar r9, 9
and edx, 0x1ff
add rdx, rax
sar rdx, 9
mov qword [r8 + r12 + 0x10], r9
mov qword [r8 + r12 + 0x20], rdx
cmp dword [rbp + 0x660], esi
je 0x180014f3f
mov byte [r8 + r12 + 0x66], sil
mov cl, 7
mov dword [r8 + r12 + 4], esi
mov byte [r8 + r12 + 0x64], 7
jmp 0x180014f65
movzx eax, byte [rbp + 0x681]
mov byte [r8 + r12 + 0x66], al
mov eax, dword [rbp + 0x684]
mov dword [r8 + r12 + 4], eax
movzx eax, byte [rbp + 0x680]
mov byte [r8 + r12 + 0x64], al
movzx ecx, al
movzx eax, cl
add eax, 0xfffffffc
cmp eax, 0xa
ja case.0x180014f7d.5
cdqe
mov ecx, dword [r13 + rax*4 + 0x15040]
add rcx, r13
jmp rcx
mov byte [r8 + r12 + 0x63], 5
jmp 0x180014f9d
mov byte [r8 + r12 + 0x63], 6
jmp 0x180014f9d
mov byte [r8 + r12 + 0x63], 7
jmp 0x180014f9d
mov byte [r8 + r12 + 0x63], 9
cmp r9, 0x800
mov rax, r9
cmovbe rax, rsi
inc r14d
mov qword [r8 + r12 + 8], rax
lea rax, [rdx + r9]
mov qword [r8 + r12 + 0x18], rax
movzx eax, byte [rdi]
mov byte [r8 + r12 + 0x65], al
jmp 0x180014fc8
xor esi, esi
cmp r14d, 6
jae 0x180014ffe
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180014fe0
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], 0
jne 0x180014c57
mov r13, qword [rsp + 0x40]
mov rbx, qword [rsp + 0xff0]
mov rdi, qword [rsp + 0xfb0]
mov eax, 1
mov dword [r13], r14d
mov rcx, qword [rbp + 0xea0]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0xfb8
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret