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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x12c8
call fcn.180011ab0
sub rsp, rax
mov rax, qword [0x1800830b0]
xor rax, rsp
mov qword [rsp + 0x12b8], rax
call fcn.18002cca0
mov qword [rsp + 0x12a8], rax
mov rax, qword [rsp + 0x12d8]
mov rax, qword [rax + 8]
cmp dword [rax], 0
je 0x1800276d6
jmp 0x180027cec
mov rax, qword [rsp + 0x12d8]
mov rax, qword [rax + 0x240]
mov r8, qword [rsp + 0x12e0]
mov rdx, qword [rax + 0x128]
mov rcx, qword [rsp + 0x12a8]
call fcn.18002c120
mov rcx, qword [rsp + 0x12e0]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x680], eax
cmp dword [rsp + 0x680], 3
je 0x18002780d
cmp dword [rsp + 0x680], 0
jne 0x18002774a
mov r8, qword [rsp + 0x12e0]
lea rdx, str.Ignoring_volume__s_because_the_drive_type_cannot_be_determined.
mov rcx, qword [rsp + 0x12a8]
call fcn.18002c120
cmp dword [rsp + 0x680], 1
jne 0x180027770
mov r8, qword [rsp + 0x12e0]
lea rdx, str.Ignoring_volume__s_because_there_is_no_volume_mounted.
mov rcx, qword [rsp + 0x12a8]
call fcn.18002c120
cmp dword [rsp + 0x680], 2
jne 0x180027796
mov r8, qword [rsp + 0x12e0]
lea rdx, str.Ignoring_volume__s_because_it_has_removable_media.
mov rcx, qword [rsp + 0x12a8]
call fcn.18002c120
cmp dword [rsp + 0x680], 4
jne 0x1800277bc
mov r8, qword [rsp + 0x12e0]
lea rdx, str.Ignoring_volume__s_because_it_is_a_remote__network__drive.
mov rcx, qword [rsp + 0x12a8]
call fcn.18002c120
cmp dword [rsp + 0x680], 5
jne 0x1800277e2
mov r8, qword [rsp + 0x12e0]
lea rdx, str.Ignoring_volume__s_because_it_is_a_CD_ROM_drive.
mov rcx, qword [rsp + 0x12a8]
call fcn.18002c120
cmp dword [rsp + 0x680], 6
jne 0x180027808
mov r8, qword [rsp + 0x12e0]
lea rdx, str.Ignoring_volume__s_because_it_is_a_RAM_disk.
mov rcx, qword [rsp + 0x12a8]
call fcn.18002c120
jmp 0x180027cec
mov r8d, 0x200
lea rdx, [rsp + 0xea0]
mov rcx, qword [rsp + 0x12e0]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
mov dword [rsp + 0x66c], eax
cmp dword [rsp + 0x66c], 0
jne 0x1800278f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x668], eax
cmp dword [rsp + 0x668], 3
jne 0x18002788c
mov rax, qword [rsp + 0x12d8]
mov rax, qword [rax + 0x240]
mov rcx, qword [rsp + 0x12e0]
mov qword [rsp + 0x20], rcx
mov r9, qword [rax + 0x1c8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x12a8]
call fcn.18002bd00
jmp 0x1800278f0
mov r9d, 0x200
lea r8, [rsp + 0x690]
mov edx, dword [rsp + 0x668]
mov rcx, qword [rsp + 0x12d0]
call sym.JkDefrag.dll_public:_void___cdecl_JKDefragLib::SystemErrorStr_unsigned_long_int__wchar_t____ptr64__unsigned_long_long_unsigned___int64_____ptr64
mov rax, qword [rsp + 0x12d8]
mov rax, qword [rax + 0x240]
lea rcx, [rsp + 0x690]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x12e0]
mov qword [rsp + 0x20], rcx
mov r9, qword [rax + 0x140]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x12a8]
call fcn.18002bd00
jmp 0x180027cec
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x670]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xea0]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [rsp + 0x670]
and eax, 0x80000
test eax, eax
je 0x180027972
mov rax, qword [rsp + 0x12d8]
mov rax, qword [rax + 0x240]
mov r8, qword [rsp + 0x12e0]
mov rdx, qword [rax + 0x120]
mov rcx, qword [rsp + 0x12a8]
call fcn.18002c120
jmp 0x180027cec
lea r8, [rsp + 0xea0]
mov edx, 0x200
lea rcx, [rsp + 0xaa0]
call fcn.180004b8c
xor edx, edx
lea rcx, [rsp + 0xaa0]
call fcn.1800031d0
mov qword [rsp + 0x678], rax
lea rax, [rsp + 0xaa0]
cmp qword [rsp + 0x678], rax
je 0x1800279e6
mov rax, qword [rsp + 0x678]
sub rax, 2
mov qword [rsp + 0x678], rax
mov rax, qword [rsp + 0x678]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x1800279e6
xor eax, eax
mov rcx, qword [rsp + 0x678]
mov word [rcx], ax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
lea rcx, [rsp + 0xaa0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xa90], rax
cmp qword [rsp + 0xa90], 0xffffffffffffffff
jne 0x180027a99
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x200
lea r8, [rsp + 0x690]
mov edx, eax
mov rcx, qword [rsp + 0x12d0]
call sym.JkDefrag.dll_public:_void___cdecl_JKDefragLib::SystemErrorStr_unsigned_long_int__wchar_t____ptr64__unsigned_long_long_unsigned___int64_____ptr64
lea rax, [rsp + 0x690]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x12e0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xaa0]
mov qword [rsp + 0x20], rax
lea r9, str.Cannot_open_volume__s_at_mountpoint__s:__s
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x12a8]
call fcn.18002bd00
jmp 0x180027cec
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90028
mov rcx, qword [rsp + 0xa90]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180027b2f
mov rax, qword [rsp + 0x12d8]
mov rax, qword [rax + 0x240]
mov rcx, qword [rsp + 0x12e0]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0xaa0]
mov qword [rsp + 0x20], rcx
mov r9, qword [rax + 0xf8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x12a8]
call fcn.18002bd00
mov rcx, qword [rsp + 0xa90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180027cec
mov rcx, qword [rsp + 0xa90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x12e0]
call fcn.1800034f4
add rax, 2
mov qword [rsp + 0x660], rax
mov rax, qword [rsp + 0x660]
shl rax, 1
mov rcx, rax
call fcn.180004750
mov qword [rsp + 0x678], rax
cmp qword [rsp + 0x678], 0
je 0x180027bd2
mov r9, qword [rsp + 0x12e0]
lea r8, [0x18003ea38]
mov rdx, qword [rsp + 0x660]
mov rcx, qword [rsp + 0x678]
call fcn.180003e98
mov r9d, dword [rsp + 0x12e8]
mov r8, qword [rsp + 0x678]
mov rdx, qword [rsp + 0x12d8]
mov rcx, qword [rsp + 0x12d0]
call fcn.1800261a0
mov rcx, qword [rsp + 0x678]
call fcn.180004b4c
mov r8d, 0x304
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xea0]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov qword [rsp + 0x688], rax
cmp qword [rsp + 0x688], 0xffffffffffffffff
jne 0x180027c03
jmp 0x180027cec
mov rcx, qword [rsp + 0x12e0]
call fcn.1800034f4
mov qword [rsp + 0x12b0], rax
lea rcx, [rsp + 0x50]
call fcn.1800034f4
mov rcx, qword [rsp + 0x12b0]
lea rax, [rcx + rax + 1]
mov qword [rsp + 0x660], rax
mov rax, qword [rsp + 0x660]
shl rax, 1
mov rcx, rax
call fcn.180004750
mov qword [rsp + 0x12a0], rax
cmp qword [rsp + 0x12a0], 0
je 0x180027cbd
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x12e0]
lea r8, str._s_s
mov rdx, qword [rsp + 0x660]
mov rcx, qword [rsp + 0x12a0]
call fcn.180003e98
mov r9d, dword [rsp + 0x12e8]
mov r8, qword [rsp + 0x12a0]
mov rdx, qword [rsp + 0x12d8]
mov rcx, qword [rsp + 0x12d0]
call fcn.180027680
mov rcx, qword [rsp + 0x12a0]
call fcn.180004b4c
mov r8d, 0x304
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x688]
call qword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
test eax, eax
jne 0x180027c03
mov rcx, qword [rsp + 0x688]
call qword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
mov rcx, qword [rsp + 0x12b8]
xor rcx, rsp
call fcn.1800033c0
add rsp, 0x12c8
ret