Function at 0x100045a44
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 0x100045acb
bt dword [rcx + 0x1c], 9
jae 0x100045acb
cmp byte [rcx + 0x19], 4
jb 0x100045acb
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x42]
lea r8, [0x100003cf8]
call fcn.10001c7b8
mov rcx, qword [0x1001653b8]
mov rax, qword [rsp + 0x38]
test r15, r15
jne 0x100045ad7
mov ebx, 0x80004003
jmp 0x100045aef
and dword [r15], esi
test rax, rax
jne 0x100045b72
mov ebx, 0x80004003
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x100045b45
test byte [rcx + 0x1c], 1
je 0x100045b1f
cmp byte [rcx + 0x19], 2
jb 0x100045b1f
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x4b
mov r9d, ebx
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x100045b45
test byte [rcx + 0x1c], 1
je 0x100045b45
cmp byte [rcx + 0x19], 4
jb 0x100045b45
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x4c
call fcn.10001c7b8
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.10014e480
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.10005921c
mov ebx, eax
test eax, eax
js 0x100045ae8
mov ebx, 0x104
lea rcx, [rsp + 0x40]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x100045bd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x100045f52
test byte [rcx + 0x1c], 1
je 0x100045f52
cmp byte [rcx + 0x19], 2
jb 0x100045f52
lea edx, [r14 + 0x44]
jmp 0x100045f38
lea rdx, [rsp + 0x40]
mov r8d, ebx
mov rcx, r14
inc r12d
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x100045bd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
jne 0x100045f1b
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 0x100045c2c
mov ebx, 0x8007000e
jmp 0x100045f6f
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 0x100045c87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x100045f52
test byte [rcx + 0x1c], 1
je 0x100045f52
cmp byte [rcx + 0x19], 2
jb 0x100045f52
lea edx, [r14 + 0x46]
jmp 0x100045f38
xor r13d, r13d
lea rdx, [rsp + 0x31]
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x31], 0
call fcn.100124260
test eax, eax
jns 0x100045cdc
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x100045e01
bt dword [rcx + 0x1c], 9
jae 0x100045e01
cmp byte [rcx + 0x19], 3
jb 0x100045e01
mov edx, 0x46
mov dword [rsp + 0x20], eax
jmp 0x100045dec
cmp byte [rsp + 0x31], 0
jne 0x100045d2e
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100045e01
bt dword [rcx + 0x1c], 9
jae 0x100045e01
cmp byte [rcx + 0x19], 3
jb 0x100045e01
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x40]
lea r8, [0x100003cf8]
mov edx, 0x47
call fcn.10001da24
jmp 0x100045e01
cmp esi, r12d
jne 0x100045d7f
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 0x100045e80
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 0x100045eb9
lea rdi, [r13 + rbp]
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.100052194
mov ebx, eax
test eax, eax
jns 0x100045daa
cmp eax, 0x8007000e
je 0x100045e6d
jmp 0x100045e01
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x32]
lea rcx, [rsp + 0x40]
call fcn.10012437c
mov ebx, eax
test eax, eax
jns 0x100045e05
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100045e01
test byte [rcx + 0x1c], 1
je 0x100045e01
cmp byte [rcx + 0x19], 3
jb 0x100045e01
mov edx, 0x49
mov dword [rsp + 0x20], ebx
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x40]
lea r8, [0x100003cf8]
call fcn.10001daa4
xor ebx, ebx
jmp 0x100045e23
cmp byte [rsp + 0x32], 0
jne 0x100045e19
cmp byte [rsp + 0x30], 0
je 0x100045e19
mov byte [rdi + 0x49], 1
jmp 0x100045e1d
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 0x100045c8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
jne 0x100045e87
test esi, esi
jne 0x100045e60
test rbp, rbp
je 0x100045e60
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 0x100045f60
mov ebx, 0x8007000e
jmp 0x100045e6d
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x100045f52
test byte [rcx + 0x1c], 1
je 0x100045f52
cmp byte [rcx + 0x19], 2
jb 0x100045f52
mov edx, 0x4a
jmp 0x100045f38
lea r8, [0x100005fd0]
lea rcx, [0x100005eb0]
mov edx, 0x4ff
call fcn.100099ad8
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x100045f14
test byte [rcx + 0x1c], 1
je 0x100045f14
cmp byte [rcx + 0x19], 2
jb 0x100045f14
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x48
mov r9d, esi
mov dword [rsp + 0x20], r12d
call fcn.10001e8b4
mov rcx, qword [0x1001653b8]
mov ebx, 0x8000ffff
jmp 0x100045f60
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x100045f52
test byte [rcx + 0x1c], 1
je 0x100045f52
cmp byte [rcx + 0x19], 2
jb 0x100045f52
mov edx, 0x44
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov r9d, eax
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
cmp r14, 0xffffffffffffffff
je 0x100045f76
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, qword [0x1001653b8]
test rbp, rbp
je 0x100045fa8
test r12d, r12d
je 0x100045f98
mov rdi, rbp
mov esi, r12d
mov rcx, rdi
call fcn.100144b28
add rdi, 0x60
sub rsi, 1
jne 0x100045f86
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x100045b1f
jmp 0x100045aef