Function at 0x140046154
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, [0x14005d7fc]
lea rcx, [rbp - 0x60]
call fcn.1400064b0
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 0x140046426
xor ebx, ebx
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
cmp word [rbp + 0x1c], bx
jne 0x1400461dc
mov r8, rbx
jmp 0x1400461ee
lea rax, [rbp + 0x1c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1400461e4
lea rdx, [rbp + 0x1c]
lea rcx, [rsp + 0x60]
call fcn.140001b58
nop
lea r8, [0x14005accc]
mov rdx, qword [rbp + 0x260]
lea rcx, [rbp - 0x40]
call fcn.1400064b0
nop
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14001461c
nop
cmp qword [rbp - 0x28], 8
jb 0x140046238
mov rcx, qword [rbp - 0x40]
call fcn.1400208dc
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rbx
mov word [rbp - 0x40], bx
lea r8, [0x14005ace4]
mov rdx, qword [rbp + 0x268]
lea rcx, [rbp - 0x80]
call fcn.1400064b0
nop
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14001461c
nop
cmp qword [rbp - 0x68], 8
jb 0x140046283
mov rcx, qword [rbp - 0x80]
call fcn.1400208dc
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
lea rdx, [0x14005acfc]
lea rcx, [rsp + 0x60]
call fcn.140017788
test al, al
je 0x140046350
lea rdx, [0x14005d804]
lea rcx, [rsp + 0x60]
call fcn.140017788
test al, al
je 0x140046350
test byte [rbp - 0x10], 0x10
je 0x140046321
mov r8d, esi
mov rdx, qword [rbp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.1400459b0
test al, al
jne 0x140046350
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 0x1400463c2
mov r9d, esi
mov r8, qword [rbp + 0x270]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140046154
test al, al
jmp 0x14004634e
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 0x1400463c2
cmp qword [rsp + 0x38], 8
jb 0x140046362
mov rcx, qword [rsp + 0x20]
call fcn.1400208dc
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rbx
mov word [rsp + 0x20], bx
cmp qword [rsp + 0x58], 8
jb 0x140046387
mov rcx, qword [rsp + 0x40]
call fcn.1400208dc
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
cmp qword [rsp + 0x78], 8
jb 0x1400463ac
mov rcx, qword [rsp + 0x60]
call fcn.1400208dc
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14004641d
jmp 0x1400461be
cmp qword [rsp + 0x38], 8
jb 0x1400463d4
mov rcx, qword [rsp + 0x20]
call fcn.1400208dc
mov edi, 7
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rbx
mov word [rsp + 0x20], bx
cmp qword [rsp + 0x58], 8
jb 0x1400463fa
mov rcx, qword [rsp + 0x40]
call fcn.1400208dc
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
cmp qword [rsp + 0x78], 8
jb 0x140046428
mov rcx, qword [rsp + 0x60]
call fcn.1400208dc
jmp 0x140046428
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
cmp qword [rbp - 0x48], 8
jb 0x140046438
mov rcx, qword [rbp - 0x60]
call fcn.1400208dc
mov al, bl
mov rbx, qword [rsp + 0x378]
add rsp, 0x340
pop rdi
pop rsi
pop rbp
ret