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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4dadf4
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4dadf3
push esi
push ebx
call fcn.004da97f
test byte [esi + 8], 8
pop ecx
pop ecx
je 0x4dad0d
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 0x10]
push ebx
call fcn.004e1dca
add esp, 0xc
test byte [esi + 8], 0x10
je 0x4dabb4
test dword [ebx + 0x74], 0x80000
je 0x4dab9a
cmp byte [esi + 0x19], 3
jne 0x4dab9a
xor eax, eax
xor ecx, ecx
cmp ax, word [esi + 0x16]
jae 0x4dab9a
mov eax, dword [esi + 0x50]
add eax, ecx
or dl, 0xff
sub dl, byte [eax]
inc ecx
mov byte [eax], dl
movzx eax, word [esi + 0x16]
cmp ecx, eax
jl 0x4dab85
movzx eax, byte [esi + 0x19]
push eax
movzx eax, word [esi + 0x16]
push eax
lea eax, [esi + 0x54]
push eax
push dword [esi + 0x50]
push ebx
call fcn.004e31d4
add esp, 0x14
test byte [esi + 8], 0x20
je 0x4dabcc
movzx eax, byte [esi + 0x19]
push eax
lea eax, [esi + 0x5e]
push eax
push ebx
call fcn.004e32e8
add esp, 0xc
test byte [esi + 8], 0x40
je 0x4dabe6
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 0x80]
push ebx
call fcn.004e1e86
add esp, 0xc
test dword [esi + 8], 0x100
je 0x4dac03
movzx eax, byte [esi + 0x70]
push eax
push dword [esi + 0x6c]
push dword [esi + 0x68]
push ebx
call fcn.004e33f5
add esp, 0x10
test dword [esi + 8], 0x400
je 0x4dac43
push dword [esi + 0xb4]
movzx eax, byte [esi + 0xb9]
push dword [esi + 0xb0]
push eax
movzx eax, byte [esi + 0xb8]
push eax
push dword [esi + 0xac]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push ebx
call fcn.004e2356
add esp, 0x20
test dword [esi + 8], 0x4000
je 0x4dac69
push dword [esi + 0xe8]
movzx eax, byte [esi + 0xe0]
push dword [esi + 0xe4]
push eax
push ebx
call fcn.004e345a
add esp, 0x10
test byte [esi + 8], 0x80
je 0x4dac83
movzx eax, byte [esi + 0x7c]
push eax
push dword [esi + 0x78]
push dword [esi + 0x74]
push ebx
call fcn.004e34e2
add esp, 0x10
push edi
mov edi, 0x200
test dword [esi + 8], edi
je 0x4dac9d
lea eax, [esi + 0x3c]
push eax
push ebx
call fcn.004e3547
or dword [ebx + 0x6c], edi
pop ecx
pop ecx
test dword [esi + 8], 0x2000
je 0x4dacd2
xor edi, edi
cmp dword [esi + 0xdc], edi
jle 0x4dacd2
mov dword [ebp - 4], edi
mov eax, dword [esi + 0xd8]
add eax, dword [ebp - 4]
push eax
push ebx
call fcn.004e2f11
add dword [ebp - 4], 0x10
inc edi
cmp edi, dword [esi + 0xdc]
pop ecx
pop ecx
jl 0x4dacb3
xor edi, edi
cmp dword [esi + 0x30], edi
mov dword [ebp - 4], edi
jle 0x4dad82
push 0xfffffffffffffffd
pop ebx
mov eax, dword [esi + 0x38]
mov eax, dword [edi + eax]
test eax, eax
jle 0x4dad22
mov eax, dword [esi + 0x38]
add eax, edi
push dword [eax + 8]
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 4]
push dword [eax]
push dword [ebp + 8]
call fcn.004e2202
add esp, 0x18
jmp 0x4dad67
cmp byte [esi + 0x19], 3
jne 0x4dab66
push str.Valid_palette_required_for_paletted_images
push ebx
call fcn.004da878
jne 0x4dad4a
mov eax, dword [esi + 0x38]
add eax, edi
push dword [eax]
push 0
push dword [eax + 8]
push dword [eax + 4]
push dword [ebp + 8]
call fcn.004e2122
mov eax, dword [esi + 0x38]
add esp, 0x14
mov dword [edi + eax], 0xfffffffe
jmp 0x4dad6d
cmp eax, 0xffffffff
jne 0x4dad6d
mov eax, dword [esi + 0x38]
add eax, edi
push 0
push dword [eax + 8]
push dword [eax + 4]
push dword [ebp + 8]
call fcn.004e208e
add esp, 0x10
mov eax, dword [esi + 0x38]
mov dword [edi + eax], ebx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x1c
cmp eax, dword [esi + 0x30]
jl 0x4dace3
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x4dadf2
mov edi, dword [esi + 0xc0]
imul eax, eax, 0x14
add eax, edi
jmp 0x4dadee
push edi
push ebx
call fcn.004d9a83
pop ecx
pop ecx
cmp eax, 1
je 0x4daddc
mov cl, byte [edi + 0x10]
test cl, cl
je 0x4daddc
test cl, 2
je 0x4daddc
test cl, 4
jne 0x4daddc
test byte [edi + 3], 0x20
jne 0x4dadcc
cmp eax, 3
je 0x4dadcc
test dword [ebx + 0x70], 0x10000
je 0x4daddc
push dword [edi + 0xc]
push dword [edi + 8]
push edi
push ebx
call fcn.004e2898
add esp, 0x10
mov eax, dword [esi + 0xc4]
imul eax, eax, 0x14
add edi, 0x14
add eax, dword [esi + 0xc0]
cmp edi, eax
jb 0x4dad99
pop edi
pop esi
pop ebx
leave
ret