Function at 0x14000849c
Capabilities:
Copy file
Create directory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4b0
mov rax, qword [0x14003c008]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rdi, rdx
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x38], r8
mov rbp, rcx
call fcn.140013fb0
xor ebx, ebx
mov esi, eax
test eax, eax
je 0x140008534
mov ecx, dword [0x14003f0a8]
test cl, 1
jne 0x140008506
or ecx, 1
mov qword [0x14003f0c0], rbx
mov dword [0x14003f0a8], ecx
lea rcx, [0x14002aae0]
call fcn.14000fc8c
call fcn.140018ec4
mov r9d, esi
lea rdx, str.ensure_copy_recursive:_path_doesnt_exist:__S__rv:__d__err:__d
mov ecx, dword [rax]
mov r8, rbp
mov dword [rsp + 0x20], ecx
lea rcx, [0x14003f0c0]
call fcn.14000b1bc
mov eax, 6
jmp 0x140008783
movzx eax, word [rsp + 0x4e]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x1400085b3
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400085ac
mov eax, dword [0x14003f0a8]
test al, 1
jne 0x140008584
or eax, 1
mov qword [0x14003f0c0], rbx
lea rcx, [0x14002aae0]
mov dword [0x14003f0a8], eax
call fcn.14000fc8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rdi
lea rdx, str.ensure_copy:_failed_to_copy_the_file__S_over_to__S__lasterr:__x
lea rcx, [0x14003f0c0]
mov dword [rsp + 0x20], eax
mov r8, rbp
call fcn.14000b1bc
mov ebx, 0x3d
mov eax, ebx
jmp 0x140008783
mov rcx, rdi
call fcn.1400140c0
mov dword [rsp + 0x34], eax
mov edi, eax
test eax, eax
jns 0x140008624
call fcn.140018ec4
cmp dword [rax], 0x11
je 0x140008624
mov ecx, dword [0x14003f0a8]
test cl, 1
jne 0x1400085f6
or ecx, 1
mov qword [0x14003f0c0], rbx
mov dword [0x14003f0a8], ecx
lea rcx, [0x14002aae0]
call fcn.14000fc8c
call fcn.140018ec4
mov r9d, edi
lea rdx, str.ensure_copy_recursive:_could_not_create_destination_directory:__S__rv:__d__err:__d
mov r8, rbp
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
lea rcx, [0x14003f0c0]
call fcn.14000b1bc
mov eax, 7
jmp 0x140008783
mov rcx, rbp
call fcn.1400087a8
mov rsi, rax
test rax, rax
jne 0x14000866e
mov eax, dword [0x14003f0a8]
test al, 1
jne 0x14000865a
or eax, 1
mov qword [0x14003f0c0], rbx
lea rcx, [0x14002aae0]
mov dword [0x14003f0a8], eax
call fcn.14000fc8c
call fcn.140018ec4
mov r9d, edi
lea rdx, str.ensure_copy_recursive:_path_is_not_a_directory:__S__rv:__d__err:__d
jmp 0x140008515
mov rcx, rax
jmp 0x140008757
movzx ecx, word [rdi]
cmp cx, word [0x140034f78]
jne 0x140008693
movzx eax, word [rdi + 2]
cmp ax, word [0x140034f7a]
je 0x140008754
cmp cx, word [0x140034eb8]
jne 0x1400086ba
movzx eax, word [rdi + 2]
cmp ax, word [0x140034eba]
jne 0x1400086ba
movzx eax, word [rdi + 4]
cmp ax, word [0x140034ebc]
je 0x140008754
mov r9, rbp
mov qword [rsp + 0x20], rdi
lea r8, str._s__s
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.1400024cc
mov eax, ebx
mov dword [rsp + 0x30], ebx
cdqe
lea rdx, [rsp + 0x80]
imul rcx, rax, 0x208
add rcx, qword [rsp + 0x38]
call fcn.14001c470
test eax, eax
je 0x140008754
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp eax, 3
jl 0x1400086e1
mov r9, qword [rsp + 0x40]
lea r8, str._s__s
mov edx, 0x104
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x290]
call fcn.1400024cc
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x80]
call fcn.14000849c
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x140008768
mov rcx, rsi
call fcn.140008834
mov rdi, rax
test rax, rax
jne 0x140008676
cmp qword [rsi], 0xffffffffffffffff
je 0x140008777
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rsi
call fcn.14000fca4
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.14000f700
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x4b0
pop rdi
pop rsi
pop rbp
ret