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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x556196
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x556195
push esi
push edi
call fcn.005561a0
add esp, 8
test byte [esi + 8], 8
je 0x555efe
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 0x10]
push edi
call fcn.0057b090
add esp, 0xc
jmp 0x555f12
cmp byte [esi + 0x19], 3
jne 0x555f12
push str.Valid_palette_required_for_paletted_images
push edi
call fcn.005575c0
add esp, 8
test byte [esi + 8], 0x10
je 0x555f5a
test dword [edi + 0x30], 0x80000
je 0x555f40
cmp byte [esi + 0x19], 3
jne 0x555f40
xor eax, eax
xor edx, edx
cmp ax, word [esi + 0x16]
jae 0x555f40
mov ecx, dword [esi + 0x4c]
not byte [ecx + edx]
inc edx
movzx eax, word [esi + 0x16]
cmp edx, eax
jl 0x555f31
movzx eax, byte [esi + 0x19]
push eax
movzx eax, word [esi + 0x16]
push eax
lea eax, [esi + 0x50]
push eax
push dword [esi + 0x4c]
push edi
call fcn.0057db20
add esp, 0x14
test byte [esi + 8], 0x20
je 0x555f72
movzx eax, byte [esi + 0x19]
push eax
lea eax, [esi + 0x5a]
push eax
push edi
call fcn.0057b1c0
add esp, 0xc
test byte [esi + 8], 0x40
je 0x555f89
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 0x7c]
push edi
call fcn.0057ca30
add esp, 0xc
test dword [esi + 8], 0x100
je 0x555fa6
movzx eax, byte [esi + 0x6c]
push eax
push dword [esi + 0x68]
push dword [esi + 0x64]
push edi
call fcn.0057ce60
add esp, 0x10
test dword [esi + 8], 0x400
je 0x555fe6
push dword [esi + 0xb0]
movzx eax, byte [esi + 0xb5]
push dword [esi + 0xac]
push eax
movzx eax, byte [esi + 0xb4]
push eax
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push edi
call fcn.0057cf50
add esp, 0x20
test dword [esi + 8], 0x4000
je 0x55600e
movups xmm0, xmmword [esi + 0xe0]
movzx eax, byte [esi + 0xdc]
sub esp, 0x10
movups xmmword [esp], xmm0
push eax
push edi
call fcn.0057d410
add esp, 0x18
test byte [esi + 8], 0x80
je 0x556028
movzx eax, byte [esi + 0x78]
push eax
push dword [esi + 0x74]
push dword [esi + 0x70]
push edi
call fcn.0057d220
add esp, 0x10
test dword [esi + 8], 0x200
je 0x556045
lea eax, [esi + 0x3c]
push eax
push edi
call fcn.0057da60
add esp, 8
or dword [edi + 0x28], 0x200
test dword [esi + 8], 0x2000
push ebx
je 0x556084
xor ebx, ebx
cmp dword [esi + 0xd8], ebx
jle 0x556084
xor ecx, ecx
mov dword [ebp + 8], ecx
nop
mov eax, dword [esi + 0xd4]
add eax, ecx
push eax
push edi
call fcn.0057d4d0
mov ecx, dword [ebp + 8]
inc ebx
add ecx, 0x10
add esp, 8
mov dword [ebp + 8], ecx
cmp ebx, dword [esi + 0xd8]
jl 0x556060
cmp dword [esi + 0x30], 0
mov dword [ebp + 8], 0
jle 0x556110
xor ebx, ebx
mov eax, dword [esi + 0x38]
mov ecx, dword [ebx + eax]
test ecx, ecx
jle 0x5560bd
push dword [ebx + eax + 8]
push dword [ebx + eax + 0x18]
push dword [ebx + eax + 0x14]
push dword [ebx + eax + 4]
push ecx
push edi
call fcn.0057cc90
add esp, 0x18
jmp 0x5560f7
jne 0x5560df
push ecx
push 0
push dword [ebx + eax + 8]
push dword [ebx + eax + 4]
push edi
call fcn.0057dc60
mov eax, dword [esi + 0x38]
add esp, 0x14
mov dword [ebx + eax], 0xfffffffe
jmp 0x556101
cmp ecx, 0xffffffff
jne 0x556101
push 0
push dword [ebx + eax + 8]
push dword [ebx + eax + 4]
push edi
call fcn.0057d940
add esp, 0x10
mov eax, dword [esi + 0x38]
mov dword [ebx + eax], 0xfffffffd
mov eax, dword [ebp + 8]
add ebx, 0x1c
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [esi + 0x30]
jl 0x556097
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x556194
mov ebx, dword [esi + 0xbc]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
cmp ebx, eax
jae 0x556194
add ebx, 0x10
lea eax, [ebx - 0x10]
push eax
push edi
call fcn.00556ef0
add esp, 8
cmp eax, 1
je 0x556178
mov cl, byte [ebx]
test cl, cl
je 0x556178
and cl, 6
cmp cl, 2
jne 0x556178
test byte [ebx - 0xd], 0x20
jne 0x556165
cmp eax, 3
je 0x556165
test dword [edi + 0x2c], 0x10000
je 0x556178
push dword [ebx - 4]
lea eax, [ebx - 0x10]
push dword [ebx - 8]
push eax
push edi
call fcn.0057b620
add esp, 0x10
mov eax, dword [esi + 0xc0]
add ebx, 0x14
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0xbc]
lea ecx, [eax + ecx*4]
lea eax, [ebx - 0x10]
cmp eax, ecx
jb 0x556131
pop ebx
pop esi
pop edi
pop ebp
ret