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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.0058a6a0
add esp, 4
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x1c]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x1b]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x1a]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x19]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x18]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0058a6e0
add esp, 0x20
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
and edx, 1
je 0x57c386
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x28]
sub esp, 8
fstp qword [esp]
mov ecx, dword [ebp + 8]
push ecx
call fcn.0058acb0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
and eax, 0x800
je 0x57c3a7
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0058ad10
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
and edx, 2
je 0x57c3cd
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x19]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x44
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0058ad50
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
and edx, 4
je 0x57c460
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x9c]
sub esp, 8
fstp qword [esp]
mov ecx, dword [ebp + 0xc]
fld dword [ecx + 0x98]
sub esp, 8
fstp qword [esp]
mov edx, dword [ebp + 0xc]
fld dword [edx + 0x94]
sub esp, 8
fstp qword [esp]
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x90]
sub esp, 8
fstp qword [esp]
mov ecx, dword [ebp + 0xc]
fld dword [ecx + 0x8c]
sub esp, 8
fstp qword [esp]
mov edx, dword [ebp + 0xc]
fld dword [edx + 0x88]
sub esp, 8
fstp qword [esp]
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x84]
sub esp, 8
fstp qword [esp]
mov ecx, dword [ebp + 0xc]
fld dword [ecx + 0x80]
sub esp, 8
fstp qword [esp]
mov edx, dword [ebp + 8]
push edx
call fcn.0058aec0
add esp, 0x44
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
and ecx, 8
je 0x57c488
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0058ab50
add esp, 0xc
jmp 0x57c4a5
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x19]
cmp edx, 3
jne 0x57c4a5
push str.Valid_palette_required_for_paletted_images_n
mov eax, dword [ebp + 8]
push eax
call fcn.0057a930
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
and edx, 0x10
je 0x57c538
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70]
and ecx, 0x80000
je 0x57c50e
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x19]
cmp eax, 3
jne 0x57c50e
mov dword [ebp - 8], 0
jmp 0x57c4e0
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 0x16]
cmp dword [ebp - 8], eax
jge 0x57c50e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x4c]
mov eax, dword [ebp - 8]
movzx ecx, byte [edx + eax]
mov edx, 0xff
sub edx, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x4c]
mov eax, dword [ebp - 8]
mov byte [ecx + eax], dl
jmp 0x57c4d7
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x19]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x16]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x50
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0058b2a0
add esp, 0x14
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
and ecx, 0x20
je 0x57c55e
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x19]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x5a
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0058b3b0
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
and ecx, 0x40
je 0x57c584
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x7c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0058b4e0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
and edx, 0x100
je 0x57c5b4
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x6c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x68]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x64]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0058be00
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
and edx, 0x400
je 0x57c616
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xb0]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xac]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0xb5]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xb4]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xa8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xa4]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xa0]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0058be80
add esp, 0x20
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
and ecx, 0x80
je 0x57c646
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x78]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x74]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x70]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0058c050
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
and ecx, 0x200
je 0x57c679
mov edx, dword [ebp + 0xc]
add edx, 0x3c
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0058c0d0
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
or edx, 0x10000
mov eax, dword [ebp + 8]
mov dword [eax + 0x6c], edx
mov dword [ebp - 4], 0
jmp 0x57c68b
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jge 0x57c779
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x38]
cmp dword [ecx + eax], 0
jl 0x57c710
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x38]
mov ecx, dword [eax + ecx]
push ecx
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + edx + 0xc]
push edx
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx + eax + 8]
push eax
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x38]
mov ecx, dword [eax + ecx + 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0058b8c0
add esp, 0x14
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x38]
mov dword [eax + edx], 0xfffffffe
jmp 0x57c774
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x38]
cmp dword [eax + edx], 0xffffffff
jne 0x57c774
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx + eax + 0xc]
push eax
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x38]
mov ecx, dword [eax + ecx + 8]
push ecx
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + edx + 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0058b7f0
add esp, 0x10
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x38]
mov dword [ecx + eax], 0xfffffffd
jmp 0x57c682
mov esp, ebp
pop ebp
ret