Function at 0x140042880
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], xmm6
mov qword [rsp + 0x38], rdx
mov rdi, rcx
mov rax, qword [0x1400d7618]
xor rax, rsp
mov qword [rsp + 0xf8], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
lea rdx, str.Next
lea r8, str..._.._base_files_file_enumerator_win.cc
lea r12, [rsp + 0x80]
mov rcx, r12
mov r9d, 0x82
call fcn.1400418b0
lea rcx, [rsp + 0xa0]
mov rdx, r12
xor r8d, r8d
call fcn.1400418e0
lea r13, [rdi + 4]
lea r15, [rdi + 0x2a8]
lea rax, [rdi + 0x260]
mov qword [rsp + 0x30], rax
lea rax, [rdi + 0x280]
mov qword [rsp + 0x48], rax
lea rax, [rdi + 0x282]
mov qword [rsp + 0x40], rax
lea r14, [rdi + 0x30]
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140042982
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x140042cfc
lea rcx, [rsp + 0x50]
call fcn.140025440
mov rcx, r12
call fcn.140025440
cmp byte [rdi], 0
je 0x1400429c0
mov rcx, qword [rdi + 0x258]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140042b15
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x140042b15
mov rdx, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rdx
je 0x140042d35
test rdx, rdx
jne 0x1400429e0
mov rdx, qword [rdi + 0x2b0]
add rdx, 0xffffffffffffffff
mov rcx, r15
call fcn.140043270
mov rcx, qword [rsp + 0x30]
mov rdx, rax
call fcn.140025450
mov rdx, qword [rdi + 0x2c0]
test rdx, rdx
jne 0x140042a0c
mov rdx, qword [rdi + 0x2b0]
lea rax, [rdx - 1]
mov qword [rdi + 0x2c0], rax
mov rcx, r15
call fcn.140042ef0
mov rbp, rax
mov rdx, qword [rdi + 0x2c0]
mov rcx, r15
call fcn.140042ef0
mov rcx, r15
mov rdx, rax
mov r8, rbp
call fcn.140042e00
mov rcx, r15
call fcn.140043330
mov qword [rsp + 0x90], rbx
movaps xmmword [rsp + 0x80], xmm6
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x140042a96
test eax, eax
jne 0x140042abf
movzx eax, byte [rdi + 0x280]
mov rcx, rax
shr rcx, 1
test al, 1
mov rax, qword [rdi + 0x290]
cmove rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
cmovne rcx, qword [rdi + 0x288]
mov qword [rsp + 0x58], rcx
jmp 0x140042aab
lea rax, [0x1400b3bfa]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov rcx, qword [rsp + 0x30]
mov rdx, r12
lea r8, [rsp + 0x50]
call fcn.1400263d0
jmp 0x140042ac7
mov rcx, r12
call fcn.140025310
test byte [rsp + 0x80], 1
lea rcx, [rsp + 0x82]
je 0x140042ae1
mov rcx, qword [rsp + 0x90]
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, r12
call fcn.140025440
call rsi
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x140042b50
mov qword [rsp + 0x90], rbx
movaps xmmword [rsp + 0x80], xmm6
mov qword [rsp + 0x70], r14
cmp word [r14], 0
je 0x140042b70
xor eax, eax
nop
cmp word [rdi + rax*2 + 0x32], 0
lea rax, [rax + 1]
jne 0x140042b40
jmp 0x140042b72
mov ebp, eax
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
je 0x140042c40
cmp ebp, 0x12
je 0x140042982
jmp 0x140042c5a
xor eax, eax
mov qword [rsp + 0x78], rax
mov rcx, r12
lea rdx, [rsp + 0x70]
call fcn.140025360
mov rcx, rdi
mov rdx, r12
call fcn.140043430
test al, al
jne 0x14004297a
mov rbp, r13
mov r13d, dword [rdi + 4]
mov qword [rsp + 0x60], rbx
movaps xmmword [rsp + 0x50], xmm6
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8, r12
call fcn.140026b60
test r13b, 0x10
je 0x140042c90
cmp byte [rdi + 0x278], 0
je 0x140042c90
test byte [rsp + 0x50], 1
lea rcx, [rsp + 0x52]
je 0x140042be2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x140042c90
mov edx, 1
mov rcx, r15
call fcn.140042fb0
mov rdx, qword [rdi + 0x2c0]
mov rcx, r15
call fcn.140042ef0
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140025330
mov rax, qword [rdi + 0x2b0]
mov rdx, qword [rdi + 0x2c0]
add rax, 0xffffffffffffffff
cmp rdx, rax
jne 0x140042c6c
mov qword [rdi + 0x2c0], 0
jmp 0x140042c7b
mov rcx, qword [rsp + 0x48]
lea rdx, [0x1400b3bfa]
call fcn.14002068a
cmp ebp, 0x12
je 0x140042982
cmp dword [rdi + 0x29c], 0
je 0x140042982
jmp 0x140042d28
mov rcx, rdx
inc rcx
mov qword [rdi + 0x2c0], rcx
jne 0x140042c7e
mov rdx, rax
mov rcx, r15
call fcn.140043270
nop word cs:[rax + rax]
and r13d, 0x10
shr r13d, 4
mov rcx, rdi
mov edx, r13d
call fcn.140043570
test al, al
mov r13, rbp
je 0x140042970
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x140042cc3
test eax, eax
jne 0x140042970
jmp 0x140042cfc
mov rax, qword [rsp + 0x48]
test byte [rax], 1
mov rdx, qword [rsp + 0x40]
je 0x140042cd9
mov rdx, qword [rdi + 0x290]
test byte [rsp + 0x80], 1
lea rcx, [rsp + 0x82]
je 0x140042961
mov rcx, qword [rsp + 0x90]
jmp 0x140042961
lea rsi, [rsp + 0x50]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140025330
mov rcx, rsi
call fcn.140025440
lea rcx, [rsp + 0x80]
call fcn.140025440
jmp 0x140042d42
mov ecx, ebp
call fcn.140041fc0
mov dword [rdi + 0x2a0], eax
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140025310
lea rcx, [rsp + 0xa0]
call fcn.140041a20
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140083c20
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret