Function at 0x1003f520
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, 0x1868
call fcn.100d4800
mov eax, dword [0x100f8040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebp - 0x1858], ecx
mov ecx, dword [0x104520d8]
mov dword [ebp - 0x185c], eax
push esi
push edi
mov eax, dword [ecx]
push edx
mov dword [ebp - 0x183c], edx
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
mov dword [ebp - 0x1854], edi
test edi, edi
je 0x10040012
mov ecx, dword [edi]
mov edx, dword [ecx + 0x260]
mov ecx, edi
call edx
test al, al
je 0x10040012
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
cmp eax, 0x40
jg 0x10040012
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
test eax, eax
jle 0x10040012
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10040012
mov eax, dword [0x10459d34]
add eax, 0xffffffd0
xor eax, 0x11daf9a3
cmp byte [eax + edi], 0
jne 0x10040012
mov eax, dword [0x10459d54]
add eax, 0xffffffc8
xor eax, 0x11daf9ab
cmp dword [eax + edi], 0
jle 0x10040012
mov eax, dword [0x10452314]
cmp byte [eax + edi], 0
jne 0x10040012
mov edx, dword [0x10459d04]
mov eax, dword [0x1033ad0c]
add edx, 0xffffffdc
xor edx, 0x11daf997
mov ecx, dword [edx + edi]
cmp ecx, dword [edx + eax]
jne 0x1003f63e
mov ecx, dword [0x104521d4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x10040012
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x10040012
mov eax, dword [0x10459d84]
add eax, 0xffffffbc
xor eax, 0x11daf9b7
vmovss xmm0, dword [eax + edi]
vucomiss xmm0, dword [0x100ecc58]
lahf
test ah, 0x44
jp 0x10040012
imul eax, dword [ebp - 0x183c], 0x5984
lea edi, [eax + 0x100f2938]
mov dword [ebp - 0x1850], edi
test edi, edi
je 0x10040012
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10040012
cmp eax, 2
jb 0x10040012
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 + 0x3410], 0
jne 0x10040012
mov ecx, dword [0x104520d4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov esi, eax
mov dword [ebp - 0x1840], esi
test esi, esi
je 0x10040012
mov ecx, dword [0x1045a054]
test cl, 1
jne 0x1003f79c
or ecx, 1
mov dword [0x1045a054], ecx
mov eax, dword [0x104520d0]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1828], eax
test eax, eax
je 0x1003f778
nop word [eax + eax]
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [ecx + edi], 0
jne 0x1003f730
xor edx, edx
test ecx, ecx
je 0x1003f75f
nop dword [eax]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x1003f740
cmp esi, 0x8c8dc452
je 0x1003f782
mov eax, dword [ebp - 0x1828]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1828], eax
test eax, eax
jne 0x1003f720
mov edi, dword [ebp - 0x1850]
mov esi, dword [ebp - 0x1840]
xor ecx, ecx
mov dword [0x1045a058], ecx
jmp 0x1003f7a2
mov ecx, dword [ebp - 0x1828]
mov edi, dword [ebp - 0x1850]
mov esi, dword [ebp - 0x1840]
mov dword [0x1045a058], ecx
jmp 0x1003f7a2
mov ecx, dword [0x1045a058]
test ecx, ecx
je 0x1003f7af
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
fstp st(0)
mov eax, dword [esi]
mov ecx, esi
push 1
mov eax, dword [eax + 0x28]
call eax
mov eax, dword [esi]
fstp st(0)
push 0
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 - 0x1840], eax
mov eax, dword [edi + 0xc]
add eax, dword [edi + 0x10]
mov dword [ebp - 0x183c], ecx
cmp ecx, eax
je 0x10040012
test esi, esi
je 0x1003f7f3
mov eax, dword [esi]
jmp 0x1003f7f5
xor eax, eax
mov edx, ecx
and ecx, 1
mov dword [ebp - 0x1844], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
shr edx, 1
and ecx, edx
mov dword [ebp - 0x184c], edx
vxorps xmm0, xmm0, xmm0
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x1844]
mov eax, dword [eax + ecx*8]
mov ecx, dword [0x10459d4c]
mov dword [ebp - 0x1838], eax
add ecx, 0xffffffca
mov eax, dword [0x1033ad0c]
xor ecx, 0x11daf9a9
vcvtsi2ss xmm0, xmm0, dword [ecx + eax]
mov eax, dword [0x10452134]
mov ecx, dword [0x104520d4]
vmulss xmm0, xmm0, dword [eax + 0x20]
mov eax, dword [ecx]
vmovss dword [ebp - 0x1824], xmm0
mov eax, dword [eax + 0x138]
call eax
mov dword [ebp - 0x1828], eax
test eax, eax
je 0x1003fda2
mov ecx, dword [0x104520d4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
mov dword [ebp - 0x182c], edx
call dword [ebp - 0x182c]
mov eax, dword [0x10452134]
mov ecx, dword [ebp - 0x1828]
fstp dword [ebp - 0x182c]
vmovss xmm0, dword [ebp - 0x182c]
vdivss xmm0, xmm0, dword [eax + 0x20]
vaddss xmm0, xmm0, dword [0x100eccf4]
vcvttss2si eax, xmm0
mov dword [ebp - 0x1810], eax
mov eax, dword [ecx]
push 0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x182c], eax
call dword [ebp - 0x182c]
mov ecx, dword [ebp - 0x1828]
fstp dword [ebp - 0x180c]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x182c], eax
call dword [ebp - 0x182c]
fadd dword [ebp - 0x180c]
mov eax, dword [0x10452134]
mov ecx, dword [0x10452198]
vmovss xmm2, dword [eax + 0x20]
mov eax, dword [ecx]
fstp dword [ebp - 0x1828]
vmovss xmm1, dword [ebp - 0x1828]
vaddss xmm0, xmm1, dword [0x100ecc58]
vaddss xmm0, xmm0, dword [0x1033c7a4]
mov eax, dword [eax + 0x30]
vmovss dword [ebp - 0x180c], xmm0
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, dword [ebp - 0x1810]
vmulss xmm0, xmm0, xmm2
vaddss xmm0, xmm0, xmm1
mov dword [ebp - 0x182c], eax
vmovss dword [ebp - 0x1830], xmm2
vmovss dword [ebp - 0x1834], xmm0
call dword [ebp - 0x182c]
vmovss xmm0, dword [ebp - 0x1834]
mov ecx, dword [ebp - 0x1838]
vmovss dword [ebp - 0x1834], xmm0
fsubr dword [ebp - 0x1834]
vmovss xmm1, dword [ecx + 0x24]
fstp dword [ebp - 0x1834]
vcvttss2si eax, dword [ebp - 0x1834]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
vcomiss xmm0, xmm1
jae 0x1003fda2
mov eax, dword [0x10452134]
vaddss xmm0, xmm1, dword [0x1033c7a4]
mov edx, dword [ebp - 0x1810]
add edx, 8
vdivss xmm0, xmm0, dword [eax + 0x20]
vaddss xmm0, xmm0, dword [0x100eccf4]
vcvttss2si ecx, xmm0
vmovss xmm0, dword [ebp - 0x1828]
vdivss xmm0, xmm0, dword [ebp - 0x1830]
vaddss xmm0, xmm0, dword [0x100eccf4]
vcvttss2si eax, xmm0
add eax, edx
cmp ecx, eax
jg 0x1003fda2
mov ecx, dword [0x10452198]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
vmovss xmm2, dword [ebp - 0x180c]
vxorps xmm1, xmm1, xmm1
vcomiss xmm1, xmm2
fstp dword [ebp - 0x1830]
vmovss xmm0, dword [ebp - 0x1830]
lea eax, [ebp - 0x180c]
lea ecx, [ebp - 0x1830]
cmovbe ecx, eax
lea eax, [ebp - 0x1834]
vcomiss xmm2, xmm0
vmovss dword [ebp - 0x1834], xmm0
vmovss xmm0, dword [ebp - 0x1824]
cmovbe eax, ecx
mov ecx, dword [ebp - 0x1838]
vmovss dword [ebp - 0x1830], xmm1
vsubss xmm1, xmm0, dword [ecx + 0x24]
vmovss xmm0, dword [eax]
vsubss xmm0, xmm0, xmm1
call fcn.1002e560
vmovss xmm1, dword [0x100eccb8]
vcomiss xmm1, xmm0
seta al
test al, al
je 0x1003fda2
mov eax, dword [edi + 0xc]
add eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x1840]
cmp ecx, eax
je 0x1003fda2
test esi, esi
je 0x1003fa98
mov eax, dword [esi]
mov dword [ebp - 0x1828], eax
jmp 0x1003faa2
mov dword [ebp - 0x1828], 0
mov eax, ecx
mov edx, ecx
mov ecx, dword [ebp - 0x1828]
and edx, 1
shr eax, 1
mov dword [ebp - 0x1814], eax
vxorps xmm0, xmm0, xmm0
mov ecx, dword [ecx + 8]
dec ecx
mov dword [ebp - 0x182c], edx
and ecx, eax
mov eax, dword [ebp - 0x1828]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x10459d4c]
add ecx, 0xffffffca
xor ecx, 0x11daf9a9
mov eax, dword [eax + edx*8]
mov dword [ebp - 0x1828], eax
mov eax, dword [0x1033ad0c]
vcvtsi2ss xmm0, xmm0, dword [ecx + eax]
mov eax, dword [0x10452134]
mov ecx, dword [0x104520d4]
vmulss xmm0, xmm0, dword [eax + 0x20]
mov eax, dword [ecx]
vmovss dword [ebp - 0x1848], xmm0
mov eax, dword [eax + 0x138]
call eax
mov dword [ebp - 0x1838], eax
test eax, eax
je 0x1003fd27
mov ecx, dword [0x104520d4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
mov dword [ebp - 0x1824], edx
call dword [ebp - 0x1824]
mov eax, dword [0x10452134]
mov ecx, dword [ebp - 0x1838]
fstp dword [ebp - 0x1824]
vmovss xmm0, dword [ebp - 0x1824]
vdivss xmm0, xmm0, dword [eax + 0x20]
vaddss xmm0, xmm0, dword [0x100eccf4]
vcvttss2si eax, xmm0
mov dword [ebp - 0x180c], eax
mov eax, dword [ecx]
push 0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x1824], eax
call dword [ebp - 0x1824]
mov ecx, dword [ebp - 0x1838]
fstp dword [ebp - 0x1830]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x1824], eax
call dword [ebp - 0x1824]
fadd dword [ebp - 0x1830]
mov eax, dword [0x10452134]
mov ecx, dword [0x10452198]
vmovss xmm2, dword [eax + 0x20]
mov eax, dword [ecx]
fstp dword [ebp - 0x1838]
vmovss xmm1, dword [ebp - 0x1838]
vaddss xmm0, xmm1, dword [0x100ecc58]
vaddss xmm0, xmm0, dword [0x1033c7a4]
mov eax, dword [eax + 0x30]
vmovss dword [ebp - 0x1810], xmm0
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, dword [ebp - 0x180c]
vmulss xmm0, xmm0, xmm2
vaddss xmm0, xmm0, xmm1
vmovss dword [ebp - 0x1834], xmm2
mov dword [ebp - 0x1824], eax
vmovss dword [ebp - 0x1830], xmm0
call dword [ebp - 0x1824]
vmovss xmm0, dword [ebp - 0x1830]
mov ecx, dword [ebp - 0x1828]
vmovss dword [ebp - 0x1824], xmm0
fsubr dword [ebp - 0x1824]
vmovss xmm1, dword [ecx + 0x24]
fstp dword [ebp - 0x1824]
vcvttss2si eax, dword [ebp - 0x1824]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
vcomiss xmm0, xmm1
jae 0x1003fd27
mov eax, dword [0x10452134]
vaddss xmm0, xmm1, dword [0x1033c7a4]
mov edx, dword [ebp - 0x180c]
add edx, 8
vdivss xmm0, xmm0, dword [eax + 0x20]
vaddss xmm0, xmm0, dword [0x100eccf4]
vcvttss2si ecx, xmm0
vmovss xmm0, dword [ebp - 0x1838]
vdivss xmm0, xmm0, dword [ebp - 0x1834]
vaddss xmm0, xmm0, dword [0x100eccf4]
vcvttss2si eax, xmm0
add eax, edx
cmp ecx, eax
jg 0x1003fd27
mov ecx, dword [0x10452198]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
vmovss xmm2, dword [ebp - 0x1810]
vxorps xmm1, xmm1, xmm1
vcomiss xmm1, xmm2
fstp dword [ebp - 0x1824]
vmovss xmm0, dword [ebp - 0x1824]
lea eax, [ebp - 0x1810]
lea ecx, [ebp - 0x1824]
cmovbe ecx, eax
lea eax, [ebp - 0x1830]
vcomiss xmm2, xmm0
vmovss dword [ebp - 0x1830], xmm0
vmovss xmm0, dword [ebp - 0x1848]
cmovbe eax, ecx
mov ecx, dword [ebp - 0x1828]
vmovss dword [ebp - 0x1824], xmm1
vsubss xmm1, xmm0, dword [ecx + 0x24]
vmovss xmm0, dword [eax]
vsubss xmm0, xmm0, xmm1
call fcn.1002e560
vmovss xmm1, dword [0x100eccb8]
vcomiss xmm1, xmm0
seta al
test al, al
jne 0x1003fda2
test esi, esi
je 0x1003fd2f
mov eax, dword [esi]
jmp 0x1003fd31
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 - 0x182c]
mov eax, dword [eax + ecx*8]
cmp byte [eax + 0x14], 0
jne 0x1003fda2
test esi, esi
je 0x1003fd5a
mov eax, dword [esi]
jmp 0x1003fd5c
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 - 0x182c]
mov edi, dword [eax + ecx*8]
test esi, esi
je 0x1003fd79
mov eax, dword [esi]
jmp 0x1003fd7b
xor eax, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x184c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x1844]
mov ecx, dword [eax + ecx*8]
test edi, edi
je 0x1003fd9c
test ecx, ecx
jne 0x1003fdb4
mov edi, dword [ebp - 0x1850]
mov ecx, dword [ebp - 0x183c]
inc ecx
inc dword [ebp - 0x1840]
jmp 0x1003f7d7
mov eax, dword [ecx + 0x3c]
vmovq xmm0, qword [ecx + 0x34]
vmovss xmm5, dword [ecx + 0x406c]
vmovss xmm6, dword [ecx + 0x24]
vmovss xmm4, dword [0x100ecd3c]
mov dword [ebp - 0x1860], eax
mov eax, dword [0x10452134]
vmovq qword [ebp - 0x1868], xmm0
vsubss xmm0, xmm6, dword [edi + 0x24]
vxorps xmm2, xmm2, xmm2
vmovss xmm3, dword [eax + 0x10]
vsubss xmm1, xmm3, xmm5
vdivss xmm0, xmm1, xmm0
vsubss xmm0, xmm4, xmm0
vcomiss xmm2, xmm0
ja 0x1003fe0a
vcomiss xmm0, xmm4
jbe 0x1003fe16
vmovss dword [ecx + 0x406c], xmm3
vmovaps xmm5, xmm3
vsubss xmm0, xmm6, dword [edi + 0x24]
vsubss xmm1, xmm3, xmm5
vdivss xmm0, xmm1, xmm0
vsubss xmm0, xmm4, xmm0
vcomiss xmm2, xmm0
lea eax, [ebp - 0x1814]
lea ecx, [ebp - 0x184c]
cmovbe ecx, eax
lea eax, [ebp - 0x1848]
vcomiss xmm0, xmm4
vmovss dword [ebp - 0x1814], xmm0
vmovq xmm0, qword [edi + 0x34]
cmovbe eax, ecx
mov ecx, dword [ebp - 0x1854]
vmovq qword [ebp - 0x1820], xmm0
vmovss dword [ebp - 0x1848], xmm4
vmovss dword [ebp - 0x184c], xmm2
vmovss xmm3, dword [eax]
vmulss xmm1, xmm3, dword [ebp - 0x1820]
mov eax, dword [edi + 0x3c]
vsubss xmm2, xmm4, xmm3
vmulss xmm0, xmm2, dword [ebp - 0x1868]
vaddss xmm0, xmm1, xmm0
vmulss xmm1, xmm3, dword [ebp - 0x181c]
vmovss dword [ebp - 0x183c], xmm0
vmulss xmm0, xmm2, dword [ebp - 0x1864]
vaddss xmm0, xmm1, xmm0
mov dword [ebp - 0x1818], eax
mov eax, dword [ecx]
vmulss xmm1, xmm3, dword [ebp - 0x1818]
vmovss dword [ebp - 0x1844], xmm0
vmulss xmm0, xmm2, dword [ebp - 0x1860]
mov eax, dword [eax + 0x28]
vaddss xmm0, xmm1, xmm0
vmovss dword [ebp - 0x1848], xmm0
call eax
vmovss xmm0, dword [ebp - 0x183c]
vsubss xmm2, xmm0, dword [eax]
vmovss xmm0, dword [ebp - 0x1844]
vsubss xmm0, xmm0, dword [eax + 4]
vmulss xmm1, xmm0, xmm0
vmulss xmm0, xmm2, xmm2
vaddss xmm0, xmm1, xmm0
call fcn.1002e5a0
vmovss xmm3, dword [0x100ece40]
vcomiss xmm3, xmm0
jb 0x1003ff69
vmovss xmm2, dword [0x100ecd3c]
vdivss xmm0, xmm0, xmm3
vxorps xmm1, xmm1, xmm1
vcomiss xmm1, xmm0
lea eax, [ebp - 0x184c]
lea ecx, [ebp - 0x1854]
cmovbe ecx, eax
lea eax, [ebp - 0x1814]
vcomiss xmm0, xmm2
vmovss dword [ebp - 0x1814], xmm2
cmovbe eax, ecx
mov ecx, dword [ebp - 0x1858]
vmovss dword [ebp - 0x1854], xmm1
vmovss dword [ebp - 0x184c], xmm0
mov eax, dword [eax]
mov dword [ecx + 0x10], eax
push 0x1800
lea eax, [edi + 0x410]
push eax
lea eax, [ebp - 0x1808]
push eax
call sub.VCRUNTIME140.dll_memcpy
vmovss xmm3, dword [ebp - 0x183c]
vmovss xmm4, dword [ebp - 0x1844]
vmovss xmm5, dword [ebp - 0x1848]
add esp, 0xc
lea eax, [ebp - 0x17ec]
lea ecx, [edi + 0x42c]
mov edx, 0x80
nop dword [eax]
lea ecx, [ecx + 0x30]
lea eax, [eax + 0x30]
vmovss xmm0, dword [ecx - 0x40]
vsubss xmm0, xmm0, dword [edi + 0x34]
vaddss xmm2, xmm0, xmm3
vmovss xmm0, dword [ecx - 0x30]
vsubss xmm0, xmm0, dword [edi + 0x38]
vaddss xmm1, xmm0, xmm4
vmovss xmm0, dword [ecx - 0x20]
vsubss xmm0, xmm0, dword [edi + 0x3c]
vaddss xmm0, xmm0, xmm5
vmovss dword [eax - 0x40], xmm2
vmovss dword [eax - 0x30], xmm1
vmovss dword [eax - 0x20], xmm0
sub edx, 1
jne 0x1003ffb0
push 0x1800
lea eax, [ebp - 0x1808]
push eax
push dword [ebp - 0x185c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov al, 1
jmp 0x10040014
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100d35a5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8