Function at 0x140057170
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 [0x14031d040]
xor rax, rsp
mov qword [rsp + 0xd8], rax
movaps xmm6, xmmword [0x1402825c0]
lea r14, [rsp + 0x80]
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.....chromium_base_files_file_enumerator_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x8b
call fcn.1401bdb50
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
call fcn.1401b2b30
lea rax, [rdi + reloc.SHELL32.dll_IsUserAnAdmin]
mov qword [rsp + 0x48], rax
lea rax, [rdi + 0x260]
mov qword [rsp + 0x40], rax
lea rax, [rdi + 0x280]
mov qword [rsp + 0x38], rax
lea r12, [rdi + 4]
lea r13, [rdi + 0x30]
mov r14, qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov rbp, qword [sym.imp.KERNEL32.dll_FindClose]
movabs r15, 0xaaaaaaaaaaaaaaaa
cmp byte [rdi], 0
je 0x140057446
mov rcx, qword [rdi + 0x258]
mov rdx, r12
call r14
test eax, eax
je 0x140057391
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x1400573aa
mov qword [rsp + 0x70], r15
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x50], r13
mov rcx, r13
call fcn.14021cf84
mov qword [rsp + 0x58], rax
mov rcx, rbx
lea rdx, [rsp + 0x50]
call fcn.1401be7c0
mov rcx, rdi
mov rdx, rbx
call fcn.1400e3d30
test al, al
jne 0x140057384
mov r14, qword [rsp + 0x48]
mov ebp, dword [r12]
mov qword [rsi + 0x10], r15
movups xmmword [rsi], xmm6
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
mov r8, rbx
call fcn.140068db0
test bpl, 0x10
jne 0x1400573ec
and ebp, 0x10
shr ebp, 4
mov rcx, rdi
mov edx, ebp
call fcn.1400e3e50
test al, al
je 0x14005736e
mov eax, dword [rdi + 0x298]
cmp eax, 1
jne 0x140057365
cmp byte [rdi + 0x297], 0
mov rdx, qword [rsp + 0x38]
js 0x1400575ba
cmp byte [rsp + 0x77], 0
mov rcx, rbx
jns 0x140057314
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
jne 0x14005736e
lea rcx, [rsp + 0x60]
call fcn.1401be900
lea rcx, [rsp + 0x80]
call fcn.1401b2bb0
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1401f08b0
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
test eax, eax
je 0x14005731f
jmp 0x1400575b0
mov rcx, rsi
call fcn.1401be900
mov r14, qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov rbp, qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call fcn.1401be900
jmp 0x140057238
mov rcx, qword [rdi + 0x258]
call rbp
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x140057256
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
jne 0x1400573d1
cmp byte [rdi + 0x297], 0
js 0x140057425
mov byte [rdi + 0x297], 1
mov rcx, qword [rsp + 0x38]
mov dword [rcx], 0x2a
cmp eax, 0x12
je 0x140057238
cmp dword [rdi + 0x29c], 0
je 0x140057238
jmp 0x14005759e
cmp byte [rdi + 0x278], 1
jne 0x1400572d0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140057405
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x1400572d0
mov rcx, r14
mov rdx, rsi
call fcn.140057700
jmp 0x1400572d0
mov qword [rdi + 0x288], 1
mov rcx, qword [rdi + 0x280]
jmp 0x1400573cb
mov rcx, rsi
call fcn.1401be760
jmp 0x140057329
mov rax, qword [rdi + 0x2b8]
mov rcx, qword [rdi + 0x2c0]
cmp rax, rcx
je 0x140057439
mov r8, qword [rdi + 0x2b0]
mov edx, 0
cmova rdx, r8
sub rdx, rax
add rdx, rcx
test rdx, rdx
jle 0x140057598
add rax, rdx
dec rax
xor edx, edx
div r8
cmp rdx, rcx
je 0x14005759b
mov rax, qword [rdi + reloc.SHELL32.dll_IsUserAnAdmin]
lea rcx, [rdx + rdx*2]
lea rdx, [rax + rcx*8]
mov rcx, qword [rsp + 0x40]
call fcn.140067b50
mov rcx, qword [rsp + 0x48]
call fcn.140057ad0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmmword [rsp + 0x60], xmm6
mov eax, dword [rdi + 0x298]
test eax, eax
jne 0x140057574
movsx rcx, byte [rdi + 0x297]
mov rax, qword [rsp + 0x38]
test rcx, rcx
jns 0x1400574f1
mov rcx, qword [rdi + 0x288]
mov rax, qword [rdi + 0x280]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rcx
test rcx, rcx
js 0x140057596
sete cl
test rax, rax
setne al
or al, cl
je 0x140057596
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
lea r8, [rsp + 0xc8]
call fcn.1401bf380
cmp byte [rsp + 0x77], 0
mov rcx, rbx
jns 0x14005753b
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
mov r8, r12
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rdi + 0x258], rax
mov byte [rdi], 1
mov rcx, rbx
call fcn.1401be900
jmp 0x140057256
cmp eax, 1
jne 0x1400575c7
lea rax, [0x1402aa0f8]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 1
jmp 0x140057517
ud2
int3
int3
mov ecx, eax
call fcn.140055dd0
mov dword [rdi + 0x2a0], eax
jmp 0x140057439
call fcn.1402547f0
jmp 0x14005736e
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
jmp 0x140057305
call fcn.1402547f0
lea rcx, [rsp + 0x60]
call fcn.1401be760
jmp 0x14005752c