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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x553e18
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x553e17
push esi
push edi
call fcn.00553e27
mov eax, dword [esi + 8]
pop ecx
pop ecx
test al, 8
je 0x553d43
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 0x10]
push edi
call fcn.0055cc96
mov eax, dword [esi + 8]
add esp, 0xc
test al, 0x10
je 0x553be3
test dword [edi + 0x74], 0x80000
je 0x553bc9
cmp byte [esi + 0x19], 3
jne 0x553bc9
xor eax, eax
xor ecx, ecx
cmp ax, word [esi + 0x16]
jae 0x553bc9
mov eax, dword [esi + 0x4c]
not byte [eax + ecx]
inc ecx
movzx eax, word [esi + 0x16]
cmp ecx, eax
jl 0x553bba
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.0055eba8
add esp, 0x14
mov eax, dword [esi + 8]
test al, 0x20
je 0x553bff
movzx eax, byte [esi + 0x19]
push eax
lea eax, [esi + 0x5a]
push eax
push edi
call fcn.0055cda1
mov eax, dword [esi + 8]
add esp, 0xc
test al, 0x40
je 0x553c17
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 0x7c]
push edi
call fcn.0055e0bd
mov eax, dword [esi + 8]
add esp, 0xc
test eax, 0x100
je 0x553c35
movzx eax, byte [esi + 0x6c]
push eax
push dword [esi + 0x68]
push dword [esi + 0x64]
push edi
call fcn.0055e3be
mov eax, dword [esi + 8]
add esp, 0x10
test eax, 0x400
je 0x553c76
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.0055e425
mov eax, dword [esi + 8]
add esp, 0x20
test eax, 0x4000
je 0x553c9d
push dword [esi + 0xe4]
movzx eax, byte [esi + 0xdc]
push dword [esi + 0xe0]
push eax
push edi
call fcn.0055e6c1
mov eax, dword [esi + 8]
add esp, 0x10
test al, al
jns 0x553cb8
movzx eax, byte [esi + 0x78]
push eax
push dword [esi + 0x74]
push dword [esi + 0x70]
push edi
call fcn.0055e59e
mov eax, dword [esi + 8]
add esp, 0x10
push ebx
mov ebx, 0x200
test ebx, eax
je 0x553cd4
lea eax, [esi + 0x3c]
push eax
push edi
call fcn.0055eb18
or dword [edi + 0x6c], ebx
mov eax, dword [esi + 8]
pop ecx
pop ecx
test eax, 0x2000
je 0x553d0d
xor ebx, ebx
cmp dword [esi + 0xd8], ebx
jle 0x553d0d
xor ecx, ecx
mov dword [ebp + 8], ecx
mov eax, dword [esi + 0xd4]
add eax, ecx
push eax
push edi
call fcn.0055e75a
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
inc ebx
add ecx, 0x10
mov dword [ebp + 8], ecx
cmp ebx, dword [esi + 0xd8]
jl 0x553cea
and dword [ebp + 8], 0
cmp dword [esi + 0x30], 0
jle 0x553daa
xor ebx, ebx
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + ebx]
test ecx, ecx
jle 0x553d52
push dword [eax + ebx + 8]
push dword [eax + ebx + 0x18]
push dword [eax + ebx + 0x14]
push dword [eax + ebx + 4]
push ecx
push edi
call fcn.0055e24c
add esp, 0x18
jmp 0x553d8d
cmp byte [esi + 0x19], 3
je 0x553e1b
jmp 0x553b9d
jne 0x553d75
push 0
push 0
push dword [eax + ebx + 8]
push dword [eax + ebx + 4]
push edi
call fcn.0055ecb4
mov eax, dword [esi + 0x38]
add esp, 0x14
mov dword [ebx + eax], 0xfffffffe
jmp 0x553d97
cmp ecx, 0xffffffff
jne 0x553d97
push 0
push dword [eax + ebx + 8]
push dword [eax + ebx + 4]
push edi
call fcn.0055ea94
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 0x553d1d
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x553e16
mov ebx, dword [esi + 0xbc]
imul eax, eax, 0x14
add eax, ebx
jmp 0x553e12
push ebx
push edi
call fcn.00555a43
pop ecx
pop ecx
cmp eax, 1
je 0x553e02
mov cl, byte [ebx + 0x10]
test cl, cl
je 0x553e02
and cl, 0xe
cmp cl, 2
jne 0x553e02
test byte [ebx + 3], 0x20
jne 0x553df2
cmp eax, 3
je 0x553df2
test dword [edi + 0x70], 0x10000
je 0x553e02
push dword [ebx + 0xc]
push dword [ebx + 8]
push ebx
push edi
call fcn.0055cf4d
add esp, 0x10
imul eax, dword [esi + 0xc0], 0x14
add ebx, 0x14
add eax, dword [esi + 0xbc]
cmp ebx, eax
jb 0x553dc1
pop ebx
pop esi
pop edi
pop ebp
ret
push str.Valid_palette_required_for_paletted_images
push edi
call fcn.00554369
int3