Function at 0x140038fb0
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 r15, rdx
mov rdi, rcx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x118], rax
movaps xmm6, xmmword [0x14022cb50]
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.1400d3160
mov rcx, r14
xor edx, edx
xor r8d, r8d
call fcn.1400bc840
mov qword [rsp + 0xf8], 0xb
mov al, byte [0x140271fcb]
test al, al
jne 0x1400396f9
lea rbp, [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 + 0x58], rax
movabs rsi, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x80]
lea rax, [rdi + 0x2a8]
mov qword [rsp + 0x50], rax
lea rax, [rdi + 0x2b8]
mov qword [rsp + 0x48], rax
lea rax, [rdi + 0x2c0]
mov qword [rsp + 0x30], rax
cmp byte [rdi], 0
je 0x14003934f
mov rcx, qword [rdi + 0x258]
mov r14, r8
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140039276
call r13
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x1400392ce
mov qword [rsp + 0xa0], rsi
movaps xmmword [rsp + 0x90], xmm6
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x80], rcx
call fcn.1401469e0
mov qword [rsp + 0x88], rax
mov rcx, rbx
mov rdx, r12
call fcn.140100420
mov rcx, rdi
mov rdx, rbx
call fcn.1400397a0
test al, al
mov r8, r14
jne 0x1400392a8
mov r14, r13
mov r13d, dword [r8]
movsx rcx, byte [rsp + 0xa7]
test rcx, rcx
cmovs rcx, qword [rsp + 0x98]
mov qword [r15 + 0x10], rsi
mov rax, qword [rsp + 0x90]
cmovns rax, rbx
movups xmmword [r15], xmm6
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x110], rcx
test rcx, rcx
js 0x1400396c4
mov qword [rsp + 0x40], r8
sete cl
test rax, rax
setne al
or al, cl
je 0x1400396c4
mov qword [rsp + 0x38], rbp
mov rcx, rbp
mov rdx, r15
lea r8, [rsp + 0x108]
call fcn.1401008a0
mov ebx, 1
test r13b, 0x10
mov r13, r14
jne 0x140039539
test dword [rdi + 0x27c], ebx
mov rbp, qword [rsp + 0x38]
lea rbx, [rsp + 0x90]
mov r8, qword [rsp + 0x40]
je 0x140039293
mov eax, dword [rdi + 0x298]
cmp eax, 1
jne 0x14003926d
cmp byte [rdi + 0x297], 0
mov rdx, qword [rsp + 0x58]
js 0x1400396e4
mov r14, r8
cmp byte [rsp + 0xa7], 0
mov rcx, rbx
jns 0x14003920c
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
mov r8, r14
jne 0x140039293
cmp byte [rsp + 0xa7], 0
jns 0x140039231
mov rcx, qword [rsp + 0x90]
call fcn.140146640
lea rcx, [rsp + 0xb0]
call fcn.14010c450
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140149190
mov rax, r15
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
test eax, eax
je 0x14003921a
jmp 0x14003972b
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x1400390d1
cmp byte [r15 + 0x17], 0
jns 0x1400392a8
mov rcx, qword [r15]
mov r14, r8
call fcn.140146640
mov r8, r14
cmp byte [rsp + 0xa7], 0
jns 0x1400390ad
mov rcx, qword [rsp + 0x90]
mov r14, r8
call fcn.140146640
mov r8, r14
jmp 0x1400390ad
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
mov r8, r14
jne 0x1400392f8
cmp byte [rdi + 0x297], 0
js 0x140039313
mov byte [rdi + 0x297], 1
mov rcx, qword [rsp + 0x58]
mov dword [rcx], 0x2a
cmp eax, 0x12
je 0x1400390ad
cmp dword [rdi + 0x29c], 0
je 0x1400390ad
jmp 0x1400396d2
mov qword [rdi + 0x288], 1
mov rcx, qword [rdi + 0x280]
jmp 0x1400392f2
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], 0
jmp 0x140039231
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, rbp
mov rdx, rax
call fcn.14000b8b0
jmp 0x1400393b8
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rax
je 0x140039327
mov rcx, qword [rdi + 0x2b0]
test rax, rax
je 0x1400396f1
dec rax
cmp rcx, rax
jb 0x1400396c6
mov r14, r8
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + 0x2a8]
cmp rbp, rdx
je 0x1400393b8
cmp byte [rdi + 0x277], 0
movzx r8d, byte [rdx + 0x17]
js 0x1400396ab
test r8b, r8b
js 0x14003933b
mov rax, qword [rdx + 0x10]
mov qword [rbp + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rbp], xmm0
mov rax, qword [rdi + 0x2b0]
mov rdx, qword [rdi + 0x2c0]
test rdx, rdx
je 0x14003973b
lea rcx, [rdx - 1]
mov r8, qword [rsp + 0x30]
mov qword [r8], rcx
cmp rax, rdx
jb 0x1400396c9
cmp rax, rcx
jb 0x1400396cc
movabs r8, 0x8000000000000000
cmp rdx, r8
je 0x1400396cf
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx]
lea rcx, [rcx + rcx*2]
cmp byte [rdx + rcx*8 + 0x17], 0
jns 0x140039426
lea rax, [rdx + rcx*8]
mov rcx, qword [rax]
call fcn.140146640
mov rax, qword [rdi + 0x2b0]
cmp rax, 5
jae 0x14003957a
mov qword [rsp + 0xa0], rsi
movaps xmmword [rsp + 0x90], xmm6
mov eax, dword [rdi + 0x298]
test eax, eax
jne 0x140039510
movsx rax, byte [rdi + 0x297]
test rax, rax
js 0x140039464
lea rcx, [rdi + 0x280]
jmp 0x140039472
mov rax, qword [rdi + 0x288]
mov rcx, qword [rdi + 0x280]
mov qword [rsp + 0x108], rcx
mov qword [rsp + 0x110], rax
test rax, rax
js 0x1400396c4
sete al
test rcx, rcx
setne cl
or cl, al
je 0x1400396c4
mov rcx, rbp
mov rdx, rbx
lea r8, [rsp + 0x108]
call fcn.1401008a0
cmp byte [rsp + 0xa7], 0
mov rcx, rbx
mov r8, r14
jns 0x1400394c7
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 0x1400390d1
mov rcx, qword [rsp + 0x90]
call fcn.140146640
jmp 0x1400390d1
cmp eax, 1
jne 0x14003974f
lea rax, [0x14023d0f4]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x110], 1
jmp 0x14003949c
mov ebx, 2
cmp byte [rdi + 0x278], 1
jne 0x1400391b5
mov rcx, r15
cmp byte [r15 + 0x17], 0
jns 0x140039558
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x1400391b5
mov rcx, qword [rsp + 0x50]
mov rdx, r15
call fcn.140038bc0
jmp 0x1400391b5
mov rcx, qword [rsp + 0x48]
mov r9, qword [rcx]
mov rcx, qword [rsp + 0x30]
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 0x140039430
mov rdx, rcx
shr rdx, 2
add rdx, rcx
cmp rdx, 4
mov r10d, 3
cmovae r10, rdx
cmp r10, rax
jae 0x140039430
inc r10
mov ecx, 0x18
mov rax, r10
mul rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x70], r10
jo 0x140039770
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x68], r8
lea rcx, fcn.140002230
mov rdx, qword [rsp + 0x38]
xor r8d, r8d
call fcn.140002230
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140039637
cmp byte [0x1402723d8], 1
jne 0x140039637
call fcn.140146684
test rax, rax
je 0x140039637
mov rcx, qword [rsp + 0x38]
call qword [0x1402529a0]
test eax, eax
jne 0x1400395f7
lea r9, [rsp + 0x90]
mov rax, qword [rsp + 0x40]
mov qword [r9], rax
mov rax, qword [rsp + 0x70]
mov qword [r9 + 8], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
call fcn.140038d90
mov rdx, qword [rdi + 0x2a8]
lea rcx, fcn.140002230
xor r8d, r8d
call fcn.140001050
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x2a8], rax
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0x2b0], rax
jmp 0x140039430
test r8b, r8b
jns 0x1400396b7
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, rbp
call fcn.14000b9b0
jmp 0x1400393b8
ud2
int3
int3
int3
int3
mov ecx, eax
call fcn.14000d5e0
mov dword [rdi + 0x2a0], eax
jmp 0x140039327
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax]
jmp 0x1400391f4
mov rax, rcx
jmp 0x14003936f
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.1401a2ec0
jmp 0x140039050
mov r14, r8
call fcn.140183190
mov r8, r14
jmp 0x140039293
lea rcx, [rax - 1]
mov rdx, qword [rsp + 0x30]
mov qword [rdx], rcx
mov rdx, rax
jmp 0x1400393e4
call fcn.140183190
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
jmp 0x1400394af
int3