Function at 0x140057220
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, 0x128
movaps xmmword [rsp + 0x110], xmm6
mov qword [rsp + 0x38], rdx
mov rdi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x108], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0xb0]
mov qword [rsi + 0x50], rax
movaps xmm6, xmmword [0x1402961a0]
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 r13, [rsp + 0x90]
mov rcx, r13
mov r9d, 0x82
call fcn.14012aa00
mov rcx, rsi
mov rdx, r13
xor r8d, r8d
call fcn.140131050
lea r12, [rdi + 4]
lea rax, [rdi + 0x30]
mov qword [rsp + 0x58], rax
lea r15, [rdi + 0x260]
lea rbp, [rdi + 0x280]
lea rax, [rdi + reloc.SHELL32.dll_IsUserAnAdmin]
mov qword [rsp + 0x40], rax
mov r14, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov qword [rsp + 0x48], rbp
cmp byte [rdi], 0
je 0x140057413
mov rcx, qword [rdi + 0x258]
mov rdx, r12
call rsi
test eax, eax
je 0x140057527
call r14
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x1400574ac
movabs rsi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rsi
movaps xmmword [rsp + 0x90], xmm6
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x80], rcx
test rcx, rcx
je 0x1400576ca
call fcn.14015ded4
mov qword [rsp + 0x88], rax
mov rbx, r13
mov rcx, r13
lea rdx, [rsp + 0x80]
call fcn.140049ea0
mov rcx, rdi
mov rdx, r13
call fcn.1400adab0
test al, al
jne 0x140057490
mov ebp, dword [rdi + 4]
mov qword [rsp + 0x70], rsi
movaps xmmword [rsp + 0x60], xmm6
mov rsi, r15
mov rcx, r15
lea rdx, [rsp + 0x60]
mov r8, rbx
call fcn.14004b780
test bpl, 0x10
jne 0x14005765e
and ebp, 0x10
shr ebp, 4
mov rcx, rdi
mov edx, ebp
call fcn.1400adc10
test al, al
mov qword [rsp + 0x50], rsi
mov rbp, qword [rsp + 0x48]
je 0x1400576a0
mov eax, dword [rdi + 0x298]
cmp eax, 1
jne 0x1400575f0
cmp byte [rbp + 0x17], 0
mov rdx, rbp
js 0x1400576dc
cmp byte [rsp + 0xa7], 0
mov rcx, r13
jns 0x1400573ff
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x1400575f8
jmp 0x1400576a0
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rax
je 0x1400575cd
test rax, rax
mov rcx, qword [rdi + 0x2b0]
cmove rax, rcx
dec rax
cmp rcx, rax
jb 0x1400576d9
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + reloc.SHELL32.dll_IsUserAnAdmin]
mov rcx, r15
call fcn.140049f80
mov rcx, qword [rsp + 0x40]
call fcn.140057a70
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rax
movaps xmmword [rsp + 0x90], xmm6
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x140057544
jmp 0x140057580
mov rcx, rbx
call fcn.1401295d0
mov rbp, qword [rsp + 0x48]
mov r13, rbx
mov rsi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1400572f1
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
mov rsi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x140057568
cmp eax, 0x12
je 0x1400572f1
jmp 0x1400575b3
mov rcx, r15
mov rdx, r13
lea r8, [rsp + 0x60]
call fcn.140129920
cmp byte [rsp + 0xa7], 0
mov rcx, r13
js 0x14005755e
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, r13
call fcn.1401295d0
jmp 0x14005730e
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x14005730e
lea rax, [0x14029e386]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
jmp 0x1400574d1
mov rcx, qword [rsp + 0x90]
jmp 0x1400574ee
cmp byte [rbp + 0x17], 0
js 0x1400575dc
mov byte [rbp + 0x17], 1
mov rcx, rbp
mov dword [rcx], 0x2a
jmp 0x1400574c3
test eax, eax
jne 0x1400576e5
movzx eax, byte [rdi + 0x297]
test al, al
mov rcx, qword [rdi + 0x280]
cmovns rcx, rbp
mov qword [rsp + 0x60], rcx
cmovs rax, qword [rdi + 0x288]
mov qword [rsp + 0x68], rax
jmp 0x1400574d1
cmp dword [rdi + 0x29c], 0
je 0x1400572f1
mov ecx, eax
call fcn.140052d50
mov dword [rdi + 0x2a0], eax
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140049e20
jmp 0x140057622
mov qword [rdi + 0x288], 1
mov rcx, qword [rdi + 0x280]
jmp 0x140057575
test eax, eax
jne 0x1400576a0
lea rsi, [rsp + 0x60]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140049e40
mov rcx, rsi
call fcn.1401295d0
lea rcx, [rsp + 0x90]
call fcn.1401295d0
lea rcx, [rsp + 0xb0]
call fcn.1401310b0
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140143020
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rdi + 0x278], 0
je 0x1400573ac
cmp byte [rsp + 0x77], 0
lea rcx, [rsp + 0x60]
jns 0x14005767c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x1400573ac
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call fcn.1400577f0
jmp 0x1400573ac
lea rcx, [rsp + 0x60]
call fcn.1401295d0
mov rcx, r13
call fcn.1401295d0
mov rsi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov r15, qword [rsp + 0x50]
mov r14, qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400572f1
mov qword [rsp + 0x88], 0
int3
int3
mov rdx, qword [rbp]
jmp 0x1400573ea
lea rcx, [rsp + 0x90]
call fcn.140049e20
jmp 0x1400574e1