Function at 0x14006bc30
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 [0x14020eb28]
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.140054e50
lea rcx, [rsp + 0x80]
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
lea r14, [rdi + 4]
lea r15, [rdi + 0x260]
lea rsi, [rdi + 0x280]
lea r13, [rdi + 0x30]
lea rax, [rdi + reloc.SHELL32.dll_IsUserAnAdmin]
mov qword [rsp + 0x30], rax
cmp byte [rdi], 0
je 0x14006bdd7
mov rcx, qword [rdi + 0x258]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14006bebe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x14006be9e
mov qword [rsp + 0x50], r13
cmp word [r13], 0
je 0x14006bedb
cmp word [rdi + 0x32], 0
je 0x14006bf43
cmp word [rdi + 0x34], 0
je 0x14006bf4d
cmp word [rdi + 0x36], 0
je 0x14006bf25
cmp word [rdi + 0x38], 0
je 0x14006bf39
cmp word [rdi + 0x3a], 0
je 0x14006bf2f
mov eax, 6
cmp word [rdi + 0x3c], 0
jne 0x14006bee2
mov qword [rsp + 0x58], rax
mov rcx, rbx
lea rdx, [rsp + 0x50]
call fcn.1400505a0
mov rcx, rdi
mov rdx, rbx
call fcn.140098bc0
test al, al
jne 0x14006be3a
mov ebp, dword [rdi + 4]
mov rcx, r15
lea rdx, [rsp + 0x38]
mov r8, rbx
call fcn.140052bf0
test bpl, 0x10
jne 0x14006c02a
and ebp, 0x10
shr ebp, 4
mov rcx, rdi
mov edx, ebp
call fcn.140098cd0
test al, al
je 0x14006c06c
mov eax, dword [rdi + 0x298]
cmp eax, 1
jne 0x14006bfa8
cmp byte [rsi + 0x17], 0
mov rdx, rsi
js 0x14006c07e
cmp byte [rsp + 0x77], 0
mov rcx, rbx
jns 0x14006bdc3
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x14006bfb0
jmp 0x14006c06c
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rax
je 0x14006c020
test rax, rax
mov rcx, qword [rdi + 0x2b0]
cmove rax, rcx
dec rax
cmp rcx, rax
jb 0x14006c07b
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + reloc.SHELL32.dll_IsUserAnAdmin]
mov rcx, r15
call fcn.1400506a0
mov rcx, qword [rsp + 0x30]
call fcn.14006c540
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x14006bf0b
jmp 0x14006bf61
mov rcx, rbx
call fcn.140050690
jmp 0x14006bcb1
mov rcx, r15
mov rdx, rbx
lea r8, [rsp + 0x38]
call fcn.140051c50
cmp byte [rsp + 0x77], 0
mov rcx, rbx
js 0x14006bf57
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.140050690
jmp 0x14006bcd2
mov ebp, eax
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
je 0x14006bf94
cmp ebp, 0x12
je 0x14006bcb1
jmp 0x14006c006
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x14006bcd2
xor eax, eax
jmp 0x14006bd3e
mov eax, 7
cmp word [rdi + 0x3e], 0
je 0x14006bd3e
mov eax, 0x20
cmp word [rdi + rax*2], 0
lea rax, [rax + 1]
jne 0x14006bef7
add rax, 0xffffffffffffffe7
jmp 0x14006bd3e
lea rax, [0x1401c0252]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 1
jmp 0x14006be47
mov eax, 3
jmp 0x14006bd3e
mov eax, 5
jmp 0x14006bd3e
mov eax, 4
jmp 0x14006bd3e
mov eax, 1
jmp 0x14006bd3e
mov eax, 2
jmp 0x14006bd3e
mov rcx, qword [rsp + 0x60]
jmp 0x14006be65
test eax, eax
jne 0x14006c086
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 0x14006be47
mov rcx, rsi
lea rdx, [0x1401c0252]
call fcn.140038740
jmp 0x14006beb0
test eax, eax
jne 0x14006c06c
lea rsi, [rsp + 0x38]
mov rcx, r12
mov rdx, rsi
call fcn.140050570
mov rcx, rsi
call fcn.140050690
lea rcx, [rsp + 0x60]
call fcn.140050690
lea rcx, [rsp + 0x80]
call fcn.14009cfd0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140180700
mov rax, r12
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp dword [rdi + 0x29c], 0
je 0x14006bcb1
mov ecx, ebp
call fcn.140066d70
mov dword [rdi + 0x2a0], eax
mov rcx, r12
call fcn.140050550
jmp 0x14006bfd2
cmp byte [rdi + 0x278], 0
je 0x14006bd80
cmp byte [rsp + 0x4f], 0
lea rcx, [rsp + 0x38]
jns 0x14006c048
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x14006bd80
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call fcn.14006c190
jmp 0x14006bd80
lea rcx, [rsp + 0x38]
call fcn.140050690
jmp 0x14006be3a
int3
mov rdx, qword [rsi]
jmp 0x14006bdb4
mov rcx, rbx
call fcn.140050550
jmp 0x14006be57