Function at 0x1400317a8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4d0
mov rax, qword [0x14025e510]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
xor r14d, r14d
mov rbx, rdx
mov rdi, rcx
cmp rcx, r14
jne 0x14003180b
call fcn.140032a34
mov dword [rax], r14d
call fcn.140032a14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], 0x16
mov qword [rsp + 0x20], r14
call fcn.140034a90
jmp 0x140031bdb
cmp rdx, r14
je 0x1400317df
lea rdx, [0x1401e3668]
call fcn.140039c14
cmp rax, r14
je 0x140031839
call fcn.140032a14
mov ebx, 2
mov dword [rax], ebx
call fcn.140032a34
mov dword [rax], ebx
jmp 0x140031bdb
cmp word [rdi + 2], 0x3a
jne 0x14003185f
movzx ecx, word [rdi]
cmp cx, r14w
je 0x140031850
cmp word [rdi + 4], r14w
je 0x140031821
call fcn.140037280
movzx r13d, ax
sub r13d, 0x60
jmp 0x140031867
call fcn.140039b34
mov r13d, eax
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15d, 1
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400319a6
lea rdx, [0x1401e3660]
mov rcx, rdi
mov rsi, r14
call fcn.140039c14
cmp rax, r14
je 0x140031821
call fcn.140032a14
mov r12d, dword [rax]
call fcn.140032a14
lea rcx, [rsp + 0x2b0]
mov r8d, 0x104
mov rdx, rdi
mov dword [rax], r14d
call fcn.1400386b8
mov rbp, rax
cmp rax, r14
je 0x1400318d7
call fcn.140032a14
mov dword [rax], r12d
jmp 0x140031900
call fcn.140032a14
cmp dword [rax], 0x22
jne 0x140031821
call fcn.140032a14
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov dword [rax], r12d
call fcn.1400386b8
mov rsi, rax
mov rbp, rax
cmp rbp, r14
je 0x140031990
mov rcx, rbp
call fcn.14002f9b0
cmp rax, 3
je 0x140031924
mov rcx, rbp
call fcn.1400316ec
cmp eax, r14d
je 0x140031990
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, r15d
jbe 0x140031990
cmp rsi, r14
je 0x14003193f
mov rcx, rsi
call fcn.140030ffc
or dword [rsp + 0x30], 0xffffffff
xor r9d, r9d
mov r8d, r15d
mov edx, r15d
mov ecx, 0x7bc
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x60], 0x10
mov dword [rsp + 0x7c], r14d
mov dword [rsp + 0x80], r14d
mov dword [rsp + 0x20], r14d
mov word [rsp + 0x8c], r14w
call fcn.140039878
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x28], rax
jmp 0x140031b8a
cmp rsi, r14
je 0x140031821
mov rcx, rsi
call fcn.140030ffc
jmp 0x140031821
bt dword [rsp + 0x60], 0xa
jae 0x140031a0b
cmp dword [rsp + 0x84], 0xa000000c
jne 0x140031a0b
or dword [rsp + 0x50], 0xffffffff
lea rcx, [rsp + 0x50]
mov r9d, 0x40
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x20], r14d
call fcn.140039844
cmp eax, r14d
jne 0x140031821
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xffffffff
je 0x140031821
mov rdx, rbx
call fcn.140038acc
mov ecx, dword [rsp + 0x50]
mov ebx, eax
call fcn.1400389b4
mov eax, ebx
jmp 0x140031bde
cmp dword [rsp + 0x74], r14d
jne 0x140031a1f
cmp dword [rsp + 0x78], r14d
jne 0x140031a1f
mov qword [rbx + 0x20], r14
jmp 0x140031a89
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x74]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, r14d
je 0x140031bc5
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, r14d
je 0x140031bc5
or dword [rsp + 0x30], 0xffffffff
movzx eax, word [rsp + 0x4c]
movzx r10d, word [rsp + 0x4a]
movzx r9d, word [rsp + 0x48]
movzx r8d, word [rsp + 0x46]
movzx edx, word [rsp + 0x42]
movzx ecx, word [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r10d
call fcn.140039878
mov qword [rbx + 0x20], rax
cmp dword [rsp + 0x6c], r14d
jne 0x140031a9d
cmp dword [rsp + 0x70], r14d
jne 0x140031a9d
mov rax, qword [rbx + 0x20]
jmp 0x140031b03
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, r14d
je 0x140031bc5
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, r14d
je 0x140031bc5
or dword [rsp + 0x30], 0xffffffff
movzx eax, word [rsp + 0x4c]
movzx r10d, word [rsp + 0x4a]
movzx r9d, word [rsp + 0x48]
movzx r8d, word [rsp + 0x46]
movzx edx, word [rsp + 0x42]
movzx ecx, word [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r10d
call fcn.140039878
mov qword [rbx + 0x18], rax
cmp dword [rsp + 0x64], r14d
jne 0x140031b1b
cmp dword [rsp + 0x68], r14d
jne 0x140031b1b
mov rax, qword [rbx + 0x20]
jmp 0x140031b7d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, r14d
je 0x140031bc5
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, r14d
je 0x140031bc5
or dword [rsp + 0x30], 0xffffffff
movzx eax, word [rsp + 0x4c]
movzx r10d, word [rsp + 0x4a]
movzx r9d, word [rsp + 0x48]
movzx r8d, word [rsp + 0x46]
movzx edx, word [rsp + 0x42]
movzx ecx, word [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r10d
call fcn.140039878
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [rsp + 0x60]
mov rdx, rdi
call fcn.140038800
mov word [rbx + 8], r15w
mov word [rbx + 4], r14w
mov word [rbx + 6], ax
mov eax, dword [rsp + 0x80]
mov word [rbx + 0xc], r14w
mov dword [rbx + 0x14], eax
lea eax, [r13 - 1]
mov word [rbx + 0xa], r14w
mov dword [rbx], eax
mov dword [rbx + 0x10], eax
xor eax, eax
jmp 0x140031bde
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140032a54
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.14002f990
mov rbx, qword [rsp + 0x520]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret