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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x10089040]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
push esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [edx]
mov eax, dword [0x1008b850]
mov esi, eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x34], 0
test ecx, ecx
js 0x1004a26f
cmp ecx, edx
jge 0x1004a26f
lea eax, [esp + 0x34]
push eax
push ecx
push dword [esp + 0x14]
call dword [esp + 0x1c]
mov eax, dword [0x1008b850]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp ecx, 0xffffffff
je 0x1004a30b
test byte [esi + 0x1c20], 0x10
jne 0x1004a30b
movss xmm3, dword [0x10082414]
test ecx, ecx
jle 0x1004a2c6
movss xmm1, dword [eax + 0x1564]
movss xmm2, dword [eax + 0x1520]
movaps xmm3, xmm1
addss xmm3, dword [eax + 0x1930]
movd xmm0, ecx
addss xmm2, xmm2
cvtdq2ps xmm0, xmm0
mulss xmm3, xmm0
subss xmm3, xmm1
addss xmm3, xmm2
or dword [eax + 0x1c20], 0x10
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x7f7fffff
movss dword [esp + 0x2c], xmm3
movups xmm0, xmmword [esp + 0x20]
mov dword [eax + 0x1c6c], 0
mov dword [eax + 0x1c70], 0
movups xmmword [eax + 0x1c5c], xmm0
push edx
mov edx, dword [esp + 0x38]
mov ecx, edi
push 0
call fcn.100493f0
add esp, 8
test al, al
jne 0x1004a331
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100714c0
mov esp, ebp
pop ebp
ret
mov edi, dword [0x1008b850]
xor esi, esi
mov byte [esp + 0xa], 0
mov dword [esp + 0x18], esi
cmp dword [ebp + 0x10], esi
jle 0x1004a435
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [edi + 0x1b9c]
mov edi, 4
add eax, 0xc4
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], eax
lea esi, [esp + 0x30]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10079d98]
sub edi, 1
jne 0x1004a387
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
not edx
push eax
mov dword [esp + 0x34], edx
call fcn.10032520
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [eax]
lea eax, [esp + 0x38]
push eax
push esi
push dword [esp + 0x14]
cmp esi, edi
sete byte [esp + 0x17]
call dword [esp + 0x1c]
add esp, 0xc
test al, al
jne 0x1004a3e6
mov ecx, str.Unknown_item
mov dword [esp + 0x38], ecx
jmp 0x1004a3ea
mov ecx, dword [esp + 0x38]
mov dl, byte [esp + 0xb]
lea eax, [esp + 0x20]
push eax
push 0
call fcn.10053640
add esp, 8
test al, al
je 0x1004a40c
mov eax, dword [esp + 0x14]
mov byte [esp + 0xa], 1
mov dword [eax], esi
cmp esi, edi
jne 0x1004a415
call fcn.1002be50
mov edi, dword [0x1008b850]
inc esi
mov dword [esp + 0x18], esi
mov eax, dword [edi + 0x1b9c]
dec dword [eax + 0xc4]
cmp esi, dword [ebp + 0x10]
jl 0x1004a360
mov eax, dword [edi + 0x1b9c]
cmp dword [edi + 0x1d00], eax
jne 0x1004a453
mov dword [edi + 0x1e00], eax
mov dword [edi + 0x1e04], 2
test dword [eax + 8], 0x1000000
je 0x1004a463
mov byte [edi + 0x1b46], 1
call fcn.1002b600
mov al, byte [esp + 0xa]
mov byte [edi + 0x1b46], 0
test al, al
je 0x1004a493
mov ecx, dword [0x1008b850]
mov word [ecx + 0x1be4], 0x101
mov ecx, dword [ecx + 0x1b9c]
or dword [ecx + 0x120], 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.100714c0
mov esp, ebp
pop ebp
ret