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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.0057b840
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x1c]
push eax
movzx eax, byte [esi + 0x1b]
push eax
movzx eax, byte [esi + 0x1a]
push eax
movzx eax, byte [esi + 0x19]
push eax
movzx eax, byte [esi + 0x18]
push eax
push dword [esi + 4]
push dword [esi]
push ebx
call fcn.00579530
add esp, 0x24
test byte [esi + 8], 1
je 0x569647
movss xmm0, dword [esi + 0x28]
sub esp, 8
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push ebx
call fcn.0057b380
add esp, 0xc
test dword [esi + 8], 0x800
je 0x56965e
movzx eax, byte [esi + 0x2c]
push eax
push ebx
call fcn.0057b800
add esp, 8
test byte [esi + 8], 2
je 0x569676
movzx eax, byte [esi + 0x19]
push eax
lea eax, [esi + 0x44]
push eax
push ebx
call fcn.0057b730
add esp, 0xc
test byte [esi + 8], 4
je 0x569713
movss xmm0, dword [esi + 0x9c]
sub esp, 0x40
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
movss xmm0, dword [esi + 0x98]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x30], xmm0
movss xmm0, dword [esi + 0x94]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
movss xmm0, dword [esi + 0x90]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
movss xmm0, dword [esi + 0x8c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [esi + 0x88]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esi + 0x84]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esi + 0x80]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push ebx
call fcn.00579a30
add esp, 0x44
test byte [esi + 8], 8
je 0x56972c
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 0x10]
push ebx
call fcn.00579870
add esp, 0xc
jmp 0x569740
cmp byte [esi + 0x19], 3
jne 0x569740
push str.Valid_palette_required_for_paletted_images_n
push ebx
call fcn.0056e7d0
add esp, 8
test byte [esi + 8], 0x10
je 0x569789
test dword [ebx + 0x70], 0x80000
je 0x56976f
cmp byte [esi + 0x19], 3
jne 0x56976f
xor eax, eax
xor edx, edx
cmp ax, word [esi + 0x16]
jae 0x56976f
nop
mov ecx, dword [esi + 0x4c]
not byte [ecx + edx]
inc edx
movzx eax, word [esi + 0x16]
cmp edx, eax
jl 0x569760
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 ebx
call fcn.0057bb30
add esp, 0x14
test byte [esi + 8], 0x20
je 0x5697a1
movzx eax, byte [esi + 0x19]
push eax
lea eax, [esi + 0x5a]
push eax
push ebx
call fcn.00579920
add esp, 0xc
test byte [esi + 8], 0x40
je 0x5697b8
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 0x7c]
push ebx
call fcn.0057b3c0
add esp, 0xc
test dword [esi + 8], 0x100
je 0x5697d5
movzx eax, byte [esi + 0x6c]
push eax
push dword [esi + 0x68]
push dword [esi + 0x64]
push ebx
call fcn.0057b440
add esp, 0x10
test dword [esi + 8], 0x400
je 0x569815
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 ebx
call fcn.0057b4b0
add esp, 0x20
test byte [esi + 8], 0x80
je 0x56982f
movzx eax, byte [esi + 0x78]
push eax
push dword [esi + 0x74]
push dword [esi + 0x70]
push ebx
call fcn.0057b6c0
add esp, 0x10
test dword [esi + 8], 0x200
je 0x56984c
lea eax, [esi + 0x3c]
push eax
push ebx
call fcn.0057ba80
add esp, 8
or dword [ebx + 0x6c], 0x10000
cmp dword [esi + 0x30], 0
mov dword [ebp + 0xc], 0
jle 0x5698c0
push edi
xor edi, edi
nop dword [eax]
mov eax, dword [esi + 0x38]
mov ecx, dword [edi + eax]
test ecx, ecx
js 0x56988c
push ecx
push dword [edi + eax + 0xc]
push dword [edi + eax + 8]
push dword [edi + eax + 4]
push ebx
call fcn.0057bc40
mov eax, dword [esi + 0x38]
add esp, 0x14
mov dword [edi + eax], 0xfffffffe
jmp 0x5698b0
cmp ecx, 0xffffffff
jne 0x5698b0
push dword [edi + eax + 0xc]
push dword [edi + eax + 8]
push dword [edi + eax + 4]
push ebx
call fcn.0057b9e0
mov eax, dword [esi + 0x38]
add esp, 0x10
mov dword [edi + eax], 0xfffffffd
mov eax, dword [ebp + 0xc]
add edi, 0x10
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [esi + 0x30]
jl 0x569860
pop edi
pop esi
pop ebx
pop ebp
ret