Function at 0x140152fbc
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r12d, r12d
mov r14, rdx
mov r15, rcx
mov qword [rdx], r12
lea rdx, [r11 - 0x68]
mov qword [r11 - 0x68], r12
mov dword [r11 - 0x60], r12d
call fcn.1400a97c0
lea r13, [0x14017d3a8]
mov ebx, eax
test eax, eax
js 0x1401531b1
lea r8d, [r12 + 0x20]
lea rcx, [rsp + 0x50]
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
lea esi, [r12 + 0x10]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rax
xor edx, edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x14015315e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x48]
mov dl, 1
mov rcx, r15
mov edi, eax
call fcn.140153ce4
test eax, eax
jns 0x1401530c4
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x1401530b1
test byte [rcx + 0x1c], 1
je 0x1401530b1
cmp byte [rcx + 0x19], 3
jb 0x1401530b1
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x1d]
lea r8, [0x140015d68]
mov r9, r15
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1401531b8
mov eax, dword [rsp + 0x48]
shr eax, 0xb
test al, 1
je 0x140153231
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x14015310f
test dword [rcx + 0x1c], reloc.ADVAPI32.dll_TraceEvent
je 0x14015310f
cmp byte [rcx + 0x19], 4
jb 0x14015310f
mov r9, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015d68]
mov edx, 0x2e
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
lea r8, [0x140004018]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x50]
sub r8, rax
mov ebx, r12d
lea rax, [rsi + 0x7fffffee]
test rax, rax
je 0x140153148
movzx eax, word [r8 + rdx]
test ax, ax
je 0x140153148
mov word [rdx], ax
add rdx, 2
dec rsi
jne 0x140153126
test rsi, rsi
jne 0x140153156
sub rdx, 2
mov ebx, 0x8007007a
mov word [rdx], r12w
test ebx, ebx
js 0x1401531b8
lea rcx, [rsp + 0x50]
xor r8d, r8d
mov rdx, r14
call fcn.1400a99e4
mov ebx, eax
test eax, eax
js 0x1401531b1
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x1401531b8
test dword [rcx + 0x1c], reloc.ADVAPI32.dll_TraceEvent
je 0x1401531b8
cmp byte [rcx + 0x19], 5
jb 0x1401531b8
mov rax, qword [r14]
mov r9, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015d68]
mov edx, 0x30
mov qword [rsp + 0x20], rax
call fcn.14001ed50
mov rcx, qword [0x14017d3a8]
cmp qword [rsp + 0x40], r12
je 0x1401531d1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x140153205
cmp rcx, r13
je 0x140153205
test dword [rcx + 0x1c], reloc.ADVAPI32.dll_TraceEvent
je 0x140153205
cmp byte [rcx + 0x19], 3
jb 0x140153205
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015d68]
mov edx, 0x31
mov r9, r15
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp edi, 0x3ed
je 0x140153256
cmp edi, 1
je 0x140153256
cmp edi, 0x57
je 0x140153256
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1401531b1
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x1401531b8
test dword [rcx + 0x1c], reloc.ADVAPI32.dll_TraceEvent
je 0x1401531b8
cmp byte [rcx + 0x19], 4
jb 0x1401531b8
mov r9, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015d68]
mov edx, 0x2f
call fcn.14001ec40
jmp 0x1401531b1