Function at 0x4c3e70
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5738e8
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 0x4c3edb
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp eax, 0x3f
ja case.0x4c3ef2.3
movzx eax, byte [eax + 0x4c4228]
jmp dword [eax*4 + 0x4c420c]
mov dword [edi], ecx
mov dword [edi + 4], 0
mov eax, dword [esi]
cmp dword [edi], eax
je 0x4c3ee3
mov dword [edi], eax
mov eax, dword [esi]
dec eax
cmp eax, 0x3f
ja case.0x4c3ef2.3
movzx eax, byte [eax + 0x4c4280]
jmp dword [eax*4 + 0x4c4268]
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 0x4c3f66
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 0x4c3f66
mov edx, dword [esi + 4]
xor ecx, ecx
call fcn.004c3d50
mov ebx, eax
test ebx, ebx
je case.0x4c3ef2.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 0x4c3f82
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.00510209
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 0x4c3f66
mov dword [edi], 0x10
jmp 0x4c3ed4
mov dword [edi], 2
mov eax, dword [esi + 4]
test eax, eax
je case.0x4c3ef2.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.0x4c3ef2.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.0x4c3fe9.1
movzx eax, byte [eax + 0x4c42d0]
jmp dword [eax*4 + 0x4c42c0]
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.004c3d50
test eax, eax
je case.0x4c3ef2.3
mov dword [edi + 4], eax
mov eax, 1
jmp 0x4c3f66
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.0x4c3ef2.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.0x4c3ef2.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 0x4c3f66
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 0x4c3f66
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 0x4c40fd
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
jmp 0x4c40ff
xor ecx, ecx
cmp dword [esi + 4], 0
je 0x4c4112
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
jmp 0x4c4114
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 0x4c417b
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x28]
cmp eax, 0x7fffffff
jbe 0x4c413a
call fcn.0051e5f1
add eax, eax
cmp eax, 0x1000
jb 0x4c4172
test byte [ebp - 0x28], 0x1f
je 0x4c414e
call fcn.0051e5f1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4c415a
call fcn.0051e5f1
sub ecx, eax
cmp ecx, 4
jae 0x4c4166
call fcn.0051e5f1
cmp ecx, 0x23
jbe 0x4c4170
call fcn.0051e5f1
mov ecx, eax
push ecx
call fcn.00510204
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 0x4c41e7
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x4c41a7
call fcn.0051e5f1
add eax, eax
cmp eax, 0x1000
jb 0x4c41de
test cl, 0x1f
je 0x4c41ba
call fcn.0051e5f1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4c41c6
call fcn.0051e5f1
sub ecx, eax
cmp ecx, 4
jae 0x4c41d2
call fcn.0051e5f1
cmp ecx, 0x23
jbe 0x4c41dc
call fcn.0051e5f1
mov ecx, eax
push ecx
call fcn.00510204
add esp, 4
mov eax, esi
jmp 0x4c3f66
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 0x4c3f66