Function at 0x140052c00
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push rbp
push r13
sub rsp, 0x2b8
mov rax, qword [0x1400c4a20]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x20], rdx
mov rbp, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x250
call main
mov r13, 0xffffffffffffffff
test rbp, rbp
je 0x140052f44
mov rax, r13
nop word [rax + rax]
inc rax
cmp word [rbp + rax*2], 0
jne 0x140052c50
test rax, rax
je 0x140052f44
mov qword [rsp + 0x2e0], rbx
xor ebx, ebx
mov qword [rsp + 0x2b0], rsi
mov qword [rsp + 0x2a8], rdi
mov rdi, r13
mov qword [rsp + 0x298], r14
xor r14d, r14d
xor esi, esi
mov qword [rsp + 0x290], r15
inc rdi
cmp word [rbp + rdi*2], bx
jne 0x140052c96
mov ecx, 0x2f
lea r15d, [rcx + 0x2d]
test rdi, rdi
je 0x140052cc9
movzx eax, word [rbp + rdi*2 - 2]
mov rbx, rdi
cmp r15w, ax
je 0x140052cc9
cmp cx, ax
je 0x140052cc9
lea r14d, [rcx - 0x2e]
lea rbx, [rdi + 1]
mov qword [rsp + 0x2a0], r12
add rbx, 1
je 0x140052ef9
lea rbx, [rbx*2 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x28], rax
mov r12, rax
test rax, rax
je 0x140052ef9
test rdi, rdi
je 0x140052d22
lea r8, [rdi + rdi]
mov rdx, rbp
mov rcx, rax
call fcn.140085820
mov rsi, rdi
test r14d, r14d
je 0x140052d2f
mov word [r12 + rsi*2], r15w
inc rsi
movzx eax, word [0x1400ab594]
lea rdx, [rsp + 0x30]
mov rcx, r12
mov word [r12 + rsi*2], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140052ee3
mov r12, qword [rsp + 0x20]
nop dword [rax + rax]
test byte [rsp + 0x30], 0x10
je 0x140052d99
lea rdx, [0x1400ab598]
lea rcx, [rsp + 0x5c]
call fcn.1400680d0
test eax, eax
je 0x140052ec8
lea rdx, [0x1400ab59c]
lea rcx, [rsp + 0x5c]
call fcn.1400680d0
test eax, eax
je 0x140052ec8
xor edi, edi
xor r15d, r15d
xor r14d, r14d
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rbp + rbx*2], di
jne 0x140052db0
test rbx, rbx
je 0x140052de3
movzx eax, word [rbp + rbx*2 - 2]
mov ecx, 0x5c
mov rdi, rbx
cmp cx, ax
je 0x140052de3
mov ecx, 0x2f
cmp cx, ax
je 0x140052de3
lea r15d, [rcx - 0x2e]
lea rdi, [rbx + 1]
lea rax, [rsp + 0x5c]
mov rsi, 0xffffffffffffffff
nop
inc rsi
cmp word [rax + rsi*2], r14w
jne 0x140052df0
add rdi, rsi
je 0x140052ec8
lea rdi, [rdi*2 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140052ec8
test rbx, rbx
je 0x140052e45
lea r8, [rbx + rbx]
mov rdx, rbp
mov rcx, rax
call fcn.140085820
mov r14, rbx
test r15d, r15d
je 0x140052e58
mov r15d, 0x5c
mov word [rdi + r14*2], r15w
inc r14
test rsi, rsi
je 0x140052e6f
lea r8, [rsi + rsi]
lea rcx, [rdi + r14*2]
lea rdx, [rsp + 0x5c]
call fcn.140085820
test byte [rsp + 0x30], 0x10
mov rcx, rdi
je 0x140052ea9
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140052e90
and eax, 0x410
cmp eax, 0x410
je 0x140052e9e
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call fcn.140052c00
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140052eb4
xor r8d, r8d
lea rdx, [rsp + 0x30]
call r12
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [rsp + 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140052d60
mov r12, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140052f04
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r15, qword [rsp + 0x290]
mov eax, 1
mov r14, qword [rsp + 0x298]
mov r12, qword [rsp + 0x2a0]
mov rdi, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x2b0]
mov rbx, qword [rsp + 0x2e0]
jmp 0x140052f51
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140080bf0
add rsp, 0x2b8
pop r13
pop rbp
ret