Function at 0x140016a50
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x218]
sub rsp, 0x318
mov rax, qword [0x140057010]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r12d, r9d
mov rbx, r8
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rdx
mov qword [rsp + 0x28], rcx
mov qword [rbp - 0x68], rdx
xor edx, edx
mov r14d, edx
mov dword [rsp + 0x20], edx
mov rax, qword [r8 + 0x18]
test rax, rax
jne 0x140016ab5
cmp qword [r8 + 0x48], rdx
je 0x140016abd
mov rax, qword [r8 + 0x38]
test rax, rax
je 0x140016abd
cmp word [rax], dx
mov r13, rdx
jne 0x140016ac3
mov r13d, 1
mov rax, qword [rcx + 0x18]
mov rsi, qword [rax + 0x28]
mov rdi, rcx
nop
test r13, r13
je 0x140016af5
test rsi, rsi
jne 0x140016ae1
mov eax, edx
movsxd r15, edx
jmp 0x140016b30
lea rdx, [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor edx, edx
movsxd r15, eax
jmp 0x140016b30
test rsi, rsi
je 0x140016b03
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call fcn.14001f550
mov rcx, rax
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
xor edx, edx
mov r15d, edx
cmp rax, 0xffffffffffffffff
setne r15b
cmove rsi, rdx
lea r13d, [rdx + 1]
test r15, r15
je 0x140016d67
test byte [rbp - 0x50], 0x10
je 0x140016b60
cmp word [rbp - 0x24], 0x2e
jne 0x140016b60
movzx eax, word [rbp - 0x22]
test ax, ax
je 0x140016ad0
cmp ax, 0x2e
jne 0x140016b60
cmp word [rbp - 0x20], 0
je 0x140016ad0
mov eax, dword [rbp + 0x280]
test dword [rbp - 0x50], eax
jne 0x140016ad0
lea r8, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x30], r8
lea rcx, vtable.CVolObject.0
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rdx
lea r9, vtable.CWString.0
mov qword [rsp + 0x30], r9
lea rax, [rsp + 0x50]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rdx
lea rax, vtable.CVolMem.0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], rdx
mov qword [rbp - 0x80], 0x40
mov qword [rsp + 0x48], rdx
mov qword [rbp - 0x80], 0xfe
mov qword [rsp + 0x30], r9
mov rdx, qword [rbp - 0x24]
test dx, dx
je 0x140016cae
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x78]
cmp rbx, 2
jb 0x140016c1d
cmp word [rbx + rcx - 2], 0
jne 0x140016c1d
sub rbx, 2
mov qword [rsp + 0x78], rbx
lea r8, [rbp - 0x24]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [r8 + rax*2], 0
jne 0x140016c30
lea rdi, [rax*2 + 2]
mov rax, qword [rsp + 0x70]
sub rax, rbx
cmp rax, rdi
jl 0x140016c86
cmp rdi, 2
jne 0x140016c65
movzx eax, dx
mov word [rbx + rcx], ax
add qword [rsp + 0x78], rdi
jmp 0x140016ca9
cmp rdi, 4
jne 0x140016c75
mov dword [rbx + rcx], edx
add qword [rsp + 0x78], rdi
jmp 0x140016ca9
cmp rdi, 8
jne 0x140016c86
mov qword [rbx + rcx], rdx
add qword [rsp + 0x78], rdi
jmp 0x140016ca9
test rdi, rdi
jle 0x140016ca9
lea rdx, [rdi + rbx]
lea rcx, [rsp + 0x50]
call fcn.14001e380
lea rcx, [rbx + rax]
mov r8, rdi
lea rdx, [rbp - 0x24]
call fcn.1400271a0
mov rdi, qword [rsp + 0x28]
or r14d, 1
mov dword [rsp + 0x20], r14d
mov r9d, dword [rbp - 0x50]
lea r8, [rsp + 0x30]
mov edx, r12d
mov rcx, rdi
call fcn.1400168f0
cmp eax, 1
je 0x140016cf7
cmp r12d, 0xffffffff
jne 0x140016ce3
mov eax, dword [rbp - 0x50]
shr eax, 4
not eax
and eax, 1
jmp 0x140016cef
test dword [rbp - 0x50], r12d
mov eax, 0
setne al
test eax, eax
jne 0x140016cf7
xor bl, bl
jmp 0x140016cf9
mov bl, 1
test r14b, 1
je 0x140016d58
and r14d, 0xfffffffe
mov dword [rsp + 0x20], r14d
lea rax, [rsp + 0x50]
mov qword [rbp - 0x58], rax
lea rax, vtable.CVolMem.0
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140016d34
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x18]
xor edx, edx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], rdx
lea rax, vtable.CVolObject.0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], rax
jmp 0x140016d5a
xor edx, edx
test bl, bl
jne 0x140016d77
mov rbx, qword [rbp - 0x78]
jmp 0x140016ad0
test rsi, rsi
je 0x140016d77
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
mov rcx, qword [rdi + 0x18]
mov qword [rcx + 0x28], rsi
lea rax, [0x140047278]
lea rdx, [rbp - 0x24]
test r15, r15
cmove rdx, rax
mov rcx, qword [rbp - 0x70]
call fcn.140004970
or r14d, 2
mov dword [rsp + 0x20], r14d
mov rax, qword [rbp - 0x70]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140021650
add rsp, 0x318
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret