Function at 0x14000b780
Capabilities:
Copy file
Create directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rbx, r8
mov rbp, rdx
mov rsi, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rdx, [rsp + 0x40]
call fcn.14001b818
test eax, eax
je 0x14000b834
mov edi, eax
mov eax, dword [0x1400480c8]
mov ecx, dword [0x140045e74]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000ba86
call fcn.1400136f4
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
lea rcx, [0x140047eb8]
lea rdx, str.ensure_copy_recursive:_path_doesnt_exist:__S__rv:__d__err:__d
mov r8, rsi
mov r9d, edi
call fcn.140011390
mov r13d, 6
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140023680
mov eax, r13d
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, word [rsp + 0x46]
and eax, 0xf000
cmp eax, 0x4000
jne 0x14000b97c
mov rcx, rbp
call fcn.14001eee0
mov r13d, eax
test eax, eax
jns 0x14000b866
call fcn.1400136f4
cmp dword [rax], 0x11
jne 0x14000ba32
mov rcx, rsi
call fcn.1400326c0
test rax, rax
je 0x14000b9e9
mov rdi, rax
mov rcx, rax
call fcn.140032760
test rax, rax
je 0x14000b96f
mov r12, rax
mov qword [rsp + 0x30], rbp
lea r15, [rbx + 0x208]
lea rax, [rbx + 0x410]
mov qword [rsp + 0x38], rax
lea rbp, [0x14003db40]
lea r14, [rsp + 0x280]
mov rcx, r12
mov rdx, rbp
call fcn.140021954
test eax, eax
je 0x14000b922
mov rcx, r12
lea rdx, [0x14003db3e]
call fcn.140021954
test eax, eax
je 0x14000b922
mov qword [rsp + 0x20], r12
mov edx, 0x104
mov rcx, r14
lea r8, str._s__s
mov r9, rsi
call fcn.140004c30
mov rcx, rbx
mov rdx, r14
call fcn.14001e804
test eax, eax
je 0x14000b922
mov rcx, r15
mov rdx, r14
call fcn.14001e804
test eax, eax
je 0x14000b922
mov rcx, qword [rsp + 0x38]
mov rdx, r14
call fcn.14001e804
test eax, eax
jne 0x14000b934
mov rcx, rdi
call fcn.140032760
mov r12, rax
test rax, rax
jne 0x14000b8b5
jmp 0x14000b96f
mov qword [rsp + 0x20], r12
mov edx, 0x104
lea r12, [rsp + 0x70]
mov rcx, r12
lea r8, str._s__s
mov r9, qword [rsp + 0x30]
call fcn.140004c30
mov rcx, r14
mov rdx, r12
mov r8, rbx
call fcn.14000b780
xor r13d, r13d
test eax, eax
je 0x14000b922
mov r13d, eax
mov rcx, rdi
call fcn.140032730
jmp 0x14000b80d
xor r13d, r13d
mov rcx, rsi
mov rdx, rbp
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14000b80d
mov eax, dword [0x1400480c8]
mov ecx, dword [0x140045e74]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000bac7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rcx, [0x140047eb8]
lea rdx, str.ensure_copy:_failed_to_copy_the_file__S_over_to__S__lasterr:__x
mov r8, rsi
mov r9, rbp
call fcn.140011390
mov r13d, 0x3d
jmp 0x14000b80d
mov eax, dword [0x1400480c8]
mov ecx, dword [0x140045e74]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000bb08
call fcn.1400136f4
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
lea rcx, [0x140047eb8]
lea rdx, str.ensure_copy_recursive:_path_is_not_a_directory:__S__rv:__d__err:__d
mov r8, rsi
mov r9d, r13d
jmp 0x14000b802
mov eax, dword [0x1400480c8]
mov ecx, dword [0x140045e74]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000bb49
call fcn.1400136f4
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
lea rcx, [0x140047eb8]
lea rdx, str.ensure_copy_recursive:_could_not_create_destination_directory:__S__rv:__d__err:__d
mov r8, rsi
mov r9d, r13d
call fcn.140011390
mov r13d, 7
jmp 0x14000b80d
lea rcx, [0x1400480c8]
call fcn.140013880
cmp dword [0x1400480c8], 0xffffffff
jne 0x14000b7e3
mov qword [0x140047eb8], 0
lea rcx, [0x14000afc0]
call fcn.140013a38
lea rcx, [0x1400480c8]
call fcn.1400138e8
jmp 0x14000b7e3
lea rcx, [0x1400480c8]
call fcn.140013880
cmp dword [0x1400480c8], 0xffffffff
jne 0x14000b9bb
mov qword [0x140047eb8], 0
lea rcx, [0x14000afc0]
call fcn.140013a38
lea rcx, [0x1400480c8]
call fcn.1400138e8
jmp 0x14000b9bb
lea rcx, [0x1400480c8]
call fcn.140013880
cmp dword [0x1400480c8], 0xffffffff
jne 0x14000ba0e
mov qword [0x140047eb8], 0
lea rcx, [0x14000afc0]
call fcn.140013a38
lea rcx, [0x1400480c8]
call fcn.1400138e8
jmp 0x14000ba0e
lea rcx, [0x1400480c8]
call fcn.140013880
cmp dword [0x1400480c8], 0xffffffff
jne 0x14000ba57
mov qword [0x140047eb8], 0
lea rcx, [0x14000afc0]
call fcn.140013a38
lea rcx, [0x1400480c8]
call fcn.1400138e8
jmp 0x14000ba57