Function at 0x140071890
Capabilities:
Copy file
Create directory
Enumerate files on windows
Set file attributes

Disassembly:
push rbp
lea rbp, [rsp - 0x1c60]
mov eax, 0x1d60
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x1d70], rbx
mov qword [rsp + 0x1d78], rsi
mov qword [rsp + 0x1d80], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x1c50], rax
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_SetupGetDevInfo
lea rcx, [rsp + 0x40]
call fcn.1400075a0
nop
xor esi, esi
mov edi, esi
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0xc50]
lea rdx, str.ProgramFilesFolder
mov rcx, rax
call qword [r9 + 0x18]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x1450]
lea rdx, str.SOURCEDIR
mov rcx, rax
call qword [r9 + 0x18]
lea r9, str.CanonGetDev
lea r8, [rbp + 0xc50]
lea rdx, [0x1402e3978]
lea rcx, [rbp + 0x410]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rbp + 0x410]
lea r8, str._t_t_tszProgPath:__s
lea edx, [rsi + 7]
lea rcx, [rsp + 0x40]
call fcn.140007780
lea rdx, str.GetDev
lea rcx, [rbp + 0x1450]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x70]
call fcn.14024b970
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call fcn.14024b970
lea rdx, str.GetDevInfo.exe
lea rcx, [rbp + 0x620]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r9, [rbp + 0x620]
lea r8, [rbp + 0x1450]
lea rdx, [0x1402dd6b0]
lea rcx, [rbp + 0x200]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140071a4e
lea r8, str._t_t_tThere_is_not_Exe_in_Media__
lea edx, [rsi + 7]
lea rcx, [rsp + 0x40]
call fcn.140007780
mov dword [0x1403b95bc], 0x26
mov r9d, 0x80010026
lea r8, str.return___08x
lea edx, [rsi + 2]
lea rcx, [rsp + 0x40]
call fcn.140007780
nop
lea rcx, [rsp + 0x40]
call fcn.140007730
mov eax, 0x80010026
jmp 0x140071ee6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x70]
call fcn.14024b970
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call fcn.14024b970
lea r9, [rbp + 0x620]
lea r8, [rbp + 0x410]
lea rdx, [0x1402dd6b0]
lea rcx, [rbp + 0x200]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140071b19
lea r9, str.Canon
lea r8, [rbp + 0xc50]
lea rdx, [0x1402e3978]
lea rcx, [rbp + 0xc50]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rbp + 0xc50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r9, str.GetDev
lea r8, [rbp + 0xc50]
lea rdx, [0x1402dd6b0]
lea rcx, [rbp + 0xc50]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rbp + 0xc50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x620]
call fcn.14024b970
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call fcn.14024b970
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x830]
call fcn.14024b970
xor r11d, r11d
mov qword [rbp + 0x1c0], r11
mov qword [rbp + 0x1c8], r11
mov qword [rbp + 0x1d0], r11
mov qword [rbp + 0x1d8], r11
mov qword [rbp + 0x1e0], r11
mov qword [rbp + 0x1e8], r11
mov qword [rbp + 0x1f0], r11
mov qword [rbp + 0x1f8], r11
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x70]
call fcn.14024b970
lea rdx, [0x1402f35b0]
lea rcx, [rbp + 0x620]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r9, [rbp + 0x620]
lea r8, [rbp + 0x1450]
lea rdx, [0x1402dd6b0]
lea rcx, [rbp + 0x200]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140071d0e
nop word [rax + rax]
lea r9, [rbp - 0x64]
lea r8, [rbp + 0x1450]
lea rdx, [0x1402dd6b0]
lea rcx, [rbp + 0xa40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rbp - 0x64]
lea r8, [rbp + 0x410]
lea rdx, [0x1402dd6b0]
lea rcx, [rbp + 0x830]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rbp + 0xa40]
lea r8, str._t_t_tszSrcPath__s_
mov edx, 7
lea rcx, [rsp + 0x40]
call fcn.140007780
lea r9, [rbp + 0x830]
lea r8, str._t_t_tszDstPath__s_
mov edx, 7
lea rcx, [rsp + 0x40]
call fcn.140007780
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov r9d, 1
lea r8, [rbp + 0x1c0]
lea rdx, [rbp + 0xa40]
call qword [rax + 0x98]
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov r9d, 1
lea r8, [rbp + 0x1c0]
lea rdx, [rbp + 0x830]
call qword [rax + 0x78]
test eax, eax
jns 0x140071cef
xor r8d, r8d
lea rdx, [rbp + 0x830]
lea rcx, [rbp + 0xa40]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, 0x20
lea rcx, [rbp + 0x830]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, 1
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140071c00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x228]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [0x1402e0308]
lea rdx, str.GETDEV_INSTALLED
mov rcx, rax
call qword [r9 + 0x20]
test edi, edi
jne 0x140071d8d
lea r8, str._t_t_tNew_exe_exists_already__
lea edx, [rdi + 7]
lea rcx, [rsp + 0x40]
call fcn.140007780
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rdi + 2]
lea rcx, [rsp + 0x40]
call fcn.140007780
nop
lea rcx, [rsp + 0x40]
call fcn.140007730
xor eax, eax
jmp 0x140071ee6
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rdx
mov r9d, 0xf003f
lea r8, str.SOFTWARECanonGetDev
mov rdx, 0xffffffff80000002
call qword [rax + 0xf8]
test eax, eax
jne 0x140071e3c
mov rbx, qword [0x1403b9768]
mov rdi, qword [rbx]
lea rcx, [rbp + 0x410]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x410]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, str.Path
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call qword [rdi + 0x110]
test eax, eax
je 0x140071e22
mov esi, 0x80010025
mov dword [0x1403b95bc], 0x25
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x58]
call qword [rax + pe_nt_image_headers64]
jmp 0x140071ec0
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x140071ea1
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r9, str._t_t_tRegCreateKeyEx
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x40]
call fcn.140007780
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140071eb1
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, 0x80010024
mov dword [0x1403b95bc], 0x24
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.140007780
nop
lea rcx, [rsp + 0x40]
call fcn.140007730
mov eax, esi
mov rcx, qword [rbp + 0x1c50]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x1d60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret