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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor edi, edi
mov qword [rsp + 0x68], rdx
mov rax, r8
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x58], rax
mov r12d, edi
mov r14d, edi
mov qword [rsp + 0x40], rdi
mov esi, edi
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
mov rbx, rdx
mov r13, rcx
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
cmp rcx, rdx
je 0x14003c031
test dword [rcx + 0x1c], 0x200
je 0x14003c031
cmp byte [rcx + 0x19], 4
jb 0x14003c031
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x39]
lea r8, [0x14014bb48]
call fcn.140004c54
mov rcx, qword [0x140170048]
mov rax, qword [rsp + 0x58]
mov r15b, dil
mov edx, 1
test rbx, rbx
jne 0x14003c048
mov edi, 0x80004003
jmp 0x14003c7a2
mov dword [rbx], edi
test rax, rax
jne 0x14003c059
mov edi, 0x80004003
jmp 0x14003c79b
mov rcx, r13
mov qword [rax], rdi
call fcn.140051420
mov edi, eax
test eax, eax
js 0x14003c796
mov al, byte [0x140172490]
lea rdx, [rsp + 0x38]
mov edi, 1
lea rcx, [rsp + 0x48]
and al, dil
mov byte [rsp + 0x30], al
call fcn.14008ba1c
test eax, eax
jns 0x14003c0c8
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
cmp rcx, rdx
je 0x14003c0c8
test byte [rcx + 0x1c], dil
je 0x14003c0c8
cmp byte [rcx + 0x19], 3
jb 0x14003c0c8
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x39]
mov r9d, eax
lea r8, [0x14014bb48]
call fcn.140004c78
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov qword [rsp + 0x50], rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003c13c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140170048]
lea rsi, [0x140170048]
cmp rcx, rsi
je 0x14003c129
test byte [rcx + 0x1c], 1
je 0x14003c129
cmp byte [rcx + 0x19], 2
jb 0x14003c129
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x3c]
mov r9d, eax
lea r8, [0x14014bb48]
call fcn.140004c78
mov rcx, qword [0x140170048]
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
jmp 0x14003c771
mov r8d, 0x104
lea rdx, [rbp - 0x80]
mov rcx, rdi
inc r12d
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x14003c13c
mov dword [rsp + 0x3c], r12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x12
jne 0x14003c6f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ebx, r12d
shl rbx, 7
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rsp + 0x40], rax
mov rsi, rax
test rax, rax
jne 0x14003c19c
mov edi, 0x8007000e
jmp 0x14003c763
mov r8, rbx
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
mov bl, byte [rsp + 0x30]
xor r15d, r15d
test bl, bl
je 0x14003c2bb
test r12d, r12d
jne 0x14003c1d5
lea r8, str.cVolume___cMaxVolume
mov edx, 0x3ba
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.14008388c
lea rcx, [0x1401712b0]
mov bl, r15b
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [r13 + 0x68]
mov edi, 1
mov r15b, dil
test rcx, rcx
je 0x14003c257
mov rdx, rsi
call fcn.14013867c
xor ebx, ebx
mov edi, eax
test eax, eax
jns 0x14003c24c
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14003c74f
test byte [rcx + 0x1c], 1
je 0x14003c74f
cmp byte [rcx + 0x19], 2
jb 0x14003c74f
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x3d]
mov r9d, edi
lea r8, [0x14014bb48]
call fcn.140004c78
jmp 0x14003c748
mov edi, 1
mov r14d, edi
mov bl, dil
lea rcx, [0x1401712b0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r15d, r15d
test bl, bl
jne 0x14003c2b7
mov r8, rsi
mov dl, dil
xor ecx, ecx
call fcn.140048f2c
test eax, eax
jns 0x14003c2b4
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
cmp rcx, rdx
je 0x14003c2b7
test byte [rcx + 0x1c], dil
je 0x14003c2b7
cmp byte [rcx + 0x19], 3
jb 0x14003c2b7
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x3e]
mov r9d, eax
lea r8, [0x14014bb48]
call fcn.140004c78
jmp 0x14003c2b7
add r14d, edi
mov bl, byte [rsp + 0x30]
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14003c32b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14003c318
test byte [rcx + 0x1c], 1
je 0x14003c318
cmp byte [rcx + 0x19], 2
jb 0x14003c318
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x40]
mov r9d, ebx
lea r8, [0x14014bb48]
call fcn.140004c78
mov rcx, qword [0x140170048]
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
jmp 0x14003c74f
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14003c365
mov eax, 1
test byte [rcx + 0x1c], al
je 0x14003c365
cmp byte [rcx + 0x19], 4
jb 0x14003c365
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3f]
lea r9, [rbp - 0x80]
lea r8, [0x14014bb48]
call fcn.140005bdc
test bl, bl
je 0x14003c4d7
lea rax, [rbp - 0x80]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], r15w
jne 0x14003c375
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.140087070
mov edi, eax
test eax, eax
jns 0x14003c39b
mov edi, r15d
jmp 0x14003c4ae
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
mov r15d, dword [rsp + 0x34]
mov ebx, 1
cmp rcx, rax
je 0x14003c422
test byte [rcx + 0x1c], bl
je 0x14003c422
cmp byte [rcx + 0x19], 4
jb 0x14003c422
or r15d, ebx
lea rdx, [0x1401725c8]
or r15d, 2
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x34], r15d
call fcn.14000fda0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
mov rbx, qword [rax]
call fcn.14000fda0
mov rcx, qword [0x140170048]
lea r8, [0x14014bb48]
mov edx, 0x41
mov qword [rsp + 0x20], rbx
mov r9, qword [rax]
mov rcx, qword [rcx + 0x10]
call fcn.140005cc0
mov rcx, qword [0x140170048]
mov ebx, 1
test r15b, 2
je 0x14003c443
mov rcx, qword [rsp + 0x60]
and r15d, 0xfffffffd
mov dword [rsp + 0x34], r15d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [0x140170048]
test bl, r15b
je 0x14003c463
mov rcx, qword [rsp + 0x50]
and r15d, 0xfffffffe
mov dword [rsp + 0x34], r15d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [0x140170048]
mov rax, qword [rsp + 0x70]
cmp rax, qword [0x1401725c8]
jne 0x14003c4d2
mov rax, qword [rsp + 0x78]
cmp rax, qword [0x1401725d0]
jne 0x14003c4d2
lea rax, [0x140170048]
cmp rcx, rax
je 0x14003c4ab
test byte [rcx + 0x1c], bl
je 0x14003c4ab
cmp byte [rcx + 0x19], 4
jb 0x14003c4ab
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov edx, 0x42
call fcn.140004c54
xor r15d, r15d
mov r8d, 0x104
lea rdx, [rbp - 0x80]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x14003c60d
mov bl, byte [rsp + 0x30]
jmp 0x14003c32b
xor r15d, r15d
jmp 0x14003c4dc
mov ebx, 1
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
movzx ecx, r15b
cmove ecx, ebx
mov edi, r15d
test cl, cl
je 0x14003c4ae
cmp r14d, r12d
jb 0x14003c54f
lea ebx, [r12 + 8]
mov rcx, rsi
mov edx, ebx
shl rdx, 7
call qword [sym.imp.ole32.dll_CoTaskMemRealloc]
mov rdi, rax
test rax, rax
je 0x14003c603
mov r8d, ebx
mov ecx, r12d
sub r8d, r12d
shl rcx, 7
shl r8, 7
add rcx, rax
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x3c], ebx
mov r12d, ebx
mov qword [rsp + 0x40], rdi
mov rsi, rdi
cmp r14d, ebx
jae 0x14003c679
mov ebx, r14d
lea rcx, [rbp - 0x80]
shl rbx, 7
xor edx, edx
add rbx, rsi
mov r8, rbx
call fcn.140048f2c
mov edi, eax
test eax, eax
jns 0x14003c5cc
cmp eax, 0x8007000e
je 0x14003c73f
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14003c393
test dword [rcx + 0x1c], 0x200
je 0x14003c393
cmp byte [rcx + 0x19], 3
jb 0x14003c393
mov rcx, qword [rcx + 0x10]
lea rax, [rbp - 0x80]
mov edx, 0x43
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, [0x14014bb48]
call fcn.14000ff2c
jmp 0x14003c393
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14003c5fb
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x14003c5fb
movzx eax, word [rsp + 0x38]
cmp ax, word [rbx + 0x5c]
jne 0x14003c5fb
movzx r8d, ax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14003c5fb
or dword [rbx + 0x58], 2
inc r14d
jmp 0x14003c4ae
mov edi, 0x8007000e
jmp 0x14003c73f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x12
jne 0x14003c6b5
test r14d, r14d
jne 0x14003c636
test rsi, rsi
je 0x14003c683
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rsi, r15
jmp 0x14003c698
cmp r14d, r12d
jbe 0x14003c683
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14003c679
mov eax, 1
test byte [rcx + 0x1c], al
je 0x14003c679
cmp byte [rcx + 0x19], 2
jb 0x14003c679
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x44]
mov r9d, r14d
mov dword [rsp + 0x20], r12d
lea r8, [0x14014bb48]
call fcn.14000fe18
mov edi, 0x8000ffff
jmp 0x14003c73f
mov edx, r14d
mov rcx, rsi
call fcn.1401094e0
mov edi, eax
test eax, eax
js 0x14003c73f
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], r15
mov dword [rax], r14d
mov rax, qword [rsp + 0x58]
mov qword [rax], rsi
mov rsi, r15
jmp 0x14003c73f
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14003c731
mov eax, 1
test byte [rcx + 0x1c], al
je 0x14003c731
cmp byte [rcx + 0x19], 2
jb 0x14003c731
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x43]
mov r9d, ebx
lea r8, [0x14014bb48]
call fcn.140004c78
jmp 0x14003c731
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14003c729
mov eax, 1
test byte [rcx + 0x1c], al
je 0x14003c729
cmp byte [rcx + 0x19], 2
jb 0x14003c729
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3b]
mov r9d, ebx
lea r8, [0x14014bb48]
call fcn.140004c78
mov r13, qword [rsp + 0x50]
xor r15d, r15d
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, qword [0x140170048]
test rsi, rsi
je 0x14003c76a
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.140137da4
mov rcx, qword [0x140170048]
lea rsi, [0x140170048]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14003c78b
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
test edi, edi
jns 0x14003c7d8
mov edx, 1
jmp 0x14003c7a9
mov edx, 1
mov rcx, qword [0x140170048]
lea rsi, [0x140170048]
cmp rcx, rsi
je 0x14003c801
test byte [rcx + 0x1c], dl
je 0x14003c7d8
cmp byte [rcx + 0x19], 2
jb 0x14003c7d8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov edx, 0x46
mov r9d, edi
call fcn.140004c78
mov rcx, qword [0x140170048]
cmp rcx, rsi
je 0x14003c801
test dword [rcx + 0x1c], 0x200
je 0x14003c801
cmp byte [rcx + 0x19], 4
jb 0x14003c801
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov edx, 0x47
call fcn.140004c54
test r15b, r15b
je 0x14003c813
lea rcx, [0x1401712b0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140141360
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret