Function at 0x140044890
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 + 0x30], rdx
mov r12, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0xf8], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0xa0]
mov qword [rsi + 0x50], r14
movaps xmm6, xmmword [0x1400ffac0]
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rdx, str.Next
lea r8, str....._base_files_file_enumerator_win.cc
lea rbp, [rsp + 0x80]
mov rcx, rbp
mov r9d, 0x82
call fcn.140075ea0
mov rcx, rsi
mov rdx, rbp
xor r8d, r8d
call fcn.140075ed0
lea rsi, [r12 + 4]
lea rax, [r12 + 0x2a8]
mov qword [rsp + 0x38], rax
lea rax, [r12 + 0x260]
mov qword [rsp + 0x40], rax
lea r13, [r12 + 0x280]
lea rbx, [r12 + 0x30]
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp byte [r12], 0
je 0x1400449b4
mov rcx, qword [r12 + 0x258]
mov rdx, rsi
call rdi
test eax, eax
je 0x140044b8b
call r15
cmp qword [r12 + 0x258], 0xffffffffffffffff
jne 0x140044a8e
mov byte [r12], 0
cmp dword [r12 + 0x298], 0
mov rdi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x140044baa
cmp eax, 0x12
je 0x140044961
jmp 0x140044c95
mov rax, qword [r12 + 0x2c0]
cmp qword [r12 + 0x2b8], rax
je 0x140044cb3
test rax, rax
mov rcx, qword [r12 + 0x2b0]
cmove rax, rcx
dec rax
cmp rcx, rax
jb 0x140044d36
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [r12 + 0x2a8]
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14006a360
mov rcx, qword [rsp + 0x38]
call fcn.1400450d0
mov qword [rsp + 0x90], r14
movaps xmmword [rsp + 0x80], xmm6
mov eax, dword [r12 + 0x298]
test eax, eax
je 0x140044bc8
jmp 0x140044c04
mov rcx, rdi
mov rdx, rbp
lea r8, [rsp + 0x50]
call fcn.14006aa70
cmp byte [rsp + 0x97], 0
mov rcx, rbp
js 0x140044bf7
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
mov r8, rsi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [r12 + 0x258], rax
mov byte [r12], 1
mov rcx, rbp
call fcn.14006a350
jmp 0x14004497d
mov qword [rsp + 0x90], r14
movaps xmmword [rsp + 0x80], xmm6
mov qword [rsp + 0x70], rbx
test rbx, rbx
je 0x140044d39
mov rdi, rbp
mov rcx, rbx
call fcn.1400a8f50
mov qword [rsp + 0x78], rax
mov rcx, rdi
lea rdx, [rsp + 0x70]
call fcn.14006a280
mov rcx, r12
mov rdx, rdi
call fcn.140045190
test al, al
jne 0x140044b7e
mov qword [rsp + 0x48], rbx
mov r15d, dword [r12 + 4]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x60], r14
movaps xmmword [rsp + 0x50], xmm6
lea rdx, [rsp + 0x50]
mov r8, rbp
call fcn.1400349b0
test r15b, 0x10
jne 0x140044cc2
and r15d, 0x10
shr r15d, 4
mov rcx, r12
mov edx, r15d
call fcn.1400452f0
test al, al
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, rdi
mov rbx, qword [rsp + 0x48]
je 0x140044d1f
mov eax, dword [r12 + 0x298]
cmp eax, 1
jne 0x140044c27
cmp byte [r13 + 0x17], 0
mov rdx, r13
js 0x140044d45
cmp byte [rsp + 0x97], 0
mov rcx, rbp
jns 0x140044b6a
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x140044c2f
jmp 0x140044d1f
mov rcx, rbp
call fcn.14006a350
jmp 0x14004495a
mov rcx, qword [r12 + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [r12 + 0x258], 0xffffffffffffffff
jmp 0x14004497d
cmp byte [r13 + 0x17], 0
js 0x140044d06
mov byte [r13 + 0x17], 1
mov rcx, r13
mov dword [rcx], 0x2a
jmp 0x1400449aa
movzx eax, byte [r12 + 0x297]
test al, al
mov rcx, qword [r12 + 0x280]
cmovns rcx, r13
mov qword [rsp + 0x50], rcx
cmovs rax, qword [r12 + 0x288]
mov qword [rsp + 0x58], rax
jmp 0x140044a31
mov rcx, qword [rsp + 0x80]
jmp 0x140044a52
cmp eax, 1
jne 0x140044d4e
lea rax, [0x140103f0e]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
jmp 0x140044a31
test eax, eax
jne 0x140044d1f
lea rsi, [rsp + 0x50]
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rsi
call fcn.14006a220
mov rcx, rsi
call fcn.14006a350
lea rcx, [rsp + 0x80]
call fcn.14006a350
lea rcx, [rsp + 0xa0]
call fcn.140075f30
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.14008ab00
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
cmp dword [r12 + 0x29c], 0
je 0x140044961
mov ecx, eax
call fcn.140043a20
mov dword [r12 + 0x2a0], eax
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14006a200
jmp 0x140044c59
cmp byte [r12 + 0x278], 0
je 0x140044b0c
cmp byte [rsp + 0x67], 0
lea rcx, [rsp + 0x50]
jns 0x140044ce2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x140044b0c
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call fcn.140044e50
jmp 0x140044b0c
mov qword [r12 + 0x288], 1
mov rcx, qword [r12 + 0x280]
jmp 0x140044bbd
lea rcx, [rsp + 0x50]
call fcn.14006a350
lea rcx, [rsp + 0x80]
jmp 0x140044b81
int3
mov qword [rsp + 0x78], 0
int3
mov rdx, qword [r13]
jmp 0x140044b55
lea rcx, [rsp + 0x80]
call fcn.14006a200
jmp 0x140044a41