Function at 0x463262
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
lea ebx, [edi + 0x98]
test eax, eax
je 0x463539
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x463539
cmp eax, 0x21
jae 0x4632ac
mov dword [edi + 0x190], 0x1b
mov eax, 0x1b
pop edi
pop esi
pop ebx
add esp, 8
ret
mov ecx, ebx
call fcn.004631f2
mov ecx, ebx
call fcn.00464361
cmp byte [esi], 0x89
jne 0x463523
cmp byte [esi + 1], 0x50
jne 0x463523
cmp byte [esi + 2], 0x4e
jne 0x463523
cmp byte [esi + 3], 0x47
jne 0x463523
cmp byte [esi + 4], 0xd
jne 0x463523
cmp byte [esi + 5], 0xa
jne 0x463523
cmp byte [esi + 6], 0x1a
jne 0x463523
cmp byte [esi + 7], 0xa
jne 0x463523
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xb]
shl ecx, 8
or ecx, eax
cmp ecx, 0xd
je 0x463343
mov dword [edi + 0x190], 0x5e
mov eax, 0x5e
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, str.IHDR
inc eax
cmp byte [eax], 0
jne 0x463348
sub eax, str.IHDR
push ebp
cmp eax, 4
jne 0x46350c
cmp byte [esi + 0xc], 0x49
jne 0x46350c
cmp byte [esi + 0xd], 0x48
jne 0x46350c
cmp byte [esi + 0xe], 0x44
jne 0x46350c
cmp byte [esi + 0xf], 0x52
jne 0x46350c
movzx eax, byte [esi + 0x10]
movzx edx, byte [esi + 0x11]
movzx ecx, byte [esi + 0x14]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [esi + 0x12]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 0x13]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 0x15]
or ecx, eax
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x17]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4633cd
mov dword [eax], edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4633d7
mov dword [eax], ecx
movzx eax, byte [esi + 0x18]
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x10], eax
movzx eax, byte [esi + 0x19]
mov dword [esp + 0x24], eax
mov dword [ebx + 0xc], eax
movzx eax, byte [esi + 0x1a]
mov dword [esp + 0x14], eax
mov dword [ebx], eax
movzx eax, byte [esi + 0x1b]
mov dword [ebx + 4], eax
movzx eax, byte [esi + 0x1c]
mov dword [ebx + 8], eax
test edx, edx
je 0x4634f5
test ecx, ecx
je 0x4634f5
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
call fcn.00462f6e
mov dword [esp + 0x1c], eax
mov dword [edi + 0x190], eax
test eax, eax
jne 0x463445
cmp dword [esp + 0x14], eax
je 0x46344d
mov dword [edi + 0x190], 0x20
mov eax, 0x20
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp dword [ebx + 4], 0
je 0x46346a
pop ebp
mov dword [edi + 0x190], 0x21
mov eax, 0x21
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp dword [ebx + 8], 1
jbe 0x463487
pop ebp
mov dword [edi + 0x190], 0x22
mov eax, 0x22
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], 0
jne 0x463445
movzx ebx, byte [esi + 0x1d]
or ecx, 0xffffffff
movzx eax, byte [esi + 0x1e]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x1f]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x20]
shl ebx, 8
or ebx, eax
xor edx, edx
nop
movzx eax, byte [edx + esi + 0xc]
inc edx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4cfa84]
cmp edx, 0x11
jb 0x4634b2
not ecx
cmp ebx, ecx
je 0x4634e9
pop ebp
mov dword [edi + 0x190], 0x39
mov eax, 0x39
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
pop ebp
mov dword [edi + 0x190], 0x5d
mov eax, 0x5d
pop edi
pop esi
pop ebx
add esp, 8
ret
pop ebp
mov dword [edi + 0x190], 0x1d
mov eax, 0x1d
pop edi
pop esi
pop ebx
add esp, 8
ret
mov dword [edi + 0x190], 0x1c
mov eax, 0x1c
pop edi
pop esi
pop ebx
add esp, 8
ret
mov dword [edi + 0x190], 0x30
mov eax, 0x30
pop edi
pop esi
pop ebx
add esp, 8
ret