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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10118bce
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10150380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], 0
test eax, eax
je 0x1008dabb
cmp dword [0x10176f30], 0
je 0x1008dabb
mov edi, dword [eax + 8]
mov eax, dword [0x10180178]
test al, 1
jne 0x1008cf49
or eax, 1
mov dword [0x10180178], eax
mov edx, 0x990704d7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10033200
push 0xda7d68cb
mov edx, eax
mov ecx, 0x1018017c
call fcn.100336a0
push 0x1011c090
call fcn.10110341
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x1018017c]
call eax
mov esi, eax
mov dword [ebp - 0x3c], esi
test edi, edi
je 0x1008cfc2
test esi, esi
je 0x1008cfc2
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x1008cfc2
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov eax, dword [ecx]
mov ecx, esi
and eax, 0xffffff
push eax
call edx
mov esi, eax
test esi, esi
je 0x1008cfab
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [esi + ecx], 0
jne 0x1008cf85
xor edx, edx
test ecx, ecx
je 0x1008cfab
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1008cf92
cmp edi, 0xfd0c5087
je 0x1008cfbd
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x1008cfc2
mov esi, dword [ebp - 0x3c]
jmp 0x1008cf67
mov ecx, dword [ebp - 0x38]
jmp 0x1008cfc4
xor ecx, ecx
movsx eax, byte [ecx + 0x10]
xorps xmm0, xmm0
dec eax
movss dword [ebp - 0x44], xmm0
cmp eax, 6
ja case.0x1008cfd6.4
jmp dword [eax*4 + 0x1008dad8]
push dword [ecx + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp dword [ebp - 0x38]
movss xmm0, dword [ebp - 0x38]
add esp, 4
jmp case.0x1008cfd6.4
push dword [ecx + 8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
fstp dword [ebp - 0x38]
movss xmm0, dword [ebp - 0x38]
add esp, 4
jmp case.0x1008cfd6.4
movss xmm0, dword [ecx + 0xc]
jmp case.0x1008cfd6.4
movd xmm0, dword [ecx + 0xc]
cvtdq2ps xmm0, xmm0
jmp case.0x1008cfd6.4
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.10111f50
cvtsd2ss xmm0, xmm0
mov edi, dword [ebp - 0x48]
mov eax, dword [0x10180178]
movss dword [ebp - 0x38], xmm0
mov edi, dword [edi + 8]
test al, 1
jne 0x1008d080
or eax, 1
mov dword [0x10180178], eax
mov edx, 0x990704d7
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.10033200
push 0xda7d68cb
mov edx, eax
mov ecx, 0x1018017c
call fcn.100336a0
push 0x1011c090
call fcn.10110341
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x1018017c]
call eax
mov esi, eax
mov dword [ebp - 0x3c], esi
test edi, edi
je 0x1008d100
test esi, esi
je 0x1008d100
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x34], ecx
test ecx, ecx
je 0x1008d100
nop
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov eax, dword [ecx]
mov ecx, esi
and eax, 0xffffff
push eax
call edx
mov esi, eax
test esi, esi
je 0x1008d0e9
mov edi, 0x811c9dc5
xor ecx, ecx
nop
inc ecx
cmp byte [esi + ecx], 0
jne 0x1008d0c0
xor edx, edx
test ecx, ecx
je 0x1008d0e9
nop dword [eax]
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1008d0d0
cmp edi, 0xfc0c4ef4
je 0x1008d0fb
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x34], ecx
test ecx, ecx
je 0x1008d100
mov esi, dword [ebp - 0x3c]
jmp 0x1008d0a0
mov ecx, dword [ebp - 0x34]
jmp 0x1008d102
xor ecx, ecx
movsx eax, byte [ecx + 0x10]
dec eax
cmp eax, 6
ja case.0x1008d10c.4
jmp dword [eax*4 + 0x1008daf4]
push dword [ecx + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp dword [ebp - 0x34]
movss xmm0, dword [ebp - 0x34]
add esp, 4
jmp 0x1008d166
push dword [ecx + 8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
fstp dword [ebp - 0x34]
movss xmm0, dword [ebp - 0x34]
add esp, 4
jmp 0x1008d166
movss xmm0, dword [ecx + 0xc]
jmp 0x1008d166
movd xmm0, dword [ecx + 0xc]
cvtdq2ps xmm0, xmm0
jmp 0x1008d166
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.10111f50
cvtsd2ss xmm0, xmm0
jmp 0x1008d166
xorps xmm0, xmm0
mov eax, dword [ebp - 0x48]
movss dword [ebp - 0x34], xmm0
mov edi, dword [eax + 8]
mov eax, dword [0x10180178]
test al, 1
jne 0x1008d1bb
or eax, 1
mov dword [0x10180178], eax
mov edx, 0x990704d7
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.10033200
push 0xda7d68cb
mov edx, eax
mov ecx, 0x1018017c
call fcn.100336a0
push 0x1011c090
call fcn.10110341
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x1018017c]
call eax
mov esi, eax
mov dword [ebp - 0x40], esi
test edi, edi
je 0x1008d240
test esi, esi
je 0x1008d240
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x1008d240
nop dword [eax]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov eax, dword [ecx]
mov ecx, esi
and eax, 0xffffff
push eax
call edx
mov esi, eax
test esi, esi
je 0x1008d229
mov edi, 0x811c9dc5
xor ecx, ecx
nop
inc ecx
cmp byte [esi + ecx], 0
jne 0x1008d200
xor edx, edx
test ecx, ecx
je 0x1008d229
nop dword [eax]
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1008d210
cmp edi, 0xff0c53ad
je 0x1008d23b
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x1008d240
mov esi, dword [ebp - 0x40]
jmp 0x1008d1e0
mov ecx, dword [ebp - 0x3c]
jmp 0x1008d242
xor ecx, ecx
movsx eax, byte [ecx + 0x10]
dec eax
cmp eax, 6
ja case.0x1008d24c.4
jmp dword [eax*4 + 0x1008db10]
push dword [ecx + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp dword [ebp - 0x3c]
movss xmm0, dword [ebp - 0x3c]
add esp, 4
jmp 0x1008d2a1
push dword [ecx + 8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
fstp dword [ebp - 0x3c]
movss xmm0, dword [ebp - 0x3c]
add esp, 4
jmp 0x1008d2a1
movss xmm0, dword [ecx + 0xc]
jmp 0x1008d2a1
movd xmm0, dword [ecx + 0xc]
cvtdq2ps xmm0, xmm0
jmp 0x1008d2a1
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.10111f50
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x44], xmm0
mov eax, dword [ebp - 0x48]
mov edi, dword [eax + 8]
mov eax, dword [0x10180178]
test al, 1
jne 0x1008d2f6
or eax, 1
mov dword [0x10180178], eax
mov edx, 0x990704d7
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.10033200
push 0xda7d68cb
mov edx, eax
mov ecx, 0x1018017c
call fcn.100336a0
push 0x1011c090
call fcn.10110341
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x1018017c]
call eax
mov esi, eax
mov dword [ebp - 0x40], esi
test edi, edi
je 0x1008d370
test esi, esi
je 0x1008d370
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x1008d370
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov eax, dword [ecx]
mov ecx, esi
and eax, 0xffffff
push eax
call edx
mov esi, eax
test esi, esi
je 0x1008d359
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [esi + ecx], 0
jne 0x1008d332
xor edx, edx
test ecx, ecx
je 0x1008d359
nop
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1008d340
cmp edi, 0x11ab48ff
je 0x1008d36b
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x1008d370
mov esi, dword [ebp - 0x40]
jmp 0x1008d314
mov ecx, dword [ebp - 0x3c]
jmp 0x1008d372
xor ecx, ecx
movsx eax, byte [ecx + 0x10]
movss xmm5, dword [0x10145040]
dec eax
cmp eax, 6
ja case.0x1008d388.2
jmp dword [eax*4 + 0x1008db2c]
push dword [ecx + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edx, eax
jmp 0x1008d403
push dword [ecx + 8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov edx, eax
jmp 0x1008d403
movss xmm4, dword [ecx + 0xc]
movss xmm3, dword [0x101452f0]
movaps xmm0, xmm4
movss xmm2, dword [0x101452d0]
andps xmm3, xmm4
xorps xmm0, xmm3
movaps xmm1, xmm4
cmpltss xmm0, xmm2
andps xmm2, xmm0
orps xmm2, xmm3
addss xmm1, xmm2
subss xmm1, xmm2
movaps xmm0, xmm1
subss xmm0, xmm4
cmpnless xmm0, xmm3
andps xmm0, xmm5
subss xmm1, xmm0
cvttss2si edx, xmm1
jmp 0x1008d403
xor edx, edx
jmp 0x1008d403
mov edx, dword [ecx + 0xc]
mov ecx, dword [0x1017c2a4]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov esi, dword [0x1017c2a4]
mov edi, eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x30]
mov ecx, esi
call edx
cmp edi, eax
je 0x1008d825
mov ecx, dword [0x1017c2a8]
push edi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
test edi, edi
je 0x1008d4ea
mov esi, dword [0x1017d4c4]
mov ecx, dword [0x10176f30]
mov edx, dword [esi + edi]
cmp edx, dword [esi + ecx]
jne 0x1008d46b
mov ecx, dword [0x1017c384]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x1008d4ea
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 0x20
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.1010fe49
movups xmm0, xmmword [str.misc_bullet_tracer_enemy]
mov dword [ebp - 0x2c], eax
add esp, 4
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x10140c14]
movq qword [eax + 0x10], xmm0
mov byte [eax + 0x18], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
mov ecx, 0x1017fff8
mov dword [ebp - 0x4c], 1
call fcn.1000dea0
cmp byte [eax], 0
je 0x1008d4ea
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x24]
call eax
mov byte [ebp - 0x2d], 1
test al, al
je 0x1008d4ee
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
test byte [ebp - 0x4c], 1
je 0x1008d531
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1008d531
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008d527
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008d527
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1011035b
add esp, 8
cmp byte [ebp - 0x2d], 0
je 0x1008dabb
mov ecx, dword [0x1017d4b0]
mov eax, dword [0x1017d56c]
movss xmm2, dword [ecx + edi + 4]
movss xmm1, dword [ecx + edi + 8]
movss xmm0, dword [eax + edi]
addss xmm2, dword [eax + edi + 4]
addss xmm1, dword [eax + edi + 8]
addss xmm0, dword [ecx + edi]
lea ecx, [ebp - 0x20]
push ecx
movss dword [ebp - 0x1c], xmm2
mov ecx, edi
movss dword [ebp - 0x18], xmm1
movss dword [ebp - 0x20], xmm0
mov eax, dword [edi]
mov eax, dword [eax + 0x28c]
call eax
cmp dword [edi + 0x3ab4], 0
je 0x1008d5a8
mov eax, dword [0x1017c450]
mov eax, dword [eax + edi]
test eax, eax
je 0x1008d5a8
lea ecx, [ebp - 0x20]
push ecx
push eax
mov ecx, edi
call fcn.1009e360
movss xmm6, dword [ebp - 0x20]
movss xmm4, dword [0x10145304]
comiss xmm6, xmm4
movss xmm3, dword [0x10144f1c]
jbe 0x1008d62b
comiss xmm3, xmm6
jbe 0x1008d62b
movss xmm5, dword [ebp - 0x1c]
comiss xmm5, xmm4
jbe 0x1008d630
comiss xmm3, xmm5
jbe 0x1008d630
movss xmm0, dword [ebp - 0x18]
comiss xmm0, xmm4
jbe 0x1008d630
comiss xmm3, xmm0
jbe 0x1008d630
mov ecx, dword [0x1017d4b0]
mov eax, dword [0x1017d56c]
movss xmm1, dword [ecx + edi + 4]
movss xmm5, dword [eax + edi + 4]
movss xmm2, dword [ecx + edi + 8]
addss xmm5, xmm1
movss xmm0, dword [eax + edi + 8]
movss xmm6, dword [eax + edi]
addss xmm0, xmm2
addss xmm6, dword [ecx + edi]
movss dword [ebp - 0x1c], xmm5
movss dword [ebp - 0x18], xmm0
movss dword [ebp - 0x20], xmm6
jmp 0x1008d630
movss xmm5, dword [ebp - 0x1c]
movss xmm0, dword [ebp - 0x38]
comiss xmm0, xmm4
movss xmm7, dword [ebp - 0x34]
jbe 0x1008d6ee
comiss xmm3, xmm0
jbe 0x1008d6ee
comiss xmm7, xmm4
jbe 0x1008d6ee
comiss xmm3, xmm7
jbe 0x1008d6ee
movss xmm2, dword [ebp - 0x44]
comiss xmm2, xmm4
jbe 0x1008d6ee
comiss xmm3, xmm2
jbe 0x1008d6ee
mov esi, dword [ebp - 0x48]
push ecx
mov dword [esp], 0
mov ecx, esi
push 0x10143344
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x40], eax
call dword [ebp - 0x40]
mov eax, dword [esi]
push ecx
mov dword [esp], 0
mov ecx, esi
fstp dword [ebp - 0x4c]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x40], eax
push 0x10143348
call dword [ebp - 0x40]
mov eax, dword [esi]
push ecx
mov dword [esp], 0
mov ecx, esi
fstp dword [ebp - 0x40]
mov eax, dword [eax + 0x20]
push 0x101433a0
call eax
movss xmm2, dword [ebp - 0x4c]
movss xmm7, dword [ebp - 0x40]
movss xmm5, dword [ebp - 0x1c]
movss xmm6, dword [ebp - 0x20]
fstp dword [ebp - 0x3c]
movss xmm0, dword [ebp - 0x3c]
movss dword [ebp - 0x44], xmm2
movss dword [ebp - 0x38], xmm0
movss xmm2, dword [ebp - 0x18]
movaps xmm4, xmm6
subss xmm2, dword [ebp - 0x44]
subss xmm4, xmm0
movaps xmm3, xmm5
subss xmm3, xmm7
mulss xmm2, xmm2
movaps xmm0, xmm3
movaps xmm1, xmm4
mulss xmm0, xmm3
mulss xmm1, xmm4
addss xmm0, xmm1
addss xmm0, xmm2
call fcn.10003c80
addss xmm0, dword [0x10144eb4]
movss xmm1, dword [0x10145040]
subss xmm5, dword [0x10176f44]
subss xmm6, dword [0x10176f40]
divss xmm1, xmm0
mulss xmm5, xmm5
mulss xmm6, xmm6
movss dword [ebp - 0x40], xmm1
addss xmm5, xmm6
movaps xmm0, xmm5
call fcn.10003c80
mulss xmm3, xmm1
mulss xmm4, xmm1
mulss xmm3, xmm0
mulss xmm4, xmm0
subss xmm3, dword [0x10176f44]
subss xmm4, dword [0x10176f40]
mulss xmm3, xmm3
mulss xmm4, xmm4
addss xmm3, xmm4
movaps xmm0, xmm3
call fcn.10003c80
movss xmm1, dword [0x101452a8]
comiss xmm1, xmm0
jbe 0x1008dabb
movss xmm0, dword [ebp - 0x38]
mov eax, dword [ebp - 0x18]
movss dword [ebp - 0x6c], xmm0
movss xmm0, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
mov eax, dword [0x1017c300]
movss dword [ebp - 0x64], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x60], xmm0
movss xmm0, dword [eax + 0x10]
mov eax, dword [0x1017de60]
movss dword [ebp - 0x68], xmm7
movss dword [ebp - 0x54], xmm0
mov word [ebp - 0x50], 0
mov byte [ebp - 0x4e], 1
cmp eax, dword [0x1017de64]
je 0x1008d811
movups xmm0, xmmword [ebp - 0x6c]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x5c]
movups xmmword [eax + 0x10], xmm0
add dword [0x1017de60], 0x20
jmp 0x1008dabb
lea ecx, [ebp - 0x6c]
push ecx
push eax
mov ecx, 0x1017de5c
call fcn.10010b80
jmp 0x1008dabb
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 0x20
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.1010fe49
movups xmm0, xmmword [str.misc_bullet_tracer]
mov dword [ebp - 0x2c], eax
add esp, 4
mov dword [ebp - 0x1c], 0x12
mov dword [ebp - 0x18], 0x1f
movups xmmword [eax], xmm0
mov cx, word [0x10140bbc]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 5
push eax
mov ecx, 0x1017fff8
call fcn.1000dea0
mov al, byte [eax]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x2d], al
cmp ecx, 0xf
jbe 0x1008d8c8
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008d8bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008d8bb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1011035b
mov al, byte [ebp - 0x2d]
add esp, 8
movss xmm4, dword [ebp - 0x38]
movss xmm2, dword [ebp - 0x34]
movss xmm3, dword [ebp - 0x44]
test al, al
je 0x1008d95f
mov eax, dword [0x1017e060]
movq xmm0, qword [0x1017e058]
mov dword [ebp - 0x58], eax
mov eax, dword [0x1017c300]
movq qword [ebp - 0x60], xmm0
movss dword [ebp - 0x6c], xmm4
movss dword [ebp - 0x68], xmm2
movss xmm0, dword [eax + 0x10]
mov eax, dword [0x1017de60]
movss dword [ebp - 0x64], xmm3
movss dword [ebp - 0x54], xmm0
mov word [ebp - 0x50], 0
mov byte [ebp - 0x4e], 0
cmp eax, dword [0x1017de64]
je 0x1008d941
movups xmm0, xmmword [ebp - 0x6c]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x5c]
movups xmmword [eax + 0x10], xmm0
add dword [0x1017de60], 0x20
jmp 0x1008d95f
lea ecx, [ebp - 0x6c]
push ecx
push eax
mov ecx, 0x1017de5c
call fcn.10010b80
movss xmm2, dword [ebp - 0x34]
movss xmm3, dword [ebp - 0x44]
movss xmm4, dword [ebp - 0x38]
mov eax, dword [0x1017de58]
test eax, eax
je 0x1008dabb
mov ecx, dword [0x1017de54]
xor edx, edx
movss xmm1, dword [0x101452dc]
lea esi, [eax + ecx]
cmp ecx, esi
je 0x1008dabb
mov eax, dword [0x1017de50]
mov edi, dword [0x1017de4c]
dec eax
mov dword [ebp - 0x40], eax
and eax, ecx
mov eax, dword [edi + eax*4]
cmp byte [eax + 0x20], 0
jne 0x1008d9c5
mov edi, dword [0x1017c300]
movss xmm0, dword [edi]
subss xmm0, dword [eax + 8]
call fcn.10003c50
comiss xmm1, xmm0
mov edi, dword [0x1017de4c]
jbe 0x1008d9c5
movaps xmm1, xmm0
mov edx, eax
mov eax, dword [ebp - 0x40]
inc ecx
cmp ecx, esi
jne 0x1008d996
test edx, edx
je 0x1008dabb
mov byte [edx + 0x20], 1
mov byte [edx + 0x29], 1
movss dword [edx + 0x2c], xmm4
movss dword [edx + 0x30], xmm2
movss dword [edx + 0x34], xmm3
mov ecx, dword [0x10176f30]
mov eax, dword [0x1017d514]
mov dword [ebp - 0x28], edx
movss dword [ebp - 0x20], xmm4
movss dword [ebp - 0x1c], xmm2
mov eax, dword [eax + ecx]
mov ecx, dword [0x1017de70]
mov dword [ebp - 0x24], eax
mov eax, dword [0x1017de78]
inc eax
movss dword [ebp - 0x18], xmm3
cmp ecx, eax
ja 0x1008da30
push ecx
mov ecx, 0x1017de68
call fcn.1008f9b0
mov ecx, dword [0x1017de70]
mov edx, dword [0x1017de6c]
lea esi, [ecx - 1]
and esi, dword [0x1017de74]
lea edi, [ecx - 1]
mov dword [0x1017de74], esi
cmove esi, ecx
dec esi
and edi, esi
cmp dword [edx + edi*4], 0
jne 0x1008da73
push 0x14
call fcn.1010fe49
mov ecx, dword [0x1017de6c]
add esp, 4
mov dword [ecx + edi*4], eax
mov ecx, dword [0x1017de70]
mov edx, dword [0x1017de6c]
movups xmm0, xmmword [ebp - 0x28]
lea eax, [ecx - 1]
and eax, esi
mov ecx, dword [edx + eax*4]
mov eax, dword [ebp - 0x18]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov eax, dword [0x1017de78]
inc eax
mov dword [0x1017de74], esi
mov dword [0x1017de78], eax
cmp eax, 0x20
jbe 0x1008dabb
nop
add eax, 0xffffffff
mov dword [0x1017de78], eax
je 0x1008dab1
cmp eax, 0x20
ja 0x1008daa0
jmp 0x1008dabb
mov dword [0x1017de74], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010fe2d
mov esp, ebp
pop ebp
ret 4