Function at 0x140053670
Capabilities:
Enumerate disk volumes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
xor esi, esi
mov qword [rsp + 0x68], rdx
mov rax, r8
mov dword [rsp + 0x34], esi
mov qword [rsp + 0x50], rax
mov r15d, esi
mov dword [rsp + 0x3c], esi
mov r14d, esi
mov qword [rsp + 0x40], rsi
mov rbx, rdx
mov byte [rsp + 0x31], sil
mov r13, rcx
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
mov rcx, qword [0x140173048]
lea r12, [0x140173048]
cmp rcx, r12
je 0x140053711
test dword [rcx + 0x1c], 0x200
je 0x140053711
cmp byte [rcx + 0x19], 4
jb 0x140053711
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x39]
lea r8, [0x140153368]
call fcn.14000c328
mov rax, qword [rsp + 0x50]
mov byte [rbp - 0x80], sil
lea rcx, [0x14014cf30]
mov qword [rsp + 0x70], rcx
lea rcx, [0x1401746f0]
mov qword [rsp + 0x78], rcx
test rbx, rbx
jne 0x140053802
mov edi, 0x80004003
lea rbx, [0x140173048]
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.1401426e0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140053767
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test edi, edi
jns 0x14005379b
mov rcx, qword [0x140173048]
cmp rcx, rbx
je 0x1400537cb
test byte [rcx + 0x1c], 1
je 0x1400537a2
cmp byte [rcx + 0x19], 2
jb 0x1400537a2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0x46
mov r9d, edi
call fcn.14000c354
mov rcx, qword [0x140173048]
cmp rcx, rbx
je 0x1400537cb
test dword [rcx + 0x1c], 0x200
je 0x1400537cb
cmp byte [rcx + 0x19], 4
jb 0x1400537cb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0x47
call fcn.14000c328
lea rcx, [rsp + 0x70]
call fcn.140041bbc
mov eax, edi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140007410
mov rbx, qword [rsp + 0x318]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rbx], esi
test rax, rax
je 0x140053736
mov rcx, r13
mov qword [rax], rsi
call fcn.14004c314
mov edi, eax
test eax, eax
js 0x14005373b
mov al, byte [0x1401758c0]
lea rdx, [rsp + 0x38]
and al, 1
lea rcx, [rsp + 0x48]
mov byte [rsp + 0x30], al
call fcn.1400993a4
test eax, eax
jns 0x140053871
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x140053871
test byte [rcx + 0x1c], 1
je 0x140053871
cmp byte [rcx + 0x19], 3
jb 0x140053871
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0x3a
mov r9d, eax
call fcn.14000c354
mov ebx, 0x104
lea rcx, [rbp - 0x60]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
nop dword [rax + rax]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x1400538ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x140173048]
lea rbx, [0x140173048]
cmp rcx, rbx
je 0x1400538d6
test byte [rcx + 0x1c], 1
je 0x1400538d6
cmp byte [rcx + 0x19], 2
jb 0x1400538d6
lea edx, [r12 + 0x3c]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov r9d, edi
call fcn.14000c47c
test edi, edi
jle 0x140053742
movzx edi, di
or edi, 0x80070000
jmp 0x140053742
mov r8d, ebx
lea rdx, [rbp - 0x60]
mov rcx, r12
inc r15d
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
nop dword [rax + rax]
test eax, eax
jne 0x1400538ec
mov dword [rsp + 0x3c], r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x12
jne 0x140053efe
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
nop dword [rax + rax]
mov ebx, r15d
shl rbx, 7
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
xor r12d, r12d
mov qword [rsp + 0x40], rax
mov rsi, rax
test rax, rax
jne 0x140053964
mov edi, 0x8007000e
jmp 0x14005373b
mov r8, rbx
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
mov bl, byte [rsp + 0x30]
test bl, bl
je 0x140053a87
test r15d, r15d
jne 0x14005399a
lea r8, str.cVolume___cMaxVolume
mov edx, 0x3ba
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.1400906e0
lea rcx, [0x1401746f0]
mov bl, r12b
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, qword [r13 + 0x68]
mov r12d, 1
xor r13d, r13d
mov byte [rbp - 0x80], r12b
test rcx, rcx
je 0x140053a22
mov rdx, rsi
call fcn.140141440
mov edi, eax
test eax, eax
jns 0x140053a1c
mov rcx, qword [0x140173048]
lea rbx, [0x140173048]
cmp rcx, rbx
je 0x140053742
test byte [rcx + 0x1c], r12b
je 0x140053742
cmp byte [rcx + 0x19], 2
jb 0x140053742
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 0x3c]
mov r9d, eax
lea r8, [0x140153368]
call fcn.14000c354
jmp 0x140053742
mov r14d, r12d
mov bl, r12b
lea rcx, [rsp + 0x70]
call fcn.140054cc4
test bl, bl
jne 0x140053a81
mov r8, rsi
mov dl, r12b
xor ecx, ecx
call fcn.140049c08
test eax, eax
jns 0x140053a7e
mov rcx, qword [0x140173048]
lea rdi, [0x140173048]
cmp rcx, rdi
je 0x140053a78
test byte [rcx + 0x1c], r12b
je 0x140053a78
cmp byte [rcx + 0x19], 3
jb 0x140053a78
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0x3e
mov r9d, eax
call fcn.14000c354
mov bl, byte [rsp + 0x30]
jmp 0x140053a91
add r14d, r12d
mov bl, byte [rsp + 0x30]
jmp 0x140053a8a
xor r13d, r13d
lea rdi, [0x140173048]
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
nop dword [rax + rax]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140053af2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x140173048]
lea rbx, [0x140173048]
cmp rcx, rbx
je 0x1400538d6
test byte [rcx + 0x1c], 1
je 0x1400538d6
cmp byte [rcx + 0x19], 2
jb 0x1400538d6
lea edx, [r12 + 0x40]
jmp 0x1400538c3
mov rcx, qword [0x140173048]
cmp rcx, rdi
je 0x140053b23
test byte [rcx + 0x1c], 1
je 0x140053b23
cmp byte [rcx + 0x19], 4
jb 0x140053b23
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 0x60]
mov edx, 0x40
lea r8, [0x140153368]
call fcn.140015150
test bl, bl
je 0x140053c80
lea rax, [rbp - 0x60]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], r13w
jne 0x140053b33
lea r8, [rbp - 0x78]
lea rcx, [rbp - 0x60]
call fcn.140094e44
mov edi, eax
test eax, eax
jns 0x140053b58
mov edi, r13d
jmp 0x140053dab
mov rcx, qword [0x140173048]
lea rbx, [0x140173048]
mov r13d, dword [rsp + 0x34]
cmp rcx, rbx
je 0x140053bdd
test byte [rcx + 0x1c], 1
je 0x140053bdd
cmp byte [rcx + 0x19], 4
jb 0x140053bdd
lea rdx, [0x140175968]
or r13d, 1
lea rcx, [rsp + 0x60]
call fcn.14000c660
or r13d, 2
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x34], r13d
mov rbx, qword [rax]
call fcn.14000c660
mov rcx, qword [0x140173048]
lea r8, [0x140153368]
mov edx, 0x41
mov qword [rsp + 0x20], rbx
mov r9, qword [rax]
mov rcx, qword [rcx + 0x10]
call fcn.140015238
mov rcx, qword [0x140173048]
lea rbx, [0x140173048]
test r13b, 2
je 0x140053c04
mov rcx, qword [rsp + 0x58]
and r13d, 0xfffffffd
mov dword [rsp + 0x34], r13d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
test r13b, 1
je 0x140053c2b
mov rcx, qword [rsp + 0x60]
and r13d, 0xfffffffe
mov dword [rsp + 0x34], r13d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
mov rax, qword [rbp - 0x78]
sub rax, qword [0x140175968]
jne 0x140053c43
mov rax, qword [rbp - 0x70]
sub rax, qword [0x140175970]
xor r13d, r13d
test rax, rax
jne 0x140053c80
cmp rcx, rbx
je 0x140053dab
test byte [rcx + 0x1c], 1
je 0x140053dab
cmp byte [rcx + 0x19], 4
jb 0x140053dab
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x42]
lea r8, [0x140153368]
call fcn.14000c328
jmp 0x140053dab
lea rdx, [rsp + 0x31]
lea rcx, [rbp - 0x60]
call fcn.140134598
mov edi, eax
test eax, eax
js 0x140053b50
cmp byte [rsp + 0x31], r13b
je 0x140053dab
cmp r14d, r15d
jb 0x140053cfd
lea ebx, [r15 + 8]
mov rcx, rsi
mov edx, ebx
shl rdx, 7
call qword [sym.imp.ole32.dll_CoTaskMemRealloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140053df8
mov r8d, ebx
mov ecx, r15d
sub r8d, r15d
shl rcx, 7
shl r8, 7
add rcx, rax
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x3c], ebx
mov r15d, ebx
mov qword [rsp + 0x40], rsi
cmp r14d, ebx
jae 0x140053dd8
mov ebx, r14d
lea rcx, [rbp - 0x60]
shl rbx, 7
xor edx, edx
add rbx, rsi
mov r8, rbx
call fcn.140049c08
mov edi, eax
test eax, eax
jns 0x140053d7a
cmp eax, 0x8007000e
je 0x140053ddd
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140053b50
test dword [rcx + 0x1c], 0x200
je 0x140053b50
cmp byte [rcx + 0x19], 3
jb 0x140053b50
mov rcx, qword [rcx + 0x10]
lea rax, [rbp - 0x60]
mov edx, 0x43
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, [0x140153368]
call fcn.14003f678
jmp 0x140053b50
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140053da8
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x140053da8
movzx eax, word [rsp + 0x38]
cmp ax, word [rbx + 0x5c]
jne 0x140053da8
mov r8d, eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140053da8
or dword [rbx + 0x58], 2
inc r14d
mov r8d, 0x104
lea rdx, [rbp - 0x60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
nop dword [rax + rax]
test eax, eax
je 0x140053dff
mov bl, byte [rsp + 0x30]
lea rdi, [0x140173048]
jmp 0x140053af2
mov edi, 0x8000ffff
lea rbx, [0x140173048]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
nop dword [rax + rax]
jmp 0x140053742
mov edi, 0x8007000e
jmp 0x140053ddd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x12
jne 0x140053eae
test r14d, r14d
jne 0x140053e34
test rsi, rsi
je 0x140053e7f
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rsi, r13
jmp 0x140053e94
cmp r14d, r15d
jbe 0x140053e7f
mov rcx, qword [0x140173048]
lea rbx, [0x140173048]
cmp rcx, rbx
je 0x140053e75
test byte [rcx + 0x1c], 1
je 0x140053e75
cmp byte [rcx + 0x19], 2
jb 0x140053e75
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0x45
mov dword [rsp + 0x20], r15d
mov r9d, r14d
call fcn.14004099c
mov edi, 0x8000ffff
jmp 0x140053de4
mov edx, r14d
mov rcx, rsi
call fcn.14010eb64
mov edi, eax
test eax, eax
js 0x140053ddd
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], r13
mov dword [rax], r14d
mov rax, qword [rsp + 0x50]
mov qword [rax], rsi
jmp 0x140053ddd
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140053ee5
test byte [rcx + 0x1c], 1
je 0x140053ee5
cmp byte [rcx + 0x19], 2
jb 0x140053ee5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0x44
mov r9d, ebx
call fcn.14000c47c
test ebx, ebx
jg 0x140053ef0
mov edi, ebx
jmp 0x140053ddd
movzx edi, bx
or edi, 0x80070000
jmp 0x140053ddd
mov rcx, qword [0x140173048]
lea rbx, [0x140173048]
cmp rcx, rbx
je 0x140053f35
test byte [rcx + 0x1c], 1
je 0x140053f35
cmp byte [rcx + 0x19], 2
jb 0x140053f35
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0x3c
mov r9d, edi
call fcn.14000c47c
test edi, edi
jle 0x140053de4
movzx edi, di
or edi, 0x80070000
jmp 0x140053de4