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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x300
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov r13, rcx
call fcn.14002d69c
xor r15d, r15d
test al, al
je 0x14002a9dc
mov qword [rsp + 0x28], r15
mov r14d, r15d
mov qword [rsp + 0x30], r15
mov r12d, r15d
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov edx, 0x105
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstVolumeW]
nop dword [rax + rax]
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
je 0x14004d3d8
mov edi, r15d
mov ecx, 0x8001
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
nop dword [rax + rax]
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]
nop dword [rax + rax]
mov esi, eax
cmp eax, 3
jne 0x14004d3fc
mov ecx, 0x8002802b
mov rdx, qword [r13 + 0x48]
mov rax, qword [r13 + 0x50]
lea r11, [rdx + rax*8]
cmp rdx, r11
jne 0x14004d448
mov qword [rsp + 0x20], r15
lea rcx, [rsp + 0x20]
call fcn.140002ba8
lea r8, [rbp - 0x20]
lea rdx, [r13 + 0x10]
lea rcx, [rsp + 0x20]
call fcn.14002a9e8
mov edi, eax
test eax, eax
js 0x14002a83f
mov rdx, qword [rsp + 0x20]
mov rcx, r13
call fcn.140027cd8
mov edi, eax
test eax, eax
js 0x14002a83f
mov edi, r15d
cmp r14, qword [rsp + 0x40]
jne 0x14002a80b
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x28]
call fcn.140035594
mov edi, eax
mov r14, qword [rsp + 0x30]
test eax, eax
js 0x14002a832
inc r14
mov qword [rsp + 0x30], r14
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff8
lea rcx, [rcx + r14*8]
test rcx, rcx
je 0x14002a832
mov rax, qword [rsp + 0x20]
mov qword [rcx], rax
call fcn.140023980
test edi, edi
js 0x14002a83f
cmp esi, 2
je 0x14004d587
lea rcx, [rsp + 0x20]
call fcn.140002ba8
test edi, edi
js 0x14002a869
mov qword [rbp - 0x78], r13
lea rax, [rsp + 0x58]
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x20]
call fcn.14002ae94
mov edi, eax
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
nop dword [rax + rax]
test edi, edi
js 0x14002a8ad
mov r8d, 0x105
lea rdx, [rbp - 0x20]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextVolumeW]
nop dword [rax + rax]
test eax, eax
jne 0x14002a760
call fcn.14001d618
mov edi, eax
test eax, eax
jns 0x14002a763
mov r12, qword [rsp + 0x38]
cmp edi, 0x80070012
cmovne r15d, edi
test r15d, r15d
js 0x14002a96b
lea rsi, [r13 + 0x48]
mov rbx, qword [rsi]
mov rax, qword [rsi + 8]
lea rdi, [rbx + rax*8]
cmp rbx, rdi
jne 0x14004d5d4
lea rbx, [r13 + 0x68]
mov rdi, qword [rbx]
mov rax, qword [rbx + 8]
lea r13, [rdi + rax*8]
cmp rdi, r13
jne 0x14004d606
mov rcx, rsi
call fcn.14002b65c
mov rcx, rbx
call fcn.14002b65c
mov rax, qword [rsp + 0x28]
mov qword [rsi], rax
mov qword [rsi + 0x10], r12
mov qword [rsi + 8], r14
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x18], rax
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x58]
mov qword [rbx], rax
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x18], rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x58]
call fcn.14002b65c
nop
lea rcx, [rsp + 0x28]
call fcn.14002b65c
nop
mov rax, qword [rsp + 0x78]
cmp rax, 0xffffffffffffffff
je 0x14002a99b
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindVolumeClose]
nop dword [rax + rax]
mov eax, r15d
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140036e80
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
test edi, edi
jns 0x14002a763
jmp 0x14002a8b2
xor eax, eax
jmp 0x14002a99e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x14002a9cf
movzx edi, ax
or edi, 0x80070000
jmp 0x14002a9cf
cmp esi, 2
jne 0x14002a869
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x5c], xmm0
mov dword [rbp - 0x4c], r15d
mov dword [rbp - 0x60], r15d
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.140027a80
test eax, eax
jne 0x14002a869
jmp 0x14002a794
mov r9, r15
mov r10d, ecx
cmp ecx, 0x8002802b
jne 0x14004d4a5
mov rax, qword [rdx]
lea rcx, [rbp - 0x20]
mov r8, qword [rax + 0x18]
sub r8, rcx
movzx eax, word [rcx]
cmp ax, word [rcx + r8]
jne 0x14004d47c
add rcx, 2
test ax, ax
jne 0x14004d464
mov eax, r15d
jmp 0x14004d481
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14004d491
mov r12, r9
sar r12, 3
mov qword [rsp + 0x50], r12
add rdx, 8
add r9, 8
neg eax
sbb ecx, ecx
and ecx, r10d
cmp rdx, r11
jne 0x14004d44b
test ecx, ecx
js 0x14002a7ae
mov r15, qword [r13 + 0x48]
mov rdx, qword [rsp + 0x50]
mov rsi, qword [r15 + rdx*8]
xor edi, edi
cmp r14, qword [rsp + 0x40]
jne 0x14004d4e1
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x28]
call fcn.140035594
mov edi, eax
mov r14, qword [rsp + 0x30]
test eax, eax
js 0x14004d507
mov rdx, qword [rsp + 0x50]
inc r14
mov qword [rsp + 0x30], r14
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff8
lea rcx, [rcx + r14*8]
test rcx, rcx
je 0x14004d507
mov rax, qword [r15 + rdx*8]
mov qword [rcx], rax
call fcn.140023980
xor r15d, r15d
test edi, edi
js 0x14002a869
mov rdx, qword [rsp + 0x50]
lea rcx, [r13 + 0x48]
call fcn.140040018
mov edi, eax
test eax, eax
js 0x14002a869
cmp byte [rsi + 0x35], r15b
jne 0x14004d534
mov r15d, dword [rsi + 0x30]
mov rcx, rsi
call fcn.14002b4fc
mov edi, eax
test eax, eax
js 0x14004d5cc
mov dil, byte [rsi + 0x34]
mov rcx, rsi
call fcn.140027e68
mov r9b, byte [rsi + 0x34]
cmp dil, r9b
je 0x14004d5c4
test r9b, r9b
je 0x14004d56f
cmp byte [rsi + 0x35], 0
je 0x14004d56b
xor r15d, r15d
jmp 0x14004d56f
mov r15d, dword [rsi + 0x30]
mov r8d, r15d
mov rdx, rsi
mov rcx, r13
call fcn.1400281b8
mov edi, eax
xor r15d, r15d
jmp 0x14002a849
xor edx, edx
lea rcx, str.DisableAutomaticRemovableDriveIndexing
call fcn.14002d8f4
test al, al
jne 0x14002a83f
mov rax, qword [rsp + 0x20]
cmp byte [rax + 0x35], r15b
je 0x14004d5ad
mov eax, r15d
jmp 0x14004d5b0
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x48], eax
lea r9, [rsp + 0x48]
call fcn.14005301c
nop
jmp 0x14002a83f
xor r15d, r15d
jmp 0x14002a84d
xor r15d, r15d
jmp 0x14002a869
mov rcx, qword [rbx]
add rcx, 0x10
call fcn.140054bf8
mov rdx, qword [rbx]
cmp byte [rdx + 0x35], 0
je 0x14004d5ee
xor r8d, r8d
jmp 0x14004d5f2
mov r8d, dword [rdx + 0x30]
xor r9d, r9d
mov rcx, r13
call fcn.1400281b8
add rbx, 8
jmp 0x14002a8d4
mov rcx, qword [rdi]
add rcx, 0x10
call fcn.140054bf8
add rdi, 8
jmp 0x14002a8ec