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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x300
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov r13, rcx
call fcn.140021644
xor ebx, ebx
test al, al
je 0x140023816
mov qword [rsp + 0x38], rbx
mov r14d, ebx
mov qword [rsp + 0x40], rbx
mov r12d, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov edx, 0x105
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstVolumeW]
mov rdi, rax
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
je 0x140040e86
mov esi, ebx
test esi, esi
js 0x140023700
mov ecx, 0x8001
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
mov ebx, eax
mov dword [rbp - 0x80], eax
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
mov r15d, eax
mov dword [rsp + 0x30], eax
cmp eax, 3
jne 0x140040ea5
mov esi, 0x8002802b
mov ecx, esi
mov rdi, qword [r13 + 0x48]
mov r8, rdi
mov rax, qword [r13 + 0x50]
lea r11, [rdi + rax*8]
cmp rdi, r11
jne 0x140040ef5
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.14001cfc8
lea rdx, [r13 + 0x10]
lea r8, [rbp - 0x20]
lea rcx, [rsp + 0x20]
call fcn.14002394c
mov esi, eax
test eax, eax
js 0x140023691
mov rdx, qword [rsp + 0x20]
mov rcx, r13
call fcn.14001d44c
mov esi, eax
test eax, eax
js 0x140023691
xor esi, esi
cmp r14, qword [rsp + 0x50]
jne 0x14002365c
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x38]
call fcn.140023308
mov esi, eax
mov r14, qword [rsp + 0x40]
test eax, eax
js 0x140023683
inc r14
mov qword [rsp + 0x40], r14
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff8
lea rcx, [rcx + r14*8]
test rcx, rcx
je 0x140023683
mov rax, qword [rsp + 0x20]
mov qword [rcx], rax
call fcn.14001d004
test esi, esi
js 0x140023691
cmp r15d, 2
je 0x140041014
lea rcx, [rsp + 0x20]
call fcn.14001cfc8
test esi, esi
js 0x1400236bb
mov qword [rbp - 0x78], r13
lea rax, [rsp + 0x60]
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x20]
call fcn.14002414c
mov esi, eax
mov rdi, qword [rsp + 0x28]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
xor ebx, ebx
test esi, esi
js 0x1400236fb
mov r8d, 0x105
lea rdx, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextVolumeW]
test eax, eax
je 0x1400236ec
mov esi, ebx
jmp 0x1400235b6
call fcn.14001e28c
mov esi, eax
test eax, eax
jns 0x1400235b6
mov r12, qword [rsp + 0x48]
mov r15d, ebx
cmp esi, 0x80070012
cmovne r15d, esi
test r15d, r15d
js 0x1400237bc
lea rsi, [r13 + 0x48]
mov rbx, qword [rsi]
mov rax, qword [rsi + 8]
lea rdi, [rbx + rax*8]
cmp rbx, rdi
jne 0x140041044
lea rdi, [r13 + 0x68]
mov rbx, qword [rdi]
mov rax, qword [rdi + 8]
lea r13, [rbx + rax*8]
cmp rbx, r13
jne 0x14004106b
mov rcx, rsi
call fcn.140028e20
mov rcx, rdi
call fcn.140028e20
mov rax, qword [rsp + 0x38]
mov qword [rsi], rax
mov qword [rsi + 0x10], r12
mov qword [rsi + 8], r14
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x18], rax
xor ecx, ecx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], rcx
mov rax, qword [rsp + 0x60]
mov qword [rdi], rax
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0x10], rax
mov rax, qword [rsp + 0x68]
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x18], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0x60]
call fcn.140028e20
nop
lea rcx, [rsp + 0x38]
call fcn.140028e20
nop
mov rcx, qword [rsp + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x1400237e3
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindVolumeClose]
mov eax, r15d
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14002cdb0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xor eax, eax
jmp 0x1400237e6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop
mov esi, eax
test eax, eax
jle 0x1400235ae
movzx esi, ax
or esi, 0x80070000
jmp 0x1400235ae
cmp r15d, 2
jne 0x1400236c0
xor edx, edx
lea r8d, [r15 + 0x1e]
lea rcx, [rbp - 0x68]
call sub.msvcrt.dll_memset
and dword [rbp - 0x60], 0
lea rax, str.DisableRemovableDriveIndexing
mov qword [rbp - 0x68], rax
movups xmm0, xmmword [rbp - 0x68]
movaps xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rbp - 0x58]
movaps xmmword [rbp - 0x30], xmm1
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.14001f778
test eax, eax
jne 0x1400236c0
jmp 0x1400235e0
xor r10d, r10d
cmp ecx, esi
jne 0x140040f49
mov rax, qword [r8]
mov r9, qword [rax + 0x18]
lea rax, [rbp - 0x20]
sub r9, rax
movzx ecx, word [rax]
movzx edx, word [rax + r9]
sub ecx, edx
jne 0x140040f1e
add rax, 2
test edx, edx
jne 0x140040f0a
test ecx, ecx
jne 0x140040f32
mov al, 1
mov r12, r10
sar r12, 3
mov qword [rsp + 0x58], r12
jmp 0x140040f34
xor al, al
add r8, 8
add r10, 8
neg al
sbb ecx, ecx
not ecx
and ecx, esi
cmp r8, r11
jne 0x140040ef8
test ecx, ecx
js 0x1400235ff
mov rdx, qword [rsp + 0x58]
mov r15, qword [rdi + rdx*8]
xor esi, esi
cmp r14, qword [rsp + 0x50]
jne 0x140040f81
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x38]
call fcn.140023308
mov esi, eax
mov r14, qword [rsp + 0x40]
test eax, eax
js 0x140040fa7
mov rdx, qword [rsp + 0x58]
inc r14
mov qword [rsp + 0x40], r14
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff8
lea rcx, [rcx + r14*8]
test rcx, rcx
je 0x140040fa7
mov rax, qword [rdi + rdx*8]
mov qword [rcx], rax
call fcn.14001d004
test esi, esi
js 0x1400236bb
mov rdx, qword [rsp + 0x58]
lea rcx, [r13 + 0x48]
call fcn.14004881c
mov esi, eax
test eax, eax
js 0x1400236bb
mov r12d, dword [r15 + 0x30]
mov rcx, r15
call fcn.140023a0c
mov esi, eax
test eax, eax
js 0x1400236bb
mov dil, byte [r15 + 0x34]
mov rcx, r15
call fcn.14001df8c
mov r9b, byte [r15 + 0x34]
cmp dil, r9b
je 0x14002369b
test r9b, r9b
je 0x140040fff
mov r12d, dword [r15 + 0x30]
mov r8d, r12d
mov rdx, r15
mov rcx, r13
call fcn.14001d2cc
mov esi, eax
jmp 0x14002369b
lea rcx, str.DisableAutomaticRemovableDriveIndexing
call fcn.14001e5d8
test al, al
jne 0x140023691
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 0x30]
mov dword [rsp + 0x30], ecx
lea r9, [rsp + 0x30]
call fcn.140046de8
nop
jmp 0x140023691
mov rcx, qword [rbx]
add rcx, 0x10
call fcn.14002bc18
mov rdx, qword [rbx]
xor r9d, r9d
mov r8d, dword [rdx + 0x30]
mov rcx, r13
call fcn.14001d2cc
add rbx, 8
jmp 0x140023725
mov rcx, qword [rbx]
add rcx, 0x10
call fcn.14002bc18
add rbx, 8
jmp 0x14002373d