Function at 0x1003fb30
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
mov eax, 0x1860
call fcn.10153400
mov eax, dword [0x101e5040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebp - 0x184c], ecx
mov ecx, dword [0x105408f4]
mov dword [ebp - 0x1850], eax
push esi
push edi
mov eax, dword [ecx]
push edx
mov dword [ebp - 0x1834], edx
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
mov dword [ebp - 0x1848], edi
test edi, edi
je 0x10040442
mov ecx, dword [edi]
mov edx, dword [ecx + 0x260]
mov ecx, edi
call edx
test al, al
je 0x10040442
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
cmp eax, 0x40
jg 0x10040442
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
test eax, eax
jle 0x10040442
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10040442
mov eax, dword [0x1054857c]
add eax, 0xffffffd0
xor eax, 0x14f7a208
cmp byte [eax + edi], 0
jne 0x10040442
mov eax, dword [0x1054859c]
add eax, 0xffffffc8
xor eax, 0x14f7a210
cmp dword [eax + edi], 0
jle 0x10040442
mov eax, dword [0x10540b34]
cmp byte [eax + edi], 0
jne 0x10040442
mov edx, dword [0x1054854c]
mov eax, dword [0x10429d7c]
add edx, 0xffffffdc
xor edx, 0x14f7a1fc
mov ecx, dword [edx + edi]
cmp ecx, dword [edx + eax]
jne 0x1003fc4e
mov ecx, dword [0x105409f4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x10040442
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x10040442
mov eax, dword [0x105485d0]
add eax, 0xffffffbb
xor eax, 0x14f7a21d
movss xmm0, dword [eax + edi]
ucomiss xmm0, dword [0x101d83e0]
lahf
test ah, 0x44
jp 0x10040442
imul eax, dword [ebp - 0x1834], 0x5990
lea edi, [eax + 0x101df934]
mov dword [ebp - 0x1838], edi
test edi, edi
je 0x10040442
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10040442
cmp eax, 2
jb 0x10040442
mov edx, dword [edi + 0xc]
mov ecx, edx
mov eax, dword [edi + 8]
and edx, 1
dec eax
shr ecx, 1
and ecx, eax
mov eax, dword [edi + 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + edx*8]
cmp byte [eax + 0x3418], 0
jne 0x10040442
mov ecx, dword [0x105408f0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov esi, eax
mov dword [ebp - 0x180c], esi
test esi, esi
je 0x10040442
mov ecx, dword [0x10548888]
test cl, 1
jne 0x1003fd9c
or ecx, 1
mov dword [0x10548888], ecx
mov eax, dword [0x105408ec]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1824], eax
test eax, eax
je 0x1003fd78
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [edi + ecx], 0
jne 0x1003fd30
xor edx, edx
test ecx, ecx
je 0x1003fd5f
nop dword [eax]
movsx eax, byte [edi + edx]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x1003fd40
cmp esi, 0x8c8dc452
je 0x1003fd82
mov eax, dword [ebp - 0x1824]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1824], eax
test eax, eax
jne 0x1003fd26
mov edi, dword [ebp - 0x1838]
mov esi, dword [ebp - 0x180c]
xor ecx, ecx
mov dword [0x10548894], ecx
jmp 0x1003fda2
mov ecx, dword [ebp - 0x1824]
mov edi, dword [ebp - 0x1838]
mov esi, dword [ebp - 0x180c]
mov dword [0x10548894], ecx
jmp 0x1003fda2
mov ecx, dword [0x10548894]
test ecx, ecx
je 0x1003fdaf
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 [edi + 0xc]
fstp st(0)
mov esi, dword [edi]
lea eax, [ecx + 1]
mov dword [ebp - 0x1838], eax
mov eax, dword [edi + 0xc]
add eax, dword [edi + 0x10]
mov dword [ebp - 0x1834], ecx
cmp ecx, eax
je 0x10040442
test esi, esi
je 0x1003fdf3
mov eax, dword [esi]
jmp 0x1003fdf5
xor eax, eax
mov edx, ecx
and ecx, 1
mov dword [ebp - 0x183c], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
shr edx, 1
and ecx, edx
mov dword [ebp - 0x1844], edx
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x183c]
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 - 0x1824], eax
test eax, eax
je 0x1004011d
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 - 0x1824]
fstp dword [ebp - 0x182c]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x180c], eax
call dword [ebp - 0x180c]
mov ecx, dword [0x105409b8]
fstp dword [ebp - 0x180c]
movss xmm0, dword [ebp - 0x180c]
addss xmm0, dword [ebp - 0x182c]
mov eax, dword [ecx]
addss xmm0, dword [0x101d83e0]
mov eax, dword [eax + 0x30]
addss xmm0, dword [0x1042b804]
movss dword [ebp - 0x1824], xmm0
movss dword [ebp - 0x180c], xmm0
call eax
movss xmm1, dword [ebp - 0x1824]
lea ecx, [ebp - 0x180c]
xorps xmm6, xmm6
lea eax, [ebp - 0x182c]
comiss xmm6, xmm1
fstp dword [ebp - 0x182c]
movss xmm0, dword [ebp - 0x182c]
cmovbe eax, ecx
movss dword [ebp - 0x1810], xmm0
comiss xmm1, xmm0
lea ecx, [ebp - 0x1810]
mov dword [ebp - 0x182c], 0
cmovbe ecx, eax
mov eax, dword [0x10540950]
movss xmm1, dword [eax + 0x10]
mov eax, dword [ebp - 0x1828]
movss xmm0, dword [ecx]
subss xmm1, dword [eax + 0x28]
subss xmm0, xmm1
call fcn.1002dfe0
comiss xmm0, dword [0x101d8448]
ja 0x1004011d
mov eax, dword [edi + 0xc]
add eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x1838]
cmp ecx, eax
je 0x1004011d
test esi, esi
je 0x1003ff52
mov eax, dword [esi]
mov dword [ebp - 0x1824], eax
jmp 0x1003ff5c
mov dword [ebp - 0x1824], 0
mov eax, ecx
mov edx, ecx
mov ecx, dword [ebp - 0x1824]
and edx, 1
shr eax, 1
mov dword [ebp - 0x1814], eax
mov dword [ebp - 0x180c], edx
mov ecx, dword [ecx + 8]
dec ecx
and ecx, eax
mov eax, dword [ebp - 0x1824]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x105408f0]
mov eax, dword [eax + edx*8]
mov dword [ebp - 0x1840], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov dword [ebp - 0x1810], eax
test eax, eax
je 0x1004009f
mov ecx, dword [eax]
push 0
mov ecx, dword [ecx + 0x24]
mov dword [ebp - 0x1828], ecx
mov ecx, eax
call dword [ebp - 0x1828]
mov ecx, dword [ebp - 0x1810]
fstp dword [ebp - 0x182c]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x1828], eax
call dword [ebp - 0x1828]
fadd dword [ebp - 0x182c]
mov ecx, dword [0x105409b8]
mov eax, dword [ecx]
fstp dword [ebp - 0x1828]
movss xmm0, dword [ebp - 0x1828]
addss xmm0, dword [0x101d83e0]
mov eax, dword [eax + 0x30]
addss xmm0, dword [0x1042b804]
movss dword [ebp - 0x182c], xmm0
movss dword [ebp - 0x1810], xmm0
call eax
movss xmm1, dword [ebp - 0x182c]
lea ecx, [ebp - 0x1810]
xorps xmm6, xmm6
lea eax, [ebp - 0x1828]
comiss xmm6, xmm1
fstp dword [ebp - 0x1828]
movss xmm0, dword [ebp - 0x1828]
cmovbe eax, ecx
movss dword [ebp - 0x1824], xmm0
comiss xmm1, xmm0
lea ecx, [ebp - 0x1824]
mov dword [ebp - 0x1828], 0
cmovbe ecx, eax
mov eax, dword [0x10540950]
movss xmm1, dword [eax + 0x10]
mov eax, dword [ebp - 0x1840]
movss xmm0, dword [ecx]
subss xmm1, dword [eax + 0x28]
subss xmm0, xmm1
call fcn.1002dfe0
comiss xmm0, dword [0x101d8448]
jbe 0x1004011d
jmp 0x100400a2
xorps xmm6, xmm6
test esi, esi
je 0x100400aa
mov eax, dword [esi]
jmp 0x100400ac
xor eax, eax
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x1814]
dec ecx
mov eax, dword [eax + 4]
and ecx, edx
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x180c]
mov eax, dword [eax + ecx*8]
cmp byte [eax + 0x18], 0
jne 0x1004011d
test esi, esi
je 0x100400d5
mov eax, dword [esi]
jmp 0x100400d7
xor eax, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x180c]
mov edx, dword [eax + ecx*8]
mov dword [ebp - 0x1824], edx
test esi, esi
je 0x100400fa
mov eax, dword [esi]
jmp 0x100400fc
xor eax, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x1844]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x183c]
mov ecx, dword [eax + ecx*8]
test edx, edx
je 0x1004011d
test ecx, ecx
jne 0x1004012f
mov ecx, dword [ebp - 0x1834]
inc ecx
inc dword [ebp - 0x1838]
jmp 0x1003fdd7
mov eax, dword [ecx + 0x40]
movq xmm0, qword [ecx + 0x38]
mov esi, dword [ebp - 0x1824]
movss xmm5, dword [ecx + 0x28]
movss xmm4, dword [ecx + 0x4074]
mov dword [ebp - 0x1854], eax
mov eax, dword [0x10540950]
movq qword [ebp - 0x185c], xmm0
movaps xmm0, xmm5
subss xmm0, dword [esi + 0x28]
movss xmm3, dword [0x101d84f0]
movss xmm2, dword [eax + 0x10]
movaps xmm1, xmm2
subss xmm1, xmm4
divss xmm1, xmm0
movaps xmm0, xmm3
subss xmm0, xmm1
comiss xmm6, xmm0
ja 0x1004018e
comiss xmm0, xmm3
jbe 0x10040199
movss dword [ecx + 0x4074], xmm2
movaps xmm4, xmm2
subss xmm5, dword [esi + 0x28]
subss xmm2, xmm4
mov dword [ebp - 0x1840], 0x3f800000
movaps xmm0, xmm3
mov dword [ebp - 0x1844], 0
lea eax, [ebp - 0x1814]
lea ecx, [ebp - 0x1844]
divss xmm2, xmm5
subss xmm0, xmm2
movaps xmm2, xmm3
comiss xmm6, xmm0
movss dword [ebp - 0x1814], xmm0
cmovbe ecx, eax
lea eax, [ebp - 0x1840]
comiss xmm0, xmm3
movq xmm0, qword [esi + 0x38]
movq qword [ebp - 0x1820], xmm0
movss xmm0, dword [ebp - 0x185c]
cmovbe eax, ecx
movss dword [ebp - 0x1828], xmm0
mov ecx, dword [ebp - 0x1848]
movss xmm1, dword [eax]
subss xmm2, xmm1
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x1818], eax
mov eax, dword [ecx]
movaps xmm3, xmm2
mulss xmm3, xmm0
movaps xmm0, xmm1
mov eax, dword [eax + 0x28]
mulss xmm0, dword [ebp - 0x1820]
addss xmm3, xmm0
movss xmm0, dword [ebp - 0x1858]
movss dword [ebp - 0x1810], xmm0
movss dword [ebp - 0x1834], xmm3
movaps xmm3, xmm2
mulss xmm3, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [ebp - 0x181c]
mulss xmm1, dword [ebp - 0x1818]
addss xmm3, xmm0
movss xmm0, dword [ebp - 0x1854]
mulss xmm2, xmm0
movss dword [ebp - 0x182c], xmm0
addss xmm2, xmm1
movss dword [ebp - 0x183c], xmm3
movss dword [ebp - 0x1840], xmm2
call eax
movss xmm1, dword [ebp - 0x1834]
movss xmm0, dword [ebp - 0x183c]
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 0x10040326
movaps xmm1, xmm2
mov dword [ebp - 0x1814], 0x3f800000
divss xmm1, xmm0
mov dword [ebp - 0x1848], 0
lea eax, [ebp - 0x1844]
lea ecx, [ebp - 0x1848]
xorps xmm0, xmm0
comiss xmm0, xmm1
movss dword [ebp - 0x1844], xmm1
cmovbe ecx, eax
lea eax, [ebp - 0x1814]
comiss xmm1, dword [0x101d84f0]
cmovbe eax, ecx
mov ecx, dword [ebp - 0x184c]
mov eax, dword [eax]
mov dword [ecx + 0x10], eax
movss xmm0, dword [0x101d858c]
comiss xmm0, xmm2
jae 0x10040442
push 0x1800
lea eax, [esi + 0x418]
push eax
lea eax, [ebp - 0x1808]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov dl, byte [0x103b25e4]
lea eax, [ebp - 0x17ec]
movss xmm5, dword [ebp - 0x1840]
lea ecx, [esi + 0x434]
movss xmm6, dword [ebp - 0x1834]
add esp, 0xc
movss xmm7, dword [ebp - 0x1828]
mov dword [ebp - 0x180c], 0x80
mov byte [ebp - 0x182d], dl
nop dword [eax]
movss xmm0, dword [ecx - 0x10]
test dl, dl
movss xmm3, dword [ecx]
mov edi, eax
movss xmm4, dword [ecx + 0x10]
mov edx, eax
subss xmm0, dword [esi + 0x38]
subss xmm3, dword [esi + 0x3c]
subss xmm4, dword [esi + 0x40]
je 0x100403cd
movss xmm1, dword [ebp - 0x183c]
movaps xmm2, xmm6
addss xmm2, xmm0
movaps xmm0, xmm5
addss xmm0, xmm4
jmp 0x100403e7
movss xmm1, dword [ebp - 0x1810]
movaps xmm2, xmm0
movaps xmm0, xmm4
addss xmm2, xmm7
addss xmm0, dword [ebp - 0x182c]
mov esi, 0xfffffff0
addss xmm1, xmm3
add ecx, 0x30
movss dword [edi + esi], xmm2
mov esi, 0x10
movss dword [edx], xmm1
mov edx, eax
add eax, 0x30
movss dword [esi + edx], xmm0
sub dword [ebp - 0x180c], 1
mov esi, dword [ebp - 0x1824]
mov dl, byte [ebp - 0x182d]
jne 0x10040390
push 0x1800
lea eax, [ebp - 0x1808]
push eax
push dword [ebp - 0x1850]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov al, 1
jmp 0x10040444
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101528b9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8