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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push ebp
call fcn.0053b200
mov esi, dword [esp + 0x18]
movzx eax, byte [esi + 0x1c]
movzx ecx, byte [esi + 0x1b]
movzx edx, byte [esi + 0x1a]
push eax
movzx eax, byte [esi + 0x19]
push ecx
movzx ecx, byte [esi + 0x18]
push edx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
push ebp
call fcn.0053bf10
add esp, 0x24
test byte [esi + 8], 1
je 0x533e42
fld dword [esi + 0x28]
sub esp, 8
fstp qword [esp]
push ebp
call fcn.0053c290
add esp, 0xc
test dword [esi + 8], 0x800
je 0x533e59
movzx ecx, byte [esi + 0x2c]
push ecx
push ebp
call fcn.0053c2f0
add esp, 8
test byte [esi + 8], 2
je 0x533e71
movzx edx, byte [esi + 0x19]
push edx
lea eax, [esi + 0x44]
push eax
push ebp
call fcn.0053c330
add esp, 0xc
test byte [esi + 8], 4
je 0x533ed2
fld dword [esi + 0x9c]
sub esp, 0x40
fstp qword [esp + 0x38]
fld dword [esi + 0x98]
fstp qword [esp + 0x30]
fld dword [esi + 0x94]
fstp qword [esp + 0x28]
fld dword [esi + 0x90]
fstp qword [esp + 0x20]
fld dword [esi + 0x8c]
fstp qword [esp + 0x18]
fld dword [esi + 0x88]
fstp qword [esp + 0x10]
fld dword [esi + 0x84]
fstp qword [esp + 8]
fld dword [esi + 0x80]
fstp qword [esp]
push ebp
call fcn.0053c3f0
add esp, 0x44
test byte [esi + 8], 8
mov bl, 3
je 0x533eee
movzx ecx, word [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
push ebp
call fcn.0053b230
add esp, 0xc
jmp 0x533f01
cmp byte [esi + 0x19], bl
jne 0x533f01
push str.Valid_palette_required_for_paletted_images_n
push ebp
call fcn.0052baf0
add esp, 8
test byte [esi + 8], 0x10
je 0x533f51
test dword [ebp + 0x70], 0x80000
je 0x533f36
cmp byte [esi + 0x19], bl
jne 0x533f36
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 0x16]
jae 0x533f36
nop
mov edx, dword [esi + 0x4c]
lea ecx, [edx + eax]
or dl, 0xff
sub dl, byte [ecx]
inc eax
mov byte [ecx], dl
movzx ecx, word [esi + 0x16]
cmp eax, ecx
jl 0x533f20
movzx edx, byte [esi + 0x19]
movzx eax, word [esi + 0x16]
push edx
mov edx, dword [esi + 0x4c]
push eax
lea ecx, [esi + 0x50]
push ecx
push edx
push ebp
call fcn.0053c7c0
add esp, 0x14
test byte [esi + 8], 0x20
je 0x533f69
movzx eax, byte [esi + 0x19]
push eax
lea ecx, [esi + 0x5a]
push ecx
push ebp
call fcn.0053c8e0
add esp, 0xc
test byte [esi + 8], 0x40
je 0x533f81
movzx edx, word [esi + 0x14]
mov eax, dword [esi + 0x7c]
push edx
push eax
push ebp
call fcn.0053b2e0
add esp, 0xc
test dword [esi + 8], 0x100
je 0x533fa0
movzx ecx, byte [esi + 0x6c]
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x64]
push ecx
push edx
push eax
push ebp
call fcn.0053ca00
add esp, 0x10
test dword [esi + 8], 0x400
je 0x533fe5
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xac]
movzx eax, byte [esi + 0xb5]
push ecx
movzx ecx, byte [esi + 0xb4]
push edx
mov edx, dword [esi + 0xa8]
push eax
mov eax, dword [esi + 0xa4]
push ecx
mov ecx, dword [esi + 0xa0]
push edx
push eax
push ecx
push ebp
call fcn.0053b980
add esp, 0x20
test byte [esi + 8], 0x80
je 0x534001
movzx edx, byte [esi + 0x78]
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push edx
push eax
push ecx
push ebp
call fcn.0053ca80
add esp, 0x10
test dword [esi + 8], 0x200
je 0x53401e
lea edx, [esi + 0x3c]
push edx
push ebp
call fcn.0053cb00
add esp, 8
or dword [ebp + 0x6c], 0x10000
xor ebx, ebx
cmp dword [esi + 0x30], ebx
jle 0x534092
push edi
xor edi, edi
mov eax, dword [esi + 0x38]
mov eax, dword [edi + eax]
test eax, eax
jl 0x53405d
mov ecx, dword [esi + 0x38]
mov edx, dword [edi + ecx]
lea eax, [edi + ecx]
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
push ebp
call fcn.0053b5a0
mov ecx, dword [esi + 0x38]
add esp, 0x14
mov dword [edi + ecx], 0xfffffffe
jmp 0x534088
cmp eax, 0xffffffff
jne 0x534088
mov edx, dword [esi + 0x38]
mov ecx, dword [edi + edx + 0xc]
lea eax, [edi + edx]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
push ebp
call fcn.0053b510
mov ecx, dword [esi + 0x38]
add esp, 0x10
mov dword [edi + ecx], 0xfffffffd
inc ebx
add edi, 0x10
cmp ebx, dword [esi + 0x30]
jl 0x534028
pop edi
pop esi
pop ebp
pop ebx
ret