Function at 0x18001ecc0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
xor eax, eax
mov rbx, rcx
xor r12d, r12d
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov esi, r12d
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov r15d, r8d
mov qword [rbp - 0x80], rax
mov rdi, rdx
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
call fcn.1800f3bc0
xor r8d, r8d
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.1800f3ec8
test eax, eax
je 0x18001efef
lea r13d, [r12 + 0x5c]
lea rbx, [0x180154c70]
nop
lea rcx, [rsp + 0x60]
call fcn.1800f41b8
lea rcx, [rsp + 0x60]
mov r14d, eax
call fcn.1800f47dc
test eax, eax
jne 0x18001efe6
mov r8, qword [rsp + 0x60]
lea edx, [rax + 0x10]
lea rcx, [rsp + 0x60]
call qword [r8 + 0x70]
test eax, eax
je 0x18001ee36
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1800f4354
mov rbx, rax
mov rcx, qword [rax]
mov rcx, qword [rcx - 0x18]
test rcx, rcx
je 0x18001edb1
mov rdx, qword [rcx]
call qword [rdx + 0x20]
test rax, rax
jne 0x18001edc8
call fcn.1800f3548
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x20]
test rax, rax
je 0x18001f025
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
mov rdx, qword [rbx]
lea r9, [0x180155a80]
add rax, 0x18
mov dword [rsp + 0x20], 4
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov r8d, dword [rdx - 0x10]
call fcn.18000f130
mov rbx, qword [rsp + 0x30]
mov r8d, r15d
mov rcx, rbx
mov rdx, rdi
call sym.SafeBase64.dll_BackupFileDirs
mov esi, eax
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x18001ee2c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rdx, qword [rsp + 0x38]
jmp 0x18001efc3
xor edx, edx
lea rcx, [rbp + 0x1b0]
mov r8d, 0x208
call fcn.180113150
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1800f47ac
mov r8, qword [rax]
cmp word [r8 + 2], 0x3a
jne 0x18001ee7c
movzx eax, word [r8]
mov edx, 0x102
mov word [rbp - 0x60], ax
add r8, 4
mov word [rbp - 0x5e], r12w
jmp 0x18001ee86
mov word [rbp - 0x60], r12w
mov edx, 0x103
lea rcx, [rbp - 0x60]
call fcn.180125a58
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rdi + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x18001eea0
cmp r13w, word [rdi + rax*2 - 2]
lea r8, [0x180155c60]
lea rax, [rbp - 0x60]
mov r9, rdi
cmovne r8, rbx
mov qword [rsp + 0x20], rax
mov edx, 0x103
lea rcx, [rbp + 0x1b0]
call fcn.18000f870
mov rdx, qword [rsp + 0x40]
mov eax, 0xffffffff
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18001eefb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rbp + 0x1b0]
call sym.SafeBase64.dll_CreateDirs
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.1800f42bc
mov edx, 0x103
lea rcx, [rbp + 0x1b0]
mov r8, qword [rax]
call fcn.180125a58
mov rdx, qword [rsp + 0x48]
mov eax, 0xffffffff
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18001ef4b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1800f4354
mov r8d, r15d
lea rdx, [rbp + 0x1b0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rdx, qword [rsp + 0x50]
mov esi, eax
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18001ef90
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test esi, esi
jne 0x18001efe6
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.1800f4354
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx]
lea rcx, str.BackupFileDirs:_name_s_err_x
mov r8d, eax
call sym.SafeBase64.dll_DbgPrintW
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18001efdf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rbx, [0x180154c70]
test r14d, r14d
jne 0x18001ed50
lea rcx, [rsp + 0x60]
call fcn.1800f3dc8
mov eax, esi
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0x528]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.180007f70
int3