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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1848
call fcn.1011b190
mov eax, dword [0x10174110]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x101a679c]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x183c], eax
push esi
mov eax, dword [ecx]
mov esi, dword [ebp + 8]
push edi
push esi
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1820], 0
call eax
mov edi, eax
mov dword [ebp - 0x1834], edi
test edi, edi
je 0x100415df
mov ecx, dword [edi]
mov edx, dword [ecx + 0x260]
mov ecx, edi
call edx
test al, al
je 0x100415df
mov eax, dword [0x101a69b4]
add eax, 0xffffffcb
xor eax, 0x704949cf
cmp dword [eax + edi], 0
jne 0x100415df
mov eax, dword [0x101a6950]
cmp byte [eax + edi], 0
jne 0x100415df
mov edx, dword [0x101a698c]
mov eax, dword [0x101a14e8]
add edx, 0xffffffd5
xor edx, 0x704949c5
mov ecx, dword [edx + edi]
cmp ecx, dword [edx + eax]
jne 0x10040ef8
mov ecx, dword [0x101a686c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x100415df
imul eax, esi, 0x4a4
lea eax, [eax + 0x1018d4f0]
mov dword [ebp - 0x182c], eax
test eax, eax
je 0x100415df
mov eax, dword [eax + 0x18]
test eax, eax
je 0x100415df
cmp eax, 2
jb 0x100415df
mov ecx, dword [0x101a6798]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov dword [ebp - 0x1818], eax
test eax, eax
je 0x100415df
mov ecx, dword [0x101ab910]
test cl, 1
jne 0x10040fd4
or ecx, 1
mov dword [0x101ab910], ecx
mov eax, dword [0x101a6794]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x181c], eax
test eax, eax
je 0x10040fbc
nop
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [ecx + edi], 0
jne 0x10040f80
xor edx, edx
test ecx, ecx
je 0x10040faf
nop dword [eax]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10040f90
cmp esi, 0x8c8dc452
je 0x10040fc6
mov eax, dword [ebp - 0x181c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x181c], eax
test eax, eax
jne 0x10040f70
xor ecx, ecx
mov dword [0x101ab904], ecx
jmp 0x10040fda
mov ecx, dword [ebp - 0x181c]
mov dword [0x101ab904], ecx
jmp 0x10040fda
mov ecx, dword [0x101ab904]
test ecx, ecx
je 0x10040ff5
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x181c], eax
call dword [ebp - 0x181c]
fstp dword [0x10174af0]
mov edx, dword [ebp - 0x182c]
xor edi, edi
mov eax, dword [edx + 0x18]
add eax, dword [edx + 0x14]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x1824], eax
test ecx, ecx
je 0x10041018
mov ecx, dword [ecx]
test ecx, ecx
je 0x10041018
mov edi, dword [ecx]
lea esi, [eax - 1]
nop dword [eax + eax]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x1830], ecx
cmp eax, ecx
je 0x100415df
test edi, edi
je 0x10041045
mov eax, dword [edi]
test eax, eax
je 0x10041045
mov ecx, dword [eax]
test ecx, ecx
je 0x10041045
mov ecx, dword [ecx]
jmp 0x10041047
xor ecx, ecx
mov eax, dword [ecx + 8]
mov edx, esi
dec eax
shr edx, 1
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 - 0x181c], eax
test eax, eax
je 0x100411b1
mov ecx, dword [0x101a69dc]
mov eax, dword [0x101a14e8]
add ecx, 0xffffffc1
xor ecx, 0x704949d9
push 1
movd xmm0, dword [ecx + eax]
mov eax, dword [0x101a67f4]
mov ecx, dword [0x101a6800]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 0x20]
mov eax, dword [ecx]
movss dword [ebp - 0x1808], xmm0
movss xmm0, dword [0x101a15fc]
addss xmm0, dword [0x101a15f8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x1838], eax
movss dword [ebp - 0x1828], xmm0
call dword [ebp - 0x1838]
mov ecx, dword [0x101a683c]
fadd dword [ebp - 0x1828]
mov eax, dword [ecx]
fstp dword [ebp - 0x1838]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1828], eax
call dword [ebp - 0x1828]
movss xmm1, dword [ebp - 0x1838]
fstp dword [ebp - 0x1828]
movss xmm0, dword [ebp - 0x1828]
comiss xmm1, xmm0
ja 0x1004110d
movaps xmm0, xmm1
xorps xmm2, xmm2
comiss xmm0, xmm2
ja 0x10041118
xorps xmm0, xmm0
mov eax, dword [ebp - 0x181c]
movss xmm1, dword [ebp - 0x1808]
subss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.10040b70
movss xmm1, dword [0x1016030c]
comiss xmm1, xmm0
jbe 0x100411b1
cmp esi, dword [ebp - 0x1830]
je 0x100411b1
or dword [ebp - 0x1820], 1
xor eax, eax
test edi, edi
je 0x1004115e
mov ecx, dword [edi]
test ecx, ecx
je 0x1004115e
mov eax, dword [ecx]
xor ecx, ecx
test eax, eax
je 0x1004116c
mov eax, dword [eax]
test eax, eax
je 0x1004116c
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
je 0x1004117a
mov ecx, dword [ecx]
test ecx, ecx
je 0x1004117a
mov eax, dword [ecx]
test eax, eax
je 0x1004118e
mov eax, dword [eax]
test eax, eax
je 0x1004118e
mov ecx, dword [eax]
test ecx, ecx
je 0x1004118e
mov ecx, dword [ecx]
jmp 0x10041190
xor ecx, ecx
mov eax, dword [ecx + 8]
lea edx, [esi - 1]
dec eax
shr edx, 1
and edx, eax
mov eax, dword [ecx + 4]
lea ecx, [esi - 1]
and ecx, 1
mov eax, dword [eax + edx*4]
cmp dword [eax + ecx*8], 0
je 0x100411b1
mov al, 1
jmp 0x100411b3
xor al, al
mov ecx, dword [ebp - 0x1820]
test cl, 1
je 0x100411c7
and ecx, 0xfffffffe
mov dword [ebp - 0x1820], ecx
test al, al
jne 0x100411e4
mov eax, dword [ebp - 0x1824]
mov edx, dword [ebp - 0x182c]
dec eax
mov dword [ebp - 0x1824], eax
dec esi
jmp 0x10041020
mov ecx, dword [ebp - 0x1834]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [ebp - 0x181c]
movss xmm1, dword [ecx + 0x2c]
movss xmm0, dword [ecx + 0x30]
subss xmm0, dword [eax + 4]
subss xmm1, dword [eax]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.1002e6a0
movss xmm1, dword [0x101603a0]
comiss xmm1, xmm0
ja 0x100415df
cmp esi, dword [ebp - 0x1830]
jne 0x1004124c
mov ecx, dword [ebp - 0x1834]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov edx, dword [ebp - 0x1824]
jmp 0x100412d6
xor eax, eax
test edi, edi
je 0x1004125a
mov ecx, dword [edi]
test ecx, ecx
je 0x1004125a
mov eax, dword [ecx]
xor ecx, ecx
test eax, eax
je 0x10041268
mov eax, dword [eax]
test eax, eax
je 0x10041268
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
je 0x10041276
mov ecx, dword [ecx]
test ecx, ecx
je 0x10041276
mov eax, dword [ecx]
xor ecx, ecx
test eax, eax
je 0x10041284
mov eax, dword [eax]
test eax, eax
je 0x10041284
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1824]
lea eax, [edx - 2]
mov dword [ebp - 0x1820], eax
test ecx, ecx
jne 0x1004129f
mov dword [ebp - 0x1824], ecx
jmp 0x100412a7
mov ecx, dword [ecx]
mov dword [ebp - 0x1824], ecx
and dword [ebp - 0x1820], 1
mov ecx, eax
mov eax, dword [ebp - 0x1824]
shr ecx, 1
mov eax, dword [eax + 8]
dec eax
and ecx, eax
mov eax, dword [ebp - 0x1824]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x1820]
mov eax, dword [eax + ecx*8]
add eax, 0x2c
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x1848], xmm0
mov dword [ebp - 0x1840], eax
cmp esi, dword [ebp - 0x1830]
jne 0x1004130d
mov eax, dword [0x101a69e8]
mov ecx, dword [ebp - 0x1834]
add eax, 0xffffffbe
xor eax, 0x704949dc
movss xmm0, dword [eax + ecx]
jmp 0x1004136d
xor eax, eax
test edi, edi
je 0x1004131b
mov ecx, dword [edi]
test ecx, ecx
je 0x1004131b
mov eax, dword [ecx]
xor ecx, ecx
test eax, eax
je 0x10041329
mov eax, dword [eax]
test eax, eax
je 0x10041329
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
je 0x10041337
mov ecx, dword [ecx]
test ecx, ecx
je 0x10041337
mov eax, dword [ecx]
xor ecx, ecx
test eax, eax
je 0x10041345
mov eax, dword [eax]
test eax, eax
je 0x10041345
mov ecx, dword [eax]
add edx, 0xfffffffe
test ecx, ecx
jne 0x10041350
xor edi, edi
jmp 0x10041352
mov edi, dword [ecx]
mov eax, dword [edi + 8]
mov ecx, edx
dec eax
shr ecx, 1
and ecx, eax
mov eax, dword [edi + 4]
and edx, 1
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + edx*8]
movss xmm0, dword [eax + 0x20]
mov edi, dword [ebp - 0x1818]
mov ecx, edi
push 0
movss dword [ebp - 0x182c], xmm0
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x1818], eax
call dword [ebp - 0x1818]
mov eax, dword [edi]
mov ecx, edi
fstp dword [ebp - 0x1808]
push 1
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x1818], eax
call dword [ebp - 0x1818]
fadd dword [ebp - 0x1808]
xorps xmm4, xmm4
fstp dword [ebp - 0x1818]
movss xmm0, dword [ebp - 0x1818]
comiss xmm0, dword [0x10174af0]
mov dword [ebp - 0x1818], 0
movss dword [ebp - 0x1808], xmm0
jbe 0x100413e4
mov eax, 0x10174af0
jmp 0x100413f6
comiss xmm0, xmm4
lea eax, [ebp - 0x1818]
lea ecx, [ebp - 0x1808]
cmovae eax, ecx
mov ecx, dword [ebp - 0x181c]
movss xmm3, dword [eax]
addss xmm3, dword [0x101a15f8]
movss xmm2, dword [0x101603a0]
movss xmm0, dword [ecx + 0x20]
cmp esi, dword [ebp - 0x1830]
jne 0x10041422
movaps xmm1, xmm2
jmp 0x1004142e
movss xmm1, dword [ebp - 0x182c]
subss xmm1, xmm0
mov eax, dword [0x101a67f4]
addss xmm0, xmm3
mov dword [ebp - 0x1828], 0x3f800000
mov dword [ebp - 0x1818], 0
addss xmm0, xmm1
subss xmm0, dword [eax + 0x10]
divss xmm0, xmm1
comiss xmm0, xmm2
movss dword [ebp - 0x1808], xmm0
jbe 0x1004146a
movaps xmm3, xmm2
jmp 0x10041480
comiss xmm0, xmm4
lea eax, [ebp - 0x1818]
lea edx, [ebp - 0x1808]
cmovae eax, edx
movss xmm3, dword [eax]
movq xmm0, qword [ecx + 0x2c]
subss xmm2, xmm3
movq qword [ebp - 0x1814], xmm0
lea esi, [ebp - 0x1804]
movss xmm1, dword [ebp - 0x1814]
mov edi, 0x80
movss xmm0, dword [ebp - 0x1848]
mov eax, dword [ecx + 0x34]
mulss xmm1, xmm3
mov dword [ebp - 0x180c], eax
mulss xmm0, xmm2
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x1844]
mulss xmm0, xmm2
movss dword [ebp - 0x1818], xmm1
movss xmm1, dword [ebp - 0x1810]
mulss xmm1, xmm3
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x1840]
mulss xmm0, xmm2
movss dword [ebp - 0x1808], xmm1
movss xmm1, dword [ebp - 0x180c]
mulss xmm1, xmm3
addss xmm1, xmm0
movss dword [ebp - 0x1828], xmm1
mov ecx, esi
call fcn.1002f800
add esi, 0x30
sub edi, 1
jne 0x10041511
mov edi, dword [ebp - 0x181c]
lea eax, [ebp - 0x1804]
push 0x1800
mov esi, dword [edi + 0x3d8]
push esi
push eax
call fcn.1011bb70
movss xmm6, dword [edi + 0x2c]
lea eax, [ebp - 0x17e8]
movss xmm7, dword [edi + 0x30]
add esp, 0xc
movss xmm3, dword [ebp - 0x1818]
add esi, 0x1c
movss xmm4, dword [ebp - 0x1808]
mov ecx, 0x80
movss xmm5, dword [ebp - 0x1828]
movss xmm2, dword [esi - 0x10]
movss xmm1, dword [esi]
subss xmm2, xmm6
movss xmm0, dword [esi + 0x10]
subss xmm1, xmm7
subss xmm0, dword [edi + 0x34]
add esi, 0x30
addss xmm2, xmm3
addss xmm1, xmm4
addss xmm0, xmm5
movss dword [eax - 0x10], xmm2
movss dword [eax], xmm1
movss dword [eax + 0x10], xmm0
add eax, 0x30
sub ecx, 1
jne 0x10041571
push 0x1800
lea eax, [ebp - 0x1804]
push eax
push dword [ebp - 0x183c]
call fcn.1011bb70
add esp, 0xc
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10119ff7
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.10119ff7
mov esp, ebp
pop ebp
ret 8