Function at 0x14004c05c
Capabilities:
Enumerate files on windows
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x60]
call fcn.140138ee0
xor r15d, r15d
test rbx, rbx
je 0x14004c2dd
cmp r15w, word [rbx]
je 0x14004c2dd
cmp word [rbx], 0x2e
jne 0x14004c0de
cmp word [rbx + 2], r15w
je 0x14004c2dd
cmp word [rbx], 0x2e
jne 0x14004c0de
cmp word [rbx + 2], 0x2e
jne 0x14004c0de
cmp word [rbx + 4], r15w
je 0x14004c2dd
mov edx, 0x5c
mov rcx, rbx
call fcn.140138df4
mov rdi, rax
test rax, rax
je 0x14004c2dd
add rdi, 2
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14004c2dd
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r15w
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140031d84
nop
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r15w
sub rdi, rbx
sar rdi, 1
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.1400328a0
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14004c184
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
call fcn.1400331fc
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x50], xmm1
mov bl, 1
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140034c5c
nop
lea rax, [rbp - 0x74]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x14004c1bc
lea rdx, [rbp - 0x74]
lea rcx, [rsp + 0x20]
call fcn.140031c78
test byte [rsp + 0x60], 0x10
je 0x14004c231
movzx eax, word [rbp - 0x72]
cmp word [rbp - 0x74], 0x2e
jne 0x14004c207
test ax, ax
je 0x14004c287
cmp word [rbp - 0x74], 0x2e
jne 0x14004c207
cmp ax, 0x2e
jne 0x14004c207
cmp word [rbp - 0x70], r15w
je 0x14004c287
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call fcn.14004bedc
movzx eax, al
test bl, bl
je 0x14004c22c
test eax, eax
je 0x14004c22c
mov bl, 1
jmp 0x14004c287
mov bl, r15b
jmp 0x14004c287
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb cl, cl
and bl, cl
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14004c2b4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
call fcn.1400331fc
test edi, edi
jne 0x14004c19a
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14004c2d9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
call fcn.1400331fc
mov al, bl
jmp 0x14004c2df
xor al, al
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140119fe0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret