Function at 0x10031dc0
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x10548860]
mov dword [esp + 0x40], eax
push esi
push edi
test cl, 1
jne 0x10031e59
or ecx, 1
mov dword [0x10548860], ecx
mov eax, dword [0x105408ec]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10031e52
nop word [eax + eax]
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [edi + ecx], 0
jne 0x10031e10
xor edx, edx
test ecx, ecx
je 0x10031e41
nop dword [eax]
movsx eax, byte [edi + edx]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10031e20
mov eax, dword [esp + 0x10]
cmp esi, 0x8cd79213
je 0x10032239
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10031e00
mov ecx, dword [0x10548860]
xor eax, eax
mov dword [0x1054885c], eax
test cl, 2
jne 0x10031ecf
or ecx, 2
mov dword [0x10548860], ecx
mov eax, dword [0x105408ec]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10031ec8
nop word [eax + eax]
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [edi + ecx], 0
jne 0x10031e90
xor edx, edx
test ecx, ecx
je 0x10031ebd
nop dword [eax]
movsx eax, byte [edi + edx]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10031ea0
mov eax, dword [esp + 0x10]
cmp esi, 0x93050cfd
je 0x10031eca
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10031e80
xor eax, eax
mov dword [0x10548868], eax
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov eax, dword [eax + 0x20]
call eax
test eax, eax
je 0x1003269b
mov ecx, dword [0x10540928]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x78]
call edx
test eax, eax
je 0x1003269b
mov ecx, dword [0x105485ac]
add ecx, 0xffffffc4
xor ecx, 0x14f7a214
mov ecx, dword [ecx + esi]
lea edx, [ecx + ecx*2]
mov ecx, dword [eax + 0xb0]
lea edx, [ecx + edx*4]
add edx, eax
je 0x1003269b
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x1c7440]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [edx + 8]
lea eax, [eax + ecx*4]
add eax, edx
je 0x1003269b
mov eax, dword [0x1054859c]
lea ecx, [esp + 0x18]
movss xmm0, dword [0x103ac700]
add eax, 0xffffffc8
movss xmm2, dword [0x101d84f0]
xor eax, 0x14f7a210
comiss xmm2, xmm0
mov dword [esp + 0x18], 0x3f800000
movd xmm1, dword [eax + esi]
mov eax, 0x103ac700
cvtdq2ps xmm1, xmm1
cmovbe ecx, eax
lea eax, [esp + 0x24]
comiss xmm0, xmm1
movss dword [esp + 0x24], xmm1
cmovbe eax, ecx
sub esp, 8
fld dword [eax]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
mov esi, dword [ebp + 0xc]
add esp, 8
fstp dword [esp + 0x44]
movss xmm0, dword [esi]
mulss xmm0, dword [0x101d8418]
movss dword [esp + 0x18], xmm0
call fcn.1002dfc0
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x18]
call fcn.1002e000
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esi + 4]
mulss xmm0, dword [0x101d8418]
movss dword [esp + 0x18], xmm0
call fcn.1002dfc0
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x18]
call fcn.1002e000
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esi + 8]
mulss xmm0, dword [0x101d8418]
movss dword [esp + 0x18], xmm0
call fcn.1002dfc0
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x18]
call fcn.1002e000
movss xmm7, dword [esp + 0x24]
movaps xmm4, xmm0
movss xmm5, dword [esp + 0x38]
movaps xmm1, xmm7
mulss xmm1, dword [esp + 0x20]
movaps xmm3, xmm5
movss xmm6, dword [esp + 0x2c]
xorps xmm3, xmmword [0x101d8850]
movaps xmm0, xmm6
xorps xmm0, xmmword [0x101d8850]
movaps xmm2, xmm3
movss dword [esp + 0x50], xmm1
movaps xmm1, xmm5
mulss xmm1, dword [esp + 0x20]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x28]
mulss xmm0, dword [0x101d86f0]
movss dword [esp + 0x58], xmm1
movaps xmm1, xmm4
mulss xmm1, xmm6
movss dword [esp + 0x2c], xmm0
mulss xmm2, xmm0
movaps xmm0, xmm1
mulss xmm1, xmm5
mulss xmm0, xmm7
subss xmm2, xmm0
movss xmm0, dword [esp + 0x2c]
mulss xmm0, xmm7
subss xmm0, xmm1
movss dword [esp + 0x4c], xmm2
movaps xmm1, xmm4
mulss xmm1, dword [0x101d86f0]
movss dword [esp + 0x2c], xmm0
mulss xmm1, dword [esp + 0x20]
movss dword [esp + 0x60], xmm1
movss xmm1, dword [esp + 0x28]
mov ecx, dword [0x10548680]
mov eax, dword [0x1042b7bc]
add ecx, 0xffffff8f
mulss xmm1, xmm6
xor ecx, 0x14f7a249
mov dword [esp + 0x38], eax
mov eax, dword [0x1042b7b8]
mulss xmm3, xmm4
mov dword [esp + 0x10], 0
movaps xmm2, xmm1
mulss xmm4, xmm7
movss xmm0, dword [ecx + eax]
mov ecx, dword [0x1054885c]
mulss xmm1, xmm5
mulss xmm2, xmm7
mov eax, dword [ecx]
subss xmm1, xmm4
movss dword [esp + 0x24], xmm0
xorps xmm0, xmm0
subss xmm2, xmm3
mov eax, dword [eax + 0x34]
movss dword [esp + 0x5c], xmm1
movss xmm1, dword [esp + 0x28]
mulss xmm1, dword [esp + 0x20]
movss dword [esp + 0x54], xmm2
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x28], xmm1
call eax
mov ecx, dword [0x10548868]
mov edi, eax
mov dword [esp + 0x1c], edi
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
call edx
mov dword [esp + 0x18], eax
xor esi, esi
nop dword [eax + eax]
push esi
call dword [0x10540a90]
mov eax, dword [0x10540a98]
mov dword [esp], 0x3f800000
push ecx
mov dword [esp + 0x14], eax
mov dword [esp], 0
call dword [esp + 0x14]
add esp, 8
cmp dword [esp + 0x38], 0x1c
fstp dword [esp + 8]
jne 0x100321f6
movss xmm2, dword [esp + 0x24]
movss xmm0, dword [0x101d8554]
comiss xmm0, xmm2
jbe 0x100321f6
movss xmm1, dword [esp + 8]
mov eax, 3
nop
dec eax
movaps xmm0, xmm1
mulss xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm2
ja 0x100321d0
movss xmm0, dword [0x101d84f0]
subss xmm0, xmm1
movss dword [esp + 8], xmm0
test edi, edi
je 0x10032202
mov dword [esp + 8], 0x3f800000
mov eax, dword [0x10540a98]
sub esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0x40c90fdb
mov dword [esp], 0
call dword [esp + 0x14]
add esp, 8
cmp dword [esp + 0x18], 0
fstp dword [esp + 0xc]
je 0x10032244
movss xmm0, dword [0x101d851c]
jmp 0x1003224a
mov ecx, dword [0x10548860]
jmp 0x10031e54
movss xmm0, dword [esp + 0xc]
mov ecx, dword [0x1042b7b8]
movss dword [esp + 0xc], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x754]
mov dword [esp + 0x14], eax
call dword [esp + 0x14]
movss xmm0, dword [esp + 0xc]
fmul dword [esp + 8]
cvtps2pd xmm0, xmm0
fstp dword [esp + 8]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0xc]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 8]
movss dword [esp + 0x30], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
mov eax, dword [0x10540a98]
sub esp, 8
cvtsd2ss xmm0, xmm0
mov dword [esp + 0x1c], eax
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0
mulss xmm0, dword [esp + 0x10]
movss dword [esp + 0x44], xmm0
call dword [esp + 0x1c]
add esp, 8
cmp dword [esp + 0x38], 0x1c
fstp dword [esp + 8]
jne 0x1003231b
movss xmm2, dword [esp + 0x24]
movss xmm0, dword [0x101d8554]
comiss xmm0, xmm2
jbe 0x1003231b
movss xmm1, dword [esp + 8]
mov eax, 3
dec eax
movaps xmm0, xmm1
mulss xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm2
ja 0x100322f5
movss xmm0, dword [0x101d84f0]
subss xmm0, xmm1
movss dword [esp + 8], xmm0
test edi, edi
je 0x10032327
mov dword [esp + 8], 0x3f800000
mov eax, dword [0x10540a98]
sub esp, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 4], 0x40c90fdb
mov dword [esp], 0
call dword [esp + 0x1c]
add esp, 8
cmp dword [esp + 0x18], 0
fstp dword [esp + 0x14]
je 0x1003235e
movss xmm0, dword [0x101d851c]
jmp 0x10032364
movss xmm0, dword [esp + 0x14]
mov ecx, dword [0x1042b7b8]
movss dword [esp + 0xc], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x6dc]
mov dword [esp + 0x14], eax
call dword [esp + 0x14]
movss xmm0, dword [esp + 0xc]
fmul dword [esp + 8]
cvtps2pd xmm0, xmm0
fstp dword [esp + 8]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0xc]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 8]
addss xmm0, dword [esp + 0x30]
movss dword [esp + 0x30], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm2, dword [esp + 0x30]
xorps xmm1, xmm1
movss xmm5, dword [esp + 0x4c]
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x54]
mulss xmm1, dword [esp + 8]
movss xmm4, dword [esp + 0x2c]
movss xmm3, dword [esp + 0x60]
addss xmm1, dword [esp + 0x3c]
mulss xmm5, xmm2
mulss xmm4, xmm2
addss xmm5, dword [esp + 0x50]
mulss xmm0, xmm1
addss xmm4, dword [esp + 0x58]
mulss xmm3, xmm2
addss xmm5, xmm0
movss xmm0, dword [esp + 0x5c]
mulss xmm0, xmm1
addss xmm3, dword [esp + 0x40]
addss xmm4, xmm0
movss dword [esp + 0x3c], xmm5
movss xmm0, dword [esp + 0x28]
mulss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, xmm5
addss xmm3, xmm0
movss dword [esp + 0x30], xmm4
movaps xmm0, xmm4
mulss xmm0, xmm4
movss dword [esp + 0x14], xmm3
addss xmm0, xmm1
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm0, xmm1
call fcn.1002e020
addss xmm0, dword [0x101d83f4]
movss xmm2, dword [esp + 0x3c]
mov eax, dword [0x1042b7c0]
push dword [esp + 0x48]
mov ecx, dword [0x10548878]
divss xmm2, xmm0
movss xmm1, dword [eax + 0x104]
lea eax, [esp + 0x68]
mulss xmm2, xmm1
push eax
push 0x10429dbc
lea eax, [esp + 0x7c]
addss xmm2, dword [0x10429dbc]
push eax
movss dword [esp + 0x74], xmm2
movss xmm2, dword [esp + 0x40]
divss xmm2, xmm0
mulss xmm2, xmm1
addss xmm2, dword [0x10429dc0]
movss dword [esp + 0x78], xmm2
movss xmm2, dword [esp + 0x24]
divss xmm2, xmm0
mulss xmm2, xmm1
addss xmm2, dword [0x10429dc4]
movss dword [esp + 0x7c], xmm2
call fcn.10038a50
mov edi, dword [esp + 0x70]
xorps xmm0, xmm0
cvtsi2ss xmm0, edi
comiss xmm0, dword [0x101d83e0]
jbe 0x100325ba
mov eax, dword [esp + 0x34]
xor edx, edx
mov eax, dword [eax + 0x1c7440]
cmp eax, 0x13
ja case.default.0x10032518
movzx eax, byte [eax + 0x100326c0]
jmp dword [eax*4 + 0x100326a8]
mov edx, 1
jmp case.default.0x10032518
mov edx, 4
jmp case.default.0x10032518
mov edx, 5
jmp case.default.0x10032518
mov edx, 2
jmp case.default.0x10032518
mov edx, 3
jmp case.default.0x10032518
mov edx, 0x63
mov eax, dword [esp + 0x74]
xor ecx, ecx
cmp eax, 0x13
ja case.default.0x10032559
movzx eax, byte [eax + 0x100326ec]
jmp dword [eax*4 + 0x100326d4]
mov ecx, 1
jmp case.default.0x10032559
mov ecx, 4
jmp case.default.0x10032559
mov ecx, 5
jmp case.default.0x10032559
mov ecx, 2
jmp case.default.0x10032559
mov ecx, 3
jmp case.default.0x10032559
mov ecx, 0x63
cmp edx, ecx
mov edx, dword [esp + 0x10]
jne 0x100325be
mov ecx, dword [esp + 0x34]
inc edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], edx
cmp eax, dword [ecx + 0x1c7444]
jne 0x100325be
movd xmm0, edi
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esp + 0x20]
movss dword [esp + 0x20], xmm0
jmp 0x100325be
mov edx, dword [esp + 0x10]
movss xmm1, dword [0x101d8670]
inc esi
mov edi, dword [esp + 0x1c]
mov eax, esi
shr eax, 0x1f
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x101d8810]
cvtpd2ps xmm0, xmm0
comiss xmm1, xmm0
ja 0x10032180
movd xmm0, edx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
mulss xmm0, dword [0x101d8620]
movss dword [esp + 0x24], xmm0
fld dword [esp + 0x24]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
movss xmm2, dword [esp + 0x28]
lea ecx, [esp + 0x24]
divss xmm2, dword [0x101d8670]
mov edx, dword [esp + 0x3c]
add esp, 8
mov dword [esp + 0x40], 0x42c80000
fstp dword [esp + 0x1c]
divss xmm2, dword [esp + 0x44]
cvttss2si eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
mulss xmm2, dword [0x101d8620]
xorps xmm3, xmm3
comiss xmm3, xmm2
movd xmm0, eax
lea eax, [esp + 0x44]
cvtdq2ps xmm0, xmm0
cmovbe ecx, eax
lea eax, [esp + 0x40]
movss dword [esp + 0x44], xmm2
comiss xmm2, dword [0x101d8620]
movss dword [edx + 0x1c7450], xmm0
cmovbe eax, ecx
mov eax, dword [eax]
mov dword [edx + 0x1c7454], eax
cvttss2si eax, xmm0
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