Function at 0x1002bbf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x100fa00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x10103fe8]
mov dword [ebp - 0x70], edi
mov ecx, dword [edi + 0x5a40]
lea eax, [ecx - 1]
mov dword [ebp - 0x68], eax
test eax, eax
js 0x1002bc88
lea ebx, [eax + eax*4]
shl ebx, 2
mov edx, dword [edi + 0x5a48]
cmp dword [ebx + edx + 4], 7
jne 0x1002bc77
mov esi, edx
mov ecx, ebx
sub ecx, esi
mov eax, 0x66666667
add ecx, edx
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx*4]
lea edx, [esi + eax*4]
mov eax, dword [edi + 0x5a40]
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [eax*4 - 0x14]
push eax
lea eax, [edx + 0x14]
push eax
push edx
call fcn.1006bcf0
mov eax, dword [ebp - 0x68]
add esp, 0xc
dec dword [edi + 0x5a40]
mov ecx, dword [edi + 0x5a40]
dec eax
sub ebx, 0x14
mov dword [ebp - 0x68], eax
test eax, eax
jns 0x1002bc22
xor esi, esi
test ecx, ecx
jle 0x1002bcb4
xor ebx, ebx
mov eax, dword [edi + 0x5a48]
add eax, ebx
cmp dword [eax + 4], 0
jne 0x1002bca8
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a40]
jl 0x1002bc90
mov esi, dword [0x10103fe8]
cmp byte [esi + 0x66], 0
je 0x1002bcca
test byte [esi + 0xc], 2
jne 0x1002bcca
mov byte [esi + 0x66], 0
cmp byte [esi + 0x5a09], 0
jne 0x1002bd21
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1002bd1a
push ecx
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push eax
call fcn.10028460
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1002bd1a
mov edx, dword [ebp - 0x68]
test edx, edx
je 0x1002bd02
mov ecx, ebx
call fcn.1003bfc0
mov eax, dword [0x10103fe8]
test eax, eax
je 0x1002bd11
dec dword [eax + 0xb0]
push ebx
call fcn.10070953
add esp, 4
mov byte [esi + 0x5a09], 1
movss xmm0, dword [esi + 0x5a0c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1002bda7
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5a0c], xmm0
jb 0x1002bda7
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x1002bd96
mov eax, dword [0x10103fe8]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0
mov dword [eax + 0x5a0c], 0
call fcn.1003c1f0
mov edx, 0x100f10f0
mov dword [ebp - 0x6c], eax
mov ecx, ebx
call fcn.10028390
mov ebx, eax
test ebx, ebx
je 0x1002bd9d
push ebx
push dword [ebp - 0x68]
push 1
push dword [ebp - 0x6c]
call fcn.1007084c
push ebx
call fcn.1006d5c6
add esp, 0x14
jmp 0x1002bd9d
mov byte [esi + 0x98], 1
mov dword [esi + 0x5a0c], 0
movss xmm1, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3dd8]
cvtps2pd xmm0, xmm1
mov byte [edi + 0x3de4], 1
mov word [edi + 0x59ce], ax
mov dword [edi + 0x3e2c], eax
addsd xmm0, qword [edi + 0x3dd0]
movsd qword [edi + 0x3dd0], xmm0
mov ecx, dword [edi + 0x59e0]
test ecx, ecx
jns 0x1002be06
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x59dc]
call fcn.1003d350
movss xmm1, dword [edi + 0x18]
mov dword [edi + 0x59dc], 0
movaps xmm0, xmm1
mov eax, dword [edi + 0x5be8]
mov ecx, 0x3c
subss xmm0, dword [edi + eax*4 + 0x5af8]
addss xmm0, dword [edi + 0x5bf0]
movss dword [edi + 0x5bf0], xmm0
movss dword [edi + eax*4 + 0x5af8], xmm1
mov eax, dword [edi + 0x5be8]
inc eax
movss xmm1, dword [edi + 0x5bf0]
cdq
idiv ecx
mov eax, dword [edi + 0x5bec]
movss xmm0, dword [0x100f206c]
inc eax
cmp eax, ecx
mov dword [edi + 0x5be8], edx
movss dword [ebp - 0x64], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x100f1e18]
mov dword [edi + 0x5bec], ecx
jbe 0x1002be97
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x100f1ec4]
divss xmm0, xmm1
push ecx
lea ecx, [edi + 0x378c]
movss dword [edi + 0x9c], xmm0
call fcn.1003d490
mov cl, byte [edi + 0x62]
call fcn.10035230
mov ebx, dword [0x10103fe8]
xor esi, esi
xorps xmm3, xmm3
mov eax, dword [ebx + 0x47b4]
mov edx, dword [eax]
mov dword [edx], 5
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
cmp dword [ebx + 0x47ac], esi
jle 0x1002bfc1
mov eax, dword [ebx + 0x47b4]
movaps xmm2, xmm3
mov edx, dword [eax + esi*4]
inc esi
mov eax, dword [edx + 0x8c]
mov ecx, dword [edx + 0x90]
movss xmm1, dword [edx + 4]
mov dword [edx + 0x7c], eax
mov eax, dword [edx + 0x94]
mov dword [edx + 0x80], ecx
mov ecx, dword [edx + 0x98]
mov dword [edx + 0x84], eax
mov dword [edx + 0x88], ecx
mov dword [edx + 0x94], 0
mov eax, dword [edx + 0x94]
mov dword [edx + 0x98], 0
mov ecx, dword [edx + 0x98]
mov dword [edx + 0x8c], eax
mov dword [edx + 0x90], ecx
movss xmm0, dword [edx + 0x80]
addss xmm0, dword [edx + 8]
addss xmm1, dword [edx + 0x7c]
movss dword [edx + 0x18], xmm0
movss xmm0, dword [edx + 0xc]
movss dword [edx + 0x14], xmm1
movaps xmm1, xmm3
subss xmm0, dword [edx + 0x7c]
addss xmm0, dword [edx + 0x84]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x10]
subss xmm0, dword [edx + 0x80]
addss xmm0, dword [edx + 0x88]
movss dword [edx + 0x1c], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x20], xmm1
cmp esi, dword [ebx + 0x47ac]
jl 0x1002bef2
mov eax, dword [edi + 0x48]
mov byte [eax + 0x10], 1
mov esi, dword [ebx + 0x54]
test esi, esi
jne 0x1002bfd7
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x44]
mov esi, dword [eax]
movss xmm2, dword [0x100f1ec4]
mov eax, dword [ebx + 0x3e38]
movaps xmm0, xmm2
mov dword [ebx + 0x3bc4], esi
movss xmm1, dword [esi + 0x10]
mulss xmm1, dword [ebx + 0x4c]
mulss xmm1, dword [esi + 0x4c]
maxss xmm0, xmm1
movss dword [ebx + 0x3bcc], xmm0
test eax, eax
je 0x1002c029
mulss xmm0, dword [eax + 0x258]
mov eax, dword [eax + 0x2f4]
test eax, eax
je 0x1002c02c
mulss xmm0, dword [eax + 0x258]
jmp 0x1002c02c
movaps xmm0, xmm3
movss xmm7, dword [0x100f206c]
movss xmm4, dword [0x100f20ac]
movaps xmm6, xmm7
movss dword [ebx + 0x3bc8], xmm0
movaps xmm5, xmm4
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [ebx + 0x3bd0], eax
lea eax, [edx + 0x60]
mov dword [ebx + 0x3bd4], ecx
mov dword [ebx + 0x3dcc], eax
mov dword [ebx + 0x3bd8], esi
movss dword [ebx + 0x3bdc], xmm0
mov edx, dword [edi + 0x47ac]
test edx, edx
jle 0x1002c0d2
mov ecx, dword [edi + 0x47b4]
mov eax, dword [ecx]
movss xmm3, dword [eax + 4]
comiss xmm7, xmm3
movss xmm2, dword [eax + 8]
movaps xmm0, xmm3
addss xmm0, dword [eax + 0xc]
movaps xmm1, xmm2
addss xmm1, dword [eax + 0x10]
jbe 0x1002c0aa
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x1002c0b2
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x1002c0ba
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x1002c0c2
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x1002c086
movss xmm2, dword [0x100f1ec4]
mov eax, dword [edi + 0x386c]
movss xmm1, dword [edi + 0x3870]
movss dword [ebp - 0x18], xmm7
movss dword [ebp - 0x14], xmm6
movss dword [ebp - 0x10], xmm4
movss dword [ebp - 0xc], xmm5
movups xmm0, xmmword [ebp - 0x18]
mov dword [edi + 0x3be0], eax
movups xmmword [edi + 0x3be8], xmm0
movss xmm0, dword [edi + 0x3be4]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1002c205
movss dword [edi + 0x3be4], xmm1
xor esi, esi
mov ebx, 0x200
nop dword [eax]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x1002c1b0
movss xmm1, dword [edi + 0x3be4]
minss xmm1, xmm0
divss xmm1, xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call fcn.10084d40
movss xmm1, dword [0x100f1f90]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x10], xmm0
fld qword [ebp - 0x10]
fstp qword [esp]
call fcn.100829c0
fstp qword [ebp - 0x10]
movsd xmm0, qword [ebp - 0x10]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
and eax, 0xfffffffe
cmp eax, 4
jge 0x1002c1a6
mov eax, 4
jmp 0x1002c1b5
cmp eax, 0x200
cmovg eax, ebx
jmp 0x1002c1b5
mov eax, 0x30
movss xmm2, dword [0x100f1ec4]
mov byte [edi + esi + 0x3d8c], al
inc esi
cmp esi, 0x40
jl 0x1002c130
movsd xmm0, qword [0x100f1f00]
call fcn.10085aa0
movss xmm1, dword [0x100f1ec4]
cvtsd2ss xmm0, xmm0
mov ebx, dword [0x10103fe8]
subss xmm1, xmm0
movss xmm0, dword [edi + 0x3be4]
divss xmm0, xmm1
movss dword [edi + 0x3d88], xmm0
xor edx, edx
mov dword [edi + 0x3bf8], 0
cmp byte [edi + 0x3868], dl
je 0x1002c228
mov dword [edi + 0x3bf8], 1
mov edx, 1
cmp byte [edi + 0x3869], 0
mov ecx, edx
je 0x1002c24a
mov eax, dword [edi + 0x3bc4]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x1002c24a
or ecx, 2
mov dword [edi + 0x3bf8], ecx
cmp byte [edi + 0x386a], 0
je 0x1002c25c
or ecx, 4
mov dword [edi + 0x3bf8], ecx
test byte [edi + 0xc], 8
je 0x1002c26b
or ecx, 8
mov dword [edi + 0x3bf8], ecx
xor esi, esi
cmp dword [edi + 0x47ac], esi
jle 0x1002c297
mov eax, dword [edi + 0x47b4]
push 0x2c
push 0
mov eax, dword [eax + esi*4]
add eax, 0x38
push eax
call fcn.1006a800
inc esi
add esp, 0xc
cmp esi, dword [edi + 0x47ac]
jl 0x1002c275
cmp byte [edi + 0x493c], 0
je 0x1002c2cb
mov eax, dword [edi + 0x4954]
cmp eax, dword [edi + 0x3e84]
jne 0x1002c2cb
cmp dword [ebx + 0x3e84], eax
jne 0x1002c2bc
mov dword [ebx + 0x3e88], eax
cmp dword [ebx + 0x3eac], eax
jne 0x1002c2cb
mov byte [ebx + 0x3eb0], 1
cmp dword [edi + 0x3e74], 0
mov eax, dword [edi + 0x3e70]
jne 0x1002c2e6
mov dword [edi + 0x3e7c], 0
jmp 0x1002c2f4
mov ecx, eax
test eax, eax
je 0x1002c300
cmp dword [edi + 0x3e84], eax
jne 0x1002c304
mov dword [edi + 0x3e80], 0
mov ecx, eax
test ecx, ecx
je 0x1002c338
movss xmm1, dword [edi + 0x18]
mov eax, dword [edi + 0x3e84]
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e7c]
movss dword [edi + 0x3e7c], xmm0
cmp eax, ecx
je 0x1002c33e
addss xmm1, dword [edi + 0x3e80]
movss dword [edi + 0x3e80], xmm1
jmp 0x1002c33e
mov eax, dword [edi + 0x3e84]
mov dword [edi + 0x3e74], ecx
mov dword [edi + 0x3e70], 0
mov word [edi + 0x3e78], 0
test eax, eax
je 0x1002c3d8
cmp dword [edi + 0x3e88], eax
je 0x1002c3d8
cmp dword [edi + 0x3eac], eax
jne 0x1002c3d8
test byte [edi + 0x5aa0], 1
je 0x1002c3cd
movaps xmm0, xmmword [0x100f21f0]
xor ecx, ecx
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x20], 0x6b400413
movaps xmm0, xmmword [0x100f21e0]
movups xmmword [ebp - 0x50], xmm0
mov byte [ebp - 0x1c], 0
movaps xmm0, xmmword [0x100f2160]
movups xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [0x100f2280]
movups xmmword [ebp - 0x30], xmm0
nop dword [eax]
mov al, byte [ebp - 0x60]
xor byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 0x43
jb 0x1002c3b0
lea eax, [ebp - 0x5f]
mov byte [ebp - 0x1c], 0
push eax
call fcn.1003ca90
add esp, 4
call fcn.1002b0c0
mov ebx, dword [0x10103fe8]
mov ecx, dword [edi + 0x3e84]
test ecx, ecx
je 0x1002c3f7
movss xmm0, dword [edi + 0x18]
addss xmm0, dword [edi + 0x3e8c]
movss dword [edi + 0x3e8c], xmm0
mov eax, dword [edi + 0x3ea0]
movss xmm0, dword [edi + 0x18]
addss xmm0, dword [edi + 0x3ebc]
mov dword [edi + 0x3eb4], eax
mov al, byte [edi + 0x3e94]
mov byte [edi + 0x3eb1], al
mov eax, dword [edi + 0x5954]
movss dword [edi + 0x3ebc], xmm0
mov dword [edi + 0x3eac], ecx
mov dword [edi + 0x3e88], 0
mov byte [edi + 0x3e95], 0
mov byte [edi + 0x3eb0], 0
mov byte [edi + 0x3e90], 0
test eax, eax
je 0x1002c461
cmp ecx, eax
je 0x1002c461
mov dword [edi + 0x5954], 0
test ecx, ecx
jne 0x1002c47f
mov dword [edi + 0x4688], ecx
mov dword [edi + 0x4680], ecx
mov byte [edi + 0x4684], cl
mov dword [edi + 0x4688], ecx
jmp 0x1002c4a2
mov eax, dword [edi + 0x4688]
test eax, eax
je 0x1002c4a2
test al, 2
je 0x1002c4a2
mov dword [ebx + 0x3f6c], ecx
mov dword [ebx + 0x3f68], ecx
mov word [ebx + 0x3f70], 0
mov eax, dword [edi + 0x4a64]
movss xmm0, dword [edi + 0x4a6c]
mov dword [edi + 0x4a68], eax
test eax, eax
je 0x1002c4d3
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4a64], 0
movss dword [edi + 0x4a6c], xmm0
jmp 0x1002c513
comiss xmm0, dword [0x100f1e18]
jbe 0x1002c51d
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x100f1e68]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4a70]
addss xmm1, xmm1
movss dword [edi + 0x4a70], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x1002c51d
mov dword [edi + 0x4a6c], 0
mov dword [edi + 0x4a70], 0
mov eax, dword [edi + 0x49a0]
mov dword [edi + 0x49a4], eax
mov dword [edi + 0x49a0], 0
mov dword [edi + 0x499c], 0x7f7fffff
mov word [edi + 0x493d], 0
mov dword [edi + 0x49ac], 0
call fcn.10034020
call fcn.10038a40
call fcn.10034580
call fcn.1002b9a0
mov esi, dword [0x10103fe8]
mov ecx, dword [esi + 0x3e44]
test ecx, ecx
je 0x1002c604
mov eax, dword [esi + 0x3e84]
mov dword [esi + 0x3e88], eax
cmp dword [esi + 0x3eac], eax
jne 0x1002c593
mov byte [esi + 0x3eb0], 1
cmp byte [esi + 0xdc4], 0
je 0x1002c5f8
movss xmm1, dword [esi + 0xdbc]
movss xmm2, dword [0x100f20a8]
comiss xmm1, xmm2
movss xmm0, dword [esi + 0xdc0]
jb 0x1002c5f8
comiss xmm0, xmm2
jb 0x1002c5f8
subss xmm1, dword [esi + 0x3e98]
subss xmm0, dword [esi + 0x3e9c]
mov ecx, dword [ecx + 0x2fc]
lea edx, [ebp - 0x10]
push 1
movss dword [ebp - 0x10], xmm1
movss dword [ebp - 0xc], xmm0
call fcn.10033630
mov ecx, dword [esi + 0x3e44]
add esp, 4
call fcn.10033150
jmp 0x1002c63c
mov dword [esi + 0x3e44], 0
jmp 0x1002c637
mov ecx, dword [esi + 0x3ea0]
test ecx, ecx
je 0x1002c63c
mov eax, dword [esi + 0x3e84]
cmp dword [ecx + 0x6c], eax
jne 0x1002c63c
mov dword [esi + 0x3e88], eax
cmp dword [esi + 0x3eac], eax
jne 0x1002c62e
mov byte [esi + 0x3eb0], 1
cmp byte [esi + 0xdc4], 0
jne 0x1002c63c
call fcn.1002b0c0
mov eax, dword [0x10103fe8]
mov edx, dword [eax + 0x4790]
sub edx, 1
js 0x1002c677
mov eax, dword [eax + 0x4798]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop dword [eax + eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x1002c66f
test dword [ecx + 8], 0x8000000
jne 0x1002c691
sub eax, 0x28
sub edx, 1
jns 0x1002c660
cmp dword [edi + 0x490c], 0
je 0x1002c6b0
movss xmm0, dword [edi + 0x491c]
comiss xmm0, dword [0x100f1e18]
jbe 0x1002c6b0
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x100f1fb0]
addss xmm1, dword [edi + 0x4934]
minss xmm1, dword [0x100f1ec4]
jmp 0x1002c6d1
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x100f1fbc]
movss xmm1, dword [edi + 0x4934]
subss xmm1, xmm0
maxss xmm1, dword [0x100f1e18]
movups xmm0, xmmword [edi + 0x59e8]
mov dword [edi + 0x4938], 0
movss dword [edi + 0x4934], xmm1
mov dword [edi + 0x5bfc], 0xffffffff
mov dword [edi + 0x5bf8], 0xffffffff
mov dword [edi + 0x5bf4], 0xffffffff
movups xmmword [edi + 0x59f8], xmm0
mov byte [edi + 0x59e8], 0
call fcn.100349c0
cmp byte [edi + 0x3de7], 0
jne 0x1002c748
movss xmm1, dword [edi + 0x68]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x1002c748
movsd xmm0, qword [edi + 0x3dd0]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [ebp - 0x64], xmm0
jmp 0x1002c750
movss xmm0, dword [0x100f206c]
xor ebx, ebx
cmp dword [edi + 0x3df0], ebx
je 0x1002c8f7
nop
mov eax, dword [edi + 0x3df8]
mov esi, dword [eax + ebx*4]
mov ax, word [esi + 0xb2]
mov cl, byte [esi + 0xa6]
mov word [esi + 0xb4], ax
xor eax, eax
mov byte [esi + 0xa7], cl
mov byte [esi + 0xa6], 0
mov byte [esi + 0xa8], 0
mov word [esi + 0xb2], ax
test cl, cl
jne 0x1002c8e5
cmp byte [esi + 0x344], al
jne 0x1002c8e5
comiss xmm0, dword [esi + 0x238]
jbe 0x1002c8e5
mov ecx, dword [esi + 0x260]
mov byte [esi + 0x344], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x33c], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x340], eax
mov ecx, dword [esi + 0xe8]
test ecx, ecx
je 0x1002c81a
mov eax, dword [0x10103fe8]
mov dword [esi + 0xe4], 0
mov dword [esi + 0xe0], 0
test eax, eax
je 0x1002c807
dec dword [eax + 0xb0]
push ecx
call fcn.10070953
add esp, 4
mov dword [esi + 0xe8], 0
mov ecx, dword [esi + 0x260]
call fcn.100453b0
mov ecx, dword [esi + 0x184]
test ecx, ecx
je 0x1002c865
mov eax, dword [0x10103fe8]
mov dword [esi + 0x180], 0
mov dword [esi + 0x17c], 0
test eax, eax
je 0x1002c852
dec dword [eax + 0xb0]
push ecx
call fcn.10070953
add esp, 4
mov dword [esi + 0x184], 0
mov ecx, dword [esi + 0x1ac]
test ecx, ecx
je 0x1002c8a5
mov eax, dword [0x10103fe8]
mov dword [esi + 0x1a8], 0
mov dword [esi + 0x1a4], 0
test eax, eax
je 0x1002c892
dec dword [eax + 0xb0]
push ecx
call fcn.10070953
add esp, 4
mov dword [esi + 0x1ac], 0
mov ecx, dword [esi + 0x1b8]
test ecx, ecx
je 0x1002c8e5
mov eax, dword [0x10103fe8]
mov dword [esi + 0x1b4], 0
mov dword [esi + 0x1b0], 0
test eax, eax
je 0x1002c8d2
dec dword [eax + 0xb0]
push ecx
call fcn.10070953
add esp, 4
mov dword [esi + 0x1b8], 0
movss xmm0, dword [ebp - 0x64]
inc ebx
cmp ebx, dword [edi + 0x3df0]
jne 0x1002c760
xor ecx, ecx
mov dword [ebp - 0x68], ecx
cmp dword [edi + 0x4a10], ecx
jle 0x1002ca3f
xor edx, edx
xorps xmm1, xmm1
mov dword [ebp - 0x6c], edx
mov eax, dword [edi + 0x4a18]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x1002ca26
movss xmm2, dword [ebp - 0x64]
comiss xmm2, xmm0
jbe 0x1002ca26
mov esi, dword [edi + 0x49f8]
mov ebx, dword [0x10103fe8]
add esi, edx
mov dword [ebp - 0xc], ebx
mov dword [esi + 0x198], 0
mov eax, dword [esi + 0x194]
test eax, eax
je 0x1002c988
mov dword [esi + 0x190], 0
mov dword [esi + 0x18c], 0
test ebx, ebx
je 0x1002c975
dec dword [ebx + 0xb0]
push eax
call fcn.10070953
add esp, 4
mov dword [esi + 0x194], 0
mov byte [esi + 0x1d9], 1
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x1002c9cf
mov eax, dword [0x10103fe8]
mov dword [esi + 0x158], 0
mov dword [esi + 0x154], 0
test eax, eax
je 0x1002c9bc
dec dword [eax + 0xb0]
push ecx
call fcn.10070953
add esp, 4
mov dword [esi + 0x15c], 0
xor edx, edx
mov byte [esi + 0x1e5], 1
cmp dword [esi + 0x40], edx
jle 0x1002c9f9
xor ecx, ecx
or ebx, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [eax + ecx - 0x20], bx
cmp edx, dword [esi + 0x40]
jl 0x1002c9e2
mov edi, dword [ebp - 0x70]
mov ebx, dword [ebp - 0xc]
sub esi, dword [ebx + 0x49f8]
mov eax, 0x4325c53f
imul esi
xorps xmm1, xmm1
mov eax, dword [ebx + 0x4a18]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0x6c]
mov dword [eax + ecx*4], 0xbf800000
mov ecx, dword [ebp - 0x68]
inc ecx
add edx, 0x1e8
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], edx
cmp ecx, dword [edi + 0x4a10]
jl 0x1002c910
xor eax, eax
mov dword [ebp - 0x6c], eax
cmp dword [edi + 0x49e4], eax
jle 0x1002ca93
xor esi, esi
xorps xmm1, xmm1
mov ebx, dword [edi + 0x49ec]
movss xmm0, dword [esi + ebx + 4]
comiss xmm0, xmm1
jb 0x1002ca84
movss xmm2, dword [ebp - 0x64]
comiss xmm2, xmm0
jbe 0x1002ca84
lea ecx, [ebx + 0x10]
add ecx, esi
call fcn.10048190
mov eax, dword [ebp - 0x6c]
xorps xmm1, xmm1
mov dword [esi + ebx + 4], 0xbf800000
inc eax
add esi, 0x68
mov dword [ebp - 0x6c], eax
cmp eax, dword [edi + 0x49e4]
jl 0x1002ca51
cmp byte [edi + 0x3de7], 0
je 0x1002cb26
mov esi, dword [0x10103fe8]
mov eax, dword [esi + 0x4780]
test eax, eax
je 0x1002cae1
mov dword [esi + 0x477c], 0
mov dword [esi + 0x4778], 0
test esi, esi
je 0x1002cace
dec dword [esi + 0xb0]
push eax
call fcn.10070953
add esp, 4
mov dword [esi + 0x4780], 0
mov ecx, dword [esi + 0x478c]
test ecx, ecx
je 0x1002cb21
mov eax, dword [0x10103fe8]
mov dword [esi + 0x4788], 0
mov dword [esi + 0x4784], 0
test eax, eax
je 0x1002cb0e
dec dword [eax + 0xb0]
push ecx
call fcn.10070953
add esp, 4
mov dword [esi + 0x478c], 0
call fcn.100503b0
mov eax, dword [edi + 0x47b8]
mov byte [edi + 0x3de7], 0
test eax, eax
je 0x1002cb91
cmp byte [eax + 0xa7], 0
jne 0x1002cb91
mov eax, dword [0x10103fe8]
mov edx, dword [eax + 0x3dfc]
sub edx, 1
js 0x1002cb8a
mov eax, dword [eax + 0x3e04]
lea esi, [eax + edx*4]
nop dword [eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x1002cb82
cmp byte [ecx + 0xa7], 0
je 0x1002cb82
mov eax, dword [ecx + 8]
and eax, 0x40200
cmp eax, 0x40200
jne 0x1002ccf7
sub esi, 4
sub edx, 1
jns 0x1002cb60
xor ecx, ecx
call fcn.10033150
mov ecx, dword [edi + 0x3e18]
test ecx, ecx
jns 0x1002cbb7
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x3e14]
call fcn.1003d9b0
mov dword [edi + 0x3e14], 0
mov ecx, dword [edi + 0x47a0]
test ecx, ecx
jns 0x1002cbe7
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x479c]
call fcn.1003d930
lea esi, [edi + 0x4778]
mov dword [edi + 0x479c], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1002cc19
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1003d350
mov ecx, dword [esi + 4]
xor edx, edx
mov dword [esi], 0
test ecx, ecx
jne 0x1002cc30
push 8
mov ecx, esi
call fcn.1003d350
mov edx, dword [esi]
mov eax, dword [esi + 8]
lea ecx, [edi + 0x4784]
push 0
mov dword [eax + edx*4], 0
inc dword [esi]
call fcn.1003d120
mov esi, dword [0x10103fe8]
cmp byte [esi + 0x5ac2], 0
mov dword [esi + 0x5ac4], 0
je 0x1002ce11
mov ebx, dword [esi + 0x3e74]
xor edx, edx
push 1
mov ecx, 0x20e
mov dword [ebp - 0xc], ebx
mov dword [esi + 0x4938], 7
call fcn.10033da0
add esp, 4
test al, al
je 0x1002cc95
mov byte [esi + 0x5ac2], 0
mov eax, dword [esi + 0xdd8]
xorps xmm1, xmm1
mov dword [ebp - 0x64], eax
cmp eax, 0x3000
je 0x1002cd16
movzx ecx, byte [esi + 0x5ac3]
cmp byte [ecx + esi + 0xdc4], 0
je 0x1002cd16
movss xmm0, dword [esi + ecx*4 + 0x3728]
comiss xmm1, xmm0
ja 0x1002cd16
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x1002cd13
add ecx, 0x281
xor edx, edx
call fcn.100356e0
test al, al
mov eax, dword [ebp - 0x64]
je 0x1002cd16
test ebx, ebx
je 0x1002cd16
mov dword [esi + 0x5ac4], ebx
mov byte [esi + 0x5ac2], 0
jmp 0x1002cd16
mov eax, dword [ecx + 0x30c]
test eax, eax
je 0x1002cd0a
cmp byte [eax + 0xa7], 0
jne 0x1002cd0c
mov eax, ecx
mov ecx, eax
jmp 0x1002cb8c
mov eax, dword [ebp - 0x64]
mov ecx, 0x3728
xor ebx, ebx
mov dword [ebp - 0x68], ecx
cmp eax, 0x3000
jne 0x1002cd66
cmp byte [esi + ebx + 0xdc4], 0
je 0x1002cd66
movss xmm0, dword [ecx + esi]
comiss xmm1, xmm0
ja 0x1002cd66
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x1002cd63
lea ecx, [ebx + 0x281]
xor edx, edx
call fcn.100356e0
mov ecx, dword [ebp - 0x68]
test al, al
mov eax, dword [ebp - 0x64]
je 0x1002cd66
mov byte [esi + 0x5ac3], bl
jmp 0x1002cd66
mov eax, dword [ebp - 0x64]
add ecx, 4
inc ebx
mov dword [ebp - 0x68], ecx
cmp ecx, 0x3734
jl 0x1002cd20
or dword [esi + 0x46e8], 0x40
xor ecx, ecx
mov dword [esi + 0x473c], 0x3f333333
call fcn.100367d0
mov ebx, dword [ebp - 0xc]
push ebx
push 0x100f1178
call fcn.10051cd0
push 0x100f118c
call fcn.10051cd0
add esp, 0xc
mov dword [ebp - 0x14], 0x100f11a8
cmp dword [ebp - 0x64], 0x3000
mov dword [ebp - 0x10], 0x100f11b0
mov dword [ebp - 0xc], 0x100f11b8
jne 0x1002cdd5
push 0x100f11c0
call fcn.10051cd0
add esp, 4
jmp 0x1002ce06
movzx eax, byte [esi + 0x5ac3]
xor ecx, ecx
test ebx, ebx
push dword [ebp + eax*4 - 0x14]
mov eax, 0x10
cmove ecx, eax
mov eax, dword [0x10103fe8]
add eax, 0x3874
add eax, ecx
push 0x100f1200
push eax
call fcn.10051da0
add esp, 0xc
call fcn.10032ff0
mov esi, dword [0x10103fe8]
lea eax, [esi + 0x3e6c]
lea ebx, [esi + 0x5ad8]
mov dword [eax], 0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx]
inc eax
cmp dword [esi + 0x3dd8], eax
jne 0x1002cefa
mov ecx, dword [esi + 0x3e74]
mov dword [ebp - 0x64], ecx
test ecx, ecx
jne 0x1002ce4b
mov ecx, dword [esi + 0x3e84]
mov dword [ebp - 0x64], ecx
cmp dword [ebx + 8], ecx
je 0x1002ce93
lea eax, [ebx + 0xc]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], 0xffffffff
mov edx, dword [eax + 4]
mov dword [ebp - 0xc], edx
test edx, edx
jns 0x1002ce8d
mov eax, edx
xor ecx, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0xc]
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0xc]
call fcn.1003da20
mov esi, dword [0x10103fe8]
lea eax, [ebx + 0xc]
mov ecx, dword [ebp - 0x64]
mov dword [eax], 0
test ecx, ecx
je 0x1002cefa
mov eax, dword [ebx + 4]
test eax, eax
js 0x1002cece
mov edx, eax
cmp eax, dword [ebx + 0xc]
jge 0x1002cee0
mov ecx, dword [ebx + 0x14]
lea edx, [eax + eax*8]
cmp byte [ecx + edx*8 + 5], 0
mov ecx, dword [ebp - 0x64]
jne 0x1002ceca
mov edi, dword [ebx + 0x14]
lea ecx, [eax + eax*8]
mov edx, eax
cmp byte [edi + ecx*8 + 4], 2
mov edi, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x64]
jle 0x1002cee0
inc eax
mov dword [ebx + 4], eax
mov edx, eax
cmp eax, 0xffffffff
jne 0x1002cedc
mov edx, dword [ebp - 0x6c]
mov dword [edx], ecx
jmp 0x1002cefa
test edx, edx
js 0x1002cefa
cmp edx, dword [ebx + 0xc]
jge 0x1002cefa
mov eax, dword [ebx + 0x14]
lea ecx, [edx + edx*8]
mov edx, dword [ebp - 0x6c]
mov eax, dword [eax + ecx*8]
mov dword [edx], eax
mov eax, dword [ebx + 0x14]
inc byte [eax + ecx*8 + 4]
mov al, byte [edi + 0x5ac1]
test al, al
je 0x1002cf18
sub al, 1
mov byte [edi + 0x5ac1], al
jne 0x1002cf18
mov dword [edi + 0x4694], 0
mov al, byte [edi + 0x5ac0]
test al, al
je 0x1002cf8f
sub al, 1
mov byte [edi + 0x5ac0], al
jne 0x1002cf8f
movaps xmm0, xmmword [0x100f2880]
xor ecx, ecx
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x20], 0x5a7937
movaps xmm0, xmmword [0x100f2320]
movups xmmword [ebp - 0x50], xmm0
movaps xmm0, xmmword [0x100f2870]
movups xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [0x100f23a0]
movups xmmword [ebp - 0x30], xmm0
mov al, byte [ebp - 0x60]
xor byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 0x42
jb 0x1002cf65
lea eax, [ebp - 0x5f]
mov byte [ebp - 0x1d], 0
push eax
call fcn.1003ca90
mov esi, dword [0x10103fe8]
add esp, 4
and dword [edi + 0x5aa0], 0xffffffef
movaps xmm0, xmmword [0x100f21d0]
mov byte [edi + 0x3de5], 1
or dword [esi + 0x46e8], 2
xor ecx, ecx
mov dword [esi + 0x4708], 0x43c80000
mov dword [esi + 0x470c], 0x43c80000
mov dword [esi + 0x46f0], 4
movups xmmword [ebp - 0x18], xmm0
mov al, byte [ebp - 0x18]
xor byte [ebp + ecx - 0x17], al
inc ecx
cmp ecx, 0xe
jb 0x1002cfc8
push 0
xor edx, edx
mov byte [ebp - 9], 0
lea ecx, [ebp - 0x17]
call fcn.10030bc0
xor esi, esi
add esp, 4
cmp dword [edi + 0x5a40], esi
jle 0x1002d018
xor ebx, ebx
mov eax, dword [edi + 0x5a48]
add eax, ebx
cmp dword [eax + 4], 1
jne 0x1002d00c
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a40]
jl 0x1002cff4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10068c51
mov esp, ebp
pop ebp
ret