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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x184c
call fcn.10153400
mov eax, dword [0x101e5040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x183c], ecx
mov ecx, dword [0x105408f4]
mov dword [ebp - 0x1840], eax
push esi
push edi
mov eax, dword [ecx]
push edx
mov dword [ebp - 0x1830], edx
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
mov dword [ebp - 0x1838], edi
test edi, edi
je 0x10040c69
mov ecx, dword [edi]
mov edx, dword [ecx + 0x260]
mov ecx, edi
call edx
test al, al
je 0x10040c69
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
cmp eax, 0x40
jg 0x10040c69
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
test eax, eax
jle 0x10040c69
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10040c69
mov eax, dword [0x1054857c]
add eax, 0xffffffd0
xor eax, 0x14f7a208
cmp byte [eax + edi], 0
jne 0x10040c69
mov eax, dword [0x1054859c]
add eax, 0xffffffc8
xor eax, 0x14f7a210
cmp dword [eax + edi], 0
jle 0x10040c69
mov eax, dword [0x10540b34]
cmp byte [eax + edi], 0
jne 0x10040c69
mov edx, dword [0x1054854c]
mov eax, dword [0x10429d7c]
add edx, 0xffffffdc
xor edx, 0x14f7a1fc
mov ecx, dword [edx + edi]
cmp ecx, dword [eax + edx]
jne 0x1004056b
mov ecx, dword [0x105409f4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x10040c69
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x10040c69
mov eax, dword [0x105485d0]
add eax, 0xffffffbb
xor eax, 0x14f7a21d
movss xmm0, dword [eax + edi]
ucomiss xmm0, dword [0x101d83e0]
lahf
test ah, 0x44
jp 0x10040c69
imul eax, dword [ebp - 0x1830], 0x5990
lea esi, [eax + 0x101df934]
mov dword [ebp - 0x1830], esi
test esi, esi
je 0x10040c69
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10040c69
cmp eax, 2
jb 0x10040c69
mov edx, dword [esi + 0xc]
mov ecx, edx
mov eax, dword [esi + 8]
and edx, 1
dec eax
shr ecx, 1
and ecx, eax
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + edx*8]
cmp byte [eax + 0x3418], 0
jne 0x10040c69
mov ecx, dword [0x105408f0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov esi, eax
mov dword [ebp - 0x1824], esi
test esi, esi
je 0x10040c69
mov ecx, dword [0x1054888c]
test cl, 1
jne 0x100406b0
or ecx, 1
mov dword [0x1054888c], ecx
mov eax, dword [0x105408ec]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1828], eax
test eax, eax
je 0x10040692
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop dword [eax]
inc ecx
cmp byte [ecx + edi], 0
jne 0x10040650
xor edx, edx
test ecx, ecx
je 0x1004067f
nop dword [eax]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10040660
cmp esi, 0x8c8dc452
je 0x1004069c
mov eax, dword [ebp - 0x1828]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1828], eax
test eax, eax
jne 0x10040643
mov esi, dword [ebp - 0x1824]
xor ecx, ecx
mov dword [0x10548890], ecx
jmp 0x100406b6
mov ecx, dword [ebp - 0x1828]
mov esi, dword [ebp - 0x1824]
mov dword [0x10548890], ecx
jmp 0x100406b6
mov ecx, dword [0x10548890]
test ecx, ecx
je 0x100406c3
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
fstp st(0)
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 0x28]
call eax
mov eax, dword [esi]
fstp st(0)
push 1
mov ecx, esi
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [ebp - 0x1830]
fstp st(0)
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx]
mov dword [ebp - 0x1824], eax
lea esi, [eax + 1]
mov eax, dword [ecx + 0x10]
add eax, dword [ecx + 0xc]
cmp esi, eax
je 0x10040c69
test edi, edi
je 0x10040707
mov ecx, dword [edi]
jmp 0x10040709
xor ecx, ecx
mov edx, dword [ecx + 8]
mov eax, esi
shr eax, 1
dec edx
and edx, eax
mov eax, dword [ecx + 4]
mov ecx, esi
and ecx, 1
mov eax, dword [eax + edx*4]
mov eax, dword [eax + ecx*8]
mov dword [ebp - 0x1834], eax
test edi, edi
je 0x1004072f
mov ecx, dword [edi]
jmp 0x10040731
xor ecx, ecx
mov eax, dword [ecx + 8]
mov edx, dword [ebp - 0x1824]
dec eax
shr edx, 1
and edx, eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x1824]
and ecx, 1
mov eax, dword [eax + edx*4]
mov eax, dword [eax + ecx*8]
mov ecx, dword [0x105408f0]
mov dword [ebp - 0x1828], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov dword [ebp - 0x181c], eax
test eax, eax
je 0x1004097c
mov ecx, dword [eax]
push 0
mov ecx, dword [ecx + 0x24]
mov dword [ebp - 0x180c], ecx
mov ecx, eax
call dword [ebp - 0x180c]
mov ecx, dword [ebp - 0x181c]
fstp dword [ebp - 0x180c]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x181c], eax
call dword [ebp - 0x181c]
fadd dword [ebp - 0x180c]
mov ecx, dword [0x105409b8]
mov eax, dword [ecx]
fstp dword [ebp - 0x181c]
movss xmm0, dword [ebp - 0x181c]
addss xmm0, dword [0x101d83e0]
mov eax, dword [eax + 0x30]
addss xmm0, dword [0x1042b804]
movss dword [ebp - 0x1808], xmm0
movss dword [ebp - 0x180c], xmm0
call eax
movss xmm1, dword [ebp - 0x1808]
lea ecx, [ebp - 0x180c]
xorps xmm5, xmm5
lea eax, [ebp - 0x181c]
comiss xmm5, xmm1
fstp dword [ebp - 0x181c]
movss xmm0, dword [ebp - 0x181c]
cmovbe eax, ecx
movss dword [ebp - 0x1820], xmm0
comiss xmm1, xmm0
lea ecx, [ebp - 0x1820]
mov dword [ebp - 0x181c], 0
cmovbe ecx, eax
mov eax, dword [0x10540950]
movss xmm1, dword [eax + 0x10]
mov eax, dword [ebp - 0x1834]
movss xmm0, dword [ecx]
subss xmm1, dword [eax + 0x28]
subss xmm0, xmm1
call fcn.1002dfe0
comiss xmm0, dword [0x101d8448]
ja 0x1004097c
mov ecx, dword [0x105408f0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov dword [ebp - 0x1808], eax
test eax, eax
je 0x1004097c
mov ecx, dword [eax]
push 0
mov ecx, dword [ecx + 0x24]
mov dword [ebp - 0x1820], ecx
mov ecx, eax
call dword [ebp - 0x1820]
mov ecx, dword [ebp - 0x1808]
fstp dword [ebp - 0x181c]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x1820], eax
call dword [ebp - 0x1820]
fadd dword [ebp - 0x181c]
mov ecx, dword [0x105409b8]
mov eax, dword [ecx]
fstp dword [ebp - 0x1820]
movss xmm0, dword [ebp - 0x1820]
addss xmm0, dword [0x101d83e0]
mov eax, dword [eax + 0x30]
addss xmm0, dword [0x1042b804]
movss dword [ebp - 0x181c], xmm0
movss dword [ebp - 0x1808], xmm0
call eax
movss xmm1, dword [ebp - 0x181c]
lea eax, [ebp - 0x1808]
xorps xmm5, xmm5
lea ecx, [ebp - 0x1820]
comiss xmm5, xmm1
fstp dword [ebp - 0x1820]
movss xmm0, dword [ebp - 0x1820]
cmovbe ecx, eax
movss dword [ebp - 0x180c], xmm0
mov eax, dword [0x10540950]
comiss xmm1, xmm0
mov dword [ebp - 0x1820], 0
movss xmm2, dword [eax + 0x10]
mov eax, dword [ebp - 0x1828]
movaps xmm1, xmm2
movss xmm6, dword [eax + 0x28]
lea eax, [ebp - 0x180c]
cmovbe eax, ecx
subss xmm1, xmm6
movss xmm0, dword [eax]
subss xmm0, xmm1
call fcn.1002dfe0
comiss xmm0, dword [0x101d8448]
ja 0x1004097c
mov ecx, dword [ebp - 0x1834]
cmp byte [ecx + 0x18], 0
je 0x1004098e
mov ecx, dword [ebp - 0x1830]
inc esi
inc dword [ebp - 0x1824]
jmp 0x100406f1
mov esi, dword [ebp - 0x1828]
movaps xmm1, xmm2
movq xmm0, qword [ecx + 0x38]
movq qword [ebp - 0x184c], xmm0
movss xmm0, dword [ecx + 0x28]
movss xmm4, dword [esi + 0x4074]
subss xmm0, xmm6
subss xmm1, xmm4
mov eax, dword [ecx + 0x40]
movss xmm3, dword [0x101d84f0]
mov dword [ebp - 0x1844], eax
divss xmm1, xmm0
comiss xmm5, xmm1
ja 0x100409d8
comiss xmm1, xmm3
jbe 0x100409e3
movss dword [esi + 0x4074], xmm2
movaps xmm4, xmm2
movss xmm0, dword [ecx + 0x28]
subss xmm2, xmm4
subss xmm0, xmm6
mov dword [ebp - 0x181c], 0x3f800000
lea eax, [ebp - 0x1808]
mov dword [ebp - 0x1820], 0
lea ecx, [ebp - 0x1820]
movaps xmm1, xmm3
divss xmm2, xmm0
movq xmm0, qword [esi + 0x38]
comiss xmm5, xmm2
movq qword [ebp - 0x1818], xmm0
movss xmm0, dword [ebp - 0x184c]
cmovbe ecx, eax
movss dword [ebp - 0x1808], xmm2
comiss xmm2, xmm3
lea eax, [ebp - 0x181c]
movss xmm3, dword [ebp - 0x1818]
cmovbe eax, ecx
mov ecx, dword [ebp - 0x1838]
movss xmm2, dword [eax]
mov eax, dword [esi + 0x40]
subss xmm1, xmm2
mulss xmm0, xmm2
mov dword [ebp - 0x1810], eax
mov eax, dword [ecx]
mulss xmm3, xmm1
mov eax, dword [eax + 0x28]
addss xmm3, xmm0
movss xmm0, dword [ebp - 0x1848]
mulss xmm0, xmm2
movss dword [ebp - 0x1830], xmm3
movss xmm3, dword [ebp - 0x1814]
mulss xmm3, xmm1
addss xmm3, xmm0
movss xmm0, dword [ebp - 0x1844]
mulss xmm0, xmm2
movss dword [ebp - 0x1834], xmm3
movss xmm3, dword [ebp - 0x1810]
mulss xmm3, xmm1
addss xmm3, xmm0
movss dword [ebp - 0x181c], xmm3
call eax
movss xmm1, dword [ebp - 0x1830]
movss xmm0, dword [ebp - 0x1834]
subss xmm0, dword [eax + 4]
subss xmm1, dword [eax]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.1002e020
movaps xmm2, xmm0
movss xmm0, dword [0x101d85c0]
comiss xmm0, xmm2
jb 0x10040b55
movaps xmm1, xmm2
mov dword [ebp - 0x1808], 0x3f800000
divss xmm1, xmm0
mov dword [ebp - 0x1838], 0
lea eax, [ebp - 0x1820]
lea ecx, [ebp - 0x1838]
xorps xmm0, xmm0
comiss xmm0, xmm1
movss dword [ebp - 0x1820], xmm1
cmovbe ecx, eax
lea eax, [ebp - 0x1808]
comiss xmm1, dword [0x101d84f0]
cmovbe eax, ecx
mov ecx, dword [ebp - 0x183c]
mov eax, dword [eax]
mov dword [ecx + 0x10], eax
movss xmm0, dword [0x101d858c]
comiss xmm0, xmm2
jae 0x10040c69
push 0x1800
lea eax, [esi + 0x418]
push eax
lea eax, [ebp - 0x1804]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov dl, byte [0x103b25e4]
lea eax, [ebp - 0x17e8]
movss xmm6, dword [ebp - 0x1830]
lea ecx, [esi + 0x434]
movss xmm7, dword [ebp - 0x1834]
add esp, 0xc
mov dword [ebp - 0x1824], 0x80
mov byte [ebp - 0x1829], dl
movss xmm3, dword [esi + 0x38]
test dl, dl
movss xmm2, dword [ecx - 0x10]
mov edi, eax
movss xmm4, dword [esi + 0x3c]
subss xmm2, xmm3
movss xmm1, dword [ecx]
mov edx, eax
movss xmm5, dword [esi + 0x40]
subss xmm1, xmm4
movss xmm0, dword [ecx + 0x10]
subss xmm0, xmm5
je 0x10040bf6
addss xmm0, dword [ebp - 0x181c]
addss xmm2, xmm6
addss xmm1, xmm7
jmp 0x10040c02
addss xmm2, xmm3
addss xmm1, xmm4
addss xmm0, xmm5
mov esi, 0xfffffff0
add ecx, 0x30
movss dword [edi + esi], xmm2
mov esi, 0x10
movss dword [edx], xmm1
mov edx, eax
add eax, 0x30
sub dword [ebp - 0x1824], 1
movss dword [esi + edx], xmm0
mov esi, dword [ebp - 0x1828]
mov dl, byte [ebp - 0x1829]
jne 0x10040bb3
push 0x1800
lea eax, [ebp - 0x1804]
push eax
push dword [ebp - 0x1840]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101528b9
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.101528b9
mov esp, ebp
pop ebp
ret 8