Function at 0x140012560
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, 0x138
movaps xmmword [rsp + 0x120], xmm6
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x1401f5028]
xor rax, rsp
mov qword [rsp + 0x118], rax
movaps xmm6, xmmword [0x1401c8a80]
lea rsi, [rsp + 0xc0]
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 rbx, [rsp + 0xa0]
mov rcx, rbx
mov r9d, 0x82
call fcn.1400d4e70
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400d4e90
lea r13, [rdi + 4]
lea r15, [rdi + 0x30]
lea rax, [rdi + 0x260]
mov qword [rsp + 0x58], rax
lea rsi, [rdi + 0x280]
lea rax, [rdi + 0x2b8]
mov qword [rsp + 0x50], rax
lea rax, [rdi + 0x2c0]
mov qword [rsp + 0x40], rax
lea rax, [rdi + 0x2a8]
mov qword [rsp + 0x68], rax
lea rbp, [rsp + 0x90]
mov r12, qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp byte [rdi], 0
je 0x140012769
mov rcx, qword [rdi + 0x258]
mov rdx, r13
call r12
test eax, eax
je 0x1400128d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x1400128b4
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rax
movaps xmmword [rsp + 0xa0], xmm6
mov qword [rsp + 0x90], r15
test r15, r15
je 0x140012b97
mov rcx, r15
call fcn.1400f080c
mov qword [rsp + 0x98], rax
mov rcx, rbx
mov rdx, rbp
call fcn.1400dcf00
mov rcx, rdi
mov rdx, rbx
call fcn.140012c70
test al, al
jne 0x14001285d
mov qword [rsp + 0x48], r15
mov r8, rbx
mov r15, r12
mov r12, rbp
mov ebp, dword [rdi + 4]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
movaps xmmword [rsp + 0x70], xmm6
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x70]
call fcn.140012c10
test bpl, 0x10
jne 0x140012b23
and ebp, 0x10
shr ebp, 4
mov rcx, rdi
mov edx, ebp
call fcn.140012c00
test al, al
mov rbp, r12
mov r12, r15
mov r15, qword [rsp + 0x48]
je 0x140012b7c
mov eax, dword [rdi + 0x298]
cmp eax, 1
jne 0x140012a0b
cmp byte [rsi + 0x17], 0
mov rdx, rsi
js 0x140012b9e
cmp byte [rsp + 0xb7], 0
mov rcx, rbx
jns 0x140012755
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x140012a13
jmp 0x140012b7c
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rax
je 0x140012afb
test rax, rax
mov rcx, qword [rdi + 0x2b0]
cmove rax, rcx
dec rax
cmp rcx, rax
jb 0x140012b8e
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + 0x2a8]
mov rcx, qword [rsp + 0x58]
call fcn.14001fdb0
mov rcx, qword [rdi + 0x2b0]
mov rdx, qword [rdi + 0x2c0]
test rdx, rdx
je 0x140012ba6
lea rax, [rdx - 1]
mov rbp, qword [rsp + 0x40]
mov qword [rbp], rax
cmp rcx, rdx
jb 0x140012b8b
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rsi
xor ebp, ebp
cmp rcx, rax
jb 0x140012b91
mov r14, qword [rsp + 0x58]
movabs rcx, 0x8000000000000000
cmp rdx, rcx
je 0x140012b94
mov rcx, qword [rdi + 0x2a8]
lea rax, [rax + rax*2]
lea rcx, [rcx + rax*8]
call fcn.1400dcad0
mov rax, qword [rdi + 0x2b0]
cmp rax, 5
jae 0x14001292b
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rax
movaps xmmword [rsp + 0xa0], xmm6
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x1400128ef
jmp 0x140012a74
mov rcx, rbx
call fcn.1400dcad0
jmp 0x140012635
cmp byte [rsp + 0xb7], 0
mov rcx, rbx
js 0x1400129fe
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
mov r8, r13
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rdi + 0x258], rax
mov byte [rdi], 1
mov rcx, rbx
call fcn.1400dcad0
jmp 0x140012653
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
je 0x140012ac9
cmp eax, 0x12
je 0x140012635
jmp 0x140012ae1
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x140012653
lea rax, [0x1401d1906]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
mov rcx, r14
mov rdx, rbx
lea r8, [rsp + 0x70]
call fcn.1400db680
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
lea rbp, [rsp + 0x90]
jmp 0x14001286a
lea rcx, [rax - 1]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rdx]
mov rdx, qword [rsp + 0x40]
mov rsi, qword [rdx]
cmp rsi, r8
cmovae rax, rbp
sub rax, r8
add rax, rsi
mov rdx, rcx
sub rdx, rax
cmp rdx, rax
jb 0x14001282f
mov rbp, rax
shr rbp, 2
add rbp, rax
cmp rbp, 3
mov eax, 3
cmovbe rbp, rax
cmp rbp, rcx
jae 0x14001282f
inc rbp
mov rax, rbp
mov ecx, 0x18
mul rcx
jo 0x140012bdb
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x48], rsi
mov rcx, rax
call fcn.1400e67c0
mov rsi, rax
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rbp
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
mov r9, rbx
call fcn.140012460
mov rcx, qword [rdi + 0x2a8]
call fcn.1400dec10
mov qword [rdi + 0x2a8], rsi
mov qword [rdi + 0x2b0], rbp
jmp 0x14001282f
mov rcx, qword [rsp + 0xa0]
jmp 0x14001287b
test eax, eax
jne 0x140012b7c
lea rsi, [rsp + 0x70]
mov rcx, r14
mov rdx, rsi
call fcn.1400dec90
mov rcx, rsi
call fcn.1400dcad0
lea rcx, [rsp + 0xa0]
call fcn.1400dcad0
lea rcx, [rsp + 0xc0]
call fcn.1400dcae0
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.1400f32c0
mov rax, r14
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test eax, eax
lea rbp, [rsp + 0x90]
jne 0x140012bba
movzx eax, byte [rdi + 0x297]
test al, al
mov rcx, qword [rdi + 0x280]
mov rsi, qword [rsp + 0x30]
cmovns rcx, rsi
mov qword [rsp + 0x70], rcx
cmovs rax, qword [rdi + 0x288]
mov qword [rsp + 0x78], rax
mov rcx, r14
mov rdx, rbx
lea r8, [rsp + 0x70]
call fcn.1400db680
mov r14, qword [rsp + 0x38]
jmp 0x14001286a
cmp byte [rsi + 0x17], 0
js 0x140012b0f
mov byte [rsi + 0x17], 1
mov rcx, rsi
mov dword [rcx], 0x2a
jmp 0x1400128c4
cmp dword [rdi + 0x29c], 0
je 0x140012635
mov ecx, eax
call fcn.140016570
mov dword [rdi + 0x2a0], eax
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x140012a38
mov qword [rdi + 0x288], 1
mov rcx, qword [rdi + 0x280]
jmp 0x140012ad6
cmp byte [rdi + 0x278], 0
je 0x140012701
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rsi
cmp byte [rsp + 0x87], 0
lea rcx, [rsp + 0x70]
jns 0x140012b4e
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
jb 0x140012701
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.140012300
jmp 0x140012701
lea rcx, [rsp + 0x70]
call fcn.1400dcad0
jmp 0x14001285d
int3
int3
int3
int3
xor eax, eax
jmp 0x14001269a
mov rdx, qword [rsi]
jmp 0x140012740
lea rax, [rcx - 1]
mov rdx, qword [rsp + 0x40]
mov qword [rdx], rax
mov rdx, rcx
jmp 0x1400127dd
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], 0
mov rsi, qword [rsp + 0x30]
jmp 0x140012abf
int3