Function at 0x14000fc80
Capabilities:
Copy file
Create directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x488
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x480], rax
lea rdx, [rsp + 0x30]
call fcn.14001cfa4
test eax, eax
je 0x14000fd0a
mov esi, eax
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000ff06
call fcn.14001c8b0
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
lea rdx, str.ensure_copy_recursive:_path_doesnt_exist:__S__rv:__d__err:__d
mov r8, r15
mov r9d, esi
call fcn.1400137e0
mov ebx, 6
jmp 0x14000fee0
movzx eax, word [rsp + 0x36]
and eax, 0xf000
cmp eax, 0x4000
jne 0x14000fd87
mov rcx, rdi
call fcn.140020f54
mov ebx, eax
test eax, eax
jns 0x14000fdeb
call fcn.14001c8b0
cmp dword [rax], 0x11
je 0x14000fdeb
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000ff47
call fcn.14001c8b0
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
lea rdx, str.ensure_copy_recursive:_could_not_create_destination_directory:__S__rv:__d__err:__d
mov r8, r15
mov r9d, ebx
call fcn.1400137e0
mov ebx, 7
jmp 0x14000fee0
xor ebx, ebx
mov rcx, r15
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14000fee0
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000ff88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str.ensure_copy:_failed_to_copy_the_file__S_over_to__S__lasterr:__lx
mov r8, r15
mov r9, rdi
call fcn.1400137e0
mov ebx, 0x3d
jmp 0x14000fee0
mov qword [rsp + 0x28], rdi
mov rdi, r15
mov rcx, r15
call fcn.140037230
mov r15, rax
lea r12, [r14 + 0x208]
lea r13, [r14 + 0x410]
lea rbp, [rsp + 0x270]
mov rcx, r15
call fcn.1400372d0
test rax, rax
je 0x14000fed8
mov rsi, rax
mov rcx, rax
lea rdx, [0x14004411e]
call fcn.140023fec
test eax, eax
je 0x14000fe14
mov rcx, rsi
lea rdx, [0x14004411c]
call fcn.140023fec
test eax, eax
je 0x14000fe14
mov qword [rsp + 0x20], rsi
mov edx, 0x104
mov rcx, rbp
lea r8, str._s__s
mov r9, rdi
call fcn.140004090
mov rcx, r14
mov rdx, rbp
call fcn.14002084c
test eax, eax
je 0x14000fe14
mov rcx, r12
mov rdx, rbp
call fcn.14002084c
test eax, eax
je 0x14000fe14
mov rcx, r13
mov rdx, rbp
call fcn.14002084c
test eax, eax
je 0x14000fe14
mov qword [rsp + 0x20], rsi
mov edx, 0x104
lea rsi, [rsp + 0x60]
mov rcx, rsi
lea r8, str._s__s
mov r9, qword [rsp + 0x28]
call fcn.140004090
mov rcx, rbp
mov rdx, rsi
mov r8, r14
call fcn.14000fc80
xor ebx, ebx
test eax, eax
je 0x14000fe14
mov ebx, eax
mov rcx, r15
call fcn.1400372a0
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140027f60
mov eax, ebx
add rsp, 0x488
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14004fe88]
call fcn.140015660
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000fce3
mov qword [0x14004fc78], 0
lea rcx, [0x140003af0]
call fcn.1400157f8
lea rcx, [0x14004fe88]
call fcn.1400156c8
jmp 0x14000fce3
lea rcx, [0x14004fe88]
call fcn.140015660
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000fd60
mov qword [0x14004fc78], 0
lea rcx, [0x140003af0]
call fcn.1400157f8
lea rcx, [0x14004fe88]
call fcn.1400156c8
jmp 0x14000fd60
lea rcx, [0x14004fe88]
call fcn.140015660
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000fdc5
mov qword [0x14004fc78], 0
lea rcx, [0x140003af0]
call fcn.1400157f8
lea rcx, [0x14004fe88]
call fcn.1400156c8
jmp 0x14000fdc5