Function at 0x1400376a0
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 rbp, rdx
mov rdi, rcx
mov rax, qword [0x14022c040]
xor rax, rsp
mov qword [rsp + 0x118], rax
movaps xmm6, xmmword [0x1401fa990]
lea r14, [rsp + 0xb0]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.Next
lea r8, str....._base_files_file_enumerator_win.cc
lea rbx, [rsp + 0x90]
mov rcx, rbx
mov r9d, 0x8b
call fcn.1400d5a00
mov rcx, r14
xor edx, edx
xor r8d, r8d
call fcn.1400a5640
mov qword [rsp + 0xf8], 0xb
mov al, byte [0x14023df8b]
test al, al
jne 0x140037ddf
lea r15, [rdi + 0x260]
lea r8, [rdi + 4]
lea rax, [rdi + 0x30]
mov qword [rsp + 0x78], rax
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
lea rax, [rdi + 0x280]
mov qword [rsp + 0x68], rax
movabs rsi, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x80]
lea rax, [rdi + 0x2a8]
mov qword [rsp + 0x60], rax
lea rax, [rdi + 0x2b8]
mov qword [rsp + 0x48], rax
lea rax, [rdi + 0x2c0]
mov qword [rsp + 0x40], rax
cmp byte [rdi], 0
je 0x140037a25
mov rcx, qword [rdi + 0x258]
mov r14, r8
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140037951
call r13
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x1400379a9
mov qword [rsp + 0xa0], rsi
movaps xmmword [rsp + 0x90], xmm6
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x80], rcx
call fcn.1401341e0
mov qword [rsp + 0x88], rax
mov rcx, rbx
mov rdx, r12
call fcn.1400f4790
mov rcx, rdi
mov rdx, rbx
call fcn.140037e70
test al, al
mov r8, r14
jne 0x140037983
mov r14, r13
mov r13d, dword [r8]
movsx rcx, byte [rsp + 0xa7]
test rcx, rcx
cmovs rcx, qword [rsp + 0x98]
mov qword [rbp + 0x10], rsi
mov rax, qword [rsp + 0x90]
cmovns rax, rbx
movups xmmword [rbp], xmm6
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x110], rcx
test rcx, rcx
js 0x140037da9
mov qword [rsp + 0x50], r8
sete cl
test rax, rax
setne al
or al, cl
je 0x140037da9
mov qword [rsp + 0x58], r15
mov rcx, r15
mov rdx, rbp
lea r8, [rsp + 0x108]
call fcn.1400f4ad0
mov ebx, 1
test r13b, 0x10
mov r13, r14
jne 0x140037ac8
test dword [rdi + 0x27c], ebx
mov r15, qword [rsp + 0x58]
lea rbx, [rsp + 0x90]
mov r8, qword [rsp + 0x50]
je 0x14003796e
mov eax, dword [rdi + 0x298]
cmp eax, 1
jne 0x140037948
cmp byte [rdi + 0x297], 0
mov rdx, qword [rsp + 0x68]
js 0x140037dc6
mov r14, r8
cmp byte [rsp + 0xa7], 0
mov rcx, rbx
jns 0x1400378f8
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
mov r8, r14
jne 0x14003796e
cmp byte [rsp + 0xa7], 0
jns 0x14003791d
mov rcx, qword [rsp + 0x90]
call fcn.140133b2c
lea rcx, [rsp + 0xb0]
call fcn.1401009d0
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x1400379f2
call fcn.1401363f0
int3
test eax, eax
je 0x140037906
jmp 0x140037e11
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x1400377c1
cmp byte [rbp + 0x17], 0
jns 0x140037983
mov rcx, qword [rbp]
mov r14, r8
call fcn.140133b2c
mov r8, r14
cmp byte [rsp + 0xa7], 0
jns 0x14003779d
mov rcx, qword [rsp + 0x90]
mov r14, r8
call fcn.140133b2c
mov r8, r14
jmp 0x14003779d
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
mov r8, r14
jne 0x1400379d7
cmp byte [rdi + 0x297], 0
js 0x140037ab1
mov byte [rdi + 0x297], 1
mov rcx, qword [rsp + 0x68]
mov dword [rcx], 0x2a
cmp eax, 0x12
je 0x14003779d
cmp dword [rdi + 0x29c], 0
je 0x14003779d
jmp 0x140037db4
mov rax, rbp
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
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], 0
jmp 0x14003791d
mov rax, qword [rdi + 0x2b8]
mov rcx, qword [rdi + 0x2c0]
cmp rax, rcx
je 0x140037a11
mov r14, r8
mov r8, qword [rdi + 0x2b0]
mov edx, 0
cmova rdx, r8
sub rdx, rax
add rdx, rcx
test rdx, rdx
jle 0x140037dab
add rax, rdx
dec rax
xor edx, edx
div r8
cmp rdx, rcx
je 0x140037dae
mov rax, qword [rdi + 0x2a8]
lea rcx, [rdx + rdx*2]
lea rdx, [rax + rcx*8]
cmp r15, rdx
je 0x140037b18
cmp byte [rdi + 0x277], 0
movzx r8d, byte [rdx + 0x17]
js 0x140037d86
test r8b, r8b
jns 0x140037b09
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, r15
mov rdx, rax
call fcn.14000a650
jmp 0x140037b18
mov qword [rdi + 0x288], 1
mov rcx, qword [rdi + 0x280]
jmp 0x1400379d1
mov ebx, 2
cmp byte [rdi + 0x278], 1
jne 0x1400378a5
mov rcx, rbp
cmp byte [rbp + 0x17], 0
jns 0x140037ae7
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x1400378a5
mov rcx, qword [rsp + 0x60]
mov rdx, rbp
call fcn.140037270
jmp 0x1400378a5
mov rax, qword [rdx + 0x10]
mov qword [r15 + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [r15], xmm0
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
mov rax, qword [rsp + 0x48]
cmp qword [rax], r8
je 0x140037db1
test r8, r8
je 0x140037dd3
lea rdx, [r8 - 1]
mov qword [rdi + 0x2c0], rdx
mov rcx, qword [rsp + 0x60]
call fcn.140037fa0
mov rax, qword [rdi + 0x2b0]
cmp rax, 5
jae 0x140037c66
mov qword [rsp + 0xa0], rsi
movaps xmmword [rsp + 0x90], xmm6
mov eax, dword [rdi + 0x298]
test eax, eax
jne 0x140037c3d
movsx rax, byte [rdi + 0x297]
test rax, rax
js 0x140037b91
lea rcx, [rdi + 0x280]
jmp 0x140037b9f
mov rax, qword [rdi + 0x288]
mov rcx, qword [rdi + 0x280]
mov qword [rsp + 0x108], rcx
mov qword [rsp + 0x110], rax
test rax, rax
js 0x140037da9
sete al
test rcx, rcx
setne cl
or cl, al
je 0x140037da9
mov rcx, r15
mov rdx, rbx
lea r8, [rsp + 0x108]
call fcn.1400f4ad0
cmp byte [rsp + 0xa7], 0
mov rcx, rbx
mov r8, r14
jns 0x140037bf4
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rdi + 0x258], rax
mov byte [rdi], 1
cmp byte [rsp + 0xa7], 0
jns 0x1400377c1
mov rcx, qword [rsp + 0x90]
call fcn.140133b2c
jmp 0x1400377c1
cmp eax, 1
jne 0x140037e21
lea rax, [0x14020a99e]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x110], 1
jmp 0x140037bc9
mov rcx, qword [rsp + 0x48]
mov r9, qword [rcx]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rcx]
cmp r9, r8
mov ecx, 0
cmova rcx, rax
sub rcx, r9
add rcx, r8
dec rax
mov rdx, rax
sub rdx, rcx
cmp rdx, rcx
jb 0x140037b5d
mov rdx, rcx
shr rdx, 2
add rdx, rcx
cmp rdx, 4
mov r10d, 3
cmovae r10, rdx
cmp r10, rax
jae 0x140037b5d
inc r10
mov ecx, 0x18
mov rax, r10
mul rcx
mov qword [rsp + 0x58], r10
jo 0x140037e42
mov qword [rsp + 0x70], r9
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x38], rax
mov rcx, rax
xor edx, edx
call fcn.1400017b0
test rax, rax
jne 0x140037d1a
cmp byte [0x14023e3b8], 1
jne 0x140037d18
call fcn.140133b90
test rax, rax
je 0x140037d18
mov rcx, qword [rsp + 0x38]
call qword [0x14021e390]
test eax, eax
jne 0x140037d9f
xor eax, eax
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x90]
mov qword [r9], rax
mov rcx, qword [rsp + 0x58]
mov qword [r9 + 8], rcx
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x50]
call fcn.140037480
mov rcx, qword [rdi + 0x2a8]
xor edx, edx
call fcn.1400021e0
mov rax, qword [rsp + 0x38]
mov qword [rdi + 0x2a8], rax
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x2b0], rax
jmp 0x140037b5d
test r8b, r8b
jns 0x140037d92
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, r15
call fcn.14000a750
jmp 0x140037b18
mov rcx, qword [rsp + 0x38]
jmp 0x140037ce6
ud2
int3
int3
int3
mov ecx, eax
call fcn.14000f090
mov dword [rdi + 0x2a0], eax
jmp 0x140037a11
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax]
jmp 0x1400378e0
mov r8, qword [rdi + 0x2b0]
jmp 0x140037b37
movzx ecx, al
lea r9, [rsp + 0x108]
mov qword [r9], rbx
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0x100]
mov qword [r8], rax
lea rdx, [rsp + 0xf8]
call fcn.1401897d0
jmp 0x140037740
mov r14, r8
call fcn.14016ac60
mov r8, r14
jmp 0x14003796e
call fcn.14016ac60
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
jmp 0x140037bdc
int3