Function at 0x14004a730
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, 0x208
movaps xmmword [rsp + 0x1f0], xmm6
mov r15, rdx
mov rdi, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x1e8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], r12
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x80], xmm6
lea rdx, str.Next
lea r8, str..._.._base_files_file_enumerator_win.cc
lea rbp, [rsp + 0xa0]
mov rcx, rbp
mov r9d, 0x73
call fcn.14002f5d0
lea rcx, [rsp + 0x80]
mov rdx, rbp
xor r8d, r8d
call fcn.14003b4e0
lea rbx, [rdi + 4]
lea rax, [rdi + 0x2a0]
mov qword [rsp + 0x58], rax
lea rsi, [rdi + 0x2a8]
lea rax, [rdi + 0x260]
mov qword [rsp + 0x40], rax
lea rax, [rdi + 0x280]
mov qword [rsp + 0x50], rax
lea rax, [rdi + 0x282]
mov qword [rsp + 0x48], rax
lea r13, [rdi + 0x30]
mov qword [rsp + 0x38], r15
lea rax, [r15 + 2]
mov qword [rsp + 0x60], rax
lea r15, [rsp + 0x70]
mov r14, qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov qword [rsp + 0x68], rbx
jmp 0x14004a83c
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x14004ab74
mov rcx, qword [rsp + 0x38]
call fcn.14002c850
mov rcx, rbp
call fcn.14002c850
cmp byte [rdi], 0
je 0x14004a870
mov rcx, qword [rdi + 0x258]
mov rdx, rbx
call r14
test eax, eax
je 0x14004a960
cmp qword [rdi + 0x258], 0xffffffffffffffff
jne 0x14004aa0f
jmp 0x14004aa40
mov rax, qword [rdi + 0x2b8]
cmp qword [rdi + 0x2b0], rax
je 0x14004ab65
test rax, rax
mov rcx, qword [rsi]
cmove rax, rcx
add rax, 0xffffffffffffffff
mov qword [rsp + 0x1d8], rax
cmp rcx, rax
jae 0x14004a8db
lea rcx, [rsp + 0x1d8]
mov rdx, rsi
lea r8, str.i___capacity_
call fcn.14000401c
test rax, rax
je 0x14004a8db
mov rcx, rbp
lea rdx, str..._.._base_containers_vector_buffer.h
mov r8d, 0x55
mov r9, rax
call fcn.140030840
mov rcx, rbp
call fcn.14002f710
mov rax, qword [rsp + 0x1d8]
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + 0x2a0]
mov rcx, qword [rsp + 0x40]
call fcn.14002c860
mov rcx, qword [rsp + 0x58]
call fcn.14004b6e0
mov qword [rsp + 0xb0], r12
movaps xmmword [rsp + 0xa0], xmm6
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x14004a97d
test eax, eax
jne 0x14004a9af
movzx eax, byte [rdi + 0x280]
mov rcx, rax
shr rcx, 1
test al, 1
mov rax, qword [rdi + 0x290]
cmove rax, qword [rsp + 0x48]
mov qword [rsp + 0x1d8], rax
cmovne rcx, qword [rdi + 0x288]
mov qword [rsp + 0x1e0], rcx
jmp 0x14004a998
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x14004aa40
lea rax, [0x14015a1c6]
mov qword [rsp + 0x1d8], rax
mov qword [rsp + 0x1e0], 1
mov rcx, qword [rsp + 0x40]
mov rdx, rbp
lea r8, [rsp + 0x1d8]
call fcn.14002d7c0
jmp 0x14004a9b7
mov rcx, rbp
call fcn.14002c720
test byte [rsp + 0xa0], 1
lea rcx, [rsp + 0xa2]
je 0x14004a9d1
mov rcx, qword [rsp + 0xb0]
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
mov r8, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rdi + 0x258], rax
mov byte [rdi], 1
mov rcx, rbp
call fcn.14002c850
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x14004aa40
mov qword [rsp + 0xb0], r12
movaps xmmword [rsp + 0xa0], xmm6
mov qword [rsp + 0x70], r13
cmp word [r13], 0
je 0x14004aa66
xor eax, eax
nop
cmp word [rdi + rax*2 + 0x32], 0
lea rax, [rax + 1]
jne 0x14004aa30
jmp 0x14004aa68
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
jne 0x14004a83c
mov rcx, qword [rsp + 0x50]
lea rdx, [0x14015a1c6]
call fcn.14002603a
jmp 0x14004a83c
xor eax, eax
mov qword [rsp + 0x78], rax
mov rcx, rbp
mov rdx, r15
call fcn.14002c770
mov rcx, rdi
mov rdx, rbp
call fcn.140057ef0
test al, al
jne 0x14004a834
mov r8, rbp
mov ebp, dword [rdi + 4]
mov rbx, qword [rsp + 0x38]
mov qword [rbx + 0x10], r12
movups xmmword [rbx], xmm6
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
mov r14, r8
call fcn.14002df20
test bpl, 0x10
je 0x14004aaf0
cmp byte [rdi + 0x278], 0
je 0x14004aaf0
test byte [rbx], 1
mov rcx, qword [rsp + 0x60]
je 0x14004aaca
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x14004aaf0
mov rcx, qword [rsp + 0x58]
mov rdx, rbx
call fcn.14004afa0
nop word cs:[rax + rax]
nop
and ebp, 0x10
shr ebp, 4
mov rcx, rdi
mov edx, ebp
call fcn.140058030
test al, al
mov rbx, qword [rsp + 0x68]
mov rbp, r14
mov r14, qword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x14004a82a
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x14004ab2c
test eax, eax
jne 0x14004a82a
jmp 0x14004ab74
mov rax, qword [rsp + 0x50]
test byte [rax], 1
mov rdx, qword [rsp + 0x48]
je 0x14004ab42
mov rdx, qword [rdi + 0x290]
test byte [rsp + 0xa0], 1
lea rcx, [rsp + 0xa2]
je 0x14004a81b
mov rcx, qword [rsp + 0xb0]
jmp 0x14004a81b
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call fcn.14002c720
jmp 0x14004ab86
lea rcx, [rsp + 0xa0]
call fcn.14002c850
mov rsi, qword [rsp + 0x38]
lea rcx, [rsp + 0x80]
call fcn.14003b620
mov rcx, qword [rsp + 0x1e8]
xor rcx, rsp
call fcn.1401207e0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x1f0]
add rsp, 0x208
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret