Function at 0x1004c030
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1038c1f9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x130
mov eax, dword [0x1049b0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x50], edi
mov edx, dword [0x11b92250]
add edx, 0xc6c19814
xor edx, 0x26996288
mov eax, dword [edx + 0x154]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1004c9fa
cmp byte [edx + 8], 0
je 0x1004c9fa
cmp byte [0x10520cc0], 0
movss xmm1, dword [0x1046f3bc]
je 0x1004c1fe
movss xmm0, dword [0x10520ce0]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [0x10520cdc]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [0x10520cd8]
mulss xmm0, xmm1
cvttss2si esi, xmm0
movss xmm0, dword [0x10520cd4]
mulss xmm0, xmm1
mov dword [ebp - 0x54], esi
movd xmm1, dword [0x10520ce4]
mov esi, dword [eax + 0x11c5c]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x1046f00c]
movss dword [ebp - 0x34], xmm1
cmp esi, dword [edi]
jle 0x1004c1f4
movzx eax, cl
lea edi, [esi + esi*4]
mov dword [ebp - 0x40], eax
movaps xmm2, xmm1
xorps xmm2, xmmword [0x1046f8e0]
movzx eax, dl
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x54]
movzx eax, al
mov dword [ebp - 0x54], eax
cvttss2si eax, xmm0
shl edi, 2
movss dword [ebp - 0x4c], xmm2
movzx eax, al
mov dword [ebp - 0x38], eax
mov eax, dword [0x11b92250]
add eax, 0xc6c19814
xor eax, 0x26996288
mov ecx, dword [eax + 0xd4]
push ecx
mov dword [esp], 0x40800000
push dword [ebp - 0x40]
mov eax, dword [ecx]
push dword [ebp - 0x3c]
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x64]
push dword [ebp - 0x54]
mov edx, dword [eax + 4]
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x64], 0
push ecx
mov eax, dword [eax + 0x11c50]
lea ecx, [ebp - 0x20]
add eax, 0xffffffec
mov dword [ebp - 0x60], 0
push ecx
mov ecx, dword [ebp - 0x48]
add eax, edi
push eax
mov dword [ebp - 0x5c], 0
movss dword [ebp - 0x70], xmm1
movss dword [ebp - 0x6c], xmm1
movss dword [ebp - 0x68], xmm1
movss dword [ebp - 0x20], xmm2
movss dword [ebp - 0x1c], xmm2
movss dword [ebp - 0x18], xmm2
call edx
mov eax, dword [ebp - 0x50]
dec esi
movss xmm1, dword [ebp - 0x34]
add edi, 0xffffffec
movss xmm2, dword [ebp - 0x4c]
cmp esi, dword [eax]
jg 0x1004c151
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x50]
mov dword [eax + 0x11c5c], 0
mov eax, dword [eax + 0x11c5c]
cmp eax, dword [edi]
je 0x1004c20a
mov dword [edi], eax
cmp dword [0x10520ce8], 0
je 0x1004c9fa
xor esi, esi
mov dword [ebp - 0x48], esi
nop dword [eax]
lea ecx, [esi + esi*2]
mov eax, dword [edi + ecx*4 + 8]
sub eax, dword [edi + ecx*4 + 4]
sar eax, 3
imul eax, eax, 0xaaaaaaab
mov dword [ebp - 0x54], ecx
test eax, eax
je 0x1004c9ed
mov eax, dword [0x11b92250]
add eax, 0xc6c19814
xor eax, 0x26996288
push esi
mov ecx, dword [eax + 0xc8]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, eax
mov dword [ebp - 0x40], edx
test edx, edx
je 0x1004c9dc
mov ecx, dword [0x11b92250]
add ecx, 0xc6c19814
xor ecx, 0x26996288
mov eax, dword [ecx + 0x154]
mov dword [ebp - 0x44], eax
cmp edx, eax
je 0x1004c584
test eax, eax
je 0x1004c4bb
mov ecx, dword [ecx + 0x1a8]
mov eax, dword [ecx + 0x1c]
cmp dword [eax + 0x30], ecx
jne 0x1004c4bb
mov edx, dword [0x105446d0]
test dl, 1
jne 0x1004c417
or edx, 1
mov dword [0x105446d0], edx
mov dword [ebp - 4], 0
mov eax, dword [0x1053ebb8]
mov ecx, dword [0x1053ebbc]
mov dword [ebp - 0x34], eax
cmp eax, ecx
je 0x1004c32a
mov dword [ebp - 0x30], eax
nop word [eax + eax]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x1004c31c
mov esi, dword [ecx + 0xc]
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x1004c2f3
xor edx, edx
test ecx, ecx
je 0x1004c31c
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1004c300
cmp edi, 0x1eee87cc
je 0x1004c347
mov eax, dword [ebp - 0x30]
add eax, 4
mov dword [ebp - 0x30], eax
cmp eax, dword [0x1053ebbc]
jne 0x1004c2e0
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [0x105446d0]
mov dword [0x1054469c], ecx
jmp 0x1004c425
mov eax, dword [ebp - 0x38]
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x3c], edi
cmp dword [eax + 4], edi
jle 0x1004c40d
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov esi, dword [eax]
add esi, ecx
mov dword [ebp - 0x4c], esi
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x1004c394
cmp dword [ecx + 4], 0
jle 0x1004c394
push 0
mov edx, 0xa5bfefb3
call fcn.10238b60
add esp, 4
test eax, eax
je 0x1004c391
mov ecx, dword [esi + 0x2c]
add ecx, eax
add edi, ecx
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x38]
mov esi, dword [esi]
mov edi, 0x811c9dc5
xor ecx, ecx
nop dword [eax]
inc ecx
cmp byte [ecx + esi], 0
jne 0x1004c3a0
xor edx, edx
test ecx, ecx
je 0x1004c3cc
nop dword [eax]
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1004c3b0
cmp edi, 0xa5bfefb3
je 0x1004c3f7
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
inc edx
mov edi, dword [ebp - 0x30]
add ecx, 0x3c
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ecx
cmp edx, dword [eax + 4]
jl 0x1004c360
mov eax, dword [0x1053ebb8]
mov ecx, edi
mov dword [ebp - 0x34], eax
jmp 0x1004c32f
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x2c]
mov eax, dword [0x1053ebb8]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
jmp 0x1004c32f
mov eax, dword [ebp - 0x34]
mov ecx, edi
jmp 0x1004c32f
mov eax, dword [0x1053ebb8]
mov ecx, dword [0x1054469c]
mov dword [ebp - 0x34], eax
mov esi, dword [ebp - 0x40]
mov esi, dword [ecx + esi]
mov dword [ebp - 0x58], esi
test dl, 1
jne 0x1004c4ac
or edx, 1
mov dword [0x105446d0], edx
mov dword [ebp - 4], 1
cmp eax, dword [0x1053ebbc]
je 0x1004c49a
nop dword [eax + eax]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x1004c48c
mov edi, dword [ecx + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + edi], 0
jne 0x1004c463
xor edx, edx
test ecx, ecx
je 0x1004c48c
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x1004c470
cmp esi, 0x1eee87cc
je 0x1004c4c7
mov eax, dword [ebp - 0x34]
add eax, 4
mov dword [ebp - 0x34], eax
cmp eax, dword [0x1053ebbc]
jne 0x1004c450
xor ecx, ecx
mov esi, dword [ebp - 0x58]
mov dword [0x1054469c], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x50]
cmp esi, dword [eax + ecx]
je 0x1004c57d
movups xmm0, xmmword [0x10520cf0]
jmp 0x1004c594
mov eax, dword [ebp - 0x30]
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
cmp dword [eax + 4], edi
jle 0x1004c568
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov esi, dword [eax]
add esi, ecx
mov dword [ebp - 0x4c], esi
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x1004c514
cmp dword [ecx + 4], 0
jle 0x1004c514
push 0
mov edx, 0xa5bfefb3
call fcn.10238b60
add esp, 4
test eax, eax
je 0x1004c511
mov ecx, dword [esi + 0x2c]
add ecx, eax
add edi, ecx
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x30]
mov esi, dword [esi]
mov edi, 0x811c9dc5
xor ecx, ecx
nop dword [eax]
inc ecx
cmp byte [ecx + esi], 0
jne 0x1004c520
xor edx, edx
test ecx, ecx
je 0x1004c54c
nop dword [eax]
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1004c530
cmp edi, 0xa5bfefb3
je 0x1004c56f
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
inc edx
mov edi, dword [ebp - 0x38]
add ecx, 0x3c
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ecx
cmp edx, dword [eax + 4]
jl 0x1004c4e0
mov ecx, edi
jmp 0x1004c49c
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x2c]
add ecx, dword [ebp - 0x38]
jmp 0x1004c49c
mov edx, dword [ebp - 0x40]
cmp edx, eax
jne 0x1004c58d
movups xmm0, xmmword [0x10520d10]
jmp 0x1004c594
movups xmm0, xmmword [0x10520d00]
movss xmm1, dword [0x1046f3bc]
xorps xmm3, xmm3
movups xmmword [ebp - 0x24], xmm0
mov esi, dword [ebp - 0x54]
movss xmm0, dword [ebp - 0x18]
mulss xmm0, xmm1
mov esi, dword [edi + esi*4 + 8]
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x1c]
mulss xmm0, xmm1
movss xmm7, dword [esi - 0x14]
movss xmm6, dword [esi - 0x18]
cvttss2si ecx, xmm0
movss xmm0, dword [ebp - 0x20]
mulss xmm0, xmm1
mov dword [ebp - 0x4c], ecx
movss xmm2, dword [esi - 4]
subss xmm2, dword [esi - 0x10]
cvttss2si edx, xmm0
movss xmm0, dword [ebp - 0x24]
mulss xmm0, xmm1
mov dword [ebp - 0x40], edx
movss xmm1, dword [esi - 0xc]
subss xmm1, xmm6
cvttss2si edx, xmm0
movss dword [ebp - 0x58], xmm1
mov dword [ebp - 0x30], edx
movzx edx, al
shl edx, 8
movzx eax, cl
or edx, eax
mov eax, dword [ebp - 0x40]
shl edx, 8
movzx eax, al
or edx, eax
cvttss2si eax, xmm0
shl edx, 8
movss xmm0, dword [esi - 8]
subss xmm0, xmm7
movzx eax, al
or edx, eax
mov dword [ebp - 0x3c], edx
ucomiss xmm0, xmm3
movss dword [ebp - 0x44], xmm0
lahf
test ah, 0x44
jp 0x1004c66a
ucomiss xmm1, xmm3
lahf
test ah, 0x44
jp 0x1004c66a
comiss xmm2, xmm3
xorps xmm5, xmm5
jbe 0x1004c660
movss xmm4, dword [0x1046f3c8]
jmp 0x1004c6d5
movss xmm4, dword [0x1046f318]
jmp 0x1004c6d5
fld dword [ebp - 0x44]
fld dword [ebp - 0x58]
fpatan
fstp dword [ebp - 0x44]
movss xmm5, dword [ebp - 0x44]
mulss xmm5, dword [0x1046f2d8]
comiss xmm3, xmm5
jbe 0x1004c68f
addss xmm5, dword [0x1046f3d8]
mulss xmm0, xmm0
mulss xmm1, xmm1
xorps xmm2, xmmword [0x1046f8e0]
movss dword [ebp - 0x44], xmm2
addss xmm0, xmm1
fld dword [ebp - 0x44]
sqrtss xmm0, xmm0
movss dword [ebp - 0x58], xmm0
fld dword [ebp - 0x58]
fpatan
fstp dword [ebp - 0x44]
movss xmm4, dword [ebp - 0x44]
mulss xmm4, dword [0x1046f2d8]
comiss xmm3, xmm4
jbe 0x1004c6d5
addss xmm4, dword [0x1046f3d8]
mov eax, dword [0x10520cec]
sub eax, 0
je 0x1004c813
sub eax, 1
je 0x1004c7cd
sub eax, 1
jne 0x1004c9d9
movss xmm0, dword [esi - 0x10]
movaps xmm1, xmm6
subss xmm1, dword [esi - 0xc]
subss xmm0, dword [esi - 4]
movaps xmm2, xmm7
mov ecx, dword [0x11b92250]
subss xmm2, dword [esi - 8]
add ecx, 0xc6c19814
movss dword [ebp - 0xac], xmm6
mulss xmm1, xmm1
xor ecx, 0x26996288
mov dword [ebp - 0x84], 0x3dcccccd
mulss xmm0, xmm0
mov dword [ebp - 0x80], 0x3dcccccd
mulss xmm2, xmm2
mov eax, dword [ecx + 0x10c]
mov ecx, dword [ecx + 0x108]
add ecx, 0x18
movss dword [ebp - 0xa8], xmm7
addss xmm2, xmm1
movss dword [ebp - 0xa0], xmm4
xorps xmm1, xmm1
movss xmm3, dword [eax + 0x10]
movss dword [ebp - 0x7c], xmm3
lea eax, [ebp - 0xac]
addss xmm3, dword [0x1046f1ac]
push eax
addss xmm2, xmm0
movss dword [ebp - 0x9c], xmm5
movss xmm0, dword [esi - 0x10]
push dword [ecx + 0xc]
movss dword [ebp - 0xa4], xmm0
movaps xmm0, xmmword [0x1046f8f0]
sqrtss xmm1, xmm2
mov dword [ebp - 0x74], edx
movups xmmword [ebp - 0x98], xmm0
movss dword [ebp - 0x88], xmm1
movss dword [ebp - 0x78], xmm3
call fcn.10051f70
jmp 0x1004c9d9
mov eax, dword [0x11b92250]
add eax, 0xc6c19814
xor eax, 0x26996288
mov ecx, dword [eax + 0xd4]
mov eax, dword [ebp - 0x4c]
push ecx
mov dword [esp], 0x40400000
mov edx, dword [ecx]
movzx eax, al
push 0
push eax
mov eax, dword [ebp - 0x40]
movzx eax, al
push eax
mov eax, dword [ebp - 0x30]
movzx eax, al
push eax
lea eax, [esi - 0xc]
push eax
lea eax, [esi - 0x18]
push eax
call dword [edx + 0x14]
jmp 0x1004c9d9
mov eax, edx
mov ecx, 0x1049bd90
shr eax, 0x10
mov dword [ebp - 0x40], eax
mov eax, edx
shr eax, 8
mov dword [ebp - 0x38], eax
mov eax, edx
shr eax, 0x18
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1004ea50
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], 2
call fcn.1004a280
cmp dword [ebp - 0x18], 0xf
lea edi, [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x140], 0
jbe 0x1004c873
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
mov eax, dword [esi - 0x10]
movq xmm0, qword [esi - 0x18]
mov dword [ebp - 0x124], eax
mov eax, dword [esi - 4]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x30]
movq qword [ebp - 0x12c], xmm0
movq xmm0, qword [esi - 0xc]
movzx eax, al
movq qword [ebp - 0x120], xmm0
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], 0xffffffff
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, cl
mov dword [ebp - 0x100], 0x40400000
mov dword [ebp - 0xf4], 0x3dcccccd
mov dword [ebp - 0x104], 0
mov dword [ebp - 0xf0], 0x3f800000
movss dword [ebp - 0xec], xmm0
movd xmm0, eax
mov eax, dword [ebp - 0x38]
cvtdq2ps xmm0, xmm0
movzx eax, al
mov dword [ebp - 0xcc], 2
mov byte [ebp - 0xd0], 1
mov dword [ebp - 0xe8], 0x3f800000
mov dword [ebp - 0xe4], 0
movss dword [ebp - 0xdc], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, dl
lea edx, [ebp - 0x140]
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xfc], 0x40400000
mov dword [ebp - 0xf8], 0x40400000
mov dword [ebp - 0xc8], 0x304
movss dword [ebp - 0xd8], xmm0
movd xmm0, eax
mov eax, dword [0x11b92250]
add eax, 0xc6c19814
cvtdq2ps xmm0, xmm0
xor eax, 0x26996288
push edx
movss dword [ebp - 0xd4], xmm0
mov ecx, dword [eax + 0x130]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
test eax, eax
je 0x1004c9b7
mov ecx, dword [0x11b92250]
add ecx, 0xc6c19814
xor ecx, 0x26996288
push eax
mov ecx, dword [ecx + 0x130]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 0xf
jbe 0x1004c9d6
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x2c]
push eax
call fcn.10034640
add esp, 0xc
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x54]
mov eax, dword [edi + edx*4 + 4]
cmp eax, dword [edi + edx*4 + 8]
je 0x1004c9ed
mov dword [edi + edx*4 + 8], eax
inc esi
mov dword [ebp - 0x48], esi
cmp esi, 0x41
jl 0x1004c220
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.102fe398
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret