Function at 0x140004560
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, 0x118
movaps xmmword [rsp + 0x100], xmm7
movaps xmmword [rsp + 0xf0], xmm6
mov qword [rsp + 0x30], rdx
mov rdi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0xe8], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x90]
mov qword [rsi + 0x50], r14
movaps xmm6, xmmword [0x140257270]
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 r15, [rsp + 0x70]
mov rcx, r15
mov r9d, 0x83
call fcn.14007e2d0
mov rcx, rsi
mov rdx, r15
xor r8d, r8d
call fcn.14008e970
lea r13, [rdi + 4]
lea rax, [rdi + 0x2a8]
mov qword [rsp + 0x38], rax
lea rsi, [rdi + 0x260]
lea rbp, [rdi + 0x280]
lea r12, [rdi + 0x30]
xorps xmm7, xmm7
cmp byte [rdi], 0
je 0x14000465b
mov rcx, qword [rdi + 0x258]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400047de
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x1400047de
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rax
je 0x1400049b0
test rax, rax
mov rcx, qword [rdi + 0x2b0]
cmove rax, rcx
dec rax
cmp rcx, rax
jb 0x140004a30
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + 0x2a8]
mov rcx, rsi
call fcn.1400a95b0
mov rcx, qword [rdi + 0x2b0]
mov rdx, qword [rdi + 0x2c0]
test rdx, rdx
jne 0x1400046c3
lea rax, [rcx - 1]
mov qword [rdi + 0x2c0], rax
mov rdx, rcx
jmp 0x1400046d7
lea rax, [rdx - 1]
mov qword [rdi + 0x2c0], rax
cmp rcx, rdx
jb 0x140004a33
cmp rcx, rax
jb 0x140004a36
movabs rcx, 0x8000000000000000
cmp rdx, rcx
je 0x140004a39
mov rbx, rsi
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsi]
lea rax, [rax + rax*2]
lea rcx, [rcx + rax*8]
call fcn.14007cab0
mov rcx, rsi
call fcn.1401831f0
mov qword [rsp + 0x80], r14
movaps xmmword [rsp + 0x70], xmm6
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x14000475d
test eax, eax
mov rsi, rbx
jne 0x140004787
movzx eax, byte [rdi + 0x297]
test al, al
mov rcx, qword [rdi + 0x280]
cmovns rcx, rbp
mov qword [rsp + 0x40], rcx
cmovs rax, qword [rdi + 0x288]
mov qword [rsp + 0x48], rax
mov rcx, rsi
jmp 0x140004778
lea rax, [0x14025d32e]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov rsi, rbx
mov rcx, rbx
mov rdx, r15
lea r8, [rsp + 0x40]
call fcn.14000b920
jmp 0x140004798
movaps xmmword [rsp + 0x70], xmm7
mov qword [rsp + 0x80], 0
cmp byte [rsp + 0x87], 0
mov rcx, r15
jns 0x1400047aa
mov rcx, qword [rsp + 0x70]
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, r15
call fcn.14007cab0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x14000480f
mov qword [rsp + 0x80], r14
movaps xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0x60], r12
test r12, r12
je 0x140004835
mov rcx, r12
call fcn.1400ca328
jmp 0x140004837
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
jne 0x1400048fe
cmp byte [rbp + 0x17], 0
js 0x1400048e6
mov byte [rbp + 0x17], 1
mov rcx, rbp
jmp 0x1400048f8
xor eax, eax
mov qword [rsp + 0x68], rax
mov rcx, r15
lea rdx, [rsp + 0x60]
call fcn.14009f4c0
mov rcx, rdi
mov rdx, r15
call fcn.1400a0e90
test al, al
je 0x140004865
mov rcx, r15
call fcn.14007cab0
jmp 0x140004621
mov rax, r14
mov r14d, dword [rdi + 4]
mov rbx, rax
mov qword [rsp + 0x50], rax
movaps xmmword [rsp + 0x40], xmm6
mov rcx, rsi
lea rdx, [rsp + 0x40]
mov r8, r15
call fcn.1400aff30
test r14b, 0x10
je 0x1400048b5
cmp byte [rdi + 0x278], 0
je 0x1400048b5
cmp byte [rsp + 0x57], 0
lea rcx, [rsp + 0x40]
jns 0x1400048a9
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jae 0x14000492d
and r14d, 0x10
shr r14d, 4
mov rcx, rdi
mov edx, r14d
call fcn.14022a880
test al, al
jne 0x140004919
lea rcx, [rsp + 0x40]
call fcn.14007cab0
mov rcx, r15
call fcn.14007cab0
mov r14, rbx
jmp 0x140004621
mov qword [rdi + 0x288], 1
mov rcx, qword [rdi + 0x280]
mov dword [rcx], 0x2a
cmp eax, 0x12
je 0x140004621
cmp dword [rdi + 0x29c], 0
je 0x140004621
jmp 0x1400049a3
mov rcx, rdi
mov rdx, r15
call fcn.1401175f0
test al, al
je 0x1400048cc
jmp 0x140004a07
mov rcx, qword [rsp + 0x38]
call fcn.14012b360
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b0], rax
jb 0x140004a3c
lea rcx, [rax + rax*2]
shl rcx, 3
add rcx, qword [rdi + 0x2a8]
lea rdx, [rsp + 0x40]
call fcn.14009d860
mov rax, qword [rdi + 0x2b0]
mov rcx, qword [rdi + 0x2c0]
lea rdx, [rax - 1]
lea r8, [rcx + 1]
cmp rcx, rdx
mov ecx, 0
cmovne rcx, r8
mov qword [rdi + 0x2c0], rcx
test rcx, rcx
cmove rcx, rax
dec rcx
cmp rax, rcx
jae 0x1400048b5
int3
mov ecx, eax
call fcn.14010ec10
mov dword [rdi + 0x2a0], eax
xorps xmm0, xmm0
mov rdi, qword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
lea rcx, [rsp + 0x90]
call fcn.14007d0f0
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1400ccfe0
mov rax, rdi
movaps xmm6, xmmword [rsp + 0xf0]
movaps xmm7, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x40]
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rsi
call fcn.14009d860
mov rcx, rsi
call fcn.14007cab0
lea rcx, [rsp + 0x70]
call fcn.14007cab0
jmp 0x1400049c3
int3
int3
int3
int3
int3