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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, esi
call fcn.00503320
mov edi, dword [ebp + 0xc]
movzx eax, byte [edi + 0x1c]
movzx ecx, byte [edi + 0x1b]
movzx edx, byte [edi + 0x1a]
movzx ebx, byte [edi + 0x18]
push eax
movzx eax, byte [edi + 0x19]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
mov ecx, dword [edi]
mov edx, esi
call fcn.00503340
add esp, 0x14
test byte [edi + 8], 1
je 0x4f3b69
fld dword [edi + 0x28]
sub esp, 8
fstp qword [esp]
push esi
call fcn.00503730
add esp, 0xc
test dword [edi + 8], 0x800
je 0x4f3b7b
movzx ebx, byte [edi + 0x2c]
call fcn.00503790
test byte [edi + 8], 2
je 0x4f3b9a
movzx edx, byte [edi + 0x19]
lea esi, [edi + 0x44]
mov edi, dword [ebp + 8]
push edx
call fcn.005037d0
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add esp, 4
test byte [edi + 8], 4
je 0x4f3bfd
fld dword [edi + 0x9c]
sub esp, 0x40
fstp qword [esp + 0x38]
fld dword [edi + 0x98]
fstp qword [esp + 0x30]
fld dword [edi + 0x94]
fstp qword [esp + 0x28]
fld dword [edi + 0x90]
fstp qword [esp + 0x20]
fld dword [edi + 0x8c]
fstp qword [esp + 0x18]
fld dword [edi + 0x88]
fstp qword [esp + 0x10]
fld dword [edi + 0x84]
fstp qword [esp + 8]
fld dword [edi + 0x80]
fstp qword [esp]
call fcn.00503880
mov esi, dword [ebp + 8]
add esp, 0x40
test byte [edi + 8], 8
mov bl, 3
je 0x4f3d89
mov ecx, dword [edi + 0x10]
movzx eax, word [edi + 0x14]
push ecx
push esi
call fcn.00503640
add esp, 8
test byte [edi + 8], 0x10
je 0x4f3c6e
test dword [esi + 0x70], 0x80000
je 0x4f3c4e
cmp byte [edi + 0x19], bl
jne 0x4f3c4e
xor eax, eax
cmp word [edi + 0x16], ax
jbe 0x4f3c4e
mov edx, dword [edi + 0x4c]
lea ecx, [edx + eax]
or dl, 0xff
sub dl, byte [ecx]
add eax, 1
mov byte [ecx], dl
movzx ecx, word [edi + 0x16]
cmp eax, ecx
jl 0x4f3c36
movzx edx, word [edi + 0x16]
movzx ecx, byte [edi + 0x19]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edx
mov edx, dword [eax + 0x4c]
add edi, 0x50
call fcn.00503bf0
mov edi, dword [ebp + 0xc]
add esp, 4
test byte [edi + 8], 0x20
je 0x4f3c8a
movzx ecx, byte [edi + 0x19]
mov esi, dword [ebp + 8]
push ecx
add edi, 0x5a
call fcn.00503ce0
mov edi, dword [ebp + 0xc]
add esp, 4
test byte [edi + 8], 0x40
je 0x4f3ca2
movzx edx, word [edi + 0x14]
mov eax, dword [edi + 0x7c]
push edx
push eax
push esi
call fcn.00503db0
add esp, 0xc
test dword [edi + 8], 0x100
je 0x4f3cc2
mov ecx, dword [edi + 0x68]
mov edx, dword [edi + 0x64]
movzx ebx, byte [edi + 0x6c]
push ecx
push edx
call fcn.00504410
mov esi, dword [ebp + 8]
add esp, 8
test dword [edi + 8], 0x400
je 0x4f3d07
mov eax, dword [edi + 0xb0]
mov ecx, dword [edi + 0xac]
movzx edx, byte [edi + 0xb5]
push eax
movzx eax, byte [edi + 0xb4]
push ecx
mov ecx, dword [edi + 0xa8]
push edx
mov edx, dword [edi + 0xa4]
push eax
push ecx
push edx
mov edx, dword [edi + 0xa0]
mov ecx, esi
call fcn.00504470
add esp, 0x18
test byte [edi + 8], 0x80
je 0x4f3d24
mov eax, dword [edi + 0x74]
mov ecx, dword [edi + 0x70]
movzx ebx, byte [edi + 0x78]
push eax
push ecx
call fcn.00504610
mov esi, dword [ebp + 8]
add esp, 8
test dword [edi + 8], 0x200
je 0x4f3d46
lea esi, [edi + 0x3c]
mov edi, dword [ebp + 8]
call fcn.00504670
mov eax, edi
or dword [eax + 0x6c], 0x10000
mov edi, dword [ebp + 0xc]
mov esi, eax
xor ebx, ebx
cmp dword [edi + 0x30], ebx
mov dword [esp + 0x3c], ebx
jle 0x4f3de0
mov edx, dword [edi + 0x38]
mov eax, dword [ebx + edx]
test eax, eax
jl 0x4f3d9f
mov eax, edx
mov ecx, dword [eax + ebx]
mov edx, dword [eax + ebx + 0xc]
add eax, ebx
push ecx
mov ecx, dword [eax + 8]
push edx
push ecx
mov ecx, dword [eax + 4]
mov edx, esi
call fcn.00504070
mov edx, dword [edi + 0x38]
add esp, 0xc
mov dword [ebx + edx], 0xfffffffe
jmp 0x4f3dc9
cmp byte [edi + 0x19], bl
jne 0x4f3c1a
mov esi, dword [ebp + 8]
mov edi, str.Valid_palette_required_for_paletted_images_n
jmp fcn.004f5740
cmp eax, 0xffffffff
jne 0x4f3dc9
mov eax, edx
mov ecx, dword [eax + ebx + 0xc]
mov edx, dword [eax + ebx + 8]
add eax, ebx
push ecx
mov ecx, dword [eax + 4]
push edx
mov eax, esi
call fcn.00503fe0
mov eax, dword [edi + 0x38]
add esp, 8
mov dword [ebx + eax], 0xfffffffd
mov eax, dword [esp + 0x3c]
add eax, 1
add ebx, 0x10
cmp eax, dword [edi + 0x30]
mov dword [esp + 0x3c], eax
jl 0x4f3d55
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret