Function at 0x14004bc90
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, 0xd8
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
lea rdx, str.Next
lea r8, str..._.._base_files_file_enumerator_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x82
call fcn.14004af20
lea rcx, [rsp + 0x80]
mov rdx, rbx
xor r8d, r8d
call fcn.14004af50
lea r14, [rdi + 4]
lea r15, [rdi + 0x260]
lea rsi, [rdi + 0x280]
lea r13, [rdi + 0x30]
lea rax, [rdi + 0x2a8]
mov qword [rsp + 0x30], rax
cmp byte [rdi], 0
je 0x14004be37
mov rcx, qword [rdi + 0x258]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14004bf1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x14004befe
mov qword [rsp + 0x50], r13
cmp word [r13], 0
je 0x14004bf3b
cmp word [rdi + 0x32], 0
je 0x14004bf5c
cmp word [rdi + 0x34], 0
je 0x14004bf66
cmp word [rdi + 0x36], 0
je 0x14004bf84
cmp word [rdi + 0x38], 0
je 0x14004bf70
cmp word [rdi + 0x3a], 0
je 0x14004bf7a
mov eax, 6
cmp word [rdi + 0x3c], 0
jne 0x14004bf8e
mov qword [rsp + 0x58], rax
mov rcx, rbx
lea rdx, [rsp + 0x50]
call fcn.14002e570
mov rcx, rdi
mov rdx, rbx
call fcn.14004c620
test al, al
jne 0x14004be9a
mov ebp, dword [rdi + 4]
mov rcx, r15
lea rdx, [rsp + 0x38]
mov r8, rbx
call fcn.1400305e0
test bpl, 0x10
jne 0x14004c08a
and ebp, 0x10
shr ebp, 4
mov rcx, rdi
mov edx, ebp
call fcn.14004c730
test al, al
je 0x14004c0cc
mov eax, dword [rdi + 0x298]
cmp eax, 1
jne 0x14004c02c
cmp byte [rsi + 0x17], 0
mov rdx, rsi
js 0x14004c0de
cmp byte [rsp + 0x77], 0
mov rcx, rbx
jns 0x14004be23
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x14004c034
jmp 0x14004c0cc
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rax
je 0x14004c022
test rax, rax
mov rcx, qword [rdi + 0x2b0]
cmove rax, rcx
dec rax
cmp rcx, rax
jb 0x14004c0db
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + 0x2a8]
mov rcx, r15
call fcn.14002e680
mov rcx, qword [rsp + 0x30]
call fcn.14004c4d0
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x14004bf42
jmp 0x14004bfc1
mov rcx, rbx
call fcn.14002e670
jmp 0x14004bd11
mov rcx, r15
mov rdx, rbx
lea r8, [rsp + 0x38]
call fcn.14002f900
cmp byte [rsp + 0x77], 0
mov rcx, rbx
js 0x14004bfb7
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
mov r8, r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rdi + 0x258], rax
mov byte [rdi], 1
mov rcx, rbx
call fcn.14002e670
jmp 0x14004bd32
mov ebp, eax
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
je 0x14004bff4
cmp ebp, 0x12
je 0x14004bd11
jmp 0x14004c008
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x14004bd32
xor eax, eax
jmp 0x14004bd9e
lea rax, [0x1400bf6e8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 1
jmp 0x14004bea7
mov eax, 1
jmp 0x14004bd9e
mov eax, 2
jmp 0x14004bd9e
mov eax, 4
jmp 0x14004bd9e
mov eax, 5
jmp 0x14004bd9e
mov eax, 3
jmp 0x14004bd9e
mov eax, 7
cmp word [rdi + 0x3e], 0
je 0x14004bd9e
mov eax, 0x20
cmp word [rdi + rax*2], 0
lea rax, [rax + 1]
jne 0x14004bfa3
add rax, 0xffffffffffffffe7
jmp 0x14004bd9e
mov rcx, qword [rsp + 0x60]
jmp 0x14004bec5
test eax, eax
jne 0x14004c0e6
movzx eax, byte [rdi + 0x297]
test al, al
mov rcx, qword [rdi + 0x280]
cmovns rcx, rsi
mov qword [rsp + 0x38], rcx
cmovs rax, qword [rdi + 0x288]
mov qword [rsp + 0x40], rax
jmp 0x14004bea7
mov rcx, rsi
lea rdx, [0x1400bf6e8]
call fcn.140028e40
jmp 0x14004bf10
cmp dword [rdi + 0x29c], 0
je 0x14004bd11
mov ecx, ebp
call fcn.14004b540
mov dword [rdi + 0x2a0], eax
mov rcx, r12
call fcn.14002e520
jmp 0x14004c056
test eax, eax
jne 0x14004c0cc
lea rsi, [rsp + 0x38]
mov rcx, r12
mov rdx, rsi
call fcn.14002e540
mov rcx, rsi
call fcn.14002e670
lea rcx, [rsp + 0x60]
call fcn.14002e670
lea rcx, [rsp + 0x80]
call fcn.14004b070
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14008db90
mov rax, r12
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rdi + 0x278], 0
je 0x14004bde0
cmp byte [rsp + 0x4f], 0
lea rcx, [rsp + 0x38]
jns 0x14004c0a8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x14004bde0
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call fcn.14004c1f0
jmp 0x14004bde0
lea rcx, [rsp + 0x38]
call fcn.14002e670
jmp 0x14004be9a
int3
mov rdx, qword [rsi]
jmp 0x14004be14
mov rcx, rbx
call fcn.14002e520
jmp 0x14004beb7