Function at 0x140053430
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 [0x14016a508]
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 [0x14016a048]
lea r12, [0x14016a048]
cmp rcx, r12
je 0x1400534d1
test dword [rcx + 0x1c], 0x200
je 0x1400534d1
cmp byte [rcx + 0x19], 4
jb 0x1400534d1
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x39]
lea r8, [0x14014b118]
call fcn.14000c0e8
mov rax, qword [rsp + 0x50]
mov byte [rbp - 0x80], sil
lea rcx, [0x140144f30]
mov qword [rsp + 0x70], rcx
lea rcx, [0x14016b200]
mov qword [rsp + 0x78], rcx
test rbx, rbx
jne 0x1400535c2
mov edi, 0x80004003
lea rbx, [0x14016a048]
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.14013af60
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140053527
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test edi, edi
jns 0x14005355b
mov rcx, qword [0x14016a048]
cmp rcx, rbx
je 0x14005358b
test byte [rcx + 0x1c], 1
je 0x140053562
cmp byte [rcx + 0x19], 2
jb 0x140053562
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0x46
mov r9d, edi
call fcn.14000c114
mov rcx, qword [0x14016a048]
cmp rcx, rbx
je 0x14005358b
test dword [rcx + 0x1c], 0x200
je 0x14005358b
cmp byte [rcx + 0x19], 4
jb 0x14005358b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0x47
call fcn.14000c0e8
lea rcx, [rsp + 0x70]
call fcn.14004197c
mov eax, edi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400071e0
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 0x1400534f6
mov rcx, r13
mov qword [rax], rsi
call fcn.14004c0d4
mov edi, eax
test eax, eax
js 0x1400534fb
mov al, byte [0x14016c3d0]
lea rdx, [rsp + 0x38]
and al, 1
lea rcx, [rsp + 0x48]
mov byte [rsp + 0x30], al
call fcn.140091c24
test eax, eax
jns 0x140053631
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x140053631
test byte [rcx + 0x1c], 1
je 0x140053631
cmp byte [rcx + 0x19], 3
jb 0x140053631
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0x3a
mov r9d, eax
call fcn.14000c114
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 0x1400536ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14016a048]
lea rbx, [0x14016a048]
cmp rcx, rbx
je 0x140053696
test byte [rcx + 0x1c], 1
je 0x140053696
cmp byte [rcx + 0x19], 2
jb 0x140053696
lea edx, [r12 + 0x3c]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov r9d, edi
call fcn.14000c23c
test edi, edi
jle 0x140053502
movzx edi, di
or edi, 0x80070000
jmp 0x140053502
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 0x1400536ac
mov dword [rsp + 0x3c], r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x12
jne 0x140053cbe
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 0x140053724
mov edi, 0x8007000e
jmp 0x1400534fb
mov r8, rbx
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
mov bl, byte [rsp + 0x30]
test bl, bl
je 0x140053847
test r15d, r15d
jne 0x14005375a
lea r8, str.cVolume___cMaxVolume
mov edx, 0x3ba
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.140088f60
lea rcx, [0x14016b200]
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 0x1400537e2
mov rdx, rsi
call fcn.140139cc0
mov edi, eax
test eax, eax
jns 0x1400537dc
mov rcx, qword [0x14016a048]
lea rbx, [0x14016a048]
cmp rcx, rbx
je 0x140053502
test byte [rcx + 0x1c], r12b
je 0x140053502
cmp byte [rcx + 0x19], 2
jb 0x140053502
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 0x3c]
mov r9d, eax
lea r8, [0x14014b118]
call fcn.14000c114
jmp 0x140053502
mov r14d, r12d
mov bl, r12b
lea rcx, [rsp + 0x70]
call fcn.140054a84
test bl, bl
jne 0x140053841
mov r8, rsi
mov dl, r12b
xor ecx, ecx
call fcn.1400499c8
test eax, eax
jns 0x14005383e
mov rcx, qword [0x14016a048]
lea rdi, [0x14016a048]
cmp rcx, rdi
je 0x140053838
test byte [rcx + 0x1c], r12b
je 0x140053838
cmp byte [rcx + 0x19], 3
jb 0x140053838
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0x3e
mov r9d, eax
call fcn.14000c114
mov bl, byte [rsp + 0x30]
jmp 0x140053851
add r14d, r12d
mov bl, byte [rsp + 0x30]
jmp 0x14005384a
xor r13d, r13d
lea rdi, [0x14016a048]
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 0x1400538b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14016a048]
lea rbx, [0x14016a048]
cmp rcx, rbx
je 0x140053696
test byte [rcx + 0x1c], 1
je 0x140053696
cmp byte [rcx + 0x19], 2
jb 0x140053696
lea edx, [r12 + 0x40]
jmp 0x140053683
mov rcx, qword [0x14016a048]
cmp rcx, rdi
je 0x1400538e3
test byte [rcx + 0x1c], 1
je 0x1400538e3
cmp byte [rcx + 0x19], 4
jb 0x1400538e3
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 0x60]
mov edx, 0x40
lea r8, [0x14014b118]
call fcn.140014f10
test bl, bl
je 0x140053a40
lea rax, [rbp - 0x60]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], r13w
jne 0x1400538f3
lea r8, [rbp - 0x78]
lea rcx, [rbp - 0x60]
call fcn.14008d6c4
mov edi, eax
test eax, eax
jns 0x140053918
mov edi, r13d
jmp 0x140053b6b
mov rcx, qword [0x14016a048]
lea rbx, [0x14016a048]
mov r13d, dword [rsp + 0x34]
cmp rcx, rbx
je 0x14005399d
test byte [rcx + 0x1c], 1
je 0x14005399d
cmp byte [rcx + 0x19], 4
jb 0x14005399d
lea rdx, [0x14016c468]
or r13d, 1
lea rcx, [rsp + 0x60]
call fcn.14000c420
or r13d, 2
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x34], r13d
mov rbx, qword [rax]
call fcn.14000c420
mov rcx, qword [0x14016a048]
lea r8, [0x14014b118]
mov edx, 0x41
mov qword [rsp + 0x20], rbx
mov r9, qword [rax]
mov rcx, qword [rcx + 0x10]
call fcn.140014ff8
mov rcx, qword [0x14016a048]
lea rbx, [0x14016a048]
test r13b, 2
je 0x1400539c4
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 [0x14016a048]
test r13b, 1
je 0x1400539eb
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 [0x14016a048]
mov rax, qword [rbp - 0x78]
sub rax, qword [0x14016c468]
jne 0x140053a03
mov rax, qword [rbp - 0x70]
sub rax, qword [0x14016c470]
xor r13d, r13d
test rax, rax
jne 0x140053a40
cmp rcx, rbx
je 0x140053b6b
test byte [rcx + 0x1c], 1
je 0x140053b6b
cmp byte [rcx + 0x19], 4
jb 0x140053b6b
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x42]
lea r8, [0x14014b118]
call fcn.14000c0e8
jmp 0x140053b6b
lea rdx, [rsp + 0x31]
lea rcx, [rbp - 0x60]
call fcn.14012ce18
mov edi, eax
test eax, eax
js 0x140053910
cmp byte [rsp + 0x31], r13b
je 0x140053b6b
cmp r14d, r15d
jb 0x140053abd
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 0x140053bb8
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 0x140053b98
mov ebx, r14d
lea rcx, [rbp - 0x60]
shl rbx, 7
xor edx, edx
add rbx, rsi
mov r8, rbx
call fcn.1400499c8
mov edi, eax
test eax, eax
jns 0x140053b3a
cmp eax, 0x8007000e
je 0x140053b9d
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x140053910
test dword [rcx + 0x1c], 0x200
je 0x140053910
cmp byte [rcx + 0x19], 3
jb 0x140053910
mov rcx, qword [rcx + 0x10]
lea rax, [rbp - 0x60]
mov edx, 0x43
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, [0x14014b118]
call fcn.14003f438
jmp 0x140053910
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140053b68
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x140053b68
movzx eax, word [rsp + 0x38]
cmp ax, word [rbx + 0x5c]
jne 0x140053b68
mov r8d, eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140053b68
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 0x140053bbf
mov bl, byte [rsp + 0x30]
lea rdi, [0x14016a048]
jmp 0x1400538b2
mov edi, 0x8000ffff
lea rbx, [0x14016a048]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
nop dword [rax + rax]
jmp 0x140053502
mov edi, 0x8007000e
jmp 0x140053b9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x12
jne 0x140053c6e
test r14d, r14d
jne 0x140053bf4
test rsi, rsi
je 0x140053c3f
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rsi, r13
jmp 0x140053c54
cmp r14d, r15d
jbe 0x140053c3f
mov rcx, qword [0x14016a048]
lea rbx, [0x14016a048]
cmp rcx, rbx
je 0x140053c35
test byte [rcx + 0x1c], 1
je 0x140053c35
cmp byte [rcx + 0x19], 2
jb 0x140053c35
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0x45
mov dword [rsp + 0x20], r15d
mov r9d, r14d
call fcn.14004075c
mov edi, 0x8000ffff
jmp 0x140053ba4
mov edx, r14d
mov rcx, rsi
call fcn.1401073e4
mov edi, eax
test eax, eax
js 0x140053b9d
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], r13
mov dword [rax], r14d
mov rax, qword [rsp + 0x50]
mov qword [rax], rsi
jmp 0x140053b9d
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x140053ca5
test byte [rcx + 0x1c], 1
je 0x140053ca5
cmp byte [rcx + 0x19], 2
jb 0x140053ca5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0x44
mov r9d, ebx
call fcn.14000c23c
test ebx, ebx
jg 0x140053cb0
mov edi, ebx
jmp 0x140053b9d
movzx edi, bx
or edi, 0x80070000
jmp 0x140053b9d
mov rcx, qword [0x14016a048]
lea rbx, [0x14016a048]
cmp rcx, rbx
je 0x140053cf5
test byte [rcx + 0x1c], 1
je 0x140053cf5
cmp byte [rcx + 0x19], 2
jb 0x140053cf5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0x3c
mov r9d, edi
call fcn.14000c23c
test edi, edi
jle 0x140053ba4
movzx edi, di
or edi, 0x80070000
jmp 0x140053ba4