Function at 0x1800076a8
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1178]
mov eax, 0x1278
call fcn.180014a10
sub rsp, rax
mov rax, qword [0x1800d61f8]
xor rax, rsp
mov qword [rbp + 0x1160], rax
mov r13d, r9d
mov rdi, r8
mov rsi, rdx
mov r12, rcx
call fcn.180005ccc
mov rcx, qword [rsi + 8]
xor r15d, r15d
mov rbx, rax
cmp dword [rcx], r15d
jne 0x180007a99
mov rdx, qword [rsi + 0x240]
mov r8, rdi
mov rcx, rax
mov rdx, qword [rdx + 0x128]
call fcn.1800035a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea r14d, [r15 + 3]
cmp eax, r14d
je 0x18000778f
test eax, eax
jne 0x180007737
lea rdx, str.Ignoring_volume__s_because_the_drive_type_cannot_be_determined.
jmp 0x18000777f
cmp eax, 1
jne 0x180007745
lea rdx, str.Ignoring_volume__s_because_there_is_no_volume_mounted.
jmp 0x18000777f
cmp eax, 2
jne 0x180007753
lea rdx, str.Ignoring_volume__s_because_it_has_removable_media.
jmp 0x18000777f
cmp eax, 4
jne 0x180007761
lea rdx, str.Ignoring_volume__s_because_it_is_a_remote__network__drive.
jmp 0x18000777f
cmp eax, 5
jne 0x18000776f
lea rdx, str.Ignoring_volume__s_because_it_is_a_CD_ROM_drive.
jmp 0x18000777f
cmp eax, 6
jne 0x180007a99
lea rdx, str.Ignoring_volume__s_because_it_is_a_RAM_disk.
mov r8, rdi
mov rcx, rbx
call fcn.1800035a0
jmp 0x180007a99
mov r8d, 0x200
lea rdx, [rbp + 0x750]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x180007821
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r14d
jne 0x1800077d9
mov r9, qword [rsi + 0x240]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov r9, qword [r9 + 0x1c8]
call fcn.180004968
jmp 0x180007a99
mov r9d, 0x200
lea r8, [rbp + 0x350]
mov edx, eax
mov rcx, r12
call sym.JkDefrag.dll_public:_void___cdecl_JKDefragLib::SystemErrorStr_unsigned_long_int__wchar_t____ptr64__unsigned_long_long_unsigned___int64_____ptr64
mov r9, qword [rsi + 0x240]
lea rax, [rbp + 0x350]
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov r9, qword [r9 + 0x140]
call fcn.180004968
jmp 0x180007a99
mov dword [rsp + 0x38], r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea rcx, [rbp + 0x750]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test dword [rsp + 0x40], 0x80000
je 0x18000786c
mov rdx, qword [rsi + 0x240]
mov rdx, qword [rdx + 0x120]
jmp 0x18000777f
lea r8, [rbp + 0x750]
mov edx, 0x200
lea rcx, [rsp + 0x50]
call fcn.180053ac8
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.180017824
lea rcx, [rsp + 0x50]
cmp rax, rcx
je 0x1800078a4
cmp word [rax - 2], 0x5c
jne 0x1800078a4
mov word [rax - 2], r15w
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], r15d
xor r9d, r9d
mov r8d, r14d
mov dword [rsp + 0x20], r14d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x180007925
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x200
lea r8, [rbp + 0x350]
mov edx, eax
mov rcx, r12
call sym.JkDefrag.dll_public:_void___cdecl_JKDefragLib::SystemErrorStr_unsigned_long_int__wchar_t____ptr64__unsigned_long_long_unsigned___int64_____ptr64
lea rax, [rbp + 0x350]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea r9, str.Cannot_open_volume__s_at_mountpoint__s:__s
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
lea edx, [r14 + 2]
mov qword [rsp + 0x20], rax
mov rcx, rbx
call fcn.180004968
jmp 0x180007a99
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov edx, 0x90028
mov qword [rsp + 0x20], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x18000798e
mov r9, qword [rsi + 0x240]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov r9, qword [r9 + 0xf8]
call fcn.180004968
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180007a99
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.1800264d8
lea rbx, [rax + 2]
lea rcx, [rbx + rbx]
call fcn.180026bf8
mov r14, rax
test rax, rax
je 0x1800079e2
mov r9, rdi
lea r8, [0x1800bd260]
mov rdx, rbx
mov rcx, rax
call fcn.180003248
mov r9d, r13d
mov r8, r14
mov rdx, rsi
mov rcx, r12
call fcn.180007abc
mov rcx, r14
call fcn.180053d58
mov r8d, 0x304
lea rdx, [rbp + 0xb50]
lea rcx, [rbp + 0x750]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x180007a99
mov rcx, rdi
call fcn.1800264d8
lea rcx, [rbp + 0xb50]
mov rbx, rax
call fcn.1800264d8
lea r15, [rax + 1]
add r15, rbx
lea rcx, [r15 + r15]
call fcn.180026bf8
mov rbx, rax
test rax, rax
je 0x180007a72
lea rax, [rbp + 0xb50]
mov r9, rdi
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, rbx
call fcn.180003248
mov r9d, r13d
mov r8, rbx
mov rdx, rsi
mov rcx, r12
call fcn.1800076a8
mov rcx, rbx
call fcn.180053d58
mov r8d, 0x304
lea rdx, [rbp + 0xb50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
test eax, eax
jne 0x180007a09
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
mov rcx, qword [rbp + 0x1160]
xor rcx, rsp
call fcn.1800149a0
add rsp, 0x1278
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret