Function at 0x14003d740
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 [0x14017a608]
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 [0x14017a048]
lea rdx, [0x14017a048]
cmp rcx, rdx
je 0x14003d7e1
test dword [rcx + 0x1c], 0x200
je 0x14003d7e1
cmp byte [rcx + 0x19], 4
jb 0x14003d7e1
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x39]
lea r8, [0x140155bf8]
call fcn.140004b70
mov rcx, qword [0x14017a048]
mov rax, qword [rsp + 0x58]
mov r15b, dil
mov edx, 1
test rbx, rbx
jne 0x14003d7f8
mov edi, 0x80004003
jmp 0x14003dfc3
mov dword [rbx], edi
test rax, rax
jne 0x14003d809
mov edi, 0x80004003
jmp 0x14003dfbc
mov rcx, r13
mov qword [rax], rdi
call fcn.1400531c4
mov edi, eax
test eax, eax
js 0x14003dfb7
mov al, byte [0x14017c3e0]
lea rdx, [rsp + 0x38]
mov edi, 1
lea rcx, [rsp + 0x48]
and al, dil
mov byte [rsp + 0x30], al
call fcn.14008ffa4
test eax, eax
jns 0x14003d878
mov rcx, qword [0x14017a048]
lea rdx, [0x14017a048]
cmp rcx, rdx
je 0x14003d878
test byte [rcx + 0x1c], dil
je 0x14003d878
cmp byte [rcx + 0x19], 3
jb 0x14003d878
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x39]
mov r9d, eax
lea r8, [0x140155bf8]
call fcn.140004b9c
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
nop dword [rax + rax]
mov qword [rsp + 0x50], rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003d8f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x14003d8e5
test byte [rcx + 0x1c], 1
je 0x14003d8e5
cmp byte [rcx + 0x19], 2
jb 0x14003d8e5
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x3c]
mov r9d, eax
lea r8, [0x140155bf8]
call fcn.140004b9c
mov rcx, qword [0x14017a048]
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
jmp 0x14003df8c
mov r8d, 0x104
lea rdx, [rbp - 0x80]
mov rcx, rdi
inc r12d
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
nop dword [rax + rax]
test eax, eax
jne 0x14003d8f8
mov dword [rsp + 0x3c], r12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x12
jne 0x14003df05
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
nop dword [rax + rax]
mov ebx, r12d
shl rbx, 7
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rsp + 0x40], rax
mov rsi, rax
test rax, rax
jne 0x14003d970
mov edi, 0x8007000e
jmp 0x14003df7e
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 0x14003da9b
test r12d, r12d
jne 0x14003d9a9
lea r8, str.cVolume___cMaxVolume
mov edx, 0x3ba
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.1400876c8
lea rcx, [0x14017b300]
mov bl, r15b
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, qword [r13 + 0x68]
mov edi, 1
mov r15b, dil
test rcx, rcx
je 0x14003da31
mov rdx, rsi
call fcn.14014242c
mov edi, eax
test eax, eax
jns 0x14003da26
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14003df6a
test byte [rcx + 0x1c], r15b
je 0x14003df6a
cmp byte [rcx + 0x19], 2
jb 0x14003df6a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155bf8]
mov edx, 0x3d
mov r9d, edi
call fcn.140004b9c
jmp 0x14003df63
mov edi, 1
mov r14d, edi
mov bl, dil
lea rcx, [0x14017b300]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
xor r15d, r15d
test bl, bl
jne 0x14003da97
mov r8, rsi
mov dl, dil
xor ecx, ecx
call fcn.14004ae7c
test eax, eax
jns 0x14003da94
mov rcx, qword [0x14017a048]
lea rdx, [0x14017a048]
cmp rcx, rdx
je 0x14003da97
test byte [rcx + 0x1c], dil
je 0x14003da97
cmp byte [rcx + 0x19], 3
jb 0x14003da97
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x3e]
mov r9d, eax
lea r8, [0x140155bf8]
call fcn.140004b9c
jmp 0x14003da97
add r14d, edi
mov bl, byte [rsp + 0x30]
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
nop dword [rax + rax]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14003db17
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14003db04
test byte [rcx + 0x1c], 1
je 0x14003db04
cmp byte [rcx + 0x19], 2
jb 0x14003db04
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x40]
mov r9d, ebx
lea r8, [0x140155bf8]
call fcn.140004b9c
mov rcx, qword [0x14017a048]
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
jmp 0x14003df6a
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14003db51
mov eax, 1
test byte [rcx + 0x1c], al
je 0x14003db51
cmp byte [rcx + 0x19], 4
jb 0x14003db51
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3f]
lea r9, [rbp - 0x80]
lea r8, [0x140155bf8]
call fcn.140005c30
test bl, bl
je 0x14003dcd5
lea rax, [rbp - 0x80]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], r15w
jne 0x14003db61
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.14008b130
mov edi, eax
test eax, eax
jns 0x14003db87
mov edi, r15d
jmp 0x14003dca6
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
mov r15d, dword [rsp + 0x34]
mov ebx, 1
cmp rcx, rax
je 0x14003dc0e
test byte [rcx + 0x1c], bl
je 0x14003dc0e
cmp byte [rcx + 0x19], 4
jb 0x14003dc0e
or r15d, ebx
lea rdx, [0x14017c518]
or r15d, 2
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x34], r15d
call fcn.14001012c
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
mov rbx, qword [rax]
call fcn.14001012c
mov rcx, qword [0x14017a048]
lea r8, [0x140155bf8]
mov edx, 0x41
mov qword [rsp + 0x20], rbx
mov r9, qword [rax]
mov rcx, qword [rcx + 0x10]
call fcn.140005d24
mov rcx, qword [0x14017a048]
mov ebx, 1
test r15b, 2
je 0x14003dc35
mov rcx, qword [rsp + 0x60]
and r15d, 0xfffffffd
mov dword [rsp + 0x34], r15d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
test bl, r15b
je 0x14003dc5b
mov rcx, qword [rsp + 0x50]
and r15d, 0xfffffffe
mov dword [rsp + 0x34], r15d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
mov rax, qword [rsp + 0x70]
cmp rax, qword [0x14017c518]
jne 0x14003dcd0
mov rax, qword [rsp + 0x78]
cmp rax, qword [0x14017c520]
jne 0x14003dcd0
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14003dca3
test byte [rcx + 0x1c], bl
je 0x14003dca3
cmp byte [rcx + 0x19], 4
jb 0x14003dca3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155bf8]
mov edx, 0x42
call fcn.140004b70
xor r15d, r15d
mov r8d, 0x104
lea rdx, [rbp - 0x80]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
nop dword [rax + rax]
test eax, eax
je 0x14003de16
mov bl, byte [rsp + 0x30]
jmp 0x14003db17
xor r15d, r15d
jmp 0x14003dcda
mov ebx, 1
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp eax, 3
movzx ecx, r15b
cmove ecx, ebx
mov edi, r15d
test cl, cl
je 0x14003dca6
cmp r14d, r12d
jb 0x14003dd59
lea ebx, [r12 + 8]
mov rcx, rsi
mov edx, ebx
shl rdx, 7
call qword [sym.imp.ole32.dll_CoTaskMemRealloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14003de0c
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 0x14003de8e
mov ebx, r14d
lea rcx, [rbp - 0x80]
shl rbx, 7
xor edx, edx
add rbx, rsi
mov r8, rbx
call fcn.14004ae7c
mov edi, eax
test eax, eax
jns 0x14003ddd6
cmp eax, 0x8007000e
je 0x14003df54
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14003db7f
test dword [rcx + 0x1c], 0x200
je 0x14003db7f
cmp byte [rcx + 0x19], 3
jb 0x14003db7f
mov rcx, qword [rcx + 0x10]
lea rax, [rbp - 0x80]
mov edx, 0x43
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, [0x140155bf8]
call fcn.1400102d0
jmp 0x14003db7f
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14003de04
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x14003de04
movzx eax, word [rsp + 0x38]
cmp ax, word [rbx + 0x5c]
jne 0x14003de04
mov r8d, eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14003de04
or dword [rbx + 0x58], 2
inc r14d
jmp 0x14003dca6
mov edi, 0x8007000e
jmp 0x14003df54
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x12
jne 0x14003deca
test r14d, r14d
jne 0x14003de4b
test rsi, rsi
je 0x14003de98
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rsi, r15
jmp 0x14003dead
cmp r14d, r12d
jbe 0x14003de98
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14003de8e
mov eax, 1
test byte [rcx + 0x1c], al
je 0x14003de8e
cmp byte [rcx + 0x19], 2
jb 0x14003de8e
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x44]
mov r9d, r14d
mov dword [rsp + 0x20], r12d
lea r8, [0x140155bf8]
call fcn.1400101b0
mov edi, 0x8000ffff
jmp 0x14003df54
mov edx, r14d
mov rcx, rsi
call fcn.1401117e0
mov edi, eax
test eax, eax
js 0x14003df54
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 0x14003df54
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14003df46
mov eax, 1
test byte [rcx + 0x1c], al
je 0x14003df46
cmp byte [rcx + 0x19], 2
jb 0x14003df46
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x43]
mov r9d, ebx
lea r8, [0x140155bf8]
call fcn.140004b9c
jmp 0x14003df46
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14003df3e
mov eax, 1
test byte [rcx + 0x1c], al
je 0x14003df3e
cmp byte [rcx + 0x19], 2
jb 0x14003df3e
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3b]
mov r9d, ebx
lea r8, [0x140155bf8]
call fcn.140004b9c
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]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
test rsi, rsi
je 0x14003df85
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.140141994
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14003dfac
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
test edi, edi
jns 0x14003dff9
mov edx, 1
jmp 0x14003dfca
mov edx, 1
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x14003e022
test byte [rcx + 0x1c], dl
je 0x14003dff9
cmp byte [rcx + 0x19], 2
jb 0x14003dff9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155bf8]
mov edx, 0x46
mov r9d, edi
call fcn.140004b9c
mov rcx, qword [0x14017a048]
cmp rcx, rsi
je 0x14003e022
test dword [rcx + 0x1c], 0x200
je 0x14003e022
cmp byte [rcx + 0x19], 4
jb 0x14003e022
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155bf8]
mov edx, 0x47
call fcn.140004b70
test r15b, r15b
je 0x14003e03a
lea rcx, [0x14017b300]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14014b700
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret