Function at 0x140042170
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 [0x1401ac698]
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.14002c260
lea rcx, [rsp + 0xa0]
mov rdx, r12
xor r8d, r8d
call fcn.14003a130
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 0x140042272
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x1400425ec
lea rcx, [rsp + 0x50]
call fcn.1400295c0
mov rcx, r12
call fcn.1400295c0
cmp byte [rdi], 0
je 0x1400422b0
mov rcx, qword [rdi + 0x258]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140042405
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x140042405
mov rdx, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rdx
je 0x140042625
test rdx, rdx
jne 0x1400422d0
mov rdx, qword [rdi + 0x2b0]
add rdx, 0xffffffffffffffff
mov rcx, r15
call fcn.140042b60
mov rcx, qword [rsp + 0x30]
mov rdx, rax
call fcn.1400295d0
mov rdx, qword [rdi + 0x2c0]
test rdx, rdx
jne 0x1400422fc
mov rdx, qword [rdi + 0x2b0]
lea rax, [rdx - 1]
mov qword [rdi + 0x2c0], rax
mov rcx, r15
call fcn.1400427e0
mov rbp, rax
mov rdx, qword [rdi + 0x2c0]
mov rcx, r15
call fcn.1400427e0
mov rcx, r15
mov rdx, rax
mov r8, rbp
call fcn.1400426f0
mov rcx, r15
call fcn.140042c20
mov qword [rsp + 0x90], rbx
movaps xmmword [rsp + 0x80], xmm6
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x140042386
test eax, eax
jne 0x1400423af
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 0x14004239b
lea rax, [0x140164fb2]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov rcx, qword [rsp + 0x30]
mov rdx, r12
lea r8, [rsp + 0x50]
call fcn.14002a550
jmp 0x1400423b7
mov rcx, r12
call fcn.140029490
test byte [rsp + 0x80], 1
lea rcx, [rsp + 0x82]
je 0x1400423d1
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.1400295c0
call rsi
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x140042440
mov qword [rsp + 0x90], rbx
movaps xmmword [rsp + 0x80], xmm6
mov qword [rsp + 0x70], r14
cmp word [r14], 0
je 0x140042460
xor eax, eax
nop
cmp word [rdi + rax*2 + 0x32], 0
lea rax, [rax + 1]
jne 0x140042430
jmp 0x140042462
mov ebp, eax
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
je 0x140042530
cmp ebp, 0x12
je 0x140042272
jmp 0x14004254a
xor eax, eax
mov qword [rsp + 0x78], rax
mov rcx, r12
lea rdx, [rsp + 0x70]
call fcn.1400294e0
mov rcx, rdi
mov rdx, r12
call fcn.140056d70
test al, al
jne 0x14004226a
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.14002ace0
test r13b, 0x10
je 0x140042580
cmp byte [rdi + 0x278], 0
je 0x140042580
test byte [rsp + 0x50], 1
lea rcx, [rsp + 0x52]
je 0x1400424d2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x140042580
mov edx, 1
mov rcx, r15
call fcn.1400428a0
mov rdx, qword [rdi + 0x2c0]
mov rcx, r15
call fcn.1400427e0
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.1400294b0
mov rax, qword [rdi + 0x2b0]
mov rdx, qword [rdi + 0x2c0]
add rax, 0xffffffffffffffff
cmp rdx, rax
jne 0x14004255c
mov qword [rdi + 0x2c0], 0
jmp 0x14004256b
mov rcx, qword [rsp + 0x48]
lea rdx, [0x140164fb2]
call fcn.140022b94
cmp ebp, 0x12
je 0x140042272
cmp dword [rdi + 0x29c], 0
je 0x140042272
jmp 0x140042618
mov rcx, rdx
inc rcx
mov qword [rdi + 0x2c0], rcx
jne 0x14004256e
mov rdx, rax
mov rcx, r15
call fcn.140042b60
nop word cs:[rax + rax]
and r13d, 0x10
shr r13d, 4
mov rcx, rdi
mov edx, r13d
call fcn.140056eb0
test al, al
mov r13, rbp
je 0x140042260
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x1400425b3
test eax, eax
jne 0x140042260
jmp 0x1400425ec
mov rax, qword [rsp + 0x48]
test byte [rax], 1
mov rdx, qword [rsp + 0x40]
je 0x1400425c9
mov rdx, qword [rdi + 0x290]
test byte [rsp + 0x80], 1
lea rcx, [rsp + 0x82]
je 0x140042251
mov rcx, qword [rsp + 0x90]
jmp 0x140042251
lea rsi, [rsp + 0x50]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400294b0
mov rcx, rsi
call fcn.1400295c0
lea rcx, [rsp + 0x80]
call fcn.1400295c0
jmp 0x140042632
mov ecx, ebp
call fcn.14003fe70
mov dword [rdi + 0x2a0], eax
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140029490
lea rcx, [rsp + 0xa0]
call fcn.14003a270
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.14012cde0
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