Function at 0x140023210
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, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140297028]
xor rax, rsp
mov qword [rsp + 0xd8], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x90]
mov qword [r14 + 0x40], r13
movaps xmm6, xmmword [0x140268c70]
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.1400e92c0
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
call fcn.14011f810
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 0x1400234b2
mov rcx, qword [rdi + 0x258]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140023488
call r15
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x1400234d9
mov qword [rsp + 0x70], r13
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x50], r14
test r14, r14
je 0x1400237e0
mov rcx, r14
call fcn.140180ff4
mov qword [rsp + 0x58], rax
mov rcx, rbx
mov rdx, r12
call fcn.140109400
mov rcx, rdi
mov rdx, rbx
call fcn.140023840
test al, al
jne 0x14002346e
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.14010a040
mov r13d, 1
test bpl, 0x10
jne 0x14002351b
test dword [rdi + 0x27c], r13d
mov r13, r15
mov r15, r14
mov rbp, r12
mov r14, qword [rsp + 0x48]
lea r12, [rsp + 0x50]
je 0x140023460
mov eax, dword [rdi + 0x298]
cmp eax, 1
jne 0x1400234a5
cmp byte [rdi + 0x297], 0
mov rdx, qword [rsp + 0x38]
js 0x1400237ec
cmp byte [rsp + 0x77], 0
mov rcx, rbx
jns 0x140023408
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
jne 0x140023460
cmp byte [rsp + 0x77], 0
jns 0x140023424
mov rcx, qword [rsp + 0x60]
call fcn.14018039c
lea rcx, [rsp + 0x90]
call fcn.14011f330
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1401830b0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsi + 0x17], 0
jns 0x14002346e
mov rcx, qword [rsi]
call fcn.14018039c
cmp byte [rsp + 0x77], 0
jns 0x1400232da
mov rcx, qword [rsp + 0x60]
call fcn.14018039c
jmp 0x1400232da
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x1400232fb
test eax, eax
je 0x140023413
jmp 0x1400237f9
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rax
jne 0x14002355c
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140023424
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
jne 0x140023500
cmp byte [rdi + 0x297], 0
js 0x140023533
mov byte [rdi + 0x297], 1
mov rcx, qword [rsp + 0x38]
mov dword [rcx], 0x2a
cmp eax, 0x12
je 0x1400232da
cmp dword [rdi + 0x29c], 0
je 0x1400232da
jmp 0x140023739
mov r13d, 2
cmp byte [rdi + 0x278], 0
je 0x1400233b8
jmp 0x140023803
mov qword [rdi + 0x288], 1
mov rcx, qword [rdi + 0x280]
jmp 0x1400234fa
mov rax, qword [rdx + 0x10]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
jmp 0x1400235b7
test rax, rax
mov rcx, qword [rdi + 0x2b0]
cmove rax, rcx
dec rax
cmp rcx, rax
jb 0x1400237d7
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + 0x2a8]
cmp qword [rsp + 0x30], rdx
je 0x1400235b7
cmp byte [rdi + 0x277], 0
movzx r8d, byte [rdx + 0x17]
js 0x140023718
test r8b, r8b
jns 0x140023547
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, qword [rsp + 0x30]
mov rdx, rax
call fcn.140007ed0
mov rax, qword [rdi + 0x2b0]
mov rdx, qword [rdi + 0x2c0]
test rdx, rdx
je 0x14002374b
lea rcx, [rdx - 1]
mov qword [rdi + 0x2c0], rcx
cmp rax, rdx
jb 0x1400237d4
cmp rax, rcx
jb 0x1400237da
movabs r8, 0x8000000000000000
cmp rdx, r8
je 0x1400237dd
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx]
lea rcx, [rcx + rcx*2]
cmp byte [rdx + rcx*8 + 0x17], 0
jns 0x140023624
lea rax, [rdx + rcx*8]
mov rcx, qword [rax]
call fcn.14018039c
mov rax, qword [rdi + 0x2b0]
mov rdx, rax
sub rdx, 1
mov ecx, 0
cmovae rcx, rdx
cmp rcx, 4
jae 0x140023779
mov qword [rsp + 0x70], r13
movaps xmmword [rsp + 0x60], xmm6
mov eax, dword [rdi + 0x298]
test eax, eax
jne 0x1400236f3
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
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
lea r8, [rsp + 0x80]
call fcn.14010a040
cmp byte [rsp + 0x77], 0
mov rcx, rbx
jns 0x1400236ad
mov rcx, qword [rsp + 0x60]
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 0x1400232fb
mov rcx, qword [rsp + 0x60]
call fcn.14018039c
jmp 0x1400232fb
cmp eax, 1
jne 0x14002375e
lea rax, [0x140276c2e]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
jmp 0x140023689
test r8b, r8b
js 0x140023723
and r8d, 0x7f
jmp 0x14002372a
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x30]
call fcn.140007f50
jmp 0x1400235b7
mov ecx, eax
call fcn.140009be0
mov dword [rdi + 0x2a0], eax
jmp 0x1400234c6
lea rcx, [rax - 1]
mov qword [rdi + 0x2c0], rcx
mov rdx, rax
jmp 0x1400235e2
call fcn.1401c0570
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
jmp 0x14002369e
mov r8, qword [rdi + 0x2b8]
mov r9, qword [rdi + 0x2c0]
xor edx, edx
cmp r9, r8
cmovb rdx, rax
sub rdx, r8
add rdx, r9
mov rax, rcx
sub rax, rdx
cmp rax, rdx
jb 0x14002363e
mov rax, rdx
shr rax, 2
add rax, rdx
cmp rax, 4
mov edx, 3
cmovae rdx, rax
cmp rdx, rcx
jae 0x14002363e
mov rcx, qword [rsp + 0x40]
call fcn.1401c27a0
jmp 0x14002363e
int3
int3
int3
int3
mov qword [rsp + 0x58], 0
int3
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
jmp 0x1400233f9
call fcn.1401c0570
jmp 0x140023460
mov rcx, rsi
cmp byte [rsi + 0x17], 0
jns 0x14002380f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x1400233b8
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call fcn.140022f60
jmp 0x1400233b8