Function at 0x14000bc70
Capabilities:
Copy file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1402537d8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rsi, r8
mov rdi, rdx
movzx edx, cx
cmp dword [rdi], 0
jne 0x14000bce7
mov ecx, dword [r8]
mov eax, ecx
sub eax, 1
je 0x14000bce0
sub eax, 1
je 0x14000bde8
sub eax, 2
je 0x14000bdc8
sub eax, 4
je 0x14000bda8
sub eax, 8
je 0x14000bd9d
sub eax, 0x10
je 0x14000bd3b
cmp eax, 0x20
jne 0x14000bd81
mov dword [rdi], ecx
and qword [rdi + 8], 0
mov ecx, dword [r8]
sub ecx, 1
je 0x14000bfd2
sub ecx, 1
je 0x14000bf38
sub ecx, 2
je 0x14000be6f
sub ecx, 4
je 0x14000be40
sub ecx, 8
je 0x14000bd18
cmp ecx, 0x30
jne 0x14000bd81
cmp qword [rdi + 8], 0
jne 0x14000bd81
xor r8d, r8d
mov rcx, qword [rsi + 8]
call qword [sym.imp.ole32.dll_OleDuplicateData]
mov qword [rdi + 8], rax
test rax, rax
jne 0x14000bfec
jmp 0x14000bd81
mov rdx, qword [r8 + 8]
xor ecx, ecx
call fcn.14000bbb4
mov rsi, rax
test rax, rax
je 0x14000bd81
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_CopyMetaFileW]
mov qword [rbx + 0x10], rax
mov rcx, rsi
test rax, rax
jne 0x14000bd88
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x14000bff1
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 8], rsi
mov dword [rdi], 0x20
jmp 0x14000bfec
mov dword [rdi], 0x10
jmp 0x14000bce2
mov rcx, qword [r8 + 8]
mov qword [rdi + 8], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140034bba.0]
mov dword [rdi], 8
jmp 0x14000bfec
mov rcx, qword [r8 + 8]
mov qword [rdi + 8], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140034bba.0]
mov dword [rdi], 4
jmp 0x14000bfec
mov dword [rdi], 2
mov rcx, qword [r8 + 8]
test rcx, rcx
je 0x14000c00c
call fcn.140195924
lea ebx, [rax + 1]
add rbx, rbx
mov eax, 0xffffffff
cmp rbx, rax
jbe 0x14000be14
xor eax, eax
jmp 0x14000be1c
mov ecx, ebx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rdi + 8], rax
test rax, rax
je 0x14000bd81
mov r9, rbx
mov r8, qword [rsi + 8]
mov rdx, rbx
mov rcx, rax
call fcn.14000c174
jmp 0x14000bfec
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.0x140034bba.0]
test eax, eax
jne 0x14000bd81
jmp 0x14000bfec
mov rcx, qword [r8 + 8]
mov rax, qword [rcx]
mov r8d, 1
lea rdx, [rsp + 0x50]
mov rax, qword [rax + 0x60]
call qword [case.0x140034bba.0]
test eax, eax
jne 0x14000bd81
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.0x140034bba.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.0x140034bba.0]
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, qword [rdi + 8]
mov rax, qword [rax + 0x38]
call qword [case.0x140034bba.0]
test eax, eax
jne 0x14000bd81
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.0x140034bba.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.0x140034bba.0]
jmp 0x14000bfec
mov rdx, qword [r8 + 8]
lea rcx, [rsp + 0x38]
call fcn.14000af1c
nop
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x30]
call fcn.14000af1c
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_CopyFileW]
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 0x14000bfa8
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140034bba.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 0x14000bfce
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140034bba.0]
mov eax, ebx
jmp 0x14000bff1
mov rdx, qword [r8 + 8]
mov rcx, qword [rdi + 8]
call fcn.14000bbb4
test rax, rax
je 0x14000bd81
mov qword [rdi + 8], rax
mov eax, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14018d9a0
add rsp, 0xb0
pop rdi
pop rsi
pop rbx
ret
call fcn.14000c29c
int3