Function at 0x140026640
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 [0x14029b028]
xor rax, rsp
mov qword [rsp + 0xd8], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x90]
mov qword [r14 + 0x40], r13
movaps xmm6, xmmword [0x1402724c0]
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.1400ed710
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
call fcn.14011a620
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]
mov r8, qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp byte [rdi], 0
je 0x14002675d
mov rcx, qword [rdi + 0x258]
mov rdx, rbp
call r8
test eax, eax
je 0x1400269db
call r15
cmp qword [rdi + 0x258], 0xffffffffffffffff
jne 0x1400268b6
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
mov r8, qword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x140026a62
cmp eax, 0x12
je 0x140026711
jmp 0x140026b2e
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rax
je 0x140026b48
test rax, rax
mov rcx, qword [rdi + 0x2b0]
cmove rax, rcx
dec rax
cmp rcx, rax
jb 0x140026bcb
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + 0x2a8]
cmp qword [rsp + 0x30], rdx
je 0x1400267c1
cmp byte [rdi + 0x277], 0
movzx r8d, byte [rdx + 0x17]
js 0x140026bb0
test r8b, r8b
js 0x1400269f8
jmp 0x140026b16
mov rax, qword [rdi + 0x2b0]
mov rdx, qword [rdi + 0x2c0]
test rdx, rdx
je 0x140026bf0
lea rcx, [rdx - 1]
mov qword [rdi + 0x2c0], rcx
cmp rax, rdx
jb 0x140026be0
cmp rax, rcx
jb 0x140026bce
movabs r8, 0x8000000000000000
cmp rdx, r8
je 0x140026bd1
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx]
lea rcx, [rcx + rcx*2]
cmp byte [rdx + rcx*8 + 0x17], 0
js 0x140026a11
mov rdx, rax
sub rdx, 1
mov ecx, 0
cmovae rcx, rdx
cmp rcx, 4
jae 0x140026c03
mov qword [rsp + 0x70], r13
movaps xmmword [rsp + 0x60], xmm6
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x140026a38
jmp 0x140026a86
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
lea r8, [rsp + 0x80]
call fcn.140125960
cmp byte [rsp + 0x77], 0
mov rcx, rbx
js 0x140026a58
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
js 0x140026a29
jmp 0x14002672b
mov qword [rsp + 0x70], r13
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x50], r14
test r14, r14
je 0x140026bd4
mov rcx, r14
call fcn.1401855e4
mov qword [rsp + 0x58], rax
mov rcx, rbx
mov rdx, r12
call fcn.140125070
mov rcx, rdi
mov rdx, rbx
call fcn.140026ca0
test al, al
jne 0x1400269c1
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]
test al, al
mov rcx, qword [rsp + 0x60]
cmovns rcx, rbx
mov qword [rsp + 0x80], rcx
cmovs rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x80]
call fcn.140125960
mov r13d, 1
test bpl, 0x10
jne 0x140026b58
test dword [rdi + 0x27c], r13d
mov r13, r15
mov r15, r14
mov rbp, r12
mov r14, qword [rsp + 0x48]
lea r12, [rsp + 0x50]
je 0x140026c7e
mov eax, dword [rdi + 0x298]
cmp eax, 1
jne 0x140026ac1
cmp byte [rdi + 0x297], 0
mov rdx, qword [rsp + 0x38]
js 0x140026be3
cmp byte [rsp + 0x77], 0
mov rcx, rbx
jns 0x1400269ad
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x140026ac9
jmp 0x140026c7e
cmp byte [rsp + 0x77], 0
jns 0x14002670a
mov rcx, qword [rsp + 0x60]
call fcn.14018482c
jmp 0x14002670a
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x14002672b
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, qword [rsp + 0x30]
mov rdx, rax
call fcn.14000a0a0
jmp 0x1400267c1
lea rax, [rdx + rcx*8]
mov rcx, qword [rax]
call fcn.14018482c
mov rax, qword [rdi + 0x2b0]
jmp 0x14002681f
mov rcx, qword [rsp + 0x60]
call fcn.14018482c
jmp 0x14002672b
lea rax, [0x14027a42a]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
jmp 0x140026857
mov rcx, qword [rsp + 0x60]
jmp 0x14002687a
cmp byte [rdi + 0x297], 0
js 0x140026b99
mov byte [rdi + 0x297], 1
mov rcx, qword [rsp + 0x38]
mov dword [rcx], 0x2a
jmp 0x140026753
test eax, eax
jne 0x140026c5e
movzx eax, byte [rdi + 0x297]
test al, al
mov rcx, qword [rdi + 0x280]
cmovns rcx, qword [rsp + 0x38]
mov qword [rsp + 0x80], rcx
cmovs rax, qword [rdi + 0x288]
mov qword [rsp + 0x88], rax
jmp 0x140026857
test eax, eax
jne 0x140026c79
cmp byte [rsp + 0x77], 0
jns 0x140026ada
mov rcx, qword [rsp + 0x60]
call fcn.14018482c
lea rcx, [rsp + 0x90]
call fcn.14011a160
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1401874c0
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
mov rax, qword [rdx + 0x10]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
jmp 0x1400267c1
cmp dword [rdi + 0x29c], 0
je 0x140026711
mov ecx, eax
call fcn.140012290
mov dword [rdi + 0x2a0], eax
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140026ada
mov r13d, 2
cmp byte [rdi + 0x278], 0
je 0x14002695d
mov rcx, rsi
cmp byte [rsi + 0x17], 0
jns 0x140026b77
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x14002695d
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call fcn.140026390
jmp 0x14002695d
mov qword [rdi + 0x288], 1
mov rcx, qword [rdi + 0x280]
jmp 0x140026a7b
test r8b, r8b
jns 0x140026bbc
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x30]
call fcn.14000a120
jmp 0x1400267c1
int3
int3
int3
mov qword [rsp + 0x58], 0
int3
int3
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
jmp 0x14002699e
lea rcx, [rax - 1]
mov qword [rdi + 0x2c0], rcx
mov rdx, rax
jmp 0x1400267ec
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 0x140026839
mov rax, rdx
shr rax, 2
add rax, rdx
cmp rax, 4
mov edx, 3
cmovae rdx, rax
cmp rdx, rcx
jae 0x140026839
mov rcx, qword [rsp + 0x40]
call fcn.1401f88a0
jmp 0x140026839
call fcn.1401c5160
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
jmp 0x14002686c
call fcn.1401c5160
cmp byte [rsi + 0x17], 0
jns 0x1400269c1
mov rcx, qword [rsi]
call fcn.14018482c
jmp 0x1400269c1