Function at 0x14006b980
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0xe8], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x90]
mov qword [r14 + 0x50], r13
movaps xmm6, xmmword [0x140301d60]
movaps xmmword [r14 + 0x40], xmm6
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.Next
lea r8, str....._base_files_file_enumerator_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x8c
call fcn.14004f270
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
call fcn.1400cd290
lea r14, [rdi + 4]
lea rax, [rdi + 0x260]
mov qword [rsp + 0x38], rax
lea rax, [rdi + 0x280]
mov qword [rsp + 0x48], rax
lea r12, [rdi + 0x30]
lea rax, [rdi + 0x2a8]
mov qword [rsp + 0x40], rax
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbp, [rsp + 0x50]
cmp byte [rdi], 0
je 0x14006bb16
mov rcx, qword [rdi + 0x258]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14006bc81
call r15
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x14006bbfa
mov qword [rsp + 0x70], r13
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x50], r12
test r12, r12
je 0x14006bea3
mov rcx, r12
call fcn.14016f5e8
mov qword [rsp + 0x58], rax
mov rcx, rbx
mov rdx, rbp
call fcn.140050770
mov rcx, rdi
mov rdx, rbx
call fcn.14006c1d0
test al, al
jne 0x14006bbea
mov bpl, byte [r14]
mov r15, r13
mov qword [rsi + 0x10], r13
movups xmmword [rsi], xmm6
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
mov r8, rbx
call fcn.14006c4c0
mov r13d, 1
test bpl, 0x10
jne 0x14006bde0
test dword [rdi + 0x27c], r13d
je 0x14006bd47
mov rcx, rdi
mov rdx, rbx
call fcn.14006bee0
test al, al
jne 0x14006bc9e
jmp 0x14006bd47
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rax
je 0x14006bd87
test rax, rax
mov rcx, qword [rdi + 0x2b0]
cmove rax, rcx
dec rax
cmp rcx, rax
jb 0x14006be9a
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + 0x2a8]
mov rcx, qword [rsp + 0x38]
call fcn.140077bf0
mov rcx, qword [rdi + 0x2b0]
mov rdx, qword [rdi + 0x2c0]
test rdx, rdx
je 0x14006beaa
lea rax, [rdx - 1]
mov qword [rdi + 0x2c0], rax
cmp rcx, rdx
jb 0x14006be94
cmp rcx, rax
jb 0x14006be9d
movabs rcx, 0x8000000000000000
cmp rdx, rcx
je 0x14006bea0
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
lea rax, [rax + rax*2]
cmp byte [rcx + rax*8 + 0x17], 0
jns 0x14006bbc3
lea rax, [rcx + rax*8]
mov rcx, qword [rax]
call fcn.14016eccc
mov rcx, qword [rsp + 0x40]
call fcn.14014ac20
mov qword [rsp + 0x70], r13
movaps xmmword [rsp + 0x60], xmm6
mov eax, dword [rdi + 0x298]
test eax, eax
je 0x14006bcdc
jmp 0x14006bd1e
cmp byte [rsp + 0x77], 0
jns 0x14006ba4f
jmp 0x14006bdd1
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
je 0x14006bcb8
cmp eax, 0x12
je 0x14006ba4f
jmp 0x14006bd6d
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
lea r8, [rsp + 0x80]
call fcn.14006cbc0
cmp byte [rsp + 0x77], 0
mov rcx, rbx
js 0x14006bd14
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
mov r8, r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rdi + 0x258], rax
mov byte [rdi], 1
cmp byte [rsp + 0x77], 0
jns 0x14006ba70
mov rcx, qword [rsp + 0x60]
call fcn.14016eccc
jmp 0x14006ba70
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x14006ba70
cmp byte [rsp + 0x77], 0
jns 0x14006bd95
mov rcx, qword [rsp + 0x60]
call fcn.14016eccc
jmp 0x14006bd95
cmp byte [rdi + 0x297], 0
js 0x14006be7d
mov byte [rdi + 0x297], 1
mov rcx, qword [rsp + 0x48]
mov dword [rcx], 0x2a
jmp 0x14006bc0a
movzx eax, byte [rdi + 0x297]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rdi + 0x280]
cmovns rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
cmovs rcx, qword [rdi + 0x288]
mov qword [rsp + 0x88], rcx
jmp 0x14006bc18
mov rcx, qword [rsp + 0x60]
jmp 0x14006bc3b
cmp eax, 1
jne 0x14006bebd
lea rax, [0x14030a172]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
jmp 0x14006bc18
cmp byte [rsi + 0x17], 0
mov r13, r15
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbp, [rsp + 0x50]
jns 0x14006bbea
mov rcx, qword [rsi]
call fcn.14016eccc
jmp 0x14006bbea
cmp dword [rdi + 0x29c], 0
je 0x14006ba4f
mov ecx, eax
call fcn.1400cce30
mov dword [rdi + 0x2a0], eax
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
lea rcx, [rsp + 0x90]
call fcn.1400cd300
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140171860
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x60]
call fcn.14016eccc
jmp 0x14006ba4f
mov r13d, 2
cmp byte [rdi + 0x278], 0
je 0x14006baf1
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14006bdff
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x14006baf1
mov rcx, qword [rsp + 0x40]
call fcn.14014a950
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b0], rax
jb 0x14006be97
lea rcx, [rax + rax*2]
shl rcx, 3
add rcx, qword [rdi + 0x2a8]
mov rdx, rsi
call fcn.140072d70
mov rax, qword [rdi + 0x2b0]
mov rcx, qword [rdi + 0x2c0]
lea rdx, [rax - 1]
lea r8, [rcx + 1]
xor r9d, r9d
cmp rcx, rdx
cmovne r9, r8
mov qword [rdi + 0x2c0], r9
test r9, r9
cmove r8, rax
dec r8
cmp rax, r8
jae 0x14006baf1
int3
mov qword [rdi + 0x288], 1
mov rcx, qword [rdi + 0x280]
jmp 0x14006bcd1
int3
int3
int3
int3
int3
xor eax, eax
jmp 0x14006baa1
lea rax, [rcx - 1]
mov qword [rdi + 0x2c0], rax
mov rdx, rcx
jmp 0x14006bb88
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
jmp 0x14006bc2d