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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x49d193
test esi, esi
je 0x49d193
push esi
push ebx
call fcn.0049d1b0
add esp, 8
test byte [esi + 8], 8
je 0x49d0ba
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 0x10]
push ebx
call fcn.004a8df0
add esp, 0xc
test byte [esi + 8], 0x10
je 0x49cf59
test dword [ebx + 0x74], 0x80000
je 0x49cf3f
cmp byte [esi + 0x19], 3
jne 0x49cf3f
xor eax, eax
xor edx, edx
cmp ax, word [esi + 0x16]
jae 0x49cf3f
nop
mov ecx, dword [esi + 0x50]
not byte [ecx + edx]
inc edx
movzx eax, word [esi + 0x16]
cmp edx, eax
jl 0x49cf30
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.004ab650
add esp, 0x14
test byte [esi + 8], 0x20
je 0x49cf71
movzx eax, byte [esi + 0x19]
push eax
lea eax, [esi + 0x5e]
push eax
push ebx
call fcn.004a8ee0
add esp, 0xc
test byte [esi + 8], 0x40
je 0x49cf8b
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 0x80]
push ebx
call fcn.004aa980
add esp, 0xc
test dword [esi + 8], 0x100
je 0x49cfa8
movzx eax, byte [esi + 0x70]
push eax
push dword [esi + 0x6c]
push dword [esi + 0x68]
push ebx
call fcn.004aad10
add esp, 0x10
test dword [esi + 8], 0x400
je 0x49cfe8
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.004aad90
add esp, 0x20
test dword [esi + 8], 0x4000
je 0x49d00e
push dword [esi + 0xe8]
movzx eax, byte [esi + 0xe0]
push dword [esi + 0xe4]
push eax
push ebx
call fcn.004ab0b0
add esp, 0x10
test byte [esi + 8], 0x80
je 0x49d028
movzx eax, byte [esi + 0x7c]
push eax
push dword [esi + 0x78]
push dword [esi + 0x74]
push ebx
call fcn.004aaf30
add esp, 0x10
test dword [esi + 8], 0x200
je 0x49d045
lea eax, [esi + 0x3c]
push eax
push ebx
call fcn.004ab5a0
add esp, 8
or dword [ebx + 0x6c], 0x200
test dword [esi + 8], 0x2000
push edi
je 0x49d084
xor edi, edi
cmp dword [esi + 0xdc], edi
jle 0x49d084
xor ecx, ecx
mov dword [ebp + 8], ecx
nop
mov eax, dword [esi + 0xd8]
add eax, ecx
push eax
push ebx
call fcn.004ab170
mov ecx, dword [ebp + 8]
inc edi
add ecx, 0x10
add esp, 8
mov dword [ebp + 8], ecx
cmp edi, dword [esi + 0xdc]
jl 0x49d060
cmp dword [esi + 0x30], 0
mov dword [ebp + 8], 0
jle 0x49d11d
xor edi, edi
mov eax, dword [esi + 0x38]
add eax, edi
mov ecx, dword [eax]
test ecx, ecx
jle 0x49d0c9
push dword [eax + 8]
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 4]
push ecx
push ebx
call fcn.004aab80
add esp, 0x18
jmp 0x49d100
cmp byte [esi + 0x19], 3
je 0x49d197
jmp 0x49cf10
jne 0x49d0ea
push 0
push 0
push dword [eax + 8]
push dword [eax + 4]
push ebx
call fcn.004ab7a0
mov eax, dword [esi + 0x38]
add esp, 0x14
mov dword [edi + eax], 0xfffffffe
jmp 0x49d10a
cmp ecx, 0xffffffff
jne 0x49d10a
push 0
push dword [eax + 8]
push dword [eax + 4]
push ebx
call fcn.004ab4f0
add esp, 0x10
mov eax, dword [esi + 0x38]
mov dword [edi + eax], 0xfffffffd
mov eax, dword [ebp + 8]
add edi, 0x1c
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [esi + 0x30]
jl 0x49d097
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x49d192
mov edi, dword [esi + 0xc0]
lea eax, [eax + eax*4]
lea eax, [edi + eax*4]
cmp edi, eax
jae 0x49d192
push edi
push ebx
call fcn.0049e610
add esp, 8
cmp eax, 1
je 0x49d179
mov cl, byte [edi + 0x10]
test cl, cl
je 0x49d179
and cl, 6
cmp cl, 2
jne 0x49d179
test byte [edi + 3], 0x20
jne 0x49d169
cmp eax, 3
je 0x49d169
test dword [ebx + 0x70], 0x10000
je 0x49d179
push dword [edi + 0xc]
push dword [edi + 8]
push edi
push ebx
call fcn.004a9110
add esp, 0x10
mov eax, dword [esi + 0xc4]
add edi, 0x14
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0xc0]
lea eax, [eax + ecx*4]
cmp edi, eax
jb 0x49d137
pop edi
pop esi
pop ebx
pop ebp
ret
push str.Valid_palette_required_for_paletted_images
push ebx
call fcn.004a2ef0
int3