Function at 0x4c3e80
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5738f8
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 0x4c3eeb
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp eax, 0x3f
ja case.0x4c3f02.3
movzx eax, byte [eax + 0x4c4238]
jmp dword [eax*4 + 0x4c421c]
mov dword [edi], ecx
mov dword [edi + 4], 0
mov eax, dword [esi]
cmp dword [edi], eax
je 0x4c3ef3
mov dword [edi], eax
mov eax, dword [esi]
dec eax
cmp eax, 0x3f
ja case.0x4c3f02.3
movzx eax, byte [eax + 0x4c4290]
jmp dword [eax*4 + 0x4c4278]
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 0x4c3f76
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 0x4c3f76
mov edx, dword [esi + 4]
xor ecx, ecx
call fcn.004c3d60
mov ebx, eax
test ebx, ebx
je case.0x4c3f02.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 0x4c3f92
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.00510219
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 0x4c3f76
mov dword [edi], 0x10
jmp 0x4c3ee4
mov dword [edi], 2
mov eax, dword [esi + 4]
test eax, eax
je case.0x4c3f02.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.0x4c3f02.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.0x4c3ff9.1
movzx eax, byte [eax + 0x4c42e0]
jmp dword [eax*4 + 0x4c42d0]
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.004c3d60
test eax, eax
je case.0x4c3f02.3
mov dword [edi + 4], eax
mov eax, 1
jmp 0x4c3f76
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.0x4c3f02.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.0x4c3f02.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 0x4c3f76
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 0x4c3f76
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 0x4c410d
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
jmp 0x4c410f
xor ecx, ecx
cmp dword [esi + 4], 0
je 0x4c4122
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
jmp 0x4c4124
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 0x4c418b
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x28]
cmp eax, 0x7fffffff
jbe 0x4c414a
call fcn.0051e601
add eax, eax
cmp eax, 0x1000
jb 0x4c4182
test byte [ebp - 0x28], 0x1f
je 0x4c415e
call fcn.0051e601
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4c416a
call fcn.0051e601
sub ecx, eax
cmp ecx, 4
jae 0x4c4176
call fcn.0051e601
cmp ecx, 0x23
jbe 0x4c4180
call fcn.0051e601
mov ecx, eax
push ecx
call fcn.00510214
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 0x4c41f7
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x4c41b7
call fcn.0051e601
add eax, eax
cmp eax, 0x1000
jb 0x4c41ee
test cl, 0x1f
je 0x4c41ca
call fcn.0051e601
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4c41d6
call fcn.0051e601
sub ecx, eax
cmp ecx, 4
jae 0x4c41e2
call fcn.0051e601
cmp ecx, 0x23
jbe 0x4c41ec
call fcn.0051e601
mov ecx, eax
push ecx
call fcn.00510214
add esp, 4
mov eax, esi
jmp 0x4c3f76
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 0x4c3f76