Function at 0x14000e4e0
Capabilities:
Copy file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14025f760]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, r8
mov rdi, rdx
movzx edx, cx
xor esi, esi
cmp dword [rdi], esi
jne 0x14000e689
mov ecx, dword [r8]
mov eax, ecx
sub eax, 1
je 0x14000e683
sub eax, 1
je 0x14000e5fb
sub eax, 2
je 0x14000e5e2
sub eax, 4
je 0x14000e5c9
sub eax, 8
je 0x14000e5be
sub eax, 0x10
je 0x14000e55a
cmp eax, 0x20
je 0x14000e683
jmp 0x14000e56d
mov rdx, qword [r8 + 8]
xor ecx, ecx
call fcn.14000e3fc
mov rbp, rax
test rax, rax
jne 0x14000e574
xor eax, eax
jmp 0x14000e848
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbx, rax
xor edx, edx
mov rcx, qword [rax + 0x10]
call qword [sym.imp.GDI32.dll_CopyMetaFileA]
mov qword [rbx + 0x10], rax
mov rcx, rbp
test rax, rax
jne 0x14000e5a9
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14000e56d
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 8], rbp
mov dword [rdi], 0x20
jmp 0x14000e843
mov dword [rdi], reloc.OLEAUT32.dll_SafeArrayGetDim
jmp 0x14000e685
mov rcx, qword [r8 + 8]
mov qword [rdi + 8], rcx
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rdi], 8
jmp 0x14000e843
mov rcx, qword [r8 + 8]
mov qword [rdi + 8], rcx
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rdi], 4
jmp 0x14000e843
mov dword [rdi], 2
mov rcx, qword [r8 + 8]
test rcx, rcx
jne 0x14000e610
call fcn.14000daf0
int3
call fcn.140199ddc
lea ebx, [rax + 1]
add rbx, rbx
mov eax, 0xffffffff
cmp rbx, rax
jbe 0x14000e62a
mov rax, rsi
jmp 0x14000e632
mov ecx, ebx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rdi + 8], rax
test rax, rax
je 0x14000e56d
mov r9, rbx
mov r8, qword [r14 + 8]
mov rdx, rbx
mov rcx, rax
call fcn.1401af778
test eax, eax
je 0x14000e843
cmp eax, 0xc
je 0x14000e67d
cmp eax, 0x16
je 0x14000e677
cmp eax, 0x22
je 0x14000e677
cmp eax, 0x50
je 0x14000e843
call fcn.14000daf0
int3
call fcn.14000daf0
int3
call fcn.14000db14
int3
mov dword [rdi], ecx
mov qword [rdi + 8], rsi
mov ecx, dword [r8]
sub ecx, 1
je 0x14000e829
sub ecx, 1
je 0x14000e79c
sub ecx, 2
je 0x14000e703
sub ecx, 4
je 0x14000e6da
sub ecx, 8
je 0x14000e6b6
cmp ecx, 0x30
jne 0x14000e56d
cmp qword [rdi + 8], rsi
jne 0x14000e56d
xor r8d, r8d
mov rcx, qword [r14 + 8]
call qword [sym.imp.ole32.dll_OleDuplicateData]
mov qword [rdi + 8], rax
test rax, rax
setne sil
jmp 0x14000e6fc
mov rcx, qword [r8 + 8]
mov r10, qword [rcx]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [r10 + 0x38]
test eax, eax
sete sil
mov eax, esi
jmp 0x14000e848
mov rcx, qword [r8 + 8]
mov rax, qword [rcx]
mov r8d, 1
lea rdx, [rsp + 0x50]
call qword [rax + 0x60]
test eax, eax
jne 0x14000e56d
mov qword [rsp + 0x30], rsi
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rbx, rsi
mov rdx, rbx
call qword [rax + 0x28]
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x28]
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, qword [rdi + 8]
call qword [rax + 0x38]
test eax, eax
jne 0x14000e56d
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x28]
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x28]
jmp 0x14000e843
mov rdx, qword [r8 + 8]
lea rcx, [rsp + 0x38]
call fcn.14000dcf4
nop
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x30]
call fcn.14000dcf4
mov rax, qword [rdi + 8]
neg rax
sbb rdx, rdx
and rdx, qword [rsp + 0x30]
mov rax, qword [r14 + 8]
neg rax
sbb rcx, rcx
and rcx, qword [rsp + 0x38]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, eax
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x14000e806
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000e825
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
jmp 0x14000e848
mov rdx, qword [r8 + 8]
mov rcx, qword [rdi + 8]
call fcn.14000e3fc
test rax, rax
je 0x14000e56d
mov qword [rdi + 8], rax
mov eax, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140192540
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret