Function at 0x140023a3c
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.140028b60
xor ebx, ebx
test al, al
je 0x140023d46
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 0x1400402dc
mov esi, ebx
test esi, esi
js 0x140023c30
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 0x1400402fb
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 0x14004034b
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.14001cea8
lea rdx, [r13 + 0x10]
lea r8, [rbp - 0x20]
lea rcx, [rsp + 0x20]
call fcn.140023e7c
mov esi, eax
test eax, eax
js 0x140023bc1
mov rdx, qword [rsp + 0x20]
mov rcx, r13
call fcn.14001e6a4
mov esi, eax
test eax, eax
js 0x140023bc1
xor esi, esi
cmp r14, qword [rsp + 0x50]
jne 0x140023b8c
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x38]
call fcn.140023838
mov esi, eax
mov r14, qword [rsp + 0x40]
test eax, eax
js 0x140023bb3
inc r14
mov qword [rsp + 0x40], r14
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff8
lea rcx, [rcx + r14*8]
test rcx, rcx
je 0x140023bb3
mov rax, qword [rsp + 0x20]
mov qword [rcx], rax
call fcn.14001cee4
test esi, esi
js 0x140023bc1
cmp r15d, 2
je 0x14004046a
lea rcx, [rsp + 0x20]
call fcn.14001cea8
test esi, esi
js 0x140023beb
mov qword [rbp - 0x78], r13
lea rax, [rsp + 0x60]
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x20]
call fcn.14002467c
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 0x140023c2b
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 0x140023c1c
mov esi, ebx
jmp 0x140023ae6
call fcn.14001e36c
mov esi, eax
test eax, eax
jns 0x140023ae6
mov r12, qword [rsp + 0x48]
mov r15d, ebx
cmp esi, 0x80070012
cmovne r15d, esi
test r15d, r15d
js 0x140023cec
lea rsi, [r13 + 0x48]
mov rbx, qword [rsi]
mov rax, qword [rsi + 8]
lea rdi, [rbx + rax*8]
cmp rbx, rdi
jne 0x14004049a
lea rdi, [r13 + 0x68]
mov rbx, qword [rdi]
mov rax, qword [rdi + 8]
lea r13, [rbx + rax*8]
cmp rbx, r13
jne 0x1400404c1
mov rcx, rsi
call fcn.140029db8
mov rcx, rdi
call fcn.140029db8
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.140029db8
nop
lea rcx, [rsp + 0x38]
call fcn.140029db8
nop
mov rcx, qword [rsp + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x140023d13
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.14002dd40
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 0x140023d16
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop
mov esi, eax
test eax, eax
jle 0x140023ade
movzx esi, ax
or esi, 0x80070000
jmp 0x140023ade
cmp r15d, 2
jne 0x140023bf0
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.140021c78
test eax, eax
jne 0x140023bf0
jmp 0x140023b10
xor r10d, r10d
cmp ecx, esi
jne 0x14004039f
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 0x140040374
add rax, 2
test edx, edx
jne 0x140040360
test ecx, ecx
jne 0x140040388
mov al, 1
mov r12, r10
sar r12, 3
mov qword [rsp + 0x58], r12
jmp 0x14004038a
xor al, al
add r8, 8
add r10, 8
neg al
sbb ecx, ecx
not ecx
and ecx, esi
cmp r8, r11
jne 0x14004034e
test ecx, ecx
js 0x140023b2f
mov rdx, qword [rsp + 0x58]
mov r15, qword [rdi + rdx*8]
xor esi, esi
cmp r14, qword [rsp + 0x50]
jne 0x1400403d7
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x38]
call fcn.140023838
mov esi, eax
mov r14, qword [rsp + 0x40]
test eax, eax
js 0x1400403fd
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 0x1400403fd
mov rax, qword [rdi + rdx*8]
mov qword [rcx], rax
call fcn.14001cee4
test esi, esi
js 0x140023beb
mov rdx, qword [rsp + 0x58]
lea rcx, [r13 + 0x48]
call fcn.1400485bc
mov esi, eax
test eax, eax
js 0x140023beb
mov r12d, dword [r15 + 0x30]
mov rcx, r15
call fcn.140023f3c
mov esi, eax
test eax, eax
js 0x140023beb
mov dil, byte [r15 + 0x34]
mov rcx, r15
call fcn.14001e06c
mov r9b, byte [r15 + 0x34]
cmp dil, r9b
je 0x140023bcb
test r9b, r9b
je 0x140040455
mov r12d, dword [r15 + 0x30]
mov r8d, r12d
mov rdx, r15
mov rcx, r13
call fcn.14001e524
mov esi, eax
jmp 0x140023bcb
lea rcx, str.DisableAutomaticRemovableDriveIndexing
call fcn.1400220ec
test al, al
jne 0x140023bc1
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 0x30]
mov dword [rsp + 0x30], ecx
lea r9, [rsp + 0x30]
call fcn.140046b88
nop
jmp 0x140023bc1
mov rcx, qword [rbx]
add rcx, 0x10
call fcn.14002cbac
mov rdx, qword [rbx]
xor r9d, r9d
mov r8d, dword [rdx + 0x30]
mov rcx, r13
call fcn.14001e524
add rbx, 8
jmp 0x140023c55
mov rcx, qword [rbx]
add rcx, 0x10
call fcn.14002cbac
add rbx, 8
jmp 0x140023c6d