Function at 0x10040190
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 0x10266879
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x100
mov eax, dword [0x103230ac]
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 - 0x48], edi
mov edx, dword [0x10c0dd10]
add edx, 0x72c821ae
xor edx, 0x43f50f5d
mov eax, dword [edx + 0x134]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x10040980
cmp byte [edx + 7], 0
je 0x10040980
cmp byte [0x103a7b34], 0
movss xmm1, dword [0x1030bb18]
je 0x1004035b
movss xmm0, dword [0x103a7b54]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [0x103a7b50]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [0x103a7b4c]
mulss xmm0, xmm1
cvttss2si esi, xmm0
movss xmm0, dword [0x103a7b48]
mulss xmm0, xmm1
mov dword [ebp - 0x54], esi
movd xmm1, dword [0x103a7b58]
mov esi, dword [eax + 0x11c5c]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x1030b774]
movss dword [ebp - 0x30], xmm1
cmp esi, dword [edi]
jle 0x10040351
movzx eax, cl
lea edi, [esi + esi*4]
mov dword [ebp - 0x40], eax
movaps xmm2, xmm1
xorps xmm2, xmmword [0x1030c060]
movzx eax, dl
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x54]
movzx eax, al
mov dword [ebp - 0x54], eax
cvttss2si eax, xmm0
shl edi, 2
movss dword [ebp - 0x3c], xmm2
movzx eax, al
mov dword [ebp - 0x34], eax
mov eax, dword [0x10c0dd10]
add eax, 0x72c821ae
xor eax, 0x43f50f5d
mov ecx, dword [eax + 0xbc]
push ecx
mov dword [esp], 0x40800000
push dword [ebp - 0x40]
mov eax, dword [ecx]
push dword [ebp - 0x4c]
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x74]
push dword [ebp - 0x54]
mov edx, dword [eax + 4]
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x74], 0
push ecx
mov eax, dword [eax + 0x11c50]
lea ecx, [ebp - 0x64]
add eax, 0xffffffec
mov dword [ebp - 0x70], 0
push ecx
mov ecx, dword [ebp - 0x38]
add eax, edi
push eax
mov dword [ebp - 0x6c], 0
movss dword [ebp - 0x80], xmm1
movss dword [ebp - 0x7c], xmm1
movss dword [ebp - 0x78], xmm1
movss dword [ebp - 0x64], xmm2
movss dword [ebp - 0x60], xmm2
movss dword [ebp - 0x5c], xmm2
call edx
mov eax, dword [ebp - 0x48]
dec esi
movss xmm1, dword [ebp - 0x30]
add edi, 0xffffffec
movss xmm2, dword [ebp - 0x3c]
cmp esi, dword [eax]
jg 0x100402b1
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x11c5c], 0
mov edx, dword [ebp - 0x48]
mov eax, dword [eax + 0x11c5c]
cmp eax, dword [edx]
je 0x1004036a
mov dword [edx], eax
cmp dword [0x103a7b5c], 0
je 0x10040980
xor esi, esi
mov dword [ebp - 0x4c], esi
nop dword [eax]
lea eax, [esi + esi*2]
mov ecx, dword [edx + eax*4 + 8]
sub ecx, dword [edx + eax*4 + 4]
mov dword [ebp - 0x50], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10040970
mov eax, dword [0x10c0dd10]
add eax, 0x72c821ae
xor eax, 0x43f50f5d
push esi
mov ecx, dword [eax + 0xb0]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
je 0x1004095a
mov ecx, dword [0x10c0dd10]
add ecx, 0x72c821ae
xor ecx, 0x43f50f5d
mov eax, dword [ecx + 0x134]
mov dword [ebp - 0x44], eax
cmp edi, eax
je 0x100406e1
test eax, eax
je 0x1004061b
mov ecx, dword [ecx + 0x184]
mov eax, dword [ecx + 0x1c]
cmp dword [eax + 0x30], ecx
jne 0x1004061b
mov edx, dword [0x103c3bdc]
test dl, 1
jne 0x10040577
or edx, 1
mov dword [0x103c3bdc], edx
mov dword [ebp - 4], 0
mov eax, dword [0x103bf630]
mov ecx, dword [0x103bf634]
mov dword [ebp - 0x30], eax
cmp eax, ecx
je 0x1004048a
mov dword [ebp - 0x34], eax
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x1004047c
mov esi, dword [ecx + 0xc]
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x10040453
xor edx, edx
test ecx, ecx
je 0x1004047c
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x10040460
cmp edi, 0x1eee87cc
je 0x100404aa
mov eax, dword [ebp - 0x34]
add eax, 4
mov dword [ebp - 0x34], eax
cmp eax, dword [0x103bf634]
jne 0x10040440
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edi, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [0x103c3bdc]
mov dword [0x103c3b94], ecx
jmp 0x10040585
mov eax, dword [ebp - 0x38]
xor edi, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x40], edi
cmp dword [eax + 4], edi
jle 0x1004056d
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov esi, dword [eax]
add esi, ecx
mov dword [ebp - 0x3c], esi
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x100404f7
cmp dword [ecx + 4], 0
jle 0x100404f7
push 0
mov edx, 0xa5bfefb3
call fcn.1013c990
add esp, 4
test eax, eax
je 0x100404f4
mov ecx, dword [esi + 0x2c]
add ecx, eax
add edi, ecx
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x38]
mov esi, dword [esi]
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x10040500
xor edx, edx
test ecx, ecx
je 0x1004052c
nop dword [eax]
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x10040510
cmp edi, 0xa5bfefb3
je 0x10040557
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
inc edx
mov edi, dword [ebp - 0x34]
add ecx, 0x3c
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x30], ecx
cmp edx, dword [eax + 4]
jl 0x100404c3
mov eax, dword [0x103bf630]
mov ecx, edi
mov dword [ebp - 0x30], eax
jmp 0x1004048f
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x2c]
mov eax, dword [0x103bf630]
add ecx, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
jmp 0x1004048f
mov eax, dword [ebp - 0x30]
mov ecx, edi
jmp 0x1004048f
mov eax, dword [0x103bf630]
mov ecx, dword [0x103c3b94]
mov dword [ebp - 0x30], eax
mov esi, dword [ecx + edi]
mov dword [ebp - 0x58], esi
test dl, 1
jne 0x1004060f
or edx, 1
mov dword [0x103c3bdc], edx
mov dword [ebp - 4], 1
cmp eax, dword [0x103bf634]
je 0x100405fa
nop dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
test ecx, ecx
je 0x100405ec
mov edi, dword [ecx + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + edi], 0
jne 0x100405c3
xor edx, edx
test ecx, ecx
je 0x100405ec
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x100405d0
cmp esi, 0x1eee87cc
je 0x10040627
mov eax, dword [ebp - 0x30]
add eax, 4
mov dword [ebp - 0x30], eax
cmp eax, dword [0x103bf634]
jne 0x100405b0
xor ecx, ecx
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
mov dword [0x103c3b94], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
cmp esi, dword [eax + ecx]
je 0x100406dd
movups xmm0, xmmword [0x103a7b64]
jmp 0x100406f1
mov eax, dword [ebp - 0x34]
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x40], edi
cmp dword [eax + 4], edi
jle 0x100406c8
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov esi, dword [eax]
add esi, ecx
mov dword [ebp - 0x3c], esi
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x10040674
cmp dword [ecx + 4], 0
jle 0x10040674
push 0
mov edx, 0xa5bfefb3
call fcn.1013c990
add esp, 4
test eax, eax
je 0x10040671
mov ecx, dword [esi + 0x2c]
add ecx, eax
add edi, ecx
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x34]
mov esi, dword [esi]
mov edi, 0x811c9dc5
xor ecx, ecx
nop dword [eax]
inc ecx
cmp byte [ecx + esi], 0
jne 0x10040680
xor edx, edx
test ecx, ecx
je 0x100406ac
nop dword [eax]
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x10040690
cmp edi, 0xa5bfefb3
je 0x100406cf
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
inc edx
mov edi, dword [ebp - 0x38]
add ecx, 0x3c
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x30], ecx
cmp edx, dword [eax + 4]
jl 0x10040640
mov ecx, edi
jmp 0x100405fc
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x2c]
add ecx, dword [ebp - 0x38]
jmp 0x100405fc
cmp edi, eax
jne 0x100406ea
movups xmm0, xmmword [0x103a7b84]
jmp 0x100406f1
movups xmm0, xmmword [0x103a7b74]
movss xmm1, dword [0x1030bb18]
movups xmmword [ebp - 0x68], xmm0
movss xmm0, dword [ebp - 0x5c]
mulss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x60]
mulss xmm0, xmm1
mov dword [ebp - 0x44], eax
cvttss2si edx, xmm0
movss xmm0, dword [ebp - 0x64]
mulss xmm0, xmm1
movzx edi, dl
cvttss2si ecx, xmm0
movss xmm0, dword [ebp - 0x68]
mulss xmm0, xmm1
movzx edx, cl
mov dword [ebp - 0x58], edx
cvttss2si eax, xmm0
movzx esi, al
mov eax, dword [ebp - 0x44]
movzx ecx, al
mov eax, dword [0x103a7b60]
shl ecx, 8
or ecx, edi
mov dword [ebp - 0x3c], esi
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, esi
mov dword [ebp - 0x44], ecx
sub eax, 0
je 0x100407b0
sub eax, 1
jne 0x10040957
mov eax, dword [0x10c0dd10]
mov edx, dword [ebp - 0x50]
add eax, 0x72c821ae
xor eax, 0x43f50f5d
mov ecx, dword [eax + 0xbc]
mov eax, dword [ebp - 0x48]
push ecx
mov dword [esp], 0x40400000
mov esi, dword [ecx]
mov edx, dword [eax + edx*4 + 8]
push 0
push edi
push dword [ebp - 0x58]
lea eax, [edx - 0xc]
push dword [ebp - 0x3c]
push eax
lea eax, [edx - 0x18]
push eax
call dword [esi + 0x14]
jmp 0x10040957
mov eax, dword [ebp - 0x48]
mov esi, ecx
mov edx, dword [ebp - 0x50]
shr esi, 0x18
mov edi, dword [eax + edx*4 + 8]
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x3c], eax
mov eax, ecx
shr eax, 8
mov ecx, 0x10323b88
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10042a40
lea ecx, [ebp - 0x110]
mov dword [ebp - 4], 2
call fcn.1003e370
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
movq xmm0, qword [edi - 0x18]
lea edx, [ebp - 0x110]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0xe0], eax
mov eax, dword [edi - 0x10]
movq qword [ebp - 0xfc], xmm0
movq xmm0, qword [edi - 0xc]
mov dword [ebp - 0xf4], eax
mov eax, dword [edi - 4]
movq qword [ebp - 0xf0], xmm0
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x44]
movzx eax, al
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0xe4], 0xffffffff
mov dword [ebp - 0xd0], 0x40400000
mov dword [ebp - 0xc4], 0x3dcccccd
mov dword [ebp - 0xd4], 0
movss dword [ebp - 0xbc], xmm0
movd xmm0, eax
mov eax, dword [ebp - 0x58]
cvtdq2ps xmm0, xmm0
movzx eax, al
mov dword [ebp - 0xc0], 0x3f800000
mov dword [ebp - 0x9c], 2
mov byte [ebp - 0xa0], 1
mov dword [ebp - 0xb8], 0x3f800000
movss dword [ebp - 0xac], xmm0
movd xmm0, eax
mov eax, dword [ebp - 0x3c]
cvtdq2ps xmm0, xmm0
movzx eax, al
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xcc], 0x40400000
mov dword [ebp - 0xc8], 0x40400000
movss dword [ebp - 0xa8], xmm0
movd xmm0, eax
mov eax, dword [0x10c0dd10]
add eax, 0x72c821ae
mov dword [ebp - 0x98], 0x304
cvtdq2ps xmm0, xmm0
xor eax, 0x43f50f5d
push edx
movss dword [ebp - 0xa4], xmm0
mov ecx, dword [eax + 0x114]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
test eax, eax
je 0x10040948
mov ecx, dword [0x10c0dd10]
add ecx, 0x72c821ae
xor ecx, 0x43f50f5d
push eax
mov ecx, dword [ecx + 0x114]
mov edx, dword [ecx]
call dword [edx + 0x18]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.1002aa60
mov esi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
mov eax, dword [edx + ecx*4 + 4]
cmp eax, dword [edx + ecx*4 + 8]
je 0x10040973
mov dword [edx + ecx*4 + 8], eax
jmp 0x10040973
mov edx, dword [ebp - 0x48]
inc esi
mov dword [ebp - 0x4c], esi
cmp esi, 0x41
jl 0x10040380
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.1023505f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret