Function at 0x4c2d60
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5723f8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5b1074]
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 0x4c2dcb
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp eax, 0x3f
ja case.0x4c2de2.3
movzx eax, byte [eax + 0x4c3118]
jmp dword [eax*4 + 0x4c30fc]
mov dword [edi], ecx
mov dword [edi + 4], 0
mov eax, dword [esi]
cmp dword [edi], eax
je 0x4c2dd3
mov dword [edi], eax
mov eax, dword [esi]
dec eax
cmp eax, 0x3f
ja case.0x4c2de2.3
movzx eax, byte [eax + 0x4c3170]
jmp dword [eax*4 + 0x4c3158]
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 0x4c2e56
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 0x4c2e56
mov edx, dword [esi + 4]
xor ecx, ecx
call fcn.004c2c40
mov ebx, eax
test ebx, ebx
je case.0x4c2de2.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 0x4c2e72
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.0050eff9
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 0x4c2e56
mov dword [edi], 0x10
jmp 0x4c2dc4
mov dword [edi], 2
mov eax, dword [esi + 4]
test eax, eax
je case.0x4c2de2.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.0x4c2de2.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.0x4c2ed9.1
movzx eax, byte [eax + 0x4c31c0]
jmp dword [eax*4 + 0x4c31b0]
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.004c2c40
test eax, eax
je case.0x4c2de2.3
mov dword [edi + 4], eax
mov eax, 1
jmp 0x4c2e56
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.0x4c2de2.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.0x4c2de2.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 0x4c2e56
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 0x4c2e56
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 0x4c2fed
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
jmp 0x4c2fef
xor ecx, ecx
cmp dword [esi + 4], 0
je 0x4c3002
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
jmp 0x4c3004
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 0x4c306b
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x28]
cmp eax, 0x7fffffff
jbe 0x4c302a
call fcn.0051d3e1
add eax, eax
cmp eax, 0x1000
jb 0x4c3062
test byte [ebp - 0x28], 0x1f
je 0x4c303e
call fcn.0051d3e1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4c304a
call fcn.0051d3e1
sub ecx, eax
cmp ecx, 4
jae 0x4c3056
call fcn.0051d3e1
cmp ecx, 0x23
jbe 0x4c3060
call fcn.0051d3e1
mov ecx, eax
push ecx
call fcn.0050eff4
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 0x4c30d7
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x4c3097
call fcn.0051d3e1
add eax, eax
cmp eax, 0x1000
jb 0x4c30ce
test cl, 0x1f
je 0x4c30aa
call fcn.0051d3e1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4c30b6
call fcn.0051d3e1
sub ecx, eax
cmp ecx, 4
jae 0x4c30c2
call fcn.0051d3e1
cmp ecx, 0x23
jbe 0x4c30cc
call fcn.0051d3e1
mov ecx, eax
push ecx
call fcn.0050eff4
add esp, 4
mov eax, esi
jmp 0x4c2e56
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 0x4c2e56