Function at 0x49c570
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 0x49c833
test esi, esi
je 0x49c833
push esi
push ebx
call fcn.0049c850
add esp, 8
test byte [esi + 8], 8
je 0x49c75a
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 0x10]
push ebx
call fcn.004a8490
add esp, 0xc
test byte [esi + 8], 0x10
je 0x49c5f9
test dword [ebx + 0x74], 0x80000
je 0x49c5df
cmp byte [esi + 0x19], 3
jne 0x49c5df
xor eax, eax
xor edx, edx
cmp ax, word [esi + 0x16]
jae 0x49c5df
nop
mov ecx, dword [esi + 0x50]
not byte [ecx + edx]
inc edx
movzx eax, word [esi + 0x16]
cmp edx, eax
jl 0x49c5d0
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.004aacf0
add esp, 0x14
test byte [esi + 8], 0x20
je 0x49c611
movzx eax, byte [esi + 0x19]
push eax
lea eax, [esi + 0x5e]
push eax
push ebx
call fcn.004a8580
add esp, 0xc
test byte [esi + 8], 0x40
je 0x49c62b
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 0x80]
push ebx
call fcn.004aa020
add esp, 0xc
test dword [esi + 8], 0x100
je 0x49c648
movzx eax, byte [esi + 0x70]
push eax
push dword [esi + 0x6c]
push dword [esi + 0x68]
push ebx
call fcn.004aa3b0
add esp, 0x10
test dword [esi + 8], 0x400
je 0x49c688
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.004aa430
add esp, 0x20
test dword [esi + 8], 0x4000
je 0x49c6ae
push dword [esi + 0xe8]
movzx eax, byte [esi + 0xe0]
push dword [esi + 0xe4]
push eax
push ebx
call fcn.004aa750
add esp, 0x10
test byte [esi + 8], 0x80
je 0x49c6c8
movzx eax, byte [esi + 0x7c]
push eax
push dword [esi + 0x78]
push dword [esi + 0x74]
push ebx
call fcn.004aa5d0
add esp, 0x10
test dword [esi + 8], 0x200
je 0x49c6e5
lea eax, [esi + 0x3c]
push eax
push ebx
call fcn.004aac40
add esp, 8
or dword [ebx + 0x6c], 0x200
test dword [esi + 8], 0x2000
push edi
je 0x49c724
xor edi, edi
cmp dword [esi + 0xdc], edi
jle 0x49c724
xor ecx, ecx
mov dword [ebp + 8], ecx
nop
mov eax, dword [esi + 0xd8]
add eax, ecx
push eax
push ebx
call fcn.004aa810
mov ecx, dword [ebp + 8]
inc edi
add ecx, 0x10
add esp, 8
mov dword [ebp + 8], ecx
cmp edi, dword [esi + 0xdc]
jl 0x49c700
cmp dword [esi + 0x30], 0
mov dword [ebp + 8], 0
jle 0x49c7bd
xor edi, edi
mov eax, dword [esi + 0x38]
add eax, edi
mov ecx, dword [eax]
test ecx, ecx
jle 0x49c769
push dword [eax + 8]
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 4]
push ecx
push ebx
call fcn.004aa220
add esp, 0x18
jmp 0x49c7a0
cmp byte [esi + 0x19], 3
je 0x49c837
jmp 0x49c5b0
jne 0x49c78a
push 0
push 0
push dword [eax + 8]
push dword [eax + 4]
push ebx
call fcn.004aae40
mov eax, dword [esi + 0x38]
add esp, 0x14
mov dword [edi + eax], 0xfffffffe
jmp 0x49c7aa
cmp ecx, 0xffffffff
jne 0x49c7aa
push 0
push dword [eax + 8]
push dword [eax + 4]
push ebx
call fcn.004aab90
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 0x49c737
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x49c832
mov edi, dword [esi + 0xc0]
lea eax, [eax + eax*4]
lea eax, [edi + eax*4]
cmp edi, eax
jae 0x49c832
push edi
push ebx
call fcn.0049dcb0
add esp, 8
cmp eax, 1
je 0x49c819
mov cl, byte [edi + 0x10]
test cl, cl
je 0x49c819
and cl, 6
cmp cl, 2
jne 0x49c819
test byte [edi + 3], 0x20
jne 0x49c809
cmp eax, 3
je 0x49c809
test dword [ebx + 0x70], 0x10000
je 0x49c819
push dword [edi + 0xc]
push dword [edi + 8]
push edi
push ebx
call fcn.004a87b0
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 0x49c7d7
pop edi
pop esi
pop ebx
pop ebp
ret
push str.Valid_palette_required_for_paletted_images
push ebx
call fcn.004a2590
int3