Function at 0x4e4a50
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5a7074]
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 0x4e4abb
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp eax, 0x3f
ja case.0x4e4ad2.3
movzx eax, byte [eax + 0x4e4d30]
jmp dword [eax*4 + 0x4e4d14]
mov dword [edi], ecx
mov dword [edi + 4], 0
mov eax, dword [esi]
cmp dword [edi], eax
je 0x4e4ac3
mov dword [edi], eax
mov eax, dword [esi]
dec eax
cmp eax, 0x3f
ja case.0x4e4ad2.3
movzx eax, byte [eax + 0x4e4d88]
jmp dword [eax*4 + 0x4e4d70]
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 0x4e4b46
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 0x4e4b46
mov edx, dword [esi + 4]
xor ecx, ecx
call fcn.004e49c0
mov ebx, eax
test ebx, ebx
je case.0x4e4ad2.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 0x4e4b62
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.0050a055
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 0x4e4b46
mov dword [edi], 0x10
jmp 0x4e4ab4
mov dword [edi], 2
mov eax, dword [esi + 4]
test eax, eax
je case.0x4e4ad2.3
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea ecx, [ebx + 1]
call fcn.00415a60
mov dword [edi + 4], eax
test eax, eax
je case.0x4e4ad2.3
lea edx, [ebx*2 + 2]
mov ecx, eax
push edx
push dword [esi + 4]
call fcn.00415d20
push eax
call fcn.0040d750
add esp, 0xc
mov eax, 1
jmp 0x4e4b46
mov edx, dword [esi + 4]
xor ecx, ecx
call fcn.004e49c0
test eax, eax
je case.0x4e4ad2.3
mov dword [edi + 4], eax
mov eax, 1
jmp 0x4e4b46
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.0x4e4ad2.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.0x4e4ad2.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 0x4e4b46
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 0x4e4b46
push 0
lea ecx, [ebp - 0x40]
call fcn.00405880
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push dword [edi + 4]
call fcn.00405880
cmp dword [edi + 4], 0
je 0x4e4cbc
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
jmp 0x4e4cbe
xor ecx, ecx
cmp dword [esi + 4], 0
je 0x4e4cd1
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
jmp 0x4e4cd3
xor eax, eax
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00405840
lea ecx, [ebp - 0x40]
call fcn.00405840
mov eax, esi
jmp 0x4e4b46
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 0x4e4b46