Function at 0x491e50
Capabilities:
Hash data with crc32

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
test edi, edi
je 0x491e84
mov eax, dword [esp + 0x30]
test eax, eax
je 0x491e84
cmp eax, 0x20
ja 0x491e98
mov dword [esi + 0x17c], 0x1b
mov eax, 0x1b
jmp 0x49206c
mov dword [esi + 0x17c], 0x30
mov eax, 0x30
jmp 0x49206c
lea eax, [esi + 0x98]
push eax
call fcn.004902d0
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi + 0xb4], xmm0
mov dword [esi + 0xa8], 8
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
movaps xmm1, xmmword [0x59a2b0]
movups xmmword [esi + 0x98], xmm1
mov dword [esi + 0x110], 0
mov dword [esi + 0x120], 0
mov dword [esi + 0x128], 0
mov dword [esi + 0x14c], 0
mov dword [esi + 0x154], 0
mov dword [esi + 0x158], 0
mov dword [esi + 0x15c], 0
movups xmmword [esi + 0x164], xmm0
mov dword [esi + 0x178], 0
mov dword [esi + 0x174], 0
movups xmmword [esi + 0xc4], xmm0
movups xmmword [esi + 0xd4], xmm0
movups xmmword [esi + 0xe4], xmm0
mov dword [esi + 0xf4], 0
cmp byte [edi], 0x89
jne 0x49205d
cmp byte [edi + 1], 0x50
jne 0x49205d
cmp byte [edi + 2], 0x4e
jne 0x49205d
cmp byte [edi + 3], 0x47
jne 0x49205d
cmp byte [edi + 4], 0xd
jne 0x49205d
cmp byte [edi + 5], 0xa
jne 0x49205d
cmp byte [edi + 6], 0x1a
jne 0x49205d
cmp byte [edi + 7], 0xa
jne 0x49205d
mov eax, dword [edi + 8]
bswap eax
cmp eax, 0xd
jne 0x492074
lea eax, [edi + 8]
push str.IHDR
push eax
call fcn.0048fd00
add esp, 8
test al, al
je 0x492085
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebp, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
bswap ebp
test edx, edx
je 0x491fe9
mov dword [edx], ebp
bswap eax
test ecx, ecx
je 0x491ff1
mov dword [ecx], eax
movzx edx, byte [edi + 0x18]
mov dword [esi + 0xa8], edx
movzx ecx, byte [edi + 0x19]
mov dword [esi + 0xa4], ecx
movzx ebx, byte [edi + 0x1a]
mov dword [esp + 8], ebx
mov dword [esi + 0x98], ebx
movzx ebx, byte [edi + 0x1b]
mov dword [esp + 4], ebx
mov dword [esi + 0x9c], ebx
movzx ebx, byte [edi + 0x1c]
mov dword [esp], ebx
mov dword [esi + 0xa0], ebx
test ebp, ebp
je 0x492096
test eax, eax
je 0x492096
call fcn.00492250
mov dword [esi + 0x17c], eax
test eax, eax
jne 0x49206c
cmp byte [esp + 8], 0
je 0x4920a7
mov dword [esi + 0x17c], 0x20
mov eax, 0x20
jmp 0x49206c
mov dword [esi + 0x17c], 0x1c
mov eax, 0x1c
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x17c], 0x5e
mov eax, 0x5e
jmp 0x49206c
mov dword [esi + 0x17c], 0x1d
mov eax, 0x1d
jmp 0x49206c
mov dword [esi + 0x17c], 0x5d
mov eax, 0x5d
jmp 0x49206c
cmp byte [esp + 4], 0
je 0x4920bf
mov dword [esi + 0x17c], 0x21
mov eax, 0x21
jmp 0x49206c
cmp byte [esp], 2
jb 0x4920d6
mov dword [esi + 0x17c], 0x22
mov eax, 0x22
jmp 0x49206c
xor eax, eax
cmp dword [esi + 0x18], 0
jne 0x49206c
movzx edx, byte [edi + 0xc]
xor edx, 0xff
mov ecx, 0xffffff
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0xd]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0xe]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0xf]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0x10]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0x11]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0x12]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0x13]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0x14]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0x15]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0x16]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0x17]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0x18]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0x19]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0x1a]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0x1b]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
movzx edx, byte [edi + 0x1c]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x5eab6c]
mov edx, dword [edi + 0x1d]
bswap edx
not ecx
cmp edx, ecx
je 0x49206c
mov dword [esi + 0x17c], 0x39
mov eax, 0x39
jmp 0x49206c