Function at 0x10046540
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 0x100497e8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x1005200c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movss dword [ebp - 0x24], xmm3
movss dword [ebp - 0x1c], xmm2
movss dword [ebp - 0x18], xmm1
mov byte [ebp - 0x1d], cl
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov edx, dword [0x100cbe3c]
mov edx, dword [eax + edx*4]
mov eax, dword [0x100cbf8c]
cmp eax, dword [edx + 4]
jle 0x10046683
push 0x100cbf8c
call fcn.10047ed8
add esp, 4
cmp dword [0x100cbf8c], 0xffffffff
jne 0x10046683
xorps xmm0, xmm0
mov byte [ebp - 4], 1
movups xmmword [0x100cbf6c], xmm0
push 0x24
movups xmmword [0x100cbf7c], xmm0
mov dword [0x100cbf6c], 0
mov dword [0x100cbf70], 0
mov dword [0x100cbf74], 0
call fcn.10047d3f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [0x100cbf70], eax
mov dword [0x100cbf78], 0
mov dword [0x100cbf7c], 0
mov dword [0x100cbf80], 0
mov byte [ebp - 4], 3
mov ecx, 0x100cbf78
push eax
push 0x10
mov dword [0x100cbf84], 7
mov dword [0x100cbf88], 8
mov dword [0x100cbf6c], 0x3f800000
call fcn.10043670
push 0x100499e0
call fcn.100484b3
add esp, 4
mov byte [ebp - 4], 0
push 0x100cbf8c
call fcn.10047e8e
add esp, 4
cmp dword [ebx + 0x1c], 0x10
lea esi, [ebx + 8]
mov edi, dword [ebx + 0x18]
mov edx, 0x811c9dc5
cmovae esi, dword [ebx + 8]
xor ecx, ecx
test edi, edi
je 0x100466b1
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x100466a0
push edx
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10046f10
mov ecx, dword [eax + 4]
test ecx, ecx
mov eax, dword [0x100cbf70]
cmovne eax, ecx
cmp eax, dword [0x100cbf70]
jne 0x1004677c
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.100022d0
movss xmm0, dword [ebp - 0x18]
movss dword [ebp - 0x30], xmm0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10046a70
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x10046733
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10046729
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046813
push edx
push ecx
call fcn.10047d6f
add esp, 8
cmp dword [ebx + 0x1c], 0x10
lea esi, [ebx + 8]
mov edi, dword [ebx + 0x18]
mov edx, 0x811c9dc5
cmovae esi, dword [ebx + 8]
xor ecx, ecx
test edi, edi
je 0x10046761
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x10046750
push edx
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10046f10
mov ecx, dword [eax + 4]
test ecx, ecx
mov eax, dword [0x100cbf70]
cmovne eax, ecx
cmp byte [ebp - 0x1d], 0
mov ecx, dword [0x100cbe88]
movss xmm1, dword [0x1004fb00]
movss xmm0, dword [eax + 0x20]
movss xmm3, dword [ebp - 0x1c]
subss xmm1, dword [ecx + 0x18]
lea ecx, [eax + 0x20]
mulss xmm1, dword [ebp - 0x24]
je 0x100467bb
comiss xmm3, xmm0
jbe 0x100467b4
addss xmm0, xmm1
movss dword [ecx], xmm0
movss xmm2, dword [ebp - 0x18]
jmp 0x100467cd
movss xmm2, dword [ebp - 0x18]
comiss xmm0, xmm2
jbe 0x100467cd
subss xmm0, xmm1
movss dword [ecx], xmm0
comiss xmm2, xmm0
jbe 0x100467d7
lea eax, [ebp - 0x18]
jmp 0x100467e0
comiss xmm0, xmm3
lea eax, [ebp - 0x1c]
cmovbe eax, ecx
movss xmm0, dword [eax]
movss dword [ecx], xmm0
mov edx, dword [ebx + 0x1c]
movss dword [ebp - 0x24], xmm0
cmp edx, 0x10
jb 0x10046828
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10046819
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046819
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10047d6f
movss xmm0, dword [ebp - 0x24]
add esp, 8
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.10047d31
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret