Function at 0x140028ec0
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, 0x138
movaps xmmword [rsp + 0x120], xmm6
mov r15, rdx
mov rdi, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x118], rax
movaps xmm6, xmmword [0x14026f080]
lea r14, [rsp + 0xb0]
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 + 0x90]
mov rcx, rbx
mov r9d, Ordinal_142
call fcn.14012cb70
mov rcx, r14
xor edx, edx
xor r8d, r8d
call fcn.14011ac80
mov qword [rsp + 0xf8], 0xa
mov al, byte [0x1402c585a]
test al, al
jne 0x14002960a
lea rbp, [rdi + 0x260]
lea r8, [rdi + 4]
lea rax, [rdi + 0x30]
mov qword [rsp + 0x78], rax
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
lea rax, [rdi + 0x280]
mov qword [rsp + 0x60], rax
movabs rsi, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x80]
lea rax, [rdi + 0x2a8]
mov qword [rsp + 0x58], rax
lea rax, [rdi + 0x2b8]
mov qword [rsp + 0x50], rax
lea rax, [rdi + 0x2c0]
mov qword [rsp + 0x30], rax
cmp byte [rdi], 0
je 0x14002925f
mov rcx, qword [rdi + 0x258]
mov r14, r8
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140029186
call r13
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x1400291de
mov qword [rsp + 0xa0], rsi
movaps xmmword [rsp + 0x90], xmm6
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x80], rcx
call fcn.14018f978
mov qword [rsp + 0x88], rax
mov rcx, rbx
mov rdx, r12
call fcn.140177580
mov rcx, rdi
mov rdx, rbx
call fcn.1400296d0
test al, al
mov r8, r14
jne 0x1400291b8
mov r14, r13
mov r13d, dword [r8]
movsx rcx, byte [rsp + 0xa7]
test rcx, rcx
cmovs rcx, qword [rsp + 0x98]
mov qword [r15 + 0x10], rsi
mov rax, qword [rsp + 0x90]
cmovns rax, rbx
movups xmmword [r15], xmm6
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x110], rcx
test rcx, rcx
js 0x1400295e2
mov qword [rsp + 0x38], r8
sete cl
test rax, rax
setne al
or al, cl
je 0x1400295bd
mov qword [rsp + 0x40], rbp
mov rcx, rbp
mov rdx, r15
lea r8, [rsp + 0x108]
call fcn.140155e60
mov ebx, 1
test r13b, 0x10
mov r13, r14
jne 0x140029449
test dword [rdi + 0x27c], ebx
mov rbp, qword [rsp + 0x40]
lea rbx, [rsp + 0x90]
mov r8, qword [rsp + 0x38]
je 0x1400291a3
mov eax, dword [rdi + 0x298]
cmp eax, 1
jne 0x14002917d
cmp byte [rdi + 0x297], 0
mov rdx, qword [rsp + 0x60]
js 0x1400295f5
mov r14, r8
cmp byte [rsp + 0xa7], 0
mov rcx, rbx
jns 0x14002911c
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
mov r8, r14
jne 0x1400291a3
cmp byte [rsp + 0xa7], 0
jns 0x140029141
mov rcx, qword [rsp + 0x90]
call fcn.14018f5a0
lea rcx, [rsp + 0xb0]
call fcn.140159490
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140191d70
mov rax, r15
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test eax, eax
je 0x14002912a
jmp 0x14002963c
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x140028fe1
cmp byte [r15 + 0x17], 0
jns 0x1400291b8
mov rcx, qword [r15]
mov r14, r8
call fcn.14018f5a0
mov r8, r14
cmp byte [rsp + 0xa7], 0
jns 0x140028fbd
mov rcx, qword [rsp + 0x90]
mov r14, r8
call fcn.14018f5a0
mov r8, r14
jmp 0x140028fbd
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
mov r8, r14
jne 0x140029208
cmp byte [rdi + 0x297], 0
js 0x140029223
mov byte [rdi + 0x297], 1
mov rcx, qword [rsp + 0x60]
mov dword [rcx], Ordinal_46
cmp eax, 0x12
je 0x140028fbd
cmp dword [rdi + 0x29c], 0
je 0x140028fbd
jmp 0x1400295d0
mov qword [rdi + 0x288], 1
mov rcx, qword [rdi + 0x280]
jmp 0x140029202
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], 0
jmp 0x140029141
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, rbp
mov rdx, rax
call fcn.14000ae50
jmp 0x1400292c8
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rax
je 0x140029237
mov rcx, qword [rdi + 0x2b0]
test rax, rax
je 0x140029602
dec rax
cmp rcx, rax
jb 0x1400295b1
mov r14, r8
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + 0x2a8]
cmp rbp, rdx
je 0x1400292c8
cmp byte [rdi + 0x277], 0
movzx r8d, byte [rdx + 0x17]
js 0x140029598
test r8b, r8b
js 0x14002924b
mov rax, qword [rdx + 0x10]
mov qword [rbp + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rbp], xmm0
mov rax, qword [rdi + 0x2b0]
mov rdx, qword [rdi + 0x2c0]
test rdx, rdx
je 0x14002964c
lea rcx, [rdx - 1]
mov r8, qword [rsp + 0x30]
mov qword [r8], rcx
cmp rax, rdx
jb 0x1400295b4
cmp rax, rcx
jb 0x1400295b7
movabs r8, 0x8000000000000000
cmp rdx, r8
je 0x1400295ba
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx]
lea rcx, [rcx + rcx*2]
cmp byte [rdx + rcx*8 + 0x17], 0
jns 0x140029336
lea rax, [rdx + rcx*8]
mov rcx, qword [rax]
call fcn.14018f5a0
mov rax, qword [rdi + 0x2b0]
cmp rax, 5
jae 0x14002948a
mov qword [rsp + 0xa0], rsi
movaps xmmword [rsp + 0x90], xmm6
mov eax, dword [rdi + 0x298]
test eax, eax
jne 0x140029420
movsx rax, byte [rdi + 0x297]
test rax, rax
js 0x140029374
lea rcx, [rdi + 0x280]
jmp 0x140029382
mov rax, qword [rdi + 0x288]
mov rcx, qword [rdi + 0x280]
mov qword [rsp + 0x108], rcx
mov qword [rsp + 0x110], rax
test rax, rax
js 0x1400295e2
sete al
test rcx, rcx
setne cl
or cl, al
je 0x1400295bd
mov rcx, rbp
mov rdx, rbx
lea r8, [rsp + 0x108]
call fcn.140155e60
cmp byte [rsp + 0xa7], 0
mov rcx, rbx
mov r8, r14
jns 0x1400293d7
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rdi + 0x258], rax
mov byte [rdi], 1
cmp byte [rsp + 0xa7], 0
jns 0x140028fe1
mov rcx, qword [rsp + 0x90]
call fcn.14018f5a0
jmp 0x140028fe1
cmp eax, 1
jne 0x140029660
lea rax, [0x140281be6]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x110], 1
jmp 0x1400293ac
mov ebx, 2
cmp byte [rdi + 0x278], 1
jne 0x1400290c5
mov rcx, r15
cmp byte [r15 + 0x17], 0
jns 0x140029468
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x1400290c5
mov rcx, qword [rsp + 0x58]
mov rdx, r15
call fcn.14002eb60
jmp 0x1400290c5
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx]
mov rcx, qword [rsp + 0x30]
mov r8, qword [rcx]
cmp r9, r8
mov ecx, 0
cmova rcx, rax
sub rcx, r9
add rcx, r8
dec rax
mov rdx, rax
sub rdx, rcx
cmp rdx, rcx
jb 0x140029340
mov rdx, rcx
shr rdx, 2
add rdx, rcx
cmp rdx, 4
mov r10d, 3
cmovae r10, rdx
cmp r10, rax
jae 0x140029340
inc r10
mov ecx, Ordinal_26
mov rax, r10
mul rcx
mov qword [rsp + 0x48], rax
jo 0x1400296aa
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x70], r9
lea rcx, fcn.14011f760
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
call fcn.14011f760
test rax, rax
mov qword [rsp + 0x68], rax
je 0x140029681
lea r9, [rsp + 0x90]
mov qword [r9], rax
mov rcx, qword [rsp + 0x40]
mov qword [r9 + 8], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x38]
call fcn.14002ed50
mov rdx, qword [rdi + 0x2a8]
lea rcx, fcn.14011f760
xor r8d, r8d
call fcn.14011d840
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x2a8], rax
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x2b0], rax
jmp 0x140029340
test r8b, r8b
jns 0x1400295a4
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, rbp
call fcn.14000af50
jmp 0x1400292c8
int3
int3
int3
int3
lea rcx, [0x1402742d5]
lea rdx, str....._third_partylibc_srcinclude_string_view:320:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.1401ceaf0
mov ecx, eax
call fcn.140012320
mov dword [rdi + 0x2a0], eax
jmp 0x140029237
lea rcx, [0x1402742d5]
lea rdx, str....._third_partylibc_srcinclude_string_view:318:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
call fcn.1401ceaf0
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
jmp 0x140029104
mov rax, rcx
jmp 0x14002927f
movzx ecx, al
lea r9, [rsp + 0x108]
mov qword [r9], rbx
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0x100]
mov qword [r8], rax
lea rdx, [rsp + 0xf8]
call fcn.1401f5bf0
jmp 0x140028f60
mov r14, r8
call fcn.1401d1140
mov r8, r14
jmp 0x1400291a3
lea rcx, [rax - 1]
mov rdx, qword [rsp + 0x30]
mov qword [rdx], rcx
mov rdx, rax
jmp 0x1400292f4
call fcn.1401d1140
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
jmp 0x1400293bf
cmp byte [0x1402c5c18], 1
jne 0x140029529
mov rcx, qword [rsp + 0x48]
call fcn.1402078a0
test al, al
mov rax, qword [rsp + 0x68]
jne 0x140029507
jmp 0x140029529
int3