Function at 0x4ea340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4ea5c1
mov ebx, dword [ebp + 8]
push 0x28
push ebx
call dword [0x579e7c]
mov esi, eax
xor eax, eax
add esp, 8
cmp esi, eax
mov dword [esp + 0x10], esi
je 0x4ea5c1
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], 0x4e0810
mov dword [esi + 0x14], 0x4e0890
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0xc], esi
mov dword [esi + 0x20], ebx
call fcn.004e07e0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
xor ebx, ebx
test edi, edi
mov dword [esp + 0xc], edx
jbe 0x4ea5ca
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx + 0x30]
cmp eax, 0x6c696e6b
mov dword [esp + 0x1c], eax
je 0x4ea3d0
cmp eax, 0x61627374
je 0x4ea3d0
xor edi, edi
jmp 0x4ea3d5
mov edi, 1
test ebx, ebx
mov dword [esp + 0x14], edi
jne 0x4ea3e6
test edi, edi
jne 0x4ea3e6
lea eax, [edi + 1]
jmp 0x4ea3ff
cmp edx, 0x58595a20
je 0x4ea3fd
cmp edx, 0x4c616220
je 0x4ea3fd
mov eax, 1
jmp 0x4ea3ff
xor eax, eax
test eax, eax
mov edx, dword [ebp + 0x10]
mov esi, dword [edx + ebx*4]
jne 0x4ea415
test edi, edi
jne 0x4ea415
mov edi, dword [ecx + 0x38]
mov edx, dword [ecx + 0x34]
jmp 0x4ea41b
mov edi, dword [ecx + 0x34]
mov edx, dword [ecx + 0x38]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xc]
cmp edi, edx
je 0x4ea44f
cmp edi, 0x58595a20
jne 0x4ea437
cmp edx, 0x4c616220
jmp 0x4ea449
cmp edi, 0x4c616220
jne 0x4ea5a2
cmp edx, 0x58595a20
jne 0x4ea5a2
cmp dword [esp + 0x14], 0
je 0x4ea501
mov eax, esi
call fcn.004d51c0
test eax, eax
mov dword [esp + 0x14], eax
je 0x4ea5b4
cmp dword [esp + 0x1c], 0x61627374
jne 0x4ea4be
test ebx, ebx
jbe 0x4ea4be
mov eax, dword [ebp + 0x1c]
fld qword [eax + ebx*8]
mov eax, dword [ebp + 0x18]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [eax + ebx*4]
lea edx, [esp + 0x44]
push edx
mov edx, dword [ebp + 0x14]
push ecx
push edx
push ebx
mov eax, esi
call fcn.004e9e90
add esp, 0x1c
test eax, eax
je 0x4ea5b4
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
jmp 0x4ea55d
fld1
lea eax, [esp + 0x20]
fst qword [esp + 0x38]
push eax
fldz
lea ecx, [esp + 0x3c]
fst qword [esp + 0x44]
push ecx
fst qword [esp + 0x50]
fst qword [esp + 0x58]
fst qword [esp + 0x68]
fst qword [esp + 0x70]
fst qword [esp + 0x78]
fst qword [esp + 0x28]
fst qword [esp + 0x30]
fstp qword [esp + 0x38]
fst qword [esp + 0x60]
fstp qword [esp + 0x80]
jmp 0x4ea55d
test eax, eax
mov eax, esi
je 0x4ea512
call fcn.004d4bf0
mov dword [esp + 0x14], eax
jmp 0x4ea56f
call fcn.004d50b0
test eax, eax
mov dword [esp + 0x14], eax
je 0x4ea5b4
mov edx, dword [ebp + 0x1c]
fld qword [edx + ebx*8]
mov edx, dword [ebp + 0x18]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x28]
push eax
mov eax, dword [edx + ebx*4]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [ebp + 0x14]
push eax
push ecx
push ebx
mov eax, esi
call fcn.004e9e90
add esp, 0x1c
test eax, eax
je 0x4ea5b4
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edi, dword [esp + 0x18]
call fcn.004ea040
add esp, 8
test eax, eax
je 0x4ea5b4
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
call fcn.004e0ac0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004e0990
mov edx, dword [esp + 0x1c]
add ebx, 1
add esp, 4
cmp ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
jae 0x4ea5ca
jmp 0x4ea3b1
mov esi, dword [ebp + 8]
push str.ColorSpace_mismatch
push 9
call fcn.004d55b0
add esp, 8
mov eax, dword [esp + 0x10]
push eax
call fcn.004e0990
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret