Function at 0x4c3450
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572d58
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5b3074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
cmp dword [edi], 0
mov esi, dword [ebp + 8]
movzx edx, cx
mov dword [edi + 8], 0
mov dword [edi + 4], 0
jne 0x4c34bb
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp eax, 0x3f
ja case.0x4c34d2.3
movzx eax, byte [eax + 0x4c3808]
jmp dword [eax*4 + 0x4c37ec]
mov dword [edi], ecx
mov dword [edi + 4], 0
mov eax, dword [esi]
cmp dword [edi], eax
je 0x4c34c3
mov dword [edi], eax
mov eax, dword [esi]
dec eax
cmp eax, 0x3f
ja case.0x4c34d2.3
movzx eax, byte [eax + 0x4c3860]
jmp dword [eax*4 + 0x4c3848]
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi], 4
mov eax, 1
jmp 0x4c3546
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi], 8
mov eax, 1
jmp 0x4c3546
mov edx, dword [esi + 4]
xor ecx, ecx
call fcn.004c3330
mov ebx, eax
test ebx, ebx
je case.0x4c34d2.3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push 0
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_CopyMetaFileW]
mov dword [esi + 0xc], eax
push ebx
test eax, eax
jne 0x4c3562
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050f7b9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [edi + 4], ebx
mov eax, 1
mov dword [edi], 0x20
jmp 0x4c3546
mov dword [edi], 0x10
jmp 0x4c34b4
mov dword [edi], 2
mov eax, dword [esi + 4]
test eax, eax
je case.0x4c34d2.3
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea ecx, [ebx + 1]
call fcn.0040a725
mov dword [edi + 4], eax
test eax, eax
je case.0x4c34d2.3
lea edx, [ebx*2 + 2]
mov ecx, eax
push edx
push dword [esi + 4]
call fcn.0040a900
add esp, 8
cmp eax, 0x50
ja case.0x4c35c9.1
movzx eax, byte [eax + 0x4c38b0]
jmp dword [eax*4 + 0x4c38a0]
push 0x8007000e
call fcn.0040b4a2
push 0x80070057
call fcn.0040b4a2
push 0x80004005
call fcn.0040b4a2
mov edx, dword [esi + 4]
xor ecx, ecx
call fcn.004c3330
test eax, eax
je case.0x4c34d2.3
mov dword [edi + 4], eax
mov eax, 1
jmp 0x4c3546
mov eax, dword [esi + 4]
lea edx, [ebp - 0x88]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
jne case.0x4c34d2.3
mov eax, dword [edi + 4]
push 0
push 0
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x14]
mov eax, dword [esi + 4]
push 0
push 0
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x14]
mov eax, dword [esi + 4]
push 0
push 0
push dword [ebp - 0x7c]
mov ecx, dword [eax]
push dword [ebp - 0x80]
push dword [edi + 4]
push eax
call dword [ecx + 0x1c]
test eax, eax
jne case.0x4c34d2.3
mov eax, dword [edi + 4]
push 0
push 0
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x14]
mov eax, dword [esi + 4]
push 0
push 0
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x14]
mov eax, 1
jmp 0x4c3546
mov eax, dword [esi + 4]
push 0
push 0
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x1c]
neg eax
sbb eax, eax
inc eax
jmp 0x4c3546
push 0
lea ecx, [ebp - 0x40]
call fcn.00411193
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push dword [edi + 4]
call fcn.00411193
cmp dword [edi + 4], 0
je 0x4c36dd
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
jmp 0x4c36df
xor ecx, ecx
cmp dword [esi + 4], 0
je 0x4c36f2
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
jmp 0x4c36f4
xor eax, eax
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 8
jb 0x4c375b
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x28]
cmp eax, 0x7fffffff
jbe 0x4c371a
call fcn.0051dba1
add eax, eax
cmp eax, 0x1000
jb 0x4c3752
test byte [ebp - 0x28], 0x1f
je 0x4c372e
call fcn.0051dba1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4c373a
call fcn.0051dba1
sub ecx, eax
cmp ecx, 4
jae 0x4c3746
call fcn.0051dba1
cmp ecx, 0x23
jbe 0x4c3750
call fcn.0051dba1
mov ecx, eax
push ecx
call fcn.0050f7b4
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x4c37c7
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x4c3787
call fcn.0051dba1
add eax, eax
cmp eax, 0x1000
jb 0x4c37be
test cl, 0x1f
je 0x4c379a
call fcn.0051dba1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4c37a6
call fcn.0051dba1
sub ecx, eax
cmp ecx, 4
jae 0x4c37b2
call fcn.0051dba1
cmp ecx, 0x23
jbe 0x4c37bc
call fcn.0051dba1
mov ecx, eax
push ecx
call fcn.0050f7b4
add esp, 4
mov eax, esi
jmp 0x4c3546
push 0
push edx
push dword [esi + 4]
call dword [sym.imp.ole32.dll_OleDuplicateData]
xor ecx, ecx
mov dword [edi + 4], eax
test eax, eax
setne cl
mov eax, ecx
jmp 0x4c3546