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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, esi
call fcn.005003d0
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.005003f0
add esp, 0x14
test byte [edi + 8], 1
je 0x4f3cb3
fld dword [edi + 0x28]
sub esp, 8
fstp qword [esp]
push esi
call fcn.005007e0
add esp, 0xc
test dword [edi + 8], 0x800
je 0x4f3cc5
movzx ebx, byte [edi + 0x2c]
call fcn.00500840
test byte [edi + 8], 2
je 0x4f3ce4
movzx edx, byte [edi + 0x19]
lea esi, [edi + 0x44]
mov edi, dword [ebp + 8]
push edx
call fcn.00500880
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add esp, 4
test byte [edi + 8], 4
je 0x4f3d47
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.00500930
mov esi, dword [ebp + 8]
add esp, 0x40
test byte [edi + 8], 8
mov bl, 3
je 0x4f3ed4
mov ecx, dword [edi + 0x10]
movzx eax, word [edi + 0x14]
push ecx
push esi
call fcn.005006f0
add esp, 8
test byte [edi + 8], 0x10
je 0x4f3db8
test dword [esi + 0x70], 0x80000
je 0x4f3d98
cmp byte [edi + 0x19], bl
jne 0x4f3d98
xor eax, eax
cmp word [edi + 0x16], ax
jbe 0x4f3d98
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 0x4f3d80
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.00500ca0
mov edi, dword [ebp + 0xc]
add esp, 4
test byte [edi + 8], 0x20
je 0x4f3dd4
movzx ecx, byte [edi + 0x19]
mov esi, dword [ebp + 8]
push ecx
add edi, 0x5a
call fcn.00500d90
mov edi, dword [ebp + 0xc]
add esp, 4
test byte [edi + 8], 0x40
je 0x4f3dec
movzx edx, word [edi + 0x14]
mov eax, dword [edi + 0x7c]
push edx
push eax
push esi
call fcn.00500e60
add esp, 0xc
test dword [edi + 8], 0x100
je 0x4f3e0c
mov ecx, dword [edi + 0x68]
mov edx, dword [edi + 0x64]
movzx ebx, byte [edi + 0x6c]
push ecx
push edx
call fcn.005014c0
mov esi, dword [ebp + 8]
add esp, 8
test dword [edi + 8], 0x400
je 0x4f3e51
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.00501520
add esp, 0x18
test byte [edi + 8], 0x80
je 0x4f3e6e
mov eax, dword [edi + 0x74]
mov ecx, dword [edi + 0x70]
movzx ebx, byte [edi + 0x78]
push eax
push ecx
call fcn.005016c0
mov esi, dword [ebp + 8]
add esp, 8
test dword [edi + 8], 0x200
je 0x4f3e90
lea esi, [edi + 0x3c]
mov edi, dword [ebp + 8]
call fcn.00501720
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 [ebp + 0xc], ebx
jle 0x4f3f29
mov edi, edi
mov edx, dword [edi + 0x38]
mov eax, dword [ebx + edx]
test eax, eax
jl 0x4f3eea
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.00501120
mov edx, dword [edi + 0x38]
add esp, 0xc
mov dword [ebx + edx], 0xfffffffe
jmp 0x4f3f14
cmp byte [edi + 0x19], bl
jne 0x4f3d64
mov esi, dword [ebp + 8]
mov edi, str.Valid_palette_required_for_paletted_images_n
jmp fcn.004fbe70
cmp eax, 0xffffffff
jne 0x4f3f14
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.00501090
mov eax, dword [edi + 0x38]
add esp, 8
mov dword [ebx + eax], 0xfffffffd
mov eax, dword [ebp + 0xc]
add eax, 1
add ebx, 0x10
cmp eax, dword [edi + 0x30]
mov dword [ebp + 0xc], eax
jl 0x4f3ea0
pop edi
pop esi
pop ebx
pop ebp
ret