Function at 0x1400246f0
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 qword [rsp + 0x30], rdx
mov rdi, rcx
mov rax, qword [0x140173028]
xor rax, rsp
mov qword [rsp + 0xe8], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x90]
mov qword [rsi + 0x50], r14
movaps xmm6, xmmword [0x14014df90]
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rdx, str.Next
lea r8, str..._.._base_files_file_enumerator_win.cc
lea r15, [rsp + 0x70]
mov rcx, r15
mov r9d, 0x83
call fcn.14004cb40
mov rcx, rsi
mov rdx, r15
xor r8d, r8d
call fcn.140054820
lea r13, [rdi + 4]
lea rax, [rdi + 0x2a8]
mov qword [rsp + 0x38], rax
lea rsi, [rdi + 0x260]
lea rbp, [rdi + 0x280]
lea r12, [rdi + 0x30]
cmp byte [rdi], 0
je 0x1400247e0
mov rcx, qword [rdi + 0x258]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14002495a
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x14002495a
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rax
je 0x140024b31
test rax, rax
mov rcx, qword [rdi + 0x2b0]
cmove rax, rcx
dec rax
cmp rcx, rax
jb 0x140024ba3
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + 0x2a8]
mov rcx, rsi
call fcn.14004bdb0
mov rcx, qword [rdi + 0x2b0]
mov rdx, qword [rdi + 0x2c0]
test rdx, rdx
jne 0x140024848
lea rax, [rcx - 1]
mov qword [rdi + 0x2c0], rax
mov rdx, rcx
jmp 0x14002485c
lea rax, [rdx - 1]
mov qword [rdi + 0x2c0], rax
cmp rcx, rdx
jb 0x140024ba6
cmp rcx, rax
jb 0x140024ba9
movabs rcx, 0x8000000000000000
cmp rdx, rcx
je 0x140024bac
mov rbx, rsi
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsi]
lea rax, [rax + rax*2]
lea rcx, [rcx + rax*8]
call fcn.14004bda0
mov rcx, rsi
call fcn.1400d4930
mov qword [rsp + 0x80], r14
movaps xmmword [rsp + 0x70], xmm6
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x1400248e2
test eax, eax
mov rsi, rbx
jne 0x14002490c
movzx eax, byte [rdi + 0x297]
test al, al
mov rcx, qword [rdi + 0x280]
cmovns rcx, rbp
mov qword [rsp + 0x40], rcx
cmovs rax, qword [rdi + 0x288]
mov qword [rsp + 0x48], rax
mov rcx, rsi
jmp 0x1400248fd
lea rax, [0x140154074]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov rsi, rbx
mov rcx, rbx
mov rdx, r15
lea r8, [rsp + 0x40]
call fcn.140021cd0
jmp 0x140024914
mov rcx, r15
call fcn.14004bc40
cmp byte [rsp + 0x87], 0
mov rcx, r15
jns 0x140024926
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
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
mov rcx, r15
call fcn.14004bda0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x14002498b
mov qword [rsp + 0x80], r14
movaps xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0x60], r12
test r12, r12
je 0x1400249b1
mov rcx, r12
call fcn.14009db00
jmp 0x1400249b3
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
jne 0x140024a7a
cmp byte [rbp + 0x17], 0
js 0x140024a62
mov byte [rbp + 0x17], 1
mov rcx, rbp
jmp 0x140024a74
xor eax, eax
mov qword [rsp + 0x68], rax
mov rcx, r15
lea rdx, [rsp + 0x60]
call fcn.14004bcc0
mov rcx, rdi
mov rdx, r15
call fcn.140055890
test al, al
je 0x1400249e1
mov rcx, r15
call fcn.14004bda0
jmp 0x1400247a6
mov rax, r14
mov r14d, dword [rdi + 4]
mov rbx, rax
mov qword [rsp + 0x50], rax
movaps xmmword [rsp + 0x40], xmm6
mov rcx, rsi
lea rdx, [rsp + 0x40]
mov r8, r15
call fcn.14004bfd0
test r14b, 0x10
je 0x140024a31
cmp byte [rdi + 0x278], 0
je 0x140024a31
cmp byte [rsp + 0x57], 0
lea rcx, [rsp + 0x40]
jns 0x140024a25
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jae 0x140024aa9
and r14d, 0x10
shr r14d, 4
mov rcx, rdi
mov edx, r14d
call fcn.1400ddb20
test al, al
jne 0x140024a95
lea rcx, [rsp + 0x40]
call fcn.14004bda0
mov rcx, r15
call fcn.14004bda0
mov r14, rbx
jmp 0x1400247a6
mov qword [rdi + 0x288], 1
mov rcx, qword [rdi + 0x280]
mov dword [rcx], 0x2a
cmp eax, 0x12
je 0x1400247a6
cmp dword [rdi + 0x29c], 0
je 0x1400247a6
jmp 0x140024b24
mov rcx, rdi
mov rdx, r15
call fcn.1400d4710
test al, al
je 0x140024a48
jmp 0x140024b7a
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1400d4830
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b0], rax
jb 0x140024baf
lea rcx, [rax + rax*2]
shl rcx, 3
add rcx, qword [rdi + 0x2a8]
lea rdx, [rsp + 0x40]
call fcn.14004bc60
mov rax, qword [rdi + 0x2b0]
mov rcx, qword [rdi + 0x2c0]
lea rdx, [rax - 1]
lea r8, [rcx + 1]
cmp rcx, rdx
mov ecx, 0
cmovne rcx, r8
mov qword [rdi + 0x2c0], rcx
test rcx, rcx
cmove rcx, rax
dec rcx
cmp rax, rcx
jae 0x140024a31
int3
mov ecx, eax
call fcn.1400d3b80
mov dword [rdi + 0x2a0], eax
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14004bc40
lea rcx, [rsp + 0x90]
call fcn.140054af0
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140083c00
mov rax, rdi
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
lea rsi, [rsp + 0x40]
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rsi
call fcn.14004bc60
mov rcx, rsi
call fcn.14004bda0
lea rcx, [rsp + 0x70]
call fcn.14004bda0
jmp 0x140024b3e
int3
int3
int3
int3
int3