Function at 0x51d6b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2d8
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [esi + 0x74]
mov edi, dword [eax + 0x26f0]
test edi, edi
je 0x51fb0b
mov cl, byte [eax + 0x158]
mov al, byte [eax + 0x159]
mov byte [esp + 0x5b], al
mov eax, edi
shr eax, 0x16
and eax, 3
mov byte [esp + 0xf], cl
lea ecx, [eax + eax*2]
mov eax, edi
shr eax, 0x14
and eax, 3
add ecx, eax
mov eax, edi
shr eax, 0x12
and eax, 3
add ecx, eax
mov eax, edi
shr eax, 0x10
and eax, 3
add ecx, eax
mov eax, edi
shr eax, 0x18
and eax, 3
lea edx, [ecx + ecx*4]
mov ecx, edi
shr ecx, 4
and ecx, 0xf
lea ecx, [eax + ecx*2]
mov eax, edi
shr eax, 0xc
and eax, 0xf
add ecx, eax
mov eax, edi
and eax, 0xf
shr edi, 8
add ecx, eax
and edi, 0xf
lea eax, [edi + edi*2]
lea ecx, [edx + ecx*2]
add ecx, eax
lea edi, [esi + 0x1f0]
mov eax, ecx
mov dword [esp + 0x20], ecx
shl eax, 4
mov dword [esp + 0xe8], eax
cmp ecx, dword [esi + 0x1f4]
jbe 0x51d793
push dword [edi]
call fcn.005d7dd0
add esp, 4
push 0x10
push dword [esp + 0xec]
call fcn.005d7dea
mov dword [edi], eax
add esp, 8
mov eax, dword [esp + 0x20]
mov dword [esi + 0x1f4], eax
mov eax, dword [esp + 0xe8]
push eax
push 0
push dword [edi]
call fcn.005c3040
mov eax, dword [esi + 0x74]
add esp, 0xc
mov eax, dword [eax + 0x26f0]
mov ecx, eax
and ecx, 0xf
mov dword [esp + 0x34], eax
mov dword [esp + 0xfc], ecx
mov edx, eax
mov ecx, eax
shr edx, 0x14
shr ecx, 4
mov esi, eax
and ecx, 0xf
shr esi, 0x10
mov dword [esp + 0xf4], ecx
and edx, 3
mov ecx, eax
mov dword [esp + 0x24], edx
shr ecx, 8
and esi, 3
and ecx, 0xf
mov dword [esp + 0x30], esi
mov dword [esp + 0xec], ecx
mov ecx, eax
shr ecx, 0xc
and ecx, 0xf
shr dword [esp + 0x34], 0x18
mov dword [esp + 0xcc], ecx
mov ecx, eax
shr eax, 0x16
and eax, 3
shr ecx, 0x12
mov dword [esp + 0x20], eax
and ecx, 3
mov dword [esp + 0x2c], ecx
and dword [esp + 0x34], 3
lea edx, [ecx + eax*2]
mov ecx, dword [esp + 0xf4]
add edx, eax
shl ecx, 2
mov eax, edx
mov dword [esp + 0xf0], ecx
add eax, esi
mov esi, dword [edi]
add eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xfc]
shl eax, 2
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0xec]
shl eax, 2
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xcc]
shl eax, 2
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xf8]
lea edi, [esi + eax*8]
mov eax, ecx
shl eax, 4
add eax, edi
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc0]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
shl eax, 4
mov dword [esp + 0x48], eax
lea edx, [eax + edi]
mov eax, dword [esp + 0x2c]
shl eax, 4
mov dword [esp + 0x54], eax
lea ecx, [eax + edx]
mov eax, dword [esp + 0x34]
shl eax, 4
mov dword [esp + 0x5c], eax
add eax, esi
mov dword [esp + 0x1ec], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x1e8], eax
shl esi, 4
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], edx
mov edx, dword [esp + 0x20]
lea eax, [esi + ecx]
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x1b0], eax
mov eax, edx
shl eax, 4
add eax, ecx
mov dword [esp + 0x1a4], edx
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0xcc]
sub eax, edx
mov dword [esp + 0x1ac], ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x40]
shl esi, 4
shl edx, 6
mov dword [esp + 0x1bc], edi
mov edi, dword [esp + 0x24]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x5c]
add edx, eax
add esi, edx
shl edi, 6
add ecx, esi
mov dword [esp + 0xb0], esi
mov esi, dword [esp + 0x30]
add edi, eax
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x2c]
shl ecx, 6
add ecx, edi
shl esi, 6
add esi, ecx
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x154], ecx
mov ecx, dword [esp + 0x48]
add ecx, edx
mov dword [esp + 0x30], esi
add eax, ecx
mov dword [esp + 0x150], esi
mov esi, dword [esp + 0x28]
add esi, eax
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x108], ecx
mov dword [esp + 0x10c], edx
push 0x517560
mov edx, dword [eax + 0x138]
mov ecx, dword [eax + 0x134]
mov eax, edx
sub eax, ecx
mov dword [esp + 0x15c], edi
sar eax, 2
push eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x108], esi
call fcn.005253a0
xor esi, esi
xor edi, edi
add esp, 8
mov dword [esp + 0x14], esi
cmp byte [esp + 0xf], 0
mov eax, 2
mov ecx, 7
mov dword [esp + 0xdc], esi
mov dword [esp + 0x1c], edi
cmovne eax, ecx
mov dword [esp + 0xe0], edi
mov dword [esp + 0xe4], esi
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x134]
mov edx, dword [ecx + 0x138]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edx
cmp eax, edx
je 0x51eaba
mov esi, eax
mov eax, edx
nop word [eax + eax]
mov esi, dword [esi]
mov dword [esp + 0x14], esi
test byte [esi + 0xb8], 1
je 0x51ea9c
mov ecx, dword [esi + 0x134]
test ecx, ecx
je 0x51da8a
call fcn.00516a20
test al, al
je case.default.0x51daa9
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x40]
call eax
mov edx, eax
movzx eax, byte [esi + 0x1e0]
mov dword [esp + 0x28], edx
cmp eax, 3
ja case.default.0x51daa9
jmp dword [eax*4 + 0x51fb20]
mov eax, dword [esp + 0xfc]
test eax, eax
je case.default.0x51daa9
mov edx, dword [esi + 0x1e4]
dec eax
movss xmm3, dword [esi + 0x204]
movss xmm1, dword [esi + 0x1f0]
movaps xmm0, xmm3
and edx, dword [esp + 0x54]
movss xmm2, dword [esi + 0x1f4]
and edx, 1
mulss xmm0, dword [esi + 0x1ec]
mov edi, dword [esp + 0xf8]
mulss xmm1, xmm3
mov ecx, dword [esp + edx*4 + 0x1e8]
mulss xmm2, xmm3
mov dword [esp + 0xfc], eax
movss dword [ecx], xmm0
movss dword [ecx + 4], xmm1
movss dword [ecx + 8], xmm2
cmp byte [esp + 0xf], 0
mov eax, dword [esi + 0x208]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x28]
movups xmm2, xmmword [eax + 0x30]
mov eax, dword [esp + 0xf8]
movaps xmm1, xmm2
movaps xmm0, xmm2
shufps xmm1, xmm2, 0x55
shufps xmm0, xmm2, 0xaa
unpcklps xmm2, xmm1
movq qword [ecx + eax*4], xmm2
movss dword [esp + 0x298], xmm0
mov eax, dword [esp + 0x298]
mov dword [ecx + edi*4 + 8], eax
mov eax, dword [esi + 0x20c]
mov dword [ecx + edi*4 + 0xc], eax
lea eax, [ecx + 0x10]
mov dword [esp + edx*4 + 0x1e8], eax
je case.default.0x51daa9
test byte [esi + 0x1e4], 1
je case.default.0x51daa9
mov eax, dword [esp + 0x34]
test eax, eax
je case.default.0x51daa9
dec eax
mov dword [esp + 0x248], 0
mov ecx, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x24c], 0
mov dword [esp + 0x200], esi
call fcn.00598380
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x244], eax
mov dword [esp + 0x254], edi
mov dword [esp + 0x250], 1
call fcn.005983c0
movups xmm0, xmmword [esi + 0x254]
add edi, 0x10
lea ecx, [esp + 0xdc]
movups xmm2, xmmword [esi + 0x274]
movups xmm3, xmmword [esi + 0x284]
movups xmmword [esp + 0x204], xmm0
movups xmm0, xmmword [esi + 0x264]
movups xmmword [esp + 0x224], xmm2
movups xmmword [esp + 0x214], xmm0
movaps xmm0, xmm2
movaps xmm1, xmm3
movups xmmword [esp + 0x234], xmm3
shufps xmm0, xmm2, 0xff
shufps xmm1, xmm3, 0xaa
shufps xmm2, xmm2, 0xaa
movss dword [esi + 0x240], xmm2
movss dword [esi + 0x244], xmm1
movss dword [esi + 0x248], xmm0
shufps xmm3, xmm3, 0xff
movss dword [esi + 0x24c], xmm3
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xb8], edi
movss dword [eax], xmm2
movss dword [eax + 4], xmm1
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm3
add eax, 0x10
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x200]
push eax
call 0x51fb40
mov edi, dword [esp + 0xe0]
jmp 0x51ea94
mov eax, dword [esp + 0xf4]
test eax, eax
je case.default.0x51daa9
mov ecx, dword [esp + 0x14]
dec eax
mov dword [esp + 0xf4], eax
mov eax, dword [esi + 0x1e4]
and eax, dword [esp + 0x54]
movss xmm3, dword [ecx + 0x204]
and eax, 3
movss xmm2, dword [ecx + 0x1f0]
movaps xmm0, xmm3
mulss xmm0, dword [ecx + 0x1ec]
mov dword [esp + 0x48], eax
mov esi, dword [esp + eax*4 + 0x1b0]
movss xmm1, dword [ecx + 0x1f4]
mulss xmm2, xmm3
movss dword [esi], xmm0
mulss xmm3, xmm1
movss dword [esi + 4], xmm2
movss dword [esi + 8], xmm3
mov eax, dword [ecx + 0x208]
mov dword [esi + 0xc], eax
movups xmm2, xmmword [edx + 0x30]
mov edx, dword [esp + 0xf0]
movaps xmm1, xmm2
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
shufps xmm1, xmm2, 0x55
movss dword [esp + 0x268], xmm0
mov eax, dword [esp + 0x268]
unpcklps xmm2, xmm1
movq qword [esi + edx*4], xmm2
mov dword [esi + edx*4 + 8], eax
movss xmm0, dword [ecx + 0x210]
mulss xmm0, dword [0x739854]
cvtps2pd xmm0, xmm0
call fcn.006d3190
mov ecx, dword [esp + 0xf0]
mov eax, dword [esp + 0x28]
cvtsd2ss xmm0, xmm0
movss dword [esi + ecx*4 + 0xc], xmm0
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x14]
movq qword [esi + ecx*8], xmm0
psrldq xmm0, 8
movd dword [esi + ecx*8 + 8], xmm0
movss xmm0, dword [eax + 0x214]
mulss xmm0, dword [0x739854]
cvtps2pd xmm0, xmm0
call fcn.006d3190
cmp byte [esp + 0xf], 0
mov eax, dword [esp + 0xf0]
cvtsd2ss xmm0, xmm0
lea ecx, [eax + eax*2]
movss dword [esi + eax*8 + 0xc], xmm0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x20c]
mov dword [esi + ecx*4], eax
lea eax, [esi + 0x10]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x14]
mov dword [esp + ecx*4 + 0x1b0], eax
je 0x51ddf0
test byte [esi + 0x1e4], 1
je 0x51ddf0
mov cl, 1
jmp 0x51ddf2
xor cl, cl
mov edx, dword [esi + 0x1e4]
mov eax, edx
shr eax, 1
mov byte [esp + 0x3f], cl
and al, 1
je 0x51de0e
mov edi, dword [esi + 0x250]
mov dword [esp + 0x24], edi
test cl, cl
jne 0x51de1a
test al, al
je 0x51e0e0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x51e0dc
dec ecx
mov dword [esp + 0x38], ecx
mov ecx, esi
call fcn.005983c0
movups xmm0, xmmword [esi + 0x254]
mov eax, dword [esi + 0x70]
movups xmm1, xmmword [esi + 0x254]
mov dword [esp + 0x248], 0
movups xmm2, xmmword [esi + 0x264]
movzx eax, byte [eax + 0x158]
movups xmm3, xmmword [esi + 0x274]
dec eax
mov dword [esp + 0x24c], 0
movaps xmmword [esp + 0x160], xmm1
movaps xmmword [esp + 0x170], xmm2
movaps xmmword [esp + 0x180], xmm3
mov dword [esp + 0x250], 0
mov dword [esp + 0x200], esi
movups xmm4, xmmword [esi + 0x284]
movups xmmword [esp + 0x204], xmm0
movaps xmmword [esp + 0x190], xmm4
movups xmm0, xmmword [esi + 0x264]
movups xmmword [esp + 0x214], xmm0
movups xmm0, xmmword [esi + 0x274]
movups xmmword [esp + 0x224], xmm0
movups xmm0, xmmword [esi + 0x284]
movups xmmword [esp + 0x234], xmm0
cmp eax, 3
ja case.0x51dee2.1
jmp dword [eax*4 + 0x51fb30]
mov eax, 0x400
jmp 0x51defc
mov eax, 0x200
jmp 0x51defc
mov eax, 0x100
mov edx, dword [esp + 0x10]
mov dword [esp + 0x244], eax
mov eax, dword [edx + 0x74]
test byte [eax + 0xd0], 1
je 0x51e048
movss xmm0, dword [esp + 0x160]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [esp + 0x170]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [esp + 0x180]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [esp + 0x190]
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [esp + 0x164]
movss dword [esp + 0x80], xmm0
movss xmm0, dword [esp + 0x174]
movss dword [esp + 0x84], xmm0
movss xmm0, dword [esp + 0x184]
movss dword [esp + 0x88], xmm0
movss xmm0, dword [esp + 0x194]
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [esp + 0x168]
movaps xmm1, xmmword [esp + 0x70]
movaps xmm2, xmmword [esp + 0x80]
movss dword [esp + 0x90], xmm0
movss xmm0, dword [esp + 0x178]
movss dword [esp + 0x94], xmm0
movss xmm0, dword [esp + 0x188]
movss dword [esp + 0x98], xmm0
movss xmm0, dword [esp + 0x198]
movss dword [esp + 0x9c], xmm0
movss xmm0, dword [esp + 0x16c]
movaps xmm3, xmmword [esp + 0x90]
movss dword [esp + 0xa0], xmm0
movss xmm0, dword [esp + 0x17c]
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [esp + 0x18c]
movss dword [esp + 0xa8], xmm0
movss xmm0, dword [esp + 0x19c]
movss dword [esp + 0xac], xmm0
movaps xmm4, xmmword [esp + 0xa0]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + edx*4 + 0x150]
mov ecx, dword [esp + edx*4 + 0x100]
mov dword [esp + 0x254], ecx
movups xmmword [eax], xmm1
movups xmmword [eax + 0x10], xmm2
movups xmmword [eax + 0x20], xmm3
movups xmmword [eax + 0x30], xmm4
add eax, 0x40
cmp byte [esp + 0x3f], 0
mov dword [esp + edx*4 + 0x150], eax
lea eax, [ecx + 0x10]
mov dword [esp + edx*4 + 0x100], eax
je 0x51e0c1
lea eax, [esp + 0x200]
push eax
lea ecx, [esp + 0xe0]
call 0x51fb40
mov eax, dword [esp + 0x150]
mov esi, dword [esp + 0x100]
mov edi, dword [esp + 0xe0]
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], esi
jmp 0x51ea94
mov eax, dword [esp + 0x150]
mov esi, dword [esp + 0x100]
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], esi
jmp case.default.0x51daa9
test al, al
jne 0x51e0f7
cmp byte [esp + 0x5b], 0
je case.default.0x51daa9
shr edx, 2
test dl, 1
je case.default.0x51daa9
mov ecx, esi
call fcn.005983c0
jmp case.default.0x51daa9
mov eax, dword [esp + 0xec]
test eax, eax
je case.default.0x51daa9
movss xmm3, dword [esi + 0x204]
dec eax
mov ecx, dword [esp + 0xc0]
movaps xmm0, xmm3
mulss xmm0, dword [esi + 0x1ec]
mov edi, dword [esp + 0xc8]
movss xmm1, dword [esi + 0x1f0]
movss xmm2, dword [esi + 0x1f4]
movss dword [ecx], xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
mov dword [esp + 0xec], eax
mulss xmm3, xmm2
movss dword [ecx + 4], xmm0
movss dword [ecx + 8], xmm3
mov eax, dword [esi + 0x208]
mov dword [ecx + 0xc], eax
movups xmm2, xmmword [edx + 0x30]
mov eax, dword [esp + 0xc8]
movaps xmm1, xmm2
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
shufps xmm1, xmm2, 0x55
movss dword [esp + 0x278], xmm0
unpcklps xmm2, xmm1
movq qword [ecx + eax*4], xmm2
mov eax, dword [esp + 0x278]
mov dword [ecx + edi*4 + 8], eax
mov eax, dword [esi + 0x20c]
mov dword [ecx + edi*4 + 0xc], eax
movups xmm6, xmmword [edx]
movups xmm2, xmmword [edx + 0x10]
movss xmm7, dword [esi + 0x1f8]
movaps xmm0, xmm6
movss xmm4, dword [esi + 0x1fc]
movaps xmm1, xmm2
movups xmm3, xmmword [edx + 0x20]
movups xmm5, xmmword [edx + 0x30]
mulss xmm0, xmm7
mulss xmm1, xmm4
addss xmm1, xmm0
movss xmm0, dword [esi + 0x200]
mulss xmm0, xmm3
addss xmm0, xmm5
addss xmm1, xmm0
movups xmm0, xmmword [edx + 0x10]
shufps xmm2, xmm0, 0x55
movaps xmm0, xmm6
shufps xmm0, xmm6, 0x55
mulss xmm0, xmm7
mulss xmm2, xmm4
movups xmmword [esp + 0x60], xmm1
movss xmm1, dword [esi + 0x200]
addss xmm2, xmm0
movaps xmm0, xmm3
shufps xmm6, xmm6, 0xaa
shufps xmm0, xmm3, 0x55
mulss xmm1, xmm0
movaps xmm0, xmm5
shufps xmm0, xmm5, 0x55
shufps xmm3, xmm3, 0xaa
addss xmm1, xmm0
mulss xmm6, xmm7
movss xmm0, dword [edx + 0x18]
mov edx, edi
mulss xmm0, xmm4
addss xmm2, xmm1
shufps xmm5, xmm5, 0xaa
movss xmm1, dword [esi + 0x200]
mulss xmm1, xmm3
addss xmm0, xmm6
mov dword [ecx + edx*8 + 0xc], 0
addss xmm1, xmm5
addss xmm0, xmm1
movss dword [esp + 0x288], xmm0
movups xmm0, xmmword [esp + 0x60]
mov eax, dword [esp + 0x288]
unpcklps xmm0, xmm2
movq qword [ecx + edx*8], xmm0
mov dword [ecx + edx*8 + 8], eax
add ecx, 0x10
mov dword [esp + 0xc0], ecx
jmp case.default.0x51daa9
mov eax, dword [esp + 0xcc]
test eax, eax
je case.default.0x51daa9
dec eax
cmp byte [esp + 0xf], 0
mov dword [esp + 0xcc], eax
je 0x51e2cc
test byte [esi + 0x1e4], 1
je 0x51e2cc
mov eax, 1
jmp 0x51e2ce
xor eax, eax
movss xmm3, dword [esi + 0x204]
and eax, dword [esp + 0x54]
movaps xmm0, xmm3
mulss xmm0, dword [esi + 0x1ec]
shl eax, 2
movss xmm1, dword [esi + 0x1f0]
movss xmm2, dword [esi + 0x1f4]
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + eax + 0x1a8]
dec dword [esp + eax + 0x1a0]
mulss xmm1, xmm3
mov dword [esp + 0x20], eax
mulss xmm2, xmm3
xorps xmm3, xmm3
mov eax, dword [esp + 0x40]
movss dword [ecx], xmm0
movss dword [ecx + 4], xmm1
xorps xmm1, xmm1
movss dword [ecx + 8], xmm2
cmp byte [esp + 0xf], 0
mov dword [ecx + 0xc], 0x3f800000
movups xmm2, xmmword [edx]
movaps xmm0, xmm2
subss xmm3, xmm2
shufps xmm0, xmm2, 0x55
subss xmm1, xmm0
shufps xmm2, xmm2, 0xaa
xorps xmm0, xmm0
subss xmm0, xmm2
unpcklps xmm3, xmm1
movq qword [ecx + eax*4], xmm3
movss dword [esp + 0x1c8], xmm0
mov eax, dword [esp + 0x1c8]
mov dword [ecx + edi*4 + 8], eax
mov eax, edi
mov edi, dword [esp + 0x1c]
mov dword [ecx + eax*4 + 0xc], 0
lea eax, [ecx + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [esp + ecx + 0x1a8], eax
je case.default.0x51daa9
test byte [esi + 0x1e4], 1
je case.default.0x51daa9
mov eax, dword [esp + 0x38]
test eax, eax
je case.default.0x51daa9
dec eax
mov ecx, esi
mov dword [esp + 0x38], eax
call fcn.00598380
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x110]
mov eax, 3
nop word [eax + eax]
mov dword [ecx], 0x41200000
lea ecx, [ecx + 8]
mov dword [ecx - 4], 0x42c80000
sub eax, 1
jne 0x51e3d0
movss xmm0, dword [esi + 0x220]
movss dword [esp + 0x110], xmm0
movss xmm0, dword [esi + 0x224]
movaps xmm1, xmm0
movss dword [esp + 0x118], xmm0
movss xmm0, dword [esi + 0x228]
mulss xmm1, dword [0x7399a4]
movss dword [esp + 0x120], xmm0
mulss xmm0, dword [0x739924]
movss dword [esp + 0x114], xmm1
movss dword [esp + 0x11c], xmm1
comiss xmm0, xmm1
ja 0x51e445
movaps xmm0, xmm1
xor eax, eax
movss dword [esp + 0x124], xmm0
mov dword [esp + 0x20], eax
movss xmm0, dword [esp + eax*8 + 0x110]
movups xmm3, xmmword [edx]
movss dword [esp + 0xd0], xmm0
mulss xmm0, dword [0x7398c0]
movaps xmm1, xmm3
shufps xmm1, xmm3, 0xaa
movaps xmm2, xmm3
shufps xmm2, xmm3, 0xff
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + eax*8 + 0x114]
mulss xmm0, dword [0x7398c0]
mulss xmm2, xmm2
movss dword [esp + 0x50], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [esp + 0x1f0], xmm1
movups xmmword [esp + 0x80], xmm0
movups xmm0, xmmword [edx + 0x20]
movaps xmmword [esp + 0x70], xmm3
movups xmmword [esp + 0x90], xmm0
movups xmm0, xmmword [edx + 0x30]
movups xmmword [esp + 0xa0], xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
addss xmm2, xmm0
movaps xmm0, xmm3
shufps xmm0, xmm3, 0x55
movaps xmm1, xmm0
mulss xmm1, xmm0
movups xmmword [esp + 0x60], xmm0
movaps xmm0, xmm3
mulss xmm0, xmm3
addss xmm1, xmm0
xorps xmm0, xmm0
addss xmm2, xmm1
xorps xmm1, xmm1
cvtss2sd xmm0, xmm2
ucomisd xmm1, xmm0
ja 0x51e514
sqrtsd xmm0, xmm0
jmp 0x51e519
call fcn.006d5e50
movss xmm1, dword [0x739900]
cvtsd2ss xmm0, xmm0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov ecx, dword [edx + 0x74]
divss xmm1, xmm0
movups xmm3, xmmword [eax]
mov eax, dword [ecx + 0x114]
movups xmm2, xmmword [esp + 0x60]
mov dword [esp + 0x148], eax
movq xmm0, qword [ecx + 0x10c]
movups xmm4, xmmword [esp + 0x1f0]
mov eax, dword [edx + 0x78]
movss xmm5, dword [esp + 0x148]
mulss xmm2, xmm1
shr eax, 3
movq qword [esp + 0x140], xmm0
movss xmm6, dword [esp + 0x140]
movss xmm7, dword [esp + 0x144]
mulss xmm3, xmm1
movaps xmm0, xmm7
mulss xmm4, xmm1
movaps xmm1, xmm6
mulss xmm0, xmm2
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm5
mulss xmm0, xmm4
addss xmm1, xmm0
movss xmm0, dword [esp + 0x5c]
mulss xmm3, xmm1
mulss xmm2, xmm1
mulss xmm4, xmm1
mulss xmm3, dword [0x7398c0]
mulss xmm2, dword [0x7398c0]
mulss xmm4, dword [0x7398c0]
subss xmm6, xmm3
subss xmm7, xmm2
subss xmm5, xmm4
mulss xmm6, xmm0
mulss xmm7, xmm0
mulss xmm5, xmm0
addss xmm6, dword [ecx + 0x18]
addss xmm7, dword [ecx + 0x1c]
addss xmm5, dword [ecx + 0x20]
movss dword [esp + 0x48], xmm6
movss dword [esp + 0x14], xmm7
movss dword [esp + 0x1c], xmm5
test al, 1
je 0x51e61c
xorps xmm5, xmm5
movss dword [esp + 0x1c], xmm5
movd xmm1, dword [esp + 0x44]
movss xmm0, dword [esp + 0xd0]
cvtdq2ps xmm1, xmm1
mulss xmm5, dword [esp + 0x88]
divss xmm0, xmm1
movss xmm1, dword [esp + 0x84]
cvtps2pd xmm0, xmm0
mulss xmm1, xmm7
movsd qword [esp + 0xd0], xmm0
movss xmm0, dword [esp + 0x80]
mulss xmm0, xmm6
addss xmm1, xmm0
addss xmm1, xmm5
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x1f0], xmm0
fld qword [esp + 0x1f0]
fld qword [esp + 0xd0]
call fcn.006d4b20
movss xmm0, dword [esp + 0x90]
mulss xmm0, dword [esp + 0x48]
movss xmm1, dword [esp + 0x94]
mulss xmm1, dword [esp + 0x14]
fstp qword [esp + 0x60]
addss xmm1, xmm0
movss xmm0, dword [esp + 0x1c]
mulss xmm0, dword [esp + 0x98]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x1f0], xmm0
fld qword [esp + 0x1f0]
fld qword [esp + 0xd0]
call fcn.006d4b20
movsd xmm2, qword [esp + 0x60]
lea ecx, [esp + 0x70]
movss xmm0, dword [esp + 0x88]
movss xmm3, dword [esp + 0x1c]
cvtpd2ps xmm2, xmm2
movss xmm4, dword [esp + 0x48]
mulss xmm0, xmm2
fstp qword [esp + 0x1f0]
movsd xmm1, qword [esp + 0x1f0]
subss xmm3, xmm0
movss xmm0, dword [esp + 0x98]
cvtpd2ps xmm1, xmm1
mulss xmm0, xmm1
subss xmm3, xmm0
movss xmm0, dword [esp + 0x80]
mulss xmm0, xmm2
subss xmm4, xmm0
movss dword [esp + 0xa8], xmm3
movss xmm0, dword [esp + 0x90]
mulss xmm0, xmm1
subss xmm4, xmm0
movss xmm0, dword [esp + 0x84]
mulss xmm0, xmm2
movss xmm2, dword [esp + 0x14]
subss xmm2, xmm0
movss dword [esp + 0xa0], xmm4
movss xmm0, dword [esp + 0x94]
mulss xmm0, xmm1
subss xmm2, xmm0
movss dword [esp + 0xa4], xmm2
call fcn.00516090
mov edx, dword [esp + 0x10]
sub esp, 0x18
movss xmm1, dword [esp + 0x74]
movss xmm2, dword [esp + 0x68]
movaps xmm0, xmm1
xorps xmm0, xmmword [0x739fa0]
mov eax, dword [edx + 0x74]
lea edx, [esp + 0x2b8]
movss dword [esp + 0x14], xmm2
xorps xmm2, xmmword [0x739fa0]
movss dword [esp + 0x10], xmm2
mov ecx, dword [eax + 0x28dc]
movss dword [esp + 0xc], xmm1
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm1
mov eax, dword [ecx]
movss dword [esp], xmm0
push edx
call dword [eax + 0xc]
lea eax, [esp + 0x70]
push eax
lea edx, [esp + 0x2a4]
lea ecx, [esp + 0x164]
call fcn.00449900
mov ecx, dword [esp + 0x14]
add esp, 4
mov eax, dword [esp + 0x44]
movaps xmm0, xmmword [esp + 0x160]
movaps xmm1, xmmword [esp + 0x170]
movaps xmm2, xmmword [esp + 0x180]
movaps xmm3, xmmword [esp + 0x190]
mov dword [esp + 0x244], eax
mov eax, dword [ecx + 0x74]
mov dword [esp + 0x248], 0
mov dword [esp + 0x24c], 0
mov dword [esp + 0x250], 0
test byte [eax + 0xd0], 1
mov dword [esp + 0x200], esi
movups xmmword [esp + 0x204], xmm0
movups xmmword [esp + 0x214], xmm1
movups xmmword [esp + 0x224], xmm2
movups xmmword [esp + 0x234], xmm3
je 0x51e9ca
movss xmm0, dword [esp + 0x160]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [esp + 0x170]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [esp + 0x180]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [esp + 0x190]
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [esp + 0x164]
movss dword [esp + 0x80], xmm0
movss xmm0, dword [esp + 0x174]
movss dword [esp + 0x84], xmm0
movss xmm0, dword [esp + 0x184]
movss dword [esp + 0x88], xmm0
movss xmm0, dword [esp + 0x194]
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [esp + 0x168]
movaps xmm1, xmmword [esp + 0x80]
movss dword [esp + 0x90], xmm0
movss xmm0, dword [esp + 0x178]
movss dword [esp + 0x94], xmm0
movss xmm0, dword [esp + 0x188]
movss dword [esp + 0x98], xmm0
movss xmm0, dword [esp + 0x198]
movss dword [esp + 0x9c], xmm0
movss xmm0, dword [esp + 0x16c]
movaps xmm2, xmmword [esp + 0x90]
movss dword [esp + 0xa0], xmm0
movss xmm0, dword [esp + 0x17c]
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [esp + 0x18c]
movss dword [esp + 0xa8], xmm0
movss xmm0, dword [esp + 0x19c]
movss dword [esp + 0xac], xmm0
movaps xmm0, xmmword [esp + 0x70]
movaps xmm3, xmmword [esp + 0xa0]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x254], edx
add edx, 0x10
mov dword [esp + 0x4c], edx
movups xmmword [eax], xmm0
mov dword [esp + 0x100], edx
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax + 0x20], xmm2
movups xmmword [eax + 0x30], xmm3
add eax, 0x40
mov dword [esp + 0x30], eax
mov dword [esp + 0x150], eax
cmp edi, dword [esp + 0xe4]
je 0x51ea62
movups xmm0, xmmword [esp + 0x200]
movups xmmword [edi], xmm0
movups xmm0, xmmword [esp + 0x210]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x220]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esp + 0x230]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [esp + 0x240]
movups xmmword [edi + 0x40], xmm0
movq xmm0, qword [esp + 0x250]
movq qword [edi + 0x50], xmm0
add edi, 0x58
mov dword [esp + 0xe0], edi
jmp 0x51ea7e
lea eax, [esp + 0x200]
push eax
push edi
lea ecx, [esp + 0xe4]
call fcn.00525600
mov edi, dword [esp + 0xe0]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 3
jb 0x51e454
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
add esi, 4
mov dword [esp + 0x2c], esi
cmp esi, eax
jne 0x51da60
mov esi, dword [esp + 0xdc]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x40]
xor esi, esi
mov edx, dword [esp + esi + 0x1a0]
test edx, edx
je 0x51eb2a
mov eax, dword [esp + esi + 0x1a8]
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0x3f800000
movq xmm0, qword [esp + 0x140]
mov dword [esp + 0x148], 0
mov ecx, dword [esp + 0x148]
movq qword [eax + edi*4], xmm0
mov dword [eax + edi*4 + 8], ecx
mov dword [eax + edi*4 + 0xc], 0
add eax, 0x10
add edx, 0xffffffff
jne 0x51eb03
mov dword [esp + esi + 0x1a0], edx
mov dword [esp + esi + 0x1a8], eax
add esi, 4
cmp esi, 8
jb 0x51eac0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov eax, dword [ecx + 0x74]
cmp edx, dword [eax + 0x26f4]
je 0x51eb73
mov dword [eax + 0x26f4], edx
mov ecx, dword [ecx + 0x74]
push 1
add ecx, 0x28e0
push str._alias_lightCookie
call fcn.004f41f0
push dword [esp + 0x24]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp esi, edi
je 0x51faac
mov ecx, dword [esp + 0x14]
mov eax, edi
sub eax, esi
mov edx, edi
sar eax, 3
imul esi, eax, 0xba2e8ba3
push 0x5175a0
push esi
call fcn.005257b0
mov edx, dword [esp + 0x18]
add esp, 8
mov eax, dword [edx + 0x28c]
lea ecx, [edx + 0x288]
sub eax, dword [ecx]
sar eax, 1
imul eax, eax, 0xaaaaaaab
mov dword [esp + 0x50], ecx
cmp eax, esi
mov dword [esp + 0x4c], eax
lea eax, [edx + 0x288]
sete cl
mov dword [esp + 0x38], eax
cmp dword [esp + 0x4c], esi
mov esi, dword [esp + 0x14]
mov byte [esp + 0xf], cl
jne 0x51ec43
cmp dword [esp + 0x4c], 0
lea eax, [edx + 0x288]
mov dword [esp + 0x38], eax
jle 0x51ec43
mov edx, dword [esp + 0x50]
lea edi, [esi + 0x44]
xor eax, eax
mov dword [esp + 0x28], eax
nop dword [eax]
test cl, cl
je 0x51ec18
mov ecx, dword [esp + 0x28]
mov eax, dword [edx]
movzx eax, word [ecx + eax]
cmp dword [edi], eax
mov eax, ecx
jne 0x51ec18
mov cl, 1
jmp 0x51ec1a
xor cl, cl
add eax, 6
add edi, 0x58
sub dword [esp + 0x4c], 1
mov dword [esp + 0x28], eax
jne 0x51ec00
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
add edx, 0x288
mov byte [esp + 0xf], cl
mov dword [esp + 0x38], edx
jmp 0x51ec45
mov edx, eax
xor ecx, ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], ecx
cmp byte [esp + 0xf], cl
je 0x51ecd4
mov eax, edi
sub eax, esi
sar eax, 3
imul eax, eax, 0xba2e8ba3
mov dword [esp + 0x20], eax
test eax, eax
jle 0x51f076
add esi, 0x4c
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], esi
nop dword [eax]
mov eax, dword [edx]
mov edi, ecx
add eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
movzx ecx, word [eax + 2]
mov dword [esi - 4], ecx
movzx esi, word [eax + 4]
mov dword [edx], esi
mov edx, dword [edx - 8]
lea eax, [edx + ecx]
cmp dword [esp + 0x34], eax
lea ecx, [edx + esi]
mov esi, dword [esp + 0x24]
cmovae eax, dword [esp + 0x34]
cmp edi, ecx
mov edx, dword [esp + 0x38]
cmovae ecx, edi
mov dword [esp + 0x34], eax
add dword [esp + 0x2c], 6
add esi, 0x58
sub dword [esp + 0x20], 1
mov dword [esp + 0x24], esi
jne 0x51ec80
jmp 0x51f078
mov eax, dword [edx]
cmp eax, dword [edx + 4]
je 0x51ecde
mov dword [edx + 4], eax
xor eax, eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0xb4], eax
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x64]
push 0
mov dword [esp + 0xb8], 0x20000000
call fcn.00525ae0
mov edx, dword [esp + 0x60]
mov eax, edi
sub eax, esi
mov dword [esp + 0x5c], 0
sar eax, 3
imul eax, eax, 0xba2e8ba3
test eax, eax
je 0x51f037
mov eax, dword [esp + 0xb0]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x18], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x40], edx
nop dword [eax]
mov ecx, edi
sub ecx, edx
sar ecx, 3
sub ecx, 1
mov dword [esp + 0x30], ecx
js 0x51f012
movzx eax, word [edx + ecx*8 + 6]
mov esi, eax
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x14]
test ax, ax
jne 0x51ed8a
mov eax, dword [esp + 0x18]
movzx eax, word [eax + esi + 0x44]
mov word [edx + ecx*8 + 6], ax
mov dword [esp + 0x24], eax
movzx esi, word [edx + ecx*8 + 4]
movzx eax, si
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
sub eax, esi
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x14]
movzx eax, ax
mov dword [esp + 0x44], eax
movzx eax, word [edx + ecx*8]
mov dword [esp + 0x2c], eax
movzx eax, ax
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + esi + 0x44]
movzx eax, ax
mov dword [esp + 0x20], eax
mov ax, word [edx + ecx*8 + 2]
mov ecx, dword [esp + 0x18]
sub ax, word [esp + 0x2c]
movzx eax, ax
cmp eax, dword [ecx + esi + 0x44]
mov ecx, dword [esp + 0x30]
jb 0x51ee00
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
movzx eax, ax
cmp eax, dword [ecx + esi + 0x44]
mov ecx, dword [esp + 0x30]
jae 0x51ee8f
mov eax, edi
sub eax, edx
cmp eax, 8
jne 0x51ee76
mov eax, dword [esp + 0x24]
cmp edx, edi
mov word [esp + 0xb4], ax
mov ecx, edx
mov eax, edi
cmove ecx, edi
cmovne eax, edx
mov dword [esp + 0x64], eax
cmp ecx, dword [esp + 0x68]
je 0x51ee4d
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0xb4]
mov dword [ecx], edi
lea edi, [ecx + 8]
mov dword [ecx + 4], eax
xor ecx, ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x30], ecx
jmp 0x51ed64
lea eax, [esp + 0xb0]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.00525ae0
mov edx, dword [esp + 0x60]
xor ecx, ecx
mov edi, dword [esp + 0x64]
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], ecx
jmp 0x51ed64
sub edi, 8
add ecx, 0xffffffff
mov dword [esp + 0x64], edi
mov dword [esp + 0x30], ecx
jns 0x51ed64
jmp 0x51f012
mov eax, dword [esp + 0x20]
mov word [esp + 0xb8], ax
mov eax, dword [esp + 0x2c]
mov word [esp + 0xba], ax
mov eax, dword [esp + 0x54]
mov word [esp + 0xbc], ax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x51eee7
mov esi, dword [esp + 0x20]
mov word [ecx], si
mov esi, dword [esp + 0xd0]
mov word [ecx + 2], si
mov esi, dword [esp + 0x48]
mov word [ecx + 4], si
add dword [eax + 4], 6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
jmp 0x51ef0f
lea edx, [esp + 0xb8]
push edx
push ecx
mov ecx, eax
call fcn.00525c40
movzx eax, word [esp + 0xbc]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x54], eax
mov ax, word [esp + 0xba]
mov ecx, dword [esp + 0x18]
movzx eax, ax
mov dword [ecx + esi + 0x48], eax
mov eax, dword [esp + 0x54]
movzx eax, ax
mov dword [ecx + esi + 0x4c], eax
mov ecx, dword [ecx + esi + 0x44]
mov eax, dword [esp + 0x30]
movzx esi, cx
mov dword [esp + 0xd0], esi
mov esi, dword [esp + 0x34]
movzx edx, word [edx + eax*8]
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x30]
movzx eax, word [eax + esi*8 + 4]
add eax, ecx
mov ecx, dword [esp + 0x28]
cmp ecx, eax
cmovb ecx, eax
mov eax, dword [esp + 0xd0]
add eax, edx
mov dword [esp + 0x28], ecx
cmp word [esp + 0x44], 0
mov edx, dword [esp + 0x40]
movzx ecx, ax
mov dword [esp + 0x20], ecx
mov word [edx + esi*8], ax
jbe 0x51f00e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx ecx, word [ecx + eax + 0x44]
mov eax, dword [esp + 0x20]
sub eax, ecx
mov word [esp + 0xc0], ax
movzx eax, word [edx + esi*8 + 4]
add eax, ecx
mov word [esp + 0xc4], ax
mov eax, dword [esp + 0x20]
mov word [esp + 0xc2], ax
mov ax, word [edx + esi*8 + 6]
mov word [esp + 0xc6], ax
cmp edi, dword [esp + 0x68]
je 0x51eff0
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
mov dword [edi], eax
mov dword [edi + 4], ecx
add edi, 8
mov dword [esp + 0x64], edi
jmp 0x51f00e
lea eax, [esp + 0xc0]
push eax
push edi
lea ecx, [esp + 0x68]
call fcn.00525ae0
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x40], edx
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
sub eax, esi
add dword [esp + 0x18], 0x58
inc ecx
sar eax, 3
imul eax, eax, 0xba2e8ba3
mov dword [esp + 0x5c], ecx
cmp ecx, eax
jb 0x51ed50
test edx, edx
je 0x51f06c
mov ecx, dword [esp + 0x68]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x51f062
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51fb11
push ecx
push edx
call fcn.005ab85c
add esp, 8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
jmp 0x51f078
xor eax, eax
mov edi, dword [esp + 0x10]
mov esi, 2
cmp eax, esi
mov edx, esi
cmova edx, eax
cmp ecx, esi
mov dword [esp + 0x20], edx
cmova esi, ecx
mov ecx, dword [edi + 0x294]
mov dword [esp + 0x24], esi
test ecx, ecx
jne 0x51f190
mov esi, dword [edi + 0x74]
push 0x41
push 0x10000008
push 0x18
mov eax, dword [esi + 0x29d8]
push 0x1a
push str._rt_shadowAtlas
push 1
mov ecx, dword [eax + 0x28dc]
push dword [esp + 0x3c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov ecx, dword [0x7373d0]
movq xmm0, qword [str._rt_shadowAtlas]
mov dx, word [0x7373d4]
mov dword [esp + 0x50], eax
mov al, byte [0x7373d6]
mov byte [esp + 0x1ce], al
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x1cc], ecx
push eax
lea ecx, [esi + 0x29b8]
mov dword [esp + 0x1d8], 0xf
mov dword [esp + 0x1dc], 0xf
movq qword [esp + 0x1c8], xmm0
mov word [esp + 0x1d4], dx
mov byte [esp + 0x1d7], 0
call fcn.0052af50
mov esi, dword [esp + 0x50]
mov eax, dword [eax]
mov dword [eax + 0x20], esi
mov ecx, dword [esp + 0x1d4]
cmp ecx, 0xf
jbe 0x51f188
mov edx, dword [esp + 0x1c0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x51f17e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51fb16
push ecx
push edx
call fcn.005ab85c
add esp, 8
mov dword [edi + 0x294], esi
jmp 0x51f1bd
movzx eax, word [ecx + 0x10]
cmp eax, edx
jb 0x51f1a0
movzx eax, word [ecx + 0x12]
cmp eax, esi
jae 0x51f1a7
push esi
push edx
call fcn.004fd9b0
mov eax, dword [edi + 0x294]
movzx ecx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
push 0x30
lea eax, [esp + 0x114]
push 0
push eax
call fcn.005c3040
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov esi, dword [esp + 0x20]
add esp, 0xc
sub eax, esi
mov dword [esp + 0x28], ecx
sar eax, 3
imul eax, eax, 0xba2e8ba3
mov byte [esp + 0xf], 1
mov dword [esp + 0x44], eax
test eax, eax
jle 0x51faac
mov eax, dword [esp + 0x20]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x739f30]
mov eax, dword [esp + 0x24]
cvtpd2ps xmm4, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
xor edx, edx
mov dword [esp + 0x1c], edx
movss dword [esp + 0x2c], xmm4
addsd xmm0, qword [eax*8 + 0x739f30]
cvtpd2ps xmm5, xmm0
movaps xmm0, xmmword [0x739b30]
movaps xmmword [esp + 0x280], xmm0
movaps xmm0, xmmword [0x739b50]
movaps xmmword [esp + 0x140], xmm0
movaps xmm0, xmmword [0x739ba0]
movaps xmmword [esp + 0x150], xmm0
movaps xmm0, xmmword [0x739b70]
movaps xmmword [esp + 0x1c0], xmm0
movaps xmm0, xmmword [0x739b40]
movss dword [esp + 0x24], xmm5
movaps xmmword [esp + 0x60], xmm0
nop dword [eax]
test byte [edx + esi + 0x50], 1
je 0x51f926
mov ecx, dword [edx + esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
movaps xmm0, xmmword [esp + 0x280]
lea ecx, [esp + 0x2a0]
movss xmm3, dword [0x739fa0]
mov edx, dword [esp + 0x1c]
movups xmm2, xmmword [eax + 0x30]
lea eax, [esp + 0x70]
add edx, 4
movaps xmmword [esp + 0x70], xmm0
add edx, esi
movaps xmm0, xmmword [esp + 0x140]
movaps xmm1, xmm2
movaps xmmword [esp + 0x80], xmm0
movaps xmm0, xmmword [esp + 0x150]
movaps xmmword [esp + 0x90], xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
shufps xmm1, xmm2, 0x55
xorps xmm2, xmm3
xorps xmm1, xmm3
mov dword [esp + 0xac], 0x3f800000
movups xmmword [esp + 0x270], xmm0
push eax
xorps xmm0, xmm3
movaps xmmword [esp + 0x294], xmm2
movups xmmword [esp + 0x264], xmm1
movss dword [esp + 0xa4], xmm2
movss dword [esp + 0xa8], xmm1
movss dword [esp + 0xac], xmm0
call fcn.00449900
add esp, 4
lea ecx, [esp + 0x2a0]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmm2, xmmword [eax + 0x20]
movups xmm3, xmmword [eax + 0x30]
mov eax, dword [edi + 0x74]
movups xmmword [eax + 0xb70], xmm0
movss xmm0, dword [esp + 0x70]
movups xmmword [eax + 0xb80], xmm1
movss xmm1, dword [0x739fa0]
xorps xmm0, xmm1
movss dword [esp + 0x70], xmm0
movss xmm0, dword [esp + 0x98]
xorps xmm0, xmm1
movss dword [esp + 0x98], xmm0
movss xmm0, dword [esp + 0xa0]
xorps xmm0, xmm1
movups xmmword [eax + 0xb90], xmm2
movss dword [esp + 0xa0], xmm0
movss xmm0, dword [esp + 0xa8]
movups xmmword [eax + 0xba0], xmm3
lea eax, [esp + 0x70]
xorps xmm0, xmm1
push eax
movss dword [esp + 0xac], xmm0
call fcn.00449900
add esp, 4
mov dword [esp + 0x19c], 0x3f800000
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmm2, xmmword [eax + 0x20]
movups xmm3, xmmword [eax + 0x30]
mov eax, dword [edi + 0x74]
movups xmmword [eax + 0xb30], xmm0
movaps xmm0, xmmword [esp + 0x290]
movss dword [esp + 0x190], xmm0
movups xmm0, xmmword [esp + 0x270]
movups xmmword [eax + 0xb40], xmm1
movss dword [esp + 0x194], xmm0
movups xmm0, xmmword [esp + 0x260]
movups xmmword [eax + 0xb50], xmm2
movss dword [esp + 0x198], xmm0
movaps xmm0, xmmword [esp + 0x280]
movaps xmmword [esp + 0x70], xmm0
movaps xmm0, xmmword [esp + 0x150]
movups xmmword [eax + 0xb60], xmm3
movaps xmmword [esp + 0x80], xmm0
movaps xmm0, xmmword [esp + 0x1c0]
lea eax, [esp + 0x70]
movaps xmmword [esp + 0x90], xmm0
lea ecx, [esp + 0x2a0]
movaps xmm0, xmmword [esp + 0x190]
push eax
movaps xmmword [esp + 0xa4], xmm0
call fcn.00449900
add esp, 4
lea ecx, [esp + 0x2a0]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmm2, xmmword [eax + 0x20]
movups xmm3, xmmword [eax + 0x30]
mov eax, dword [edi + 0x74]
movups xmmword [eax + 0xaf0], xmm0
movss xmm0, dword [esp + 0x88]
movups xmmword [eax + 0xb00], xmm1
movss xmm1, dword [0x739fa0]
xorps xmm0, xmm1
movss dword [esp + 0x88], xmm0
movss xmm0, dword [esp + 0x94]
xorps xmm0, xmm1
movss dword [esp + 0x94], xmm0
movss xmm0, dword [esp + 0xa4]
xorps xmm0, xmm1
movups xmmword [eax + 0xb10], xmm2
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [esp + 0xa8]
movups xmmword [eax + 0xb20], xmm3
lea eax, [esp + 0x70]
xorps xmm0, xmm1
push eax
movss dword [esp + 0xac], xmm0
call fcn.00449900
add esp, 4
mov dword [esp + 0x19c], 0x3f800000
lea ecx, [esp + 0x2a0]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmm2, xmmword [eax + 0x20]
movups xmm3, xmmword [eax + 0x30]
mov eax, dword [edi + 0x74]
movups xmmword [eax + 0xab0], xmm0
movups xmm0, xmmword [esp + 0x270]
movups xmmword [eax + 0xac0], xmm1
movss dword [esp + 0x190], xmm0
movups xmm0, xmmword [esp + 0x260]
movups xmmword [eax + 0xad0], xmm2
movss dword [esp + 0x194], xmm0
movaps xmm0, xmmword [esp + 0x290]
movss dword [esp + 0x198], xmm0
movaps xmm0, xmmword [esp + 0x150]
movaps xmmword [esp + 0x70], xmm0
movaps xmm0, xmmword [esp + 0x140]
movaps xmmword [esp + 0x80], xmm0
movaps xmm0, xmmword [esp + 0x60]
movups xmmword [eax + 0xae0], xmm3
lea eax, [esp + 0x70]
movaps xmmword [esp + 0x90], xmm0
movaps xmm0, xmmword [esp + 0x190]
push eax
movaps xmmword [esp + 0xa4], xmm0
call fcn.00449900
add esp, 4
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmm2, xmmword [eax + 0x20]
movups xmm3, xmmword [eax + 0x30]
mov eax, dword [edi + 0x74]
movups xmmword [eax + 0xa70], xmm0
movss xmm0, dword [esp + 0x78]
movups xmmword [eax + 0xa80], xmm1
movss xmm1, dword [0x739fa0]
xorps xmm0, xmm1
movss dword [esp + 0x78], xmm0
movss xmm0, dword [esp + 0x90]
xorps xmm0, xmm1
movups xmmword [eax + 0xa90], xmm2
movups xmmword [eax + 0xaa0], xmm3
movss dword [esp + 0x90], xmm0
movss xmm0, dword [esp + 0xa8]
lea eax, [esp + 0x70]
xorps xmm0, xmm1
lea ecx, [esp + 0x2a0]
movss dword [esp + 0xa8], xmm0
movss xmm0, dword [esp + 0xa0]
xorps xmm0, xmm1
push eax
movss dword [esp + 0xa4], xmm0
call fcn.00449900
mov edx, dword [esp + 0x20]
add esp, 4
lea ecx, [edx + esi]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmm2, xmmword [eax + 0x20]
movups xmm3, xmmword [eax + 0x30]
mov eax, dword [edi + 0x74]
movups xmmword [eax + 0xa30], xmm0
movups xmmword [eax + 0xa40], xmm1
movups xmmword [eax + 0xa50], xmm2
movups xmmword [eax + 0xa60], xmm3
mov eax, dword [edx + esi + 0x48]
movd xmm0, eax
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x739f30]
mov eax, dword [edx + esi + 0x4c]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
divss xmm3, dword [esp + 0x2c]
addsd xmm0, qword [eax*8 + 0x739f30]
mov eax, dword [ecx + 0x44]
movss dword [esp + 0x1b0], xmm3
cvtpd2ps xmm2, xmm0
movd xmm0, eax
divss xmm2, dword [esp + 0x24]
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
movss dword [esp + 0x1b4], xmm2
addsd xmm0, qword [eax*8 + 0x739f30]
mov eax, dword [edx + esi + 0x54]
cvtpd2ps xmm1, xmm0
movaps xmm0, xmm1
divss xmm0, dword [esp + 0x2c]
divss xmm1, dword [esp + 0x24]
movss dword [esp + 0x1b8], xmm0
movss dword [esp + 0x1bc], xmm1
movss dword [eax], xmm3
movss dword [eax + 4], xmm2
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edx + esi]
movups xmm0, xmmword [esp + 0x1b0]
movups xmmword [eax + 0x230], xmm0
movzx eax, word [edx + esi + 0x48]
mov word [esp + 0x110], ax
movzx eax, word [edx + esi + 0x4c]
mov word [esp + 0x112], ax
mov eax, dword [ecx + 0x44]
shr eax, 1
movzx esi, ax
mov eax, 0xaaaaaaab
mov word [esp + 0x114], si
mov edi, esi
mul dword [ecx + 0x44]
mov eax, dword [esp + 0x14]
shr edx, 1
movzx edx, dx
mov ecx, edx
mov word [esp + 0x116], dx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x11c], si
mov word [esp + 0x11e], dx
mov dword [esp + 0x50], edi
movzx eax, word [ecx + eax + 0x48]
add ax, di
mov word [esp + 0x118], ax
mov eax, dword [esp + 0x14]
movzx eax, word [ecx + eax + 0x4c]
mov word [esp + 0x11a], ax
mov eax, dword [esp + 0x14]
mov word [esp + 0x124], di
mov word [esp + 0x126], dx
movzx eax, word [ecx + eax + 0x48]
mov word [esp + 0x120], ax
mov eax, dword [esp + 0x14]
movzx eax, word [ecx + eax + 0x4c]
mov ecx, edx
add ax, cx
mov word [esp + 0x12c], si
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x122], ax
mov eax, dword [esp + 0x14]
mov word [esp + 0x12e], dx
movzx eax, word [ecx + eax + 0x48]
add ax, di
mov edi, dword [esp + 0x1c]
mov word [esp + 0x128], ax
mov eax, dword [esp + 0x14]
movzx eax, word [ecx + eax + 0x4c]
mov ecx, edx
add ax, cx
mov word [esp + 0x134], si
mov word [esp + 0x12a], ax
add ecx, ecx
mov eax, dword [esp + 0x14]
mov word [esp + 0x136], dx
movzx eax, word [edi + eax + 0x48]
mov word [esp + 0x130], ax
mov eax, dword [esp + 0x14]
movzx eax, word [edi + eax + 0x4c]
add ax, cx
mov word [esp + 0x13c], si
mov esi, dword [esp + 0x14]
mov word [esp + 0x13e], dx
mov edx, edi
mov edi, dword [esp + 0x50]
mov word [esp + 0x132], ax
movzx eax, word [edx + esi + 0x48]
add ax, di
mov edi, dword [esp + 0x10]
mov word [esp + 0x138], ax
movzx eax, word [edx + esi + 0x4c]
add ax, cx
mov ecx, edi
mov word [esp + 0x13a], ax
lea eax, [esp + 0xf]
push eax
push 6
lea eax, [esp + 0x118]
push eax
call fcn.0051fba0
movss xmm4, dword [esp + 0x2c]
movss xmm5, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
jmp 0x51fa81
cmp ecx, 6
jne 0x51f956
lea eax, [esp + 0xf]
push eax
push ecx
lea eax, [esp + 0x118]
mov ecx, edi
push eax
call fcn.0051fba0
movss xmm4, dword [esp + 0x2c]
xor ecx, ecx
movss xmm5, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov eax, dword [edx + esi + 0x48]
shl ecx, 6
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x739f30]
mov eax, dword [edx + esi + 0x4c]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
divss xmm3, xmm4
addsd xmm0, qword [eax*8 + 0x739f30]
mov eax, dword [edx + esi + 0x44]
movss dword [esp + 0x100], xmm3
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
divss xmm2, xmm5
addsd xmm0, qword [eax*8 + 0x739f30]
mov eax, dword [edx + esi + 0x54]
movss dword [esp + 0x104], xmm2
cvtpd2ps xmm1, xmm0
movaps xmm0, xmm1
divss xmm0, xmm4
divss xmm1, xmm5
movss dword [esp + 0x108], xmm0
movss dword [esp + 0x10c], xmm1
movss dword [eax], xmm3
movss dword [eax + 4], xmm2
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edx + esi]
movups xmm0, xmmword [esp + 0x100]
movups xmmword [eax + 0x230], xmm0
mov eax, dword [edi + 0x74]
movups xmm0, xmmword [edx + esi + 4]
movups xmmword [ecx + eax + 0xa30], xmm0
movups xmm0, xmmword [edx + esi + 0x14]
movups xmmword [ecx + eax + 0xa40], xmm0
movups xmm0, xmmword [edx + esi + 0x24]
movups xmmword [ecx + eax + 0xa50], xmm0
movups xmm0, xmmword [edx + esi + 0x34]
movups xmmword [ecx + eax + 0xa60], xmm0
mov ecx, dword [esp + 0x28]
movzx eax, word [edx + esi + 0x48]
mov word [esp + ecx*8 + 0x110], ax
movzx eax, word [edx + esi + 0x4c]
mov word [esp + ecx*8 + 0x112], ax
movzx eax, word [edx + esi + 0x44]
mov word [esp + ecx*8 + 0x114], ax
movzx eax, word [edx + esi + 0x44]
mov word [esp + ecx*8 + 0x116], ax
inc ecx
mov dword [esp + 0x28], ecx
add edx, 0x58
sub dword [esp + 0x44], 1
mov dword [esp + 0x1c], edx
jne 0x51f290
test ecx, ecx
jle 0x51faac
lea eax, [esp + 0xf]
push eax
push ecx
lea eax, [esp + 0x118]
mov ecx, edi
push eax
call fcn.0051fba0
mov edx, dword [esp + 0x10]
push dword [esp + 0xe8]
mov eax, dword [edx + 0x74]
push dword [edx + 0x1f0]
mov ecx, dword [eax + 0x28dc]
mov eax, dword [ecx]
call dword [eax + 0x88]
test esi, esi
je 0x51fb0b
mov eax, dword [esp + 0xe4]
sub eax, esi
sar eax, 3
imul eax, eax, 0xba2e8ba3
imul ecx, eax, 0x58
mov eax, esi
cmp ecx, 0x1000
jb 0x51fb01
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51fb1b
push ecx
push esi
call fcn.005ab85c
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.005c695f
call fcn.005c695f
call fcn.005c695f
mov al, 0xda
push ecx
add byte [ebx + 0x30051dc], ah
loope 0x51fb7c
add byte [esi - 0x8ffae1e], bl
ficom word [ecx]
neg esi
push ecx
add al, dh
ficom word [ecx]
jmp 0x55524d1f
movq qword [edx + 0x50], xmm0
mov eax, dword [esi + 4]
lea ecx, [eax + 0x58]
mov dword [esi + 4], ecx
pop esi
pop ebp
ret 4