Function at 0x14005cc90
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, 0x98
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x38], rdx
mov rdi, rcx
lea r15, [rdi + 4]
lea rax, [rdi + 0x2b0]
mov qword [rsp + 0x48], rax
lea r13, [rdi + 0x30]
lea rax, [rdi + 0x260]
mov qword [rsp + 0x40], rax
lea rbx, [rdi + 0x288]
lea rbp, [rsp + 0x70]
lea r14, [rsp + 0x50]
mov r12, qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x14005cd08
mov rcx, rbp
call fcn.1400138f0
cmp byte [rdi], 0
je 0x14005cd40
mov rcx, qword [rdi + 0x258]
mov rdx, r15
call r12
test eax, eax
je 0x14005cdf0
cmp qword [rdi + 0x258], 0xffffffffffffffff
jne 0x14005ce93
jmp 0x14005cfb0
mov rax, qword [rdi + 0x2c8]
cmp qword [rdi + 0x2c0], rax
je 0x14005d044
test rax, rax
jne 0x14005cd60
mov rax, qword [rdi + 0x2b8]
shl rax, 5
mov rcx, qword [rdi + 0x2b0]
lea rdx, [rcx + rax]
add rdx, 0xffffffffffffffe0
mov rcx, qword [rsp + 0x40]
call fcn.140012980
mov rcx, qword [rdi + 0x2c8]
test rcx, rcx
jne 0x14005cd90
mov rcx, qword [rdi + 0x2b8]
add rcx, 0xffffffffffffffff
mov qword [rdi + 0x2c8], rcx
shl rcx, 5
add rcx, qword [rdi + 0x2b0]
call fcn.1400138f0
mov rcx, qword [rsp + 0x48]
call fcn.14005d350
mov eax, dword [rdi + 0x2a8]
cmp eax, 1
je 0x14005ce0d
test eax, eax
jne 0x14005ce36
cmp qword [rdi + 0x2a0], 7
mov rax, rbx
jbe 0x14005cdd8
mov rax, qword [rdi + 0x288]
mov qword [rsp + 0x60], rax
mov rax, qword [rdi + 0x298]
mov qword [rsp + 0x68], rax
jmp 0x14005ce22
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x14005cfb0
lea rax, [0x1401583d4]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
mov rcx, qword [rsp + 0x40]
mov rdx, rbp
lea r8, [rsp + 0x60]
call fcn.140013c40
jmp 0x14005ce3e
mov rcx, rbp
call fcn.140012850
cmp qword [rsp + 0x88], 7
mov rcx, rbp
jbe 0x14005ce51
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
xor r9d, r9d
mov r8, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rdi + 0x258], rax
mov byte [rdi], 1
mov rcx, rbp
call fcn.1400138f0
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x14005cfb0
mov qword [rsp + 0x50], r13
mov rcx, r13
call fcn.1400f4120
mov qword [rsp + 0x58], rax
mov rcx, rbp
mov rdx, r14
call fcn.1400128d0
mov rcx, rdi
mov rdx, rbp
call fcn.14005d440
test al, al
jne 0x14005cd00
mov rsi, r14
mov r14d, dword [rdi + 4]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov r8, rbp
call fcn.140014640
test r14b, 0x10
je 0x14005cf70
cmp byte [rdi + 0x280], 0
je 0x14005cf70
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x18], 7
mov rcx, rax
jbe 0x14005cf05
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x14005cf70
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.14005d140
mov rcx, qword [rdi + 0x2c8]
shl rcx, 5
add rcx, qword [rdi + 0x2b0]
mov rdx, qword [rsp + 0x38]
call fcn.140012870
mov rax, qword [rdi + 0x2b8]
mov rcx, qword [rdi + 0x2c8]
add rax, 0xffffffffffffffff
cmp rcx, rax
lea rax, [rcx + 1]
mov ecx, 0
cmove rax, rcx
mov qword [rdi + 0x2c8], rax
nop word cs:[rax + rax]
and r14d, 0x10
shr r14d, 4
mov rcx, rdi
mov edx, r14d
call fcn.14005d5f0
test al, al
mov r14, rsi
je 0x14005d035
mov eax, dword [rdi + 0x2a8]
cmp eax, 1
je 0x14005d007
test eax, eax
jne 0x14005d035
jmp 0x14005d053
mov byte [rdi], 0
cmp dword [rdi + 0x2a8], 0
jne 0x14005cd08
mov rcx, qword [rdi + 0x2a0]
test rcx, rcx
je 0x14005cfee
mov rax, rbx
cmp rcx, 8
jb 0x14005cfd8
mov rax, qword [rbx]
mov qword [rdi + 0x298], 1
mov dword [rax], 0x2a
jmp 0x14005cd08
mov edx, 1
mov rcx, rbx
lea r9, [0x1401583d4]
call fcn.140001920
jmp 0x14005cd08
cmp qword [rdi + 0x2a0], 8
mov rdx, rbx
jb 0x14005d017
mov rdx, qword [rbx]
cmp qword [rsp + 0x88], 7
mov rcx, rbp
jbe 0x14005d02a
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x14005d053
mov rcx, qword [rsp + 0x38]
call fcn.1400138f0
jmp 0x14005cd00
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140012850
jmp 0x14005d062
lea rcx, [rsp + 0x70]
call fcn.1400138f0
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400edc60
mov rax, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret