Function at 0x140042440
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 [0x1401af6a8]
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 0x140042542
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x1400428bc
lea rcx, [rsp + 0x50]
call fcn.1400295c0
mov rcx, r12
call fcn.1400295c0
cmp byte [rdi], 0
je 0x140042580
mov rcx, qword [rdi + 0x258]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400426d5
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x1400426d5
mov rdx, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rdx
je 0x1400428f5
test rdx, rdx
jne 0x1400425a0
mov rdx, qword [rdi + 0x2b0]
add rdx, 0xffffffffffffffff
mov rcx, r15
call fcn.140042e30
mov rcx, qword [rsp + 0x30]
mov rdx, rax
call fcn.1400295d0
mov rdx, qword [rdi + 0x2c0]
test rdx, rdx
jne 0x1400425cc
mov rdx, qword [rdi + 0x2b0]
lea rax, [rdx - 1]
mov qword [rdi + 0x2c0], rax
mov rcx, r15
call fcn.140042ab0
mov rbp, rax
mov rdx, qword [rdi + 0x2c0]
mov rcx, r15
call fcn.140042ab0
mov rcx, r15
mov rdx, rax
mov r8, rbp
call fcn.1400429c0
mov rcx, r15
call fcn.140042ef0
mov qword [rsp + 0x90], rbx
movaps xmmword [rsp + 0x80], xmm6
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x140042656
test eax, eax
jne 0x14004267f
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 0x14004266b
lea rax, [0x140166fe6]
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 0x140042687
mov rcx, r12
call fcn.140029490
test byte [rsp + 0x80], 1
lea rcx, [rsp + 0x82]
je 0x1400426a1
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 0x140042710
mov qword [rsp + 0x90], rbx
movaps xmmword [rsp + 0x80], xmm6
mov qword [rsp + 0x70], r14
cmp word [r14], 0
je 0x140042730
xor eax, eax
nop
cmp word [rdi + rax*2 + 0x32], 0
lea rax, [rax + 1]
jne 0x140042700
jmp 0x140042732
mov ebp, eax
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
je 0x140042800
cmp ebp, 0x12
je 0x140042542
jmp 0x14004281a
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.140057040
test al, al
jne 0x14004253a
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 0x140042850
cmp byte [rdi + 0x278], 0
je 0x140042850
test byte [rsp + 0x50], 1
lea rcx, [rsp + 0x52]
je 0x1400427a2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x140042850
mov edx, 1
mov rcx, r15
call fcn.140042b70
mov rdx, qword [rdi + 0x2c0]
mov rcx, r15
call fcn.140042ab0
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 0x14004282c
mov qword [rdi + 0x2c0], 0
jmp 0x14004283b
mov rcx, qword [rsp + 0x48]
lea rdx, [0x140166fe6]
call fcn.140022b94
cmp ebp, 0x12
je 0x140042542
cmp dword [rdi + 0x29c], 0
je 0x140042542
jmp 0x1400428e8
mov rcx, rdx
inc rcx
mov qword [rdi + 0x2c0], rcx
jne 0x14004283e
mov rdx, rax
mov rcx, r15
call fcn.140042e30
nop word cs:[rax + rax]
and r13d, 0x10
shr r13d, 4
mov rcx, rdi
mov edx, r13d
call fcn.140057180
test al, al
mov r13, rbp
je 0x140042530
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x140042883
test eax, eax
jne 0x140042530
jmp 0x1400428bc
mov rax, qword [rsp + 0x48]
test byte [rax], 1
mov rdx, qword [rsp + 0x40]
je 0x140042899
mov rdx, qword [rdi + 0x290]
test byte [rsp + 0x80], 1
lea rcx, [rsp + 0x82]
je 0x140042521
mov rcx, qword [rsp + 0x90]
jmp 0x140042521
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 0x140042902
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.14012d670
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