Function at 0x140078594
Capabilities:
Get disk information
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
push r13
push r14
lea rbp, [rax - 0x6c8]
sub rsp, 0x7b0
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x6a0], rax
mov rsi, rdx
lea r13, [0x14000f2c0]
mov qword [rsp + 0x30], r13
lea rbx, [0x140012440]
mov qword [rsp + 0x38], rbx
lea rdi, [0x14000f2a8]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], 0xb36
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x50], 0xff
xor r14d, r14d
mov dword [rbp - 0x30], 0x1000000
xor edx, edx
lea r8d, [r14 + 0x78]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140052e50
nop
xor r9d, r9d
mov r8d, 0x228
lea rdx, [rbp + 0x470]
lea ecx, [r14 + 0x12]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
je 0x1400786b9
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], 0xb40
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x50], 0xff
mov dword [rbp - 0x30], 0x1000000
xor edx, edx
lea r8d, [r14 + 0x78]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
lea r8, [0x140012490]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.1400510b0
jmp 0x140078805
lea rdi, [rbp + 0x470]
cmp dword [rdi + 4], r14d
je 0x1400787a4
mov qword [rsp + 0x28], r14
lea rax, [0x140001b68]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400134d0]
lea rcx, [rsp + 0x20]
call fcn.140073da0
mov rdx, qword [rdi + 0x18]
lea rcx, [rsp + 0x20]
call fcn.140073004
mov rcx, qword [rsp + 0x28]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140078703
cmp word [rcx + rax*2 - 2], 0x5c
je 0x14007872b
lea rdx, [0x14000ca50]
lea rcx, [rsp + 0x20]
call fcn.140073004
mov rcx, qword [rsp + 0x28]
mov r8d, 0x104
lea rdx, [rbp + 0x260]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumePathNameW]
test eax, eax
je 0x14007876e
mov r8d, 0x104
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x260]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x14007876e
mov rdx, rsi
lea rcx, [rbp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14007878b
mov rbx, rdi
mov eax, dword [rdi]
add rdi, rax
lea rcx, [rsp + 0x20]
call fcn.140070d7c
cmp rdi, rbx
jne 0x1400786c0
jmp 0x140078805
mov dl, 1
lea rcx, [rbp - 0x20]
call fcn.140074628
mov bl, al
lea rcx, [rsp + 0x20]
call fcn.140070d7c
jmp 0x140078812
mov qword [rsp + 0x30], r13
lea rax, [0x140012440]
mov qword [rsp + 0x38], rax
lea rax, [0x14000f2a8]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0xb4c
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x50], 0xff
mov dword [rbp - 0x30], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
lea r8, [0x1400124f0]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.1400510b0
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.140074628
mov bl, al
lea rcx, [rbp - 0x20]
call fcn.140050f50
mov al, bl
mov rcx, qword [rbp + 0x6a0]
xor rcx, rsp
call fcn.14005dc70
lea r11, [rsp + 0x7b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret