Function at 0x100045a94
Capabilities:
Enumerate disk volumes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor esi, esi
mov rax, r8
xor r12d, r12d
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x32], sil
mov byte [rsp + 0x30], sil
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x100045b1b
bt dword [rcx + 0x1c], 9
jae 0x100045b1b
cmp byte [rcx + 0x19], 4
jb 0x100045b1b
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x42]
lea r8, [0x100003cb8]
call fcn.10001c854
mov rcx, qword [0x1001653b8]
mov rax, qword [rsp + 0x38]
test r15, r15
jne 0x100045b27
mov ebx, 0x80004003
jmp 0x100045b3f
and dword [r15], esi
test rax, rax
jne 0x100045bc2
mov ebx, 0x80004003
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x100045b95
test byte [rcx + 0x1c], 1
je 0x100045b6f
cmp byte [rcx + 0x19], 2
jb 0x100045b6f
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x4b
mov r9d, ebx
call fcn.10001c878
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x100045b95
test byte [rcx + 0x1c], 1
je 0x100045b95
cmp byte [rcx + 0x19], 4
jb 0x100045b95
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x4c
call fcn.10001c854
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.10014e600
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
and qword [rax], rsi
mov rcx, rbx
call fcn.100059564
mov ebx, eax
test eax, eax
js 0x100045b38
mov ebx, 0x104
lea rcx, [rsp + 0x40]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x100045c27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x100045fa2
test byte [rcx + 0x1c], 1
je 0x100045fa2
cmp byte [rcx + 0x19], 2
jb 0x100045fa2
lea edx, [r14 + 0x44]
jmp 0x100045f88
lea rdx, [rsp + 0x40]
mov r8d, ebx
mov rcx, r14
inc r12d
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x100045c27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
jne 0x100045f6b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
lea rbx, [r12 + r12*2]
shl rbx, 5
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
test rax, rax
jne 0x100045c7c
mov ebx, 0x8007000e
jmp 0x100045fbf
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x100045cd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x100045fa2
test byte [rcx + 0x1c], 1
je 0x100045fa2
cmp byte [rcx + 0x19], 2
jb 0x100045fa2
lea edx, [r14 + 0x46]
jmp 0x100045f88
xor r13d, r13d
lea rdx, [rsp + 0x31]
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x31], 0
call fcn.100124304
test eax, eax
jns 0x100045d2c
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x100045e51
bt dword [rcx + 0x1c], 9
jae 0x100045e51
cmp byte [rcx + 0x19], 3
jb 0x100045e51
mov edx, 0x46
mov dword [rsp + 0x20], eax
jmp 0x100045e3c
cmp byte [rsp + 0x31], 0
jne 0x100045d7e
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100045e51
bt dword [rcx + 0x1c], 9
jae 0x100045e51
cmp byte [rcx + 0x19], 3
jb 0x100045e51
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x40]
lea r8, [0x100003cb8]
mov edx, 0x47
call fcn.10001db08
jmp 0x100045e51
cmp esi, r12d
jne 0x100045dcf
lea ebx, [r12 + 8]
mov rcx, rbp
lea rdx, [rbx + rbx*2]
shl rdx, 5
call qword [sym.imp.ole32.dll_CoTaskMemRealloc]
mov rdi, rax
test rax, rax
je 0x100045ed0
mov ecx, ebx
xor edx, edx
sub ecx, r12d
lea r8, [rcx + rcx*2]
mov ecx, r12d
lea rcx, [rcx + rcx*2]
shl r8, 5
shl rcx, 5
add rcx, rax
call sub.msvcrt.dll_memset
mov r12d, ebx
mov rbp, rdi
cmp esi, ebx
jae 0x100045f09
lea rdi, [r13 + rbp]
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.1000521e4
mov ebx, eax
test eax, eax
jns 0x100045dfa
cmp eax, 0x8007000e
je 0x100045ebd
jmp 0x100045e51
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x32]
lea rcx, [rsp + 0x40]
call fcn.100124420
mov ebx, eax
test eax, eax
jns 0x100045e55
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100045e51
test byte [rcx + 0x1c], 1
je 0x100045e51
cmp byte [rcx + 0x19], 3
jb 0x100045e51
mov edx, 0x49
mov dword [rsp + 0x20], ebx
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x40]
lea r8, [0x100003cb8]
call fcn.10001ddb0
xor ebx, ebx
jmp 0x100045e73
cmp byte [rsp + 0x32], 0
jne 0x100045e69
cmp byte [rsp + 0x30], 0
je 0x100045e69
mov byte [rdi + 0x49], 1
jmp 0x100045e6d
mov byte [rdi + 0x49], 0
inc esi
add r13, 0x60
lea rdx, [rsp + 0x40]
mov r8d, 0x104
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x100045cda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
jne 0x100045ed7
test esi, esi
jne 0x100045eb0
test rbp, rbp
je 0x100045eb0
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebp, ebp
mov rax, qword [rsp + 0x38]
mov dword [r15], esi
mov qword [rax], rbp
xor ebp, ebp
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
jmp 0x100045fb0
mov ebx, 0x8007000e
jmp 0x100045ebd
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x100045fa2
test byte [rcx + 0x1c], 1
je 0x100045fa2
cmp byte [rcx + 0x19], 2
jb 0x100045fa2
mov edx, 0x4a
jmp 0x100045f88
lea r8, [0x100005f60]
lea rcx, [0x100005e40]
mov edx, 0x4ff
call fcn.10009a050
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x100045f64
test byte [rcx + 0x1c], 1
je 0x100045f64
cmp byte [rcx + 0x19], 2
jb 0x100045f64
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x48
mov r9d, esi
mov dword [rsp + 0x20], r12d
call fcn.10001d914
mov rcx, qword [0x1001653b8]
mov ebx, 0x8000ffff
jmp 0x100045fb0
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x100045fa2
test byte [rcx + 0x1c], 1
je 0x100045fa2
cmp byte [rcx + 0x19], 2
jb 0x100045fa2
mov edx, 0x44
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov r9d, eax
call fcn.10001c878
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
cmp r14, 0xffffffffffffffff
je 0x100045fc6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, qword [0x1001653b8]
test rbp, rbp
je 0x100045ff8
test r12d, r12d
je 0x100045fe8
mov rdi, rbp
mov esi, r12d
mov rcx, rdi
call fcn.100144d74
add rdi, 0x60
sub rsi, 1
jne 0x100045fd6
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x100045b6f
jmp 0x100045b3f