Function at 0x140040294
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rax - 0x258]
sub rsp, 0x340
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov esi, r9d
mov rdx, rcx
lea r8, [0x140056adc]
lea rcx, [rbp - 0x60]
call fcn.140006058
nop
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140040566
xor ebx, ebx
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
cmp word [rbp + 0x1c], bx
jne 0x14004031c
mov r8, rbx
jmp 0x14004032e
lea rax, [rbp + 0x1c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140040324
lea rdx, [rbp + 0x1c]
lea rcx, [rsp + 0x60]
call fcn.140001b48
nop
lea r8, [0x14005461c]
mov rdx, qword [rbp + 0x260]
lea rcx, [rbp - 0x40]
call fcn.140006058
nop
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000fc20
nop
cmp qword [rbp - 0x28], 8
jb 0x140040378
mov rcx, qword [rbp - 0x40]
call fcn.14001ddec
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rbx
mov word [rbp - 0x40], bx
lea r8, [0x14005465c]
mov rdx, qword [rbp + 0x268]
lea rcx, [rbp - 0x80]
call fcn.140006058
nop
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14000fc20
nop
cmp qword [rbp - 0x68], 8
jb 0x1400403c3
mov rcx, qword [rbp - 0x80]
call fcn.14001ddec
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
lea rdx, [0x14005466c]
lea rcx, [rsp + 0x60]
call fcn.140014c9c
test al, al
je 0x140040490
lea rdx, [0x140056ae4]
lea rcx, [rsp + 0x60]
call fcn.140014c9c
test al, al
je 0x140040490
test byte [rbp - 0x10], 0x10
je 0x140040461
mov r8d, esi
mov rdx, qword [rbp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.14003faf0
test al, al
jne 0x140040490
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140040502
mov r9d, esi
mov r8, qword [rbp + 0x270]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140040294
test al, al
jmp 0x14004048e
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140040502
cmp qword [rsp + 0x38], 8
jb 0x1400404a2
mov rcx, qword [rsp + 0x20]
call fcn.14001ddec
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rbx
mov word [rsp + 0x20], bx
cmp qword [rsp + 0x58], 8
jb 0x1400404c7
mov rcx, qword [rsp + 0x40]
call fcn.14001ddec
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
cmp qword [rsp + 0x78], 8
jb 0x1400404ec
mov rcx, qword [rsp + 0x60]
call fcn.14001ddec
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14004055d
jmp 0x1400402fe
cmp qword [rsp + 0x38], 8
jb 0x140040514
mov rcx, qword [rsp + 0x20]
call fcn.14001ddec
mov edi, 7
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rbx
mov word [rsp + 0x20], bx
cmp qword [rsp + 0x58], 8
jb 0x14004053a
mov rcx, qword [rsp + 0x40]
call fcn.14001ddec
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
cmp qword [rsp + 0x78], 8
jb 0x140040568
mov rcx, qword [rsp + 0x60]
call fcn.14001ddec
jmp 0x140040568
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
cmp qword [rbp - 0x48], 8
jb 0x140040578
mov rcx, qword [rbp - 0x60]
call fcn.14001ddec
mov al, bl
mov rbx, qword [rsp + 0x378]
add rsp, 0x340
pop rdi
pop rsi
pop rbp
ret