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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x104563d0]
mov dword [esp + 0x48], eax
push esi
push edi
test cl, 1
jne 0x100321f9
or ecx, 1
mov dword [0x104563d0], ecx
mov eax, dword [0x1044e4a0]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
test eax, eax
je 0x100321f2
nop dword [eax]
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [edi + ecx], 0
jne 0x100321b0
xor edx, edx
test ecx, ecx
je 0x100321e1
nop dword [eax]
movsx eax, byte [edi + edx]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x100321c0
mov eax, dword [esp + 0x10]
cmp esi, 0x8cd79213
je 0x10032597
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100321a0
mov ecx, dword [0x104563d0]
xor eax, eax
mov dword [0x104563c4], eax
test cl, 2
jne 0x1003226f
or ecx, 2
mov dword [0x104563d0], ecx
mov eax, dword [0x1044e4a0]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10032268
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 0x10032230
xor edx, edx
test ecx, ecx
je 0x1003225d
nop dword [eax]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10032240
mov eax, dword [esp + 0x10]
cmp esi, 0x93050cfd
je 0x1003226a
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10032220
xor eax, eax
mov dword [0x104563cc], eax
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov eax, dword [eax + 0x20]
call eax
test eax, eax
je 0x10032a57
mov ecx, dword [0x1044e4dc]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x78]
call edx
test eax, eax
je 0x10032a57
mov ecx, dword [0x10456128]
add ecx, 0xffffffc5
xor ecx, 0x65547437
mov ecx, dword [ecx + esi]
lea edx, [ecx + ecx*2]
mov ecx, dword [eax + 0xb0]
lea edx, [ecx + edx*4]
add edx, eax
je 0x10032a57
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x1c7240]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [edx + 8]
lea eax, [eax + ecx*4]
add eax, edx
je 0x10032a57
mov eax, dword [0x1045611c]
lea ecx, [esp + 0x20]
vmovss xmm2, dword [0x100e9048]
vmovss xmm0, dword [0x102bc4f0]
add eax, 0xffffffc8
xor eax, 0x65547434
vcomiss xmm2, xmm0
vxorps xmm1, xmm1, xmm1
vmovss dword [esp + 0x20], xmm2
vcvtsi2ss xmm1, xmm1, dword [eax + esi]
mov esi, dword [ebp + 0xc]
mov eax, 0x102bc4f0
cmovbe ecx, eax
lea eax, [esp + 0x24]
vcomiss xmm0, xmm1
vmovss dword [esp + 0x24], xmm1
cmovbe eax, ecx
vxorpd xmm0, xmm0, xmm0
fld dword [eax]
fstp qword [esp + 0x40]
vroundsd xmm0, xmm0, qword [esp + 0x40], 1
vmovsd qword [esp + 0x40], xmm0
vmovss xmm0, dword [esi]
vmulss xmm0, xmm0, dword [0x100e8f9c]
fld qword [esp + 0x40]
fstp dword [esp + 0x40]
vmovss dword [esp + 0x20], xmm0
call fcn.1002e010
vmovss dword [esp + 0x10], xmm0
vmovss xmm0, dword [esp + 0x20]
call fcn.1002e050
vmovss xmm1, dword [esi + 4]
vmovss dword [esp + 0xc], xmm0
vmulss xmm0, xmm1, dword [0x100e8f9c]
vmovss dword [esp + 0x20], xmm0
call fcn.1002e010
vmovss dword [esp + 0x1c], xmm0
vmovss xmm0, dword [esp + 0x20]
call fcn.1002e050
vmovss xmm1, dword [esi + 8]
vmovaps xmm3, xmm0
vmulss xmm0, xmm1, dword [0x100e8f9c]
vmovss dword [esp + 0x14], xmm3
vmovss dword [esp + 0x20], xmm0
call fcn.1002e010
vmovss dword [esp + 0x24], xmm0
vmovss xmm0, dword [esp + 0x20]
call fcn.1002e050
vmovss xmm2, dword [esp + 0xc]
vxorps xmm3, xmm2, xmmword [0x100e93c0]
vmovss xmm7, dword [esp + 0x24]
vmovaps xmm6, xmm0
vmovss xmm0, dword [esp + 0x1c]
vmulss xmm0, xmm0, dword [esp + 0x10]
vmovss dword [esp + 0x58], xmm0
vmovss xmm0, dword [esp + 0x14]
vmulss xmm1, xmm0, dword [esp + 0x10]
vxorps xmm5, xmm0, xmmword [0x100e93c0]
vmovss dword [esp + 0x64], xmm1
vmulss xmm2, xmm6, xmm2
vmulss xmm0, xmm2, dword [esp + 0x1c]
vmovss dword [esp + 0x70], xmm3
vmulss xmm3, xmm7, dword [0x100e9238]
vmulss xmm1, xmm5, xmm3
vsubss xmm0, xmm1, xmm0
vmulss xmm1, xmm3, dword [esp + 0x1c]
vmovss dword [esp + 0x54], xmm0
vmulss xmm0, xmm2, dword [esp + 0x14]
vmulss xmm2, xmm7, dword [esp + 0xc]
vsubss xmm0, xmm1, xmm0
vmulss xmm1, xmm2, dword [esp + 0x1c]
vmovss dword [esp + 0x60], xmm0
vmulss xmm0, xmm6, dword [0x100e9238]
vmulss xmm0, xmm0, dword [esp + 0x10]
vmovss dword [esp + 0x6c], xmm0
vmulss xmm0, xmm5, xmm6
vsubss xmm0, xmm1, xmm0
vmulss xmm1, xmm2, dword [esp + 0x14]
vmovss dword [esp + 0x5c], xmm0
vmulss xmm0, xmm6, dword [esp + 0x1c]
vsubss xmm0, xmm1, xmm0
mov ecx, dword [0x104561fc]
mov eax, dword [0x10339634]
add ecx, 0xffffff90
mov dword [esp + 0x4c], eax
xor ecx, 0x6554746c
mov eax, dword [0x10339630]
vmovss dword [esp + 0x68], xmm0
vmulss xmm0, xmm7, dword [esp + 0x10]
vmovss dword [esp + 0x3c], xmm0
vmovss xmm0, dword [ecx + eax]
mov ecx, dword [0x104563c4]
vmovss dword [esp + 0x24], xmm0
vxorps xmm0, xmm0, xmm0
mov dword [esp + 0x10], 0
mov eax, dword [ecx]
vmovss dword [esp + 0x1c], xmm0
mov eax, dword [eax + 0x34]
call eax
mov ecx, dword [0x104563cc]
mov edi, eax
mov dword [esp + 0x30], edi
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
call edx
mov dword [esp + 0x20], eax
xor esi, esi
nop dword [eax + eax]
push esi
call dword [0x1044e640]
vmovss xmm0, dword [0x100e9048]
mov eax, dword [0x1044e648]
vmovss dword [esp], xmm0
push ecx
vxorps xmm0, xmm0, xmm0
mov dword [esp + 0x1c], eax
vmovss dword [esp], xmm0
call dword [esp + 0x1c]
add esp, 8
cmp dword [esp + 0x4c], 0x1c
fstp dword [esp + 0xc]
jne 0x100325a2
vmovss xmm2, dword [esp + 0x24]
vmovss xmm0, dword [0x100e909c]
vcomiss xmm0, xmm2
jbe 0x100325a2
vmovss xmm1, dword [esp + 0xc]
mov eax, 3
nop dword [eax + eax]
dec eax
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
vcomiss xmm0, xmm2
vmulss xmm1, xmm1, xmm1
ja 0x10032570
vmovss xmm2, dword [0x100e9048]
vsubss xmm0, xmm2, xmm1
vmovss dword [esp + 0xc], xmm0
jmp 0x100325aa
mov ecx, dword [0x104563d0]
jmp 0x100321f4
vmovss xmm2, dword [0x100e9048]
test edi, edi
je 0x100325b4
vmovss dword [esp + 0xc], xmm2
vmovss xmm0, dword [0x100e90cc]
mov eax, dword [0x1044e648]
sub esp, 8
mov dword [esp + 0x1c], eax
vmovss dword [esp + 4], xmm0
vxorps xmm0, xmm0, xmm0
vmovss dword [esp], xmm0
call dword [esp + 0x1c]
add esp, 8
cmp dword [esp + 0x20], 0
fstp dword [esp + 0x14]
je 0x100325f3
vmovss xmm0, dword [0x100e906c]
jmp 0x100325f9
vmovss xmm0, dword [esp + 0x14]
mov ecx, dword [0x10339630]
vmovss dword [esp + 0x14], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x754]
mov dword [esp + 0x18], eax
call dword [esp + 0x18]
fmul dword [esp + 0xc]
vmovss xmm0, dword [esp + 0x14]
vcvtss2sd xmm0, xmm0, xmm0
fstp dword [esp + 0xc]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
vcvtsd2ss xmm1, xmm0, xmm0
vmulss xmm0, xmm1, dword [esp + 0xc]
vmovss xmm1, dword [esp + 0x14]
vmovss dword [esp + 0x2c], xmm0
vcvtss2sd xmm0, xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
mov eax, dword [0x1044e648]
sub esp, 8
vcvtsd2ss xmm0, xmm0, xmm0
vmulss xmm0, xmm0, dword [esp + 0x14]
vmovss dword [esp + 0x40], xmm0
vmovss xmm0, dword [0x100e9048]
vmovss dword [esp + 4], xmm0
vxorps xmm0, xmm0, xmm0
mov dword [esp + 0x20], eax
vmovss dword [esp], xmm0
call dword [esp + 0x20]
add esp, 8
cmp dword [esp + 0x4c], 0x1c
fstp dword [esp + 0xc]
jne 0x100326d7
vmovss xmm2, dword [esp + 0x24]
vmovss xmm0, dword [0x100e909c]
vcomiss xmm0, xmm2
jbe 0x100326d7
vmovss xmm1, dword [esp + 0xc]
mov eax, 3
nop
dec eax
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
vcomiss xmm0, xmm2
vmulss xmm1, xmm1, xmm1
ja 0x100326b0
vmovss xmm2, dword [0x100e9048]
vsubss xmm0, xmm2, xmm1
vmovss dword [esp + 0xc], xmm0
jmp 0x100326df
vmovss xmm2, dword [0x100e9048]
test edi, edi
je 0x100326e9
vmovss dword [esp + 0xc], xmm2
vmovss xmm0, dword [0x100e90cc]
mov eax, dword [0x1044e648]
sub esp, 8
mov dword [esp + 0x20], eax
vmovss dword [esp + 4], xmm0
vxorps xmm0, xmm0, xmm0
vmovss dword [esp], xmm0
call dword [esp + 0x20]
add esp, 8
cmp dword [esp + 0x20], 0
fstp dword [esp + 0x18]
je 0x10032728
vmovss xmm0, dword [0x100e906c]
jmp 0x1003272e
vmovss xmm0, dword [esp + 0x18]
mov ecx, dword [0x10339630]
vmovss dword [esp + 0x14], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x6dc]
mov dword [esp + 0x18], eax
call dword [esp + 0x18]
fmul dword [esp + 0xc]
vmovss xmm0, dword [esp + 0x14]
vcvtss2sd xmm0, xmm0, xmm0
fstp dword [esp + 0xc]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
vcvtsd2ss xmm1, xmm0, xmm0
vmulss xmm1, xmm1, dword [esp + 0xc]
vaddss xmm0, xmm1, dword [esp + 0x2c]
vmovss xmm1, dword [esp + 0x14]
vmovss dword [esp + 0x2c], xmm0
vcvtss2sd xmm0, xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
vmovss xmm3, dword [esp + 0x2c]
vcvtsd2ss xmm0, xmm0, xmm0
vmulss xmm0, xmm0, dword [esp + 0xc]
vaddss xmm2, xmm0, dword [esp + 0x38]
vmulss xmm0, xmm3, dword [esp + 0x54]
vaddss xmm1, xmm0, dword [esp + 0x58]
vmulss xmm0, xmm2, dword [esp + 0x5c]
vaddss xmm5, xmm1, xmm0
vmulss xmm0, xmm3, dword [esp + 0x60]
vaddss xmm1, xmm0, dword [esp + 0x64]
vmulss xmm0, xmm2, dword [esp + 0x68]
vaddss xmm4, xmm1, xmm0
vmulss xmm0, xmm3, dword [esp + 0x6c]
vaddss xmm1, xmm0, dword [esp + 0x70]
vmulss xmm0, xmm2, dword [esp + 0x3c]
vaddss xmm2, xmm1, xmm0
vmulss xmm0, xmm5, xmm5
vmulss xmm1, xmm4, xmm4
vaddss xmm1, xmm1, xmm0
vmulss xmm0, xmm2, xmm2
vaddss xmm0, xmm1, xmm0
vmovss dword [esp + 0x38], xmm5
vmovss dword [esp + 0x2c], xmm4
vmovss dword [esp + 0x18], xmm2
call fcn.1002e070
vaddss xmm2, xmm0, dword [0x100e8f88]
mov eax, dword [0x10339638]
vmovss xmm0, dword [esp + 0x38]
push dword [esp + 0x50]
vdivss xmm0, xmm0, xmm2
vmovss xmm1, dword [eax + 0x104]
mov ecx, dword [0x104563e0]
lea eax, [esp + 0x78]
vmulss xmm0, xmm0, xmm1
vaddss xmm0, xmm0, dword [0x10337c34]
vmovss dword [esp + 0x78], xmm0
vmovss xmm0, dword [esp + 0x30]
vdivss xmm0, xmm0, xmm2
vmulss xmm0, xmm0, xmm1
vaddss xmm0, xmm0, dword [0x10337c38]
vmovss dword [esp + 0x7c], xmm0
vmovss xmm0, dword [esp + 0x1c]
vdivss xmm0, xmm0, xmm2
push eax
vmulss xmm0, xmm0, xmm1
vaddss xmm0, xmm0, dword [0x10337c3c]
push 0x10337c34
lea eax, [esp + 0x8c]
push eax
vmovss dword [esp + 0x8c], xmm0
call fcn.10037fd0
mov edi, dword [esp + 0x80]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, edi
vxorps xmm3, xmm3, xmm3
vcomiss xmm0, xmm3
jbe 0x10032974
mov eax, dword [esp + 0x28]
xor edx, edx
mov eax, dword [eax + 0x1c7240]
cmp eax, 0x13
ja case.default.0x100328cb
movzx eax, byte [eax + 0x10032a7c]
jmp dword [eax*4 + 0x10032a64]
mov edx, 1
jmp case.default.0x100328cb
mov edx, 4
jmp case.default.0x100328cb
mov edx, 5
jmp case.default.0x100328cb
mov edx, 2
jmp case.default.0x100328cb
mov edx, 3
jmp case.default.0x100328cb
mov edx, 0x63
mov eax, dword [esp + 0x84]
xor ecx, ecx
cmp eax, 0x13
ja case.default.0x1003290f
movzx eax, byte [eax + 0x10032aa8]
jmp dword [eax*4 + 0x10032a90]
mov ecx, 1
jmp case.default.0x1003290f
mov ecx, 4
jmp case.default.0x1003290f
mov ecx, 5
jmp case.default.0x1003290f
mov ecx, 2
jmp case.default.0x1003290f
mov ecx, 3
jmp case.default.0x1003290f
mov ecx, 0x63
cmp edx, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
jne 0x1003297c
mov eax, dword [esp + 0x88]
inc ecx
mov dword [esp + 0x10], ecx
cmp eax, dword [edx + 0x1c7244]
jne 0x1003297c
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, edi
vaddss xmm4, xmm0, dword [esp + 0x1c]
vmovss dword [esp + 0x1c], xmm4
jmp 0x10032982
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
vmovss xmm4, dword [esp + 0x1c]
vmovss xmm5, dword [0x100e91c8]
mov edi, dword [esp + 0x30]
inc esi
mov eax, esi
vxorps xmm0, xmm0, xmm0
shr eax, 0x1f
vcvtsi2sd xmm0, xmm0, esi
vaddsd xmm0, xmm0, qword [eax*8 + 0x100e9380]
vcvtsd2ss xmm0, xmm0, xmm0
vcomiss xmm5, xmm0
ja 0x10032510
vmovss xmm2, dword [0x100e916c]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, ecx
vdivss xmm0, xmm0, xmm5
vmulss xmm0, xmm0, xmm2
vmovss dword [esp + 0x30], xmm0
fld dword [esp + 0x30]
lea ecx, [esp + 0x30]
fstp qword [esp + 0x30]
vxorpd xmm0, xmm0, xmm0
vroundsd xmm0, xmm0, qword [esp + 0x30], 1
vmovsd qword [esp + 0x30], xmm0
fld qword [esp + 0x30]
vdivss xmm0, xmm4, xmm5
vdivss xmm0, xmm0, dword [esp + 0x40]
fstp dword [esp + 0x30]
vcvttss2si eax, dword [esp + 0x30]
vmulss xmm0, xmm0, xmm2
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, eax
vcomiss xmm3, xmm0
lea eax, [esp + 0x40]
cmovbe ecx, eax
lea eax, [esp + 0x3c]
vcomiss xmm0, xmm2
vmovss dword [esp + 0x3c], xmm2
cmovbe eax, ecx
vmovss dword [esp + 0x30], xmm3
vmovss dword [esp + 0x40], xmm0
vmovss dword [edx + 0x1c7250], xmm1
mov eax, dword [eax]
mov dword [edx + 0x1c7254], eax
vcvttss2si eax, xmm1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 8