Function at 0x140025a50
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 rbx, rdx
mov rdi, rcx
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0xe8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0xa0]
mov qword [r14 + 0x40], rax
movaps xmm6, xmmword [0x14026dc70]
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 rsi, [rsp + 0x70]
mov rcx, rsi
mov r9d, 0x8b
call fcn.1400ee990
mov rcx, r14
mov rdx, rsi
xor r8d, r8d
call fcn.140123200
lea r13, [rdi + 4]
lea rax, [rdi + 0x260]
mov qword [rsp + 0x38], rax
lea rsi, [rdi + 0x280]
lea rax, [rdi + 0x30]
mov qword [rsp + 0x58], rax
lea rax, [rdi + 0x2a8]
mov qword [rsp + 0x48], rax
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
lea r12, [rsp + 0x60]
mov r14, qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov qword [rsp + 0x40], rdi
cmp byte [rdi], 0
je 0x140025df7
mov rcx, qword [rdi + 0x258]
mov rdx, r13
call r14
test eax, eax
je 0x140025d32
call r15
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x140025d5c
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
movaps xmmword [rsp + 0x70], xmm6
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x60], rdi
test rdi, rdi
je 0x1400260e5
mov rbp, r15
mov r15, rsi
mov rcx, rdi
call fcn.140185998
mov qword [rsp + 0x68], rax
lea rsi, [rsp + 0x70]
mov rcx, rsi
mov rdx, r12
call fcn.14010c090
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call fcn.140026180
test al, al
jne 0x140025d0e
mov r14, r13
mov r13d, dword [r13]
movzx ecx, byte [rsp + 0x87]
mov eax, ecx
and eax, 0x7f
test cl, cl
cmovs rax, qword [rsp + 0x78]
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x10], rcx
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
cmovns rcx, rsi
movups xmmword [rbx], xmm6
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rax
test rax, rax
js 0x140026111
mov rbp, rsi
test rcx, rcx
mov rdi, qword [rsp + 0x40]
jne 0x140025c1f
test rax, rax
jne 0x1400260b9
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
lea r8, [rsp + 0x90]
call fcn.140121f90
mov esi, 1
test r13b, 0x10
jne 0x140025db7
test dword [rdi + 0x27c], esi
mov rsi, r15
mov rcx, rbp
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
lea r12, [rsp + 0x60]
mov rbp, qword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x140025cf1
mov eax, dword [rdi + 0x298]
cmp eax, 1
jne 0x140025d4f
cmp byte [rdi + 0x297], 0
mov rdx, rsi
js 0x1400260b1
cmp byte [rsp + 0x87], 0
jns 0x140025c96
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
jne 0x140025cf1
cmp byte [rsp + 0x87], 0
jns 0x140025cb5
mov rcx, qword [rsp + 0x70]
call fcn.140184dbc
lea rcx, [rsp + 0xa0]
call fcn.1400dee50
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1401879f0
mov rax, rbx
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 r13, r14
mov rax, rbx
mov r14, rbp
mov rbp, r15
mov r15, rsi
cmp byte [rbx + 0x17], 0
jns 0x140025d0e
mov rcx, qword [rbx]
call fcn.140184dbc
cmp byte [rsp + 0x87], 0
jns 0x140025d22
mov rcx, qword [rsp + 0x70]
call fcn.140184dbc
mov rsi, r15
mov r15, rbp
mov rdi, qword [rsp + 0x40]
jmp 0x140025b26
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x140025b44
test eax, eax
je 0x140025ca1
jmp 0x14002613d
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
jne 0x140025d81
cmp byte [rdi + 0x297], 0
js 0x140025dce
mov byte [rdi + 0x297], 1
mov rcx, rsi
mov dword [rcx], 0x2a
cmp eax, 0x12
je 0x140025b26
cmp dword [rdi + 0x29c], 0
je 0x140025b26
mov ecx, eax
call fcn.14000f1c0
mov dword [rdi + 0x2a0], eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
jmp 0x140025cb5
mov esi, 2
cmp byte [rdi + 0x278], 0
je 0x140025c43
jmp 0x140026147
mov qword [rdi + 0x288], 1
mov rcx, qword [rdi + 0x280]
jmp 0x140025d7b
mov rax, qword [rdx + 0x10]
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
jmp 0x140025e64
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rax
je 0x140025da4
mov rcx, qword [rdi + 0x2b0]
test rax, rax
je 0x140026009
dec rax
cmp rcx, rax
jb 0x1400260a8
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + 0x2a8]
cmp qword [rsp + 0x38], rdx
je 0x140025e64
cmp byte [rdi + 0x277], 0
movzx r8d, byte [rdx + 0x17]
js 0x140025fe8
test r8b, r8b
jns 0x140025de2
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, qword [rsp + 0x38]
mov rdx, rax
call fcn.140021310
mov rax, qword [rdi + 0x2b0]
mov rdx, qword [rdi + 0x2c0]
test rdx, rdx
je 0x140026011
lea rcx, [rdx - 1]
mov qword [rdi + 0x2c0], rcx
cmp rax, rdx
jb 0x1400260a5
cmp rax, rcx
jb 0x1400260ab
movabs r8, 0x8000000000000000
cmp rdx, r8
je 0x1400260ae
mov rdx, qword [rsp + 0x48]
mov rdx, qword [rdx]
lea rcx, [rcx + rcx*2]
cmp byte [rdx + rcx*8 + 0x17], 0
jns 0x140025ed1
lea rax, [rdx + rcx*8]
mov rcx, qword [rax]
call fcn.140184dbc
mov rax, qword [rdi + 0x2b0]
cmp rax, 5
jae 0x140026047
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
movaps xmmword [rsp + 0x70], xmm6
mov eax, dword [rdi + 0x298]
test eax, eax
mov qword [rsp + 0x50], rsi
jne 0x140025f4a
movzx eax, byte [rdi + 0x297]
test al, al
js 0x140025f14
and eax, 0x7f
mov rcx, rsi
jmp 0x140025f22
mov rax, qword [rdi + 0x288]
mov rcx, qword [rdi + 0x280]
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rax
test rax, rax
js 0x140026111
test rcx, rcx
jne 0x140025f6e
test rax, rax
je 0x140025f6e
jmp 0x1400260b9
cmp eax, 1
jne 0x140026024
lea rax, [0x14027c492]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
mov rcx, qword [rsp + 0x38]
lea rsi, [rsp + 0x70]
mov rdx, rsi
lea r8, [rsp + 0x90]
call fcn.140121f90
cmp byte [rsp + 0x87], 0
jns 0x140025f97
mov rsi, qword [rsp + 0x70]
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov edx, 1
mov r8, r13
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rdi + 0x258], rax
mov byte [rdi], 1
cmp byte [rsp + 0x87], 0
mov rsi, qword [rsp + 0x50]
jns 0x140025b44
mov rcx, qword [rsp + 0x70]
call fcn.140184dbc
jmp 0x140025b44
test r8b, r8b
js 0x140025ff3
and r8d, 0x7f
jmp 0x140025ffa
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x38]
call fcn.1400218f0
jmp 0x140025e64
mov rax, rcx
jmp 0x140025e17
lea rcx, [rax - 1]
mov qword [rdi + 0x2c0], rcx
mov rdx, rax
jmp 0x140025e8f
call fcn.1401c6930
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
lea rsi, [rsp + 0x70]
jmp 0x140025f88
mov rdx, qword [rdi + 0x2b8]
mov r8, qword [rdi + 0x2c0]
xor ecx, ecx
cmp rdx, r8
cmova rcx, rax
sub rcx, rdx
add rcx, r8
dec rax
mov rdx, rax
sub rdx, rcx
cmp rdx, rcx
jb 0x140025edb
mov r8, rcx
shr r8, 2
add r8, rcx
cmp r8, 4
mov edx, 3
cmovae rdx, r8
cmp rdx, rax
jae 0x140025edb
mov rcx, qword [rsp + 0x48]
call fcn.1401c7900
jmp 0x140025edb
int3
int3
int3
int3
mov rdx, qword [rsi]
jmp 0x140025c87
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.1401c2f20
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.1401c2f20
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.1401c2f20
call fcn.1401c6930
jmp 0x140025cf1
mov rcx, rbx
cmp byte [rbx + 0x17], 0
jns 0x140026153
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x14002616c
mov rcx, qword [rsp + 0x48]
mov rdx, rbx
call fcn.1400257a0
mov rdi, qword [rsp + 0x40]
jmp 0x140025c43