Function at 0x140086d60
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xdf8]
sub rsp, 0xef0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0xde0], rax
mov rdi, r8
mov rbx, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_XCopyFile
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, str.lpSrc___s__lpDst___s
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140007780
mov rdx, rbx
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, rbx
lea rcx, [rbp + 0x3a8]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbx + rcx*2 - 2], 0x5c
jne 0x140086e0a
lea rdx, [0x1402f35b0]
jmp 0x140086e25
lea rdx, [0x1402e5094]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str..
lea rcx, [rbp + 0x3a8]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rdi
lea rcx, [rbp + 0x7c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rdi + rcx*2 - 2], 0x5c
je 0x140086e6a
lea rdx, [0x1402e5094]
lea rcx, [rbp + 0x7c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x50]
call fcn.14024b970
lea r9, [rbp + 0x3a8]
lea r8, str._t_t_tfinding__s_
mov edx, 7
lea rcx, [rsp + 0x30]
call fcn.140007780
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x3a8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140087022
nop dword [rax + rax]
test byte [rsp + 0x50], 0x10
jne 0x140086fc0
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub eax, 4
cdqe
lea rcx, [rsp + rax*2 + 0x7c]
lea rdx, [0x1402f7878]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140086fc0
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub eax, 4
cdqe
lea rcx, [rsp + rax*2 + 0x7c]
lea rdx, str..CAT
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140086fc0
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1a0]
lea r8, [0x1402e3978]
mov edx, 0x104
lea rcx, [rbp + 0x5b0]
call fcn.140246778
lea r11, [rsp + 0x7c]
mov qword [rsp + 0x20], r11
lea r9, [rbp + 0x7c0]
lea r8, [0x1402e3978]
mov edx, 0x104
lea rcx, [rbp + 0x9c8]
call fcn.140246778
lea r11, [rbp + 0x9c8]
mov qword [rsp + 0x20], r11
lea r9, [rbp + 0x5b0]
lea r8, str._t_t_tcopying__s___s_
mov edx, 7
lea rcx, [rsp + 0x30]
call fcn.140007780
xor r8d, r8d
lea rdx, [rbp + 0x9c8]
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140086fc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x140086fd7
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140087019
jmp 0x140086ec0
mov rcx, qword [0x1403b9770]
mov rax, qword [rcx]
mov edx, 0xa4
call qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
xor eax, eax
jmp 0x14008704d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
mov eax, 1
mov rcx, qword [rbp + 0xde0]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0xef0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret