Function at 0x14013bc60
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r13d, r13d
mov r15, rdx
mov qword [rdx], r13
mov r12, rcx
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x40], r13
mov dword [rbp - 0x38], r13d
call fcn.14008c48c
lea rdi, [0x14017a048]
mov ebx, eax
test eax, eax
js 0x14013be71
mov rcx, qword [rbp - 0x40]
lea rax, [rbp - 0x30]
xorps xmm0, xmm0
lea esi, [r13 + 0x10]
mov dword [rsp + 0x38], esi
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov qword [rsp + 0x28], r13
xor edx, edx
mov qword [rsp + 0x20], r13
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
jne 0x14013be20
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r8, [rbp - 0x38]
mov dl, 1
mov rcx, r12
mov edi, eax
call fcn.14013a39c
test eax, eax
jns 0x14013bd78
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x14013bd5f
test byte [rcx + 0x1c], 1
je 0x14013bd5f
cmp byte [rcx + 0x19], 3
jb 0x14013bd5f
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x2d]
mov r9, r12
mov dword [rsp + 0x20], eax
lea r8, [0x140169ec8]
call fcn.140011330
mov rcx, qword [0x14017a048]
test edi, edi
jg 0x14013bd6a
mov ebx, edi
jmp 0x14013be7f
movzx ebx, di
or ebx, 0x80070000
jmp 0x14013be7f
test dword [rbp - 0x38], 0x800
je 0x14013befb
mov rcx, qword [0x14017a048]
lea rdi, [0x14017a048]
cmp rcx, rdi
je 0x14013bdc7
test dword [rcx + 0x1c], 0x200
je 0x14013bdc7
cmp byte [rcx + 0x19], 4
jb 0x14013bdc7
mov r9, qword [rbp - 0x40]
lea r8, [0x140169ec8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x2e
call fcn.1400112c8
mov rcx, qword [0x14017a048]
lea r8, str.NTFS
lea rax, [rbp - 0x30]
sub r8, rax
lea rdx, [rbp - 0x30]
lea rax, [rsi + 0x7fffffee]
test rax, rax
je 0x14013bdfc
movzx eax, word [r8 + rdx]
test ax, ax
je 0x14013bdfc
mov word [rdx], ax
add rdx, 2
sub rsi, 1
jne 0x14013bdd9
test rsi, rsi
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r13w
mov rax, rsi
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test rsi, rsi
je 0x14013be78
xor r8d, r8d
lea rcx, [rbp - 0x30]
mov rdx, r15
call fcn.14008c1cc
mov ebx, eax
test eax, eax
js 0x14013be71
mov rcx, qword [0x14017a048]
cmp rcx, rdi
je 0x14013be78
test dword [rcx + 0x1c], 0x200
je 0x14013be78
cmp byte [rcx + 0x19], 5
jb 0x14013be78
mov rax, qword [r15]
lea r8, [0x140169ec8]
mov r9, qword [rbp - 0x40]
mov edx, 0x30
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.1400113b0
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp qword [rbp - 0x40], r13
je 0x14013be9c
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
test ebx, ebx
jns 0x14013bed0
cmp rcx, rsi
je 0x14013bed0
test dword [rcx + 0x1c], 0x200
je 0x14013bed0
cmp byte [rcx + 0x19], 3
jb 0x14013bed0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169ec8]
mov edx, 0x31
mov dword [rsp + 0x20], ebx
mov r9, r12
call fcn.140011330
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001d90
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
cmp edi, 0x3ed
je 0x14013bf19
cmp edi, 1
je 0x14013bf19
cmp edi, 0x57
je 0x14013bf19
lea rsi, [0x14017a048]
jmp 0x14013bd58
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x14013be7f
test dword [rcx + 0x1c], 0x200
je 0x14013be7f
cmp byte [rcx + 0x19], 4
jb 0x14013be7f
mov r9, qword [rbp - 0x40]
lea r8, [0x140169ec8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x2f
call fcn.1400112c8
mov rcx, qword [0x14017a048]
jmp 0x14013be7f