Function at 0x1400319e0
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 [0x14029a038]
xor rax, rsp
mov qword [rsp + 0xe8], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x90]
mov qword [r14 + 0x50], r13
movaps xmm6, xmmword [0x140270690]
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, 0x8b
call fcn.140120f60
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
call fcn.140121610
lea rbp, [rdi + 4]
lea rax, [rdi + 0x260]
mov qword [rsp + 0x30], rax
lea rax, [rdi + 0x280]
mov qword [rsp + 0x38], rax
lea r14, [rdi + 0x30]
lea rax, [rdi + 0x2a8]
mov qword [rsp + 0x40], rax
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
lea r12, [rsp + 0x50]
cmp byte [rdi], 0
je 0x140031bf1
mov rcx, qword [rdi + 0x258]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140031d80
call r15
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x140031d03
mov qword [rsp + 0x70], r13
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x50], r14
test r14, r14
je 0x140031f7d
mov rcx, r14
call fcn.14017bd98
mov qword [rsp + 0x58], rax
mov rcx, rbx
mov rdx, r12
call fcn.14014b0f0
mov rcx, rdi
mov rdx, rbx
call fcn.140032030
test al, al
jne 0x140031ce9
mov qword [rsp + 0x48], r14
mov r14, r15
mov rdx, rsi
mov r12, rbp
mov bpl, byte [rbp]
mov r15, r13
mov qword [rsi + 0x10], r13
movups xmmword [rsi], xmm6
movzx eax, byte [rsp + 0x77]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsp + 0x60]
cmovns rax, rbx
mov qword [rsp + 0x80], rax
cmovs rcx, qword [rsp + 0x68]
mov qword [rsp + 0x88], rcx
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x80]
call fcn.14014a8b0
mov r13d, 1
test bpl, 0x10
jne 0x140031eea
test dword [rdi + 0x27c], r13d
mov r13, r15
mov r15, r14
mov rbp, r12
mov r14, qword [rsp + 0x48]
lea r12, [rsp + 0x50]
je 0x140031f2b
mov eax, dword [rdi + 0x298]
cmp eax, 1
jne 0x140031e53
cmp byte [rdi + 0x297], 0
mov rdx, qword [rsp + 0x38]
js 0x140031f92
cmp byte [rsp + 0x77], 0
mov rcx, rbx
jns 0x140031bdd
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x140031e5b
jmp 0x140031f2b
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rax
je 0x140031eda
test rax, rax
mov rcx, qword [rdi + 0x2b0]
cmove rax, rcx
dec rax
cmp rcx, rax
jb 0x140031f89
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + 0x2a8]
cmp qword [rsp + 0x30], rdx
je 0x140031c64
cmp byte [rdi + 0x277], 0
movzx r8d, byte [rdx + 0x17]
js 0x140031f59
test r8b, r8b
jns 0x140031ea8
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, qword [rsp + 0x30]
mov rdx, rax
call fcn.140013de0
mov rax, qword [rdi + 0x2b0]
mov rdx, qword [rdi + 0x2c0]
test rdx, rdx
je 0x140031f9f
lea rcx, [rdx - 1]
mov qword [rdi + 0x2c0], rcx
cmp rax, rdx
jb 0x140031f7a
cmp rax, rcx
jb 0x140031f8c
movabs r8, 0x8000000000000000
cmp rdx, r8
je 0x140031f8f
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx]
lea rcx, [rcx + rcx*2]
cmp byte [rdx + rcx*8 + 0x17], 0
js 0x140031e03
cmp rax, 5
jae 0x140031fb2
mov qword [rsp + 0x70], r13
movaps xmmword [rsp + 0x60], xmm6
mov eax, dword [rdi + 0x298]
test eax, eax
je 0x140031dc1
jmp 0x140031e2a
cmp byte [rsp + 0x77], 0
jns 0x140031aaf
mov rcx, qword [rsp + 0x60]
call fcn.14017b254
jmp 0x140031aaf
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
je 0x140031d9d
cmp eax, 0x12
je 0x140031aaf
jmp 0x140031ec0
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
lea r8, [rsp + 0x80]
call fcn.14014a8b0
cmp byte [rsp + 0x77], 0
mov rcx, rbx
js 0x140031df9
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
mov r8, rbp
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 0x140031ad0
jmp 0x140031e1b
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x140031ad0
cmp byte [rdi + 0x297], 0
js 0x140031f42
mov byte [rdi + 0x297], 1
mov rcx, qword [rsp + 0x38]
mov dword [rcx], 0x2a
jmp 0x140031d13
movzx eax, byte [rdi + 0x297]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rdi + 0x280]
cmovns rax, qword [rsp + 0x38]
mov qword [rsp + 0x80], rax
cmovs rcx, qword [rdi + 0x288]
mov qword [rsp + 0x88], rcx
jmp 0x140031d21
mov rcx, qword [rsp + 0x60]
jmp 0x140031d44
lea rax, [rdx + rcx*8]
mov rcx, qword [rax]
call fcn.14017b254
mov rax, qword [rdi + 0x2b0]
jmp 0x140031cc2
mov rcx, qword [rsp + 0x60]
call fcn.14017b254
jmp 0x140031ad0
cmp eax, 1
jne 0x140032010
lea rax, [0x140275976]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
jmp 0x140031d21
test eax, eax
jne 0x140031f2b
cmp byte [rsp + 0x77], 0
jns 0x140031e6c
mov rcx, qword [rsp + 0x60]
call fcn.14017b254
lea rcx, [rsp + 0x90]
call fcn.140120f80
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.14017e7b0
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 rax, qword [rdx + 0x10]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
jmp 0x140031c64
cmp dword [rdi + 0x29c], 0
je 0x140031aaf
mov ecx, eax
call fcn.140017d90
mov dword [rdi + 0x2a0], eax
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140031e6c
mov r13d, 2
cmp byte [rdi + 0x278], 0
je 0x140031b8d
mov rcx, rsi
cmp byte [rsi + 0x17], 0
jns 0x140031f09
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x140031b8d
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call fcn.140031780
jmp 0x140031b8d
cmp byte [rsi + 0x17], 0
jns 0x140031ce9
mov rcx, qword [rsi]
call fcn.14017b254
jmp 0x140031ce9
mov qword [rdi + 0x288], 1
mov rcx, qword [rdi + 0x280]
jmp 0x140031db6
test r8b, r8b
jns 0x140031f67
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
jmp 0x140031f6b
and r8d, 0x7f
mov rcx, qword [rsp + 0x30]
call fcn.140013e60
jmp 0x140031c64
int3
mov qword [rsp + 0x58], 0
int3
int3
int3
int3
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
jmp 0x140031bce
lea rcx, [rax - 1]
mov qword [rdi + 0x2c0], rcx
mov rdx, rax
jmp 0x140031c8f
mov rdx, qword [rdi + 0x2b8]
mov r8, qword [rdi + 0x2c0]
xor ecx, ecx
cmp r8, rdx
cmovb rcx, rax
sub rcx, rdx
add rcx, r8
dec rax
mov rdx, rax
sub rdx, rcx
cmp rdx, rcx
jb 0x140031ccc
mov r8, rcx
shr r8, 2
add r8, rcx
cmp r8, 4
mov edx, 3
cmovae rdx, r8
cmp rdx, rax
jae 0x140031ccc
mov rcx, qword [rsp + 0x40]
call fcn.1401e8080
jmp 0x140031ccc
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
jmp 0x140031d36