Function at 0x14004e474
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x1402c4d40]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, r8
mov rdi, rdx
movzx edx, cx
mov r14d, 1
cmp dword [rdi], 0
jne 0x14004e4ed
mov ecx, dword [r8]
mov eax, ecx
sub eax, r14d
je 0x14004e4e6
sub eax, r14d
je 0x14004e5ed
sub eax, 2
je 0x14004e5cd
sub eax, 4
je 0x14004e5ad
sub eax, 8
je 0x14004e5a2
sub eax, 0x10
je 0x14004e540
cmp eax, 0x20
jne 0x14004e586
mov dword [rdi], ecx
and qword [rdi + 8], 0
mov ecx, dword [r8]
sub ecx, r14d
je 0x14004e7e4
sub ecx, r14d
je 0x14004e74a
sub ecx, 2
je 0x14004e684
sub ecx, 4
je 0x14004e655
sub ecx, 8
je 0x14004e51e
cmp ecx, 0x30
jne 0x14004e586
cmp qword [rdi + 8], 0
jne 0x14004e586
xor r8d, r8d
mov rcx, qword [rsi + 8]
call qword [sym.imp.ole32.dll_OleDuplicateData]
mov qword [rdi + 8], rax
test rax, rax
je 0x14004e586
jmp 0x14004e7fe
mov rdx, qword [r8 + 8]
xor ecx, ecx
call fcn.14004e36c
mov rsi, rax
test rax, rax
je 0x14004e586
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, rsi
test rax, rax
jne 0x14004e58d
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x14004e801
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 8], rsi
mov dword [rdi], 0x20
jmp 0x14004e7fe
mov dword [rdi], send
jmp 0x14004e4e8
mov rcx, qword [r8 + 8]
mov qword [rdi + 8], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14007b45e.0]
mov dword [rdi], 8
jmp 0x14004e7fe
mov rcx, qword [r8 + 8]
mov qword [rdi + 8], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14007b45e.0]
mov dword [rdi], 4
jmp 0x14004e7fe
mov dword [rdi], 2
mov rcx, qword [r8 + 8]
test rcx, rcx
je 0x14004e83a
call fcn.1401e4144
lea ebx, [r14 + rax]
add rbx, rbx
mov eax, 0xffffffff
cmp rbx, rax
ja 0x14004e620
mov ecx, ebx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
jmp 0x14004e622
xor eax, eax
mov qword [rdi + 8], rax
test rax, rax
je 0x14004e586
mov rdx, qword [rsi + 8]
test rbx, rbx
je 0x14004e7fe
mov r8, rbx
mov rcx, rax
test rdx, rdx
je 0x14004e825
call fcn.14020d7d0
jmp 0x14004e7fe
mov rcx, qword [r8 + 8]
mov rax, qword [rcx]
mov rdx, qword [rdi + 8]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rax + 0x38]
call qword [case.0x14007b45e.0]
test eax, eax
jne 0x14004e586
jmp 0x14004e7fe
mov rcx, qword [r8 + 8]
mov rax, qword [rcx]
mov r8d, r14d
lea rdx, [rsp + 0x40]
mov rax, qword [rax + 0x60]
call qword [case.0x14007b45e.0]
test eax, eax
jne 0x14004e586
and dword [rsp + 0x30], eax
and dword [rsp + 0x34], eax
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [rsp + 0x30]
mov rdx, rbx
mov rax, qword [rax + 0x28]
call qword [case.0x14007b45e.0]
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rax + 0x28]
call qword [case.0x14007b45e.0]
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x50]
mov rdx, qword [rdi + 8]
mov rax, qword [rax + 0x38]
call qword [case.0x14007b45e.0]
test eax, eax
jne 0x14004e586
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rax + 0x28]
call qword [case.0x14007b45e.0]
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rax + 0x28]
call qword [case.0x14007b45e.0]
jmp 0x14004e7fe
mov rdx, qword [r8 + 8]
lea rcx, [rsp + 0x38]
call fcn.14004d810
nop
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x30]
call fcn.14004d810
mov rax, qword [rdi + 8]
neg rax
sbb rdx, rdx
and rdx, qword [rsp + 0x30]
mov rax, qword [rsi + 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 0x14004e7ba
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14007b45e.0]
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 0x14004e7e0
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14007b45e.0]
mov eax, ebx
jmp 0x14004e801
mov rdx, qword [r8 + 8]
mov rcx, qword [rdi + 8]
call fcn.14004e36c
test rax, rax
je 0x14004e586
mov qword [rdi + 8], rax
mov eax, r14d
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401d4ee0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r14
pop rdi
pop rsi
ret
call fcn.14020de70
call fcn.1401de4d8
mov dword [rax], 0x16
call fcn.1401de36c
call fcn.14004d5d0
int3