Function at 0x518ce0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xf4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov byte [esi + 4], 1
cmp byte [edi + 0x75], 0
mov dword [esp + 0xbc], edi
jne 0x51ffe0
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
call edx
mov ecx, edi
call fcn.0050a110
test al, al
je 0x518d6a
fld qword [ebp + 0x24]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
sub esp, 8
fstp qword [esp]
push eax
fld dword [ebp + 0x30]
mov eax, dword [ebp + 0x18]
sub esp, 8
fstp dword [esp + 4]
fld dword [ebp + 0x2c]
fstp dword [esp]
push ecx
fld dword [ebp + 0x10]
mov ecx, dword [edi + 0x6c]
push edx
mov edx, dword [ecx + 0x30]
push eax
sub esp, 8
fstp dword [esp + 4]
fld dword [ebp + 0xc]
fstp dword [esp]
push esi
push edx
call fcn.00506ba0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
cmp byte [edi + 0x79], 0
jne 0x51ffa1
cmp byte [edi + 0x52], 0
jne 0x51ffa1
cmp byte [edi + 0x51], 0
je 0x518d8e
cmp byte [edi + 0x77], 0
je 0x51ffa1
mov eax, dword [edi + 0x6c]
cmp byte [eax + 0x38], 0
jne 0x51ffa1
fldz
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
fst qword [esp + 0xd8]
fst qword [esp + 0xe0]
sub esp, 0x10
fst qword [esp + 0xf8]
lea ecx, [esp + 0xe8]
fstp qword [esp + 0x100]
lea eax, [ebp + 0x10]
fld qword [ebp + 0x24]
fstp qword [esp + 8]
fld dword [ebp + 0x30]
fstp dword [esp + 4]
fld dword [ebp + 0x2c]
fstp dword [esp]
push ecx
push edx
lea ecx, [ebp + 0xc]
call fcn.00534320
test al, al
je 0x51ffe0
push 0
push 0x6b7164
push 0x6b712c
push 0
push esi
call fcn.006254cb
add esp, 0x14
push 0
push 0x6b7148
push 0x6b712c
push 0
push esi
mov ebx, eax
call fcn.006254cb
add esp, 0x14
test ebx, ebx
je 0x51ff17
mov eax, dword [ebx]
mov edx, dword [eax + 0x68]
mov ecx, ebx
call edx
cmp dword [ebp + 0x20], 0
mov ecx, ebx
jne 0x51e468
mov edi, dword [ebx + 0x48]
call fcn.00527e40
test edi, edi
jne 0x51b840
mov edi, eax
mov eax, dword [ebp + 0x14]
imul edi, dword [eax + 4]
add edi, dword [eax]
mov eax, dword [ebx]
mov edx, dword [eax + 0x7c]
add edi, edi
add edi, edi
call edx
add eax, edi
fld qword [ebp + 0x24]
mov dword [esp + 0x80], eax
call fcn.00629ff0
fstp qword [esp + 0xc8]
fld qword [ebp + 0x24]
call fcn.0062a160
fst qword [esp + 0xc0]
fld qword [esp + 0xc8]
fld qword [0x686db8]
fmul st(1), st(0)
fxch st(1)
call fcn.0062a660
fmulp st(1)
mov edi, eax
mov dword [esp + 0x94], edi
call fcn.0062a660
mov ecx, dword [esp + 0xbc]
mov ebx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xbc]
mov dword [esp + 0x70], ebx
call edx
test al, al
je 0x51ffe0
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx + 0x6c]
mov edx, dword [eax + 0x20]
mov dword [esp + 0xa4], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x84], edx
mov edx, dword [eax + 0x28]
mov dword [esp + 0xd4], edx
mov edx, 0x20
sub edx, dword [eax + 0x14]
mov dword [esp + 0xd0], edx
mov edx, 0x18
sub edx, dword [eax + 0x18]
mov dword [esp + 0x98], edx
mov edx, 0x10
sub edx, dword [eax + 0x1c]
mov eax, dword [ecx + 0xd4]
cmp eax, 0x10
mov dword [esp + 0xb8], edx
mov edx, dword [ecx + 0xd8]
mov dword [esp + 0x34], edx
mov edx, dword [ecx + 0xdc]
mov ecx, dword [ecx + 0xe0]
mov dword [esp + 0xac], edx
mov dword [esp + 0x40], ecx
jne 0x51a8e0
fld qword [esp + 0xe0]
call fcn.0062a660
fld qword [esp + 0xd8]
mov dword [esp + 0x3c], eax
call fcn.0062a660
mov edx, dword [esp + 0xbc]
mov ecx, dword [edx + 0x90]
mov dword [esp + 0x64], eax
mov eax, ecx
imul eax, dword [esp + 0x3c]
cdq
sub eax, edx
mov edx, dword [esp + 0xbc]
mov edx, dword [edx + 0xa4]
sar eax, 1
add eax, dword [esp + 0x64]
lea eax, [edx + eax*2]
mov dword [esp + 0x50], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 0x1c]
call fcn.00502ac0
test al, al
fld qword [esp + 0xf0]
fcomp qword [0x6867e8]
je 0x51a386
cmp byte [0x6b9d7f], 0
je 0x519e91
mov eax, dword [esp + 0xac]
cmp eax, 0x7e0
jne 0x5194c0
fnstsw ax
mov dword [esp + 0xa4], 0
test ah, 0x41
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x90]
fld dword [esp + 0x90]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov ecx, dword [esp + 0x8c]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
lea edx, [ecx + ecx]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x98], eax
fild dword [esp + 0x98]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0x90]
fld dword [esp + 0x90]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x30], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], edx
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp edi, 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], edx
jg 0x51910f
test eax, eax
jl 0x519487
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x27fff
cdq
idiv edi
test eax, eax
jl 0x5190f7
mov dword [esp + 0x2c], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x30]
cdq
idiv edi
cmp eax, dword [esp + 0x40]
jge 0x519180
mov dword [esp + 0x40], eax
jmp 0x519180
cmp edi, 1
jl 0x51915c
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
add edx, 0xffffffff
cmp eax, edx
jge 0x519487
mov eax, 0x10000
sub eax, dword [esp + 0x30]
cdq
idiv edi
test eax, eax
jle 0x51913d
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x17fff
cdq
idiv edi
cmp eax, dword [esp + 0x40]
jge 0x519180
mov dword [esp + 0x40], eax
jmp 0x519180
cmp dword [esp + 0x30], 0
jl 0x519487
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp dword [esp + 0x30], edx
jge 0x519487
cmp ebx, 0xffffffff
jg 0x5191c0
cmp dword [esp + 0x44], 0
jl 0x519487
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jle 0x5191ad
mov dword [esp + 0x2c], eax
mov eax, ecx
cdq
idiv ebx
neg eax
cmp eax, dword [esp + 0x40]
jge 0x51922c
mov dword [esp + 0x40], eax
jmp 0x51922c
cmp ebx, 1
jl 0x51920d
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x3c], eax
add eax, 0xffffffff
cmp dword [esp + 0x44], eax
jge 0x519487
mov eax, 0x10000
sub eax, ecx
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jle 0x5191f0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, dword [esp + 0x40]
jge 0x51922c
mov dword [esp + 0x40], eax
jmp 0x51922c
test ecx, ecx
jl 0x519487
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
shl edx, 0x10
sub edx, 0x10000
cmp ecx, edx
jge 0x519487
mov eax, dword [esp + 0x2c]
imul eax, edi
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
mov edx, eax
imul edx, ebx
add ecx, edx
cmp eax, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
lea edx, [edx + eax*2]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x90], edx
jg 0x519487
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x2c]
add eax, 1
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x30]
mov eax, ecx
sar eax, 0x10
imul eax, dword [esp + 0x90]
mov edi, edx
sar edi, 0x10
add eax, edi
mov edi, dword [esp + 0x80]
mov ebx, dword [edi + eax*4]
lea edi, [edi + eax*4]
mov eax, ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x24]
lea edi, [edi + ecx*4]
mov ecx, dword [edi]
and eax, 0xfffe
add eax, 1
and edx, 0xfffe
add edx, 1
mov dword [esp + 0x44], edx
mov dword [esp + 0x5c], ecx
mov ecx, dword [edi + 4]
mov edi, 0x10000
sub edi, edx
mov edx, edi
imul edi, eax
mov esi, 0x10000
sub esi, eax
imul eax, dword [esp + 0x44]
imul edx, esi
imul esi, dword [esp + 0x44]
shr esi, 0x10
mov dword [esp + 0x4c], ebx
shr ebx, 0x18
shr edx, 0x10
imul edx, ebx
mov ebx, dword [esp + 0x48]
shr ebx, 0x18
imul esi, ebx
mov ebx, dword [esp + 0x5c]
shr esi, 0x10
mov dword [esp + 0x54], esi
shr edi, 0x10
mov esi, ebx
shr esi, 0x18
imul edi, esi
shr eax, 0x10
mov esi, ecx
shr esi, 0x18
imul eax, esi
shr eax, 0x10
mov esi, eax
mov dword [esp + 0x74], esi
mov eax, ecx
and eax, 0xffff00ff
imul eax, esi
shr edi, 0x10
mov esi, ebx
and esi, 0xffff00ff
imul esi, edi
add eax, esi
mov esi, dword [esp + 0x48]
and esi, 0xffff00ff
imul esi, dword [esp + 0x54]
add eax, esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x84], edi
and esi, 0xffff00ff
shr edx, 0x10
imul esi, edx
mov edi, ecx
and edi, 0xff00
imul edi, dword [esp + 0x74]
and ebx, 0xff00
imul ebx, dword [esp + 0x84]
add eax, esi
mov esi, dword [esp + 0x48]
and esi, 0xff00
add edi, ebx
imul esi, dword [esp + 0x54]
add edi, esi
mov esi, dword [esp + 0x4c]
mov ebx, esi
and ebx, 0xff00
imul ebx, edx
and ecx, 0xff00ff
imul ecx, dword [esp + 0x74]
add edi, ebx
xor eax, edi
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x54]
and edi, 0xff00ff
imul edi, dword [esp + 0x84]
add ecx, edi
mov edi, dword [esp + 0x48]
and edi, 0xff00ff
imul edi, ebx
add ecx, edi
mov edi, dword [esp + 0x60]
and esi, 0xff00ff
imul esi, edx
add ecx, esi
movzx esi, word [edi]
and eax, 0xff0000
xor eax, ecx
mov ecx, 0x100
sub ecx, dword [esp + 0x74]
shr eax, 8
sub ecx, dword [esp + 0x84]
add edi, 2
sub ecx, ebx
sub ecx, edx
sar ecx, 3
mov edx, esi
shl edx, 0x10
or edx, esi
and edx, 0x7e0f81f
imul ecx, edx
mov edx, eax
mov ebx, dword [esp + 0x70]
shr ecx, 5
and edx, 0xfc00
and ecx, 0x7e0f81f
mov esi, dword [ebp + 8]
shl edx, 0xb
add ecx, edx
mov edx, eax
shr eax, 8
shr edx, 3
and eax, 0xf800
and edx, 0x1f
add ecx, edx
add ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
mov ecx, dword [esp + 0x58]
mov word [edi - 2], ax
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x94]
add dword [esp + 0x30], edi
add ecx, ebx
sub dword [esp + 0x68], 1
mov dword [esp + 0x58], ecx
jne 0x519274
mov ecx, dword [esp + 0x6c]
add dword [esp + 0x50], ecx
mov eax, 1
add dword [esp + 0xa4], eax
fild dword [esp + 0xa4]
add dword [esp + 0x98], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51906b
jmp 0x51e438
cmp eax, 0x3e0
fnstsw ax
jne 0x51999e
test ah, 0x41
mov dword [esp + 0x98], 0
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x90]
fld dword [esp + 0x90]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov edx, dword [esp + 0x8c]
fld qword [0x686db8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x64], eax
lea eax, [edx + edx]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x84], ecx
fild dword [esp + 0x84]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0x90]
fld dword [esp + 0x90]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x30], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], edx
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp edi, 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], edx
jg 0x5195e9
test eax, eax
jl 0x519965
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x27fff
cdq
idiv edi
test eax, eax
jl 0x5195d1
mov dword [esp + 0x2c], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x30]
cdq
idiv edi
cmp eax, dword [esp + 0x40]
jge 0x51965a
mov dword [esp + 0x40], eax
jmp 0x51965a
cmp edi, 1
jl 0x519636
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
add edx, 0xffffffff
cmp eax, edx
jge 0x519965
mov eax, 0x10000
sub eax, dword [esp + 0x30]
cdq
idiv edi
test eax, eax
jle 0x519617
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x17fff
cdq
idiv edi
cmp eax, dword [esp + 0x40]
jge 0x51965a
mov dword [esp + 0x40], eax
jmp 0x51965a
cmp dword [esp + 0x30], 0
jl 0x519965
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp dword [esp + 0x30], edx
jge 0x519965
cmp ebx, 0xffffffff
jg 0x51969a
cmp dword [esp + 0x44], 0
jl 0x519965
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jle 0x519687
mov dword [esp + 0x2c], eax
mov eax, ecx
cdq
idiv ebx
neg eax
cmp eax, dword [esp + 0x40]
jge 0x519706
mov dword [esp + 0x40], eax
jmp 0x519706
cmp ebx, 1
jl 0x5196e7
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x3c], eax
add eax, 0xffffffff
cmp dword [esp + 0x44], eax
jge 0x519965
mov eax, 0x10000
sub eax, ecx
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jle 0x5196ca
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, dword [esp + 0x40]
jge 0x519706
mov dword [esp + 0x40], eax
jmp 0x519706
test ecx, ecx
jl 0x519965
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
shl edx, 0x10
sub edx, 0x10000
cmp ecx, edx
jge 0x519965
mov eax, dword [esp + 0x2c]
imul eax, edi
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
mov edx, eax
imul edx, ebx
add ecx, edx
cmp eax, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
lea edx, [edx + eax*2]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x90], edx
jg 0x519965
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x2c]
add eax, 1
mov dword [esp + 0x68], eax
mov edi, dword [esp + 0x30]
mov eax, ecx
sar eax, 0x10
imul eax, dword [esp + 0x90]
mov edx, edi
sar edx, 0x10
add eax, edx
mov edx, dword [esp + 0x80]
mov ebx, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov eax, ecx
mov ecx, dword [edx + 4]
and edi, 0xfffe
and eax, 0xfffe
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x24]
add edi, 1
add eax, 1
lea edx, [edx + ecx*4]
mov ecx, dword [edx]
mov dword [esp + 0x9c], edi
mov dword [esp + 0x48], ecx
mov ecx, dword [edx + 4]
mov esi, 0x10000
sub esi, eax
mov edx, 0x10000
sub edx, edi
imul edi, esi
shr edi, 0x10
mov dword [esp + 0xb0], edx
imul edx, esi
mov esi, dword [esp + 0x54]
shr esi, 0x18
imul edi, esi
mov esi, eax
imul eax, dword [esp + 0x9c]
imul esi, dword [esp + 0xb0]
mov dword [esp + 0x44], ebx
shr ebx, 0x18
shr edx, 0x10
imul edx, ebx
mov ebx, dword [esp + 0x48]
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
shr eax, 0x10
mov ebx, ecx
shr ebx, 0x18
imul eax, ebx
shr eax, 0x10
mov ebx, eax
mov dword [esp + 0x74], ebx
mov eax, ecx
and eax, 0xffff00ff
imul eax, ebx
mov ebx, dword [esp + 0x48]
and ebx, 0xffff00ff
shr esi, 0x10
imul ebx, esi
add eax, ebx
mov ebx, dword [esp + 0x54]
shr edi, 0x10
mov dword [esp + 0x4c], edi
and ebx, 0xffff00ff
imul ebx, edi
mov edi, dword [esp + 0x44]
and edi, 0xffff00ff
shr edx, 0x10
imul edi, edx
add eax, ebx
mov ebx, dword [esp + 0x48]
add eax, edi
mov edi, ecx
and edi, 0xff00
imul edi, dword [esp + 0x74]
and ebx, 0xff00
imul ebx, esi
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x54]
add edi, ebx
and esi, 0xff00
imul esi, dword [esp + 0x4c]
add edi, esi
mov esi, dword [esp + 0x44]
mov ebx, esi
and ebx, 0xff00
imul ebx, edx
and ecx, 0xff00ff
imul ecx, dword [esp + 0x74]
add edi, ebx
xor eax, edi
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
and edi, 0xff00ff
imul edi, dword [esp + 0x5c]
add ecx, edi
mov edi, dword [esp + 0x54]
and edi, 0xff00ff
imul edi, ebx
add ecx, edi
mov edi, dword [esp + 0x60]
and esi, 0xff00ff
imul esi, edx
add ecx, esi
movzx esi, word [edi]
and eax, 0xff0000
xor eax, ecx
mov ecx, 0x100
sub ecx, dword [esp + 0x74]
shr eax, 8
sub ecx, dword [esp + 0x5c]
add edi, 2
sub ecx, ebx
sub ecx, edx
sar ecx, 3
mov edx, esi
shl edx, 0x10
or edx, esi
and edx, 0x3e07c1f
imul ecx, edx
mov edx, eax
mov ebx, dword [esp + 0x70]
shr ecx, 5
shr edx, 3
and ecx, 0x3e07c1f
mov esi, dword [ebp + 8]
and edx, 0x1f
add ecx, edx
mov edx, eax
and eax, 0xf800
shr edx, 9
shl eax, 0xa
and edx, 0x7c00
add ecx, edx
add ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
mov ecx, dword [esp + 0x58]
mov word [edi - 2], ax
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x94]
add dword [esp + 0x30], edi
add ecx, ebx
sub dword [esp + 0x68], 1
mov dword [esp + 0x58], ecx
jne 0x51974e
mov ecx, dword [esp + 0x6c]
add dword [esp + 0x50], ecx
mov eax, 1
add dword [esp + 0x98], eax
fild dword [esp + 0x98]
add dword [esp + 0x84], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x519545
jmp 0x51e438
test ah, 0x41
mov dword [esp + 0x58], 0
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x90]
fld dword [esp + 0x90]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov edx, dword [esp + 0x8c]
fld qword [0x686db8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x64], eax
lea eax, [edx + edx]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ecx
fild dword [esp + 0x68]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0x90]
fld dword [esp + 0x90]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x30], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp edi, 0xffffffff
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], edx
jg 0x519ab1
test eax, eax
jl 0x519e61
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x27fff
cdq
idiv edi
test eax, eax
jl 0x519a99
mov dword [esp + 0x38], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x30]
cdq
idiv edi
cmp eax, dword [esp + 0x2c]
jge 0x519b22
mov dword [esp + 0x2c], eax
jmp 0x519b22
cmp edi, 1
jl 0x519afe
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
add edx, 0xffffffff
cmp eax, edx
jge 0x519e61
mov eax, 0x10000
sub eax, dword [esp + 0x30]
cdq
idiv edi
test eax, eax
jle 0x519adf
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x17fff
cdq
idiv edi
cmp eax, dword [esp + 0x2c]
jge 0x519b22
mov dword [esp + 0x2c], eax
jmp 0x519b22
cmp dword [esp + 0x30], 0
jl 0x519e61
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp dword [esp + 0x30], edx
jge 0x519e61
cmp ebx, 0xffffffff
jg 0x519b62
cmp dword [esp + 0x44], 0
jl 0x519e61
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv ebx
cmp eax, dword [esp + 0x38]
jle 0x519b4f
mov dword [esp + 0x38], eax
mov eax, ecx
cdq
idiv ebx
neg eax
cmp eax, dword [esp + 0x2c]
jge 0x519bce
mov dword [esp + 0x2c], eax
jmp 0x519bce
cmp ebx, 1
jl 0x519baf
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x3c], eax
add eax, 0xffffffff
cmp dword [esp + 0x44], eax
jge 0x519e61
mov eax, 0x10000
sub eax, ecx
cdq
idiv ebx
cmp eax, dword [esp + 0x38]
jle 0x519b92
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jge 0x519bce
mov dword [esp + 0x2c], eax
jmp 0x519bce
test ecx, ecx
jl 0x519e61
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
shl edx, 0x10
sub edx, 0x10000
cmp ecx, edx
jge 0x519e61
mov eax, dword [esp + 0x38]
imul eax, edi
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov edx, eax
imul edx, ebx
add ecx, edx
mov edx, dword [esp + 0x50]
lea edx, [edx + eax*2]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x2c]
cmp eax, edx
mov dword [esp + 0x5c], ecx
jg 0x519e61
sub edx, eax
add edx, 1
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x30]
mov esi, dword [esi + 0x24]
mov eax, ecx
sar eax, 0x10
imul eax, dword [esp + 0x90]
mov edi, edx
sar edi, 0x10
add eax, edi
mov edi, dword [esp + 0x80]
mov ebx, dword [edi + eax*4]
lea eax, [edi + eax*4]
mov edi, dword [eax + 4]
lea eax, [eax + esi*4]
mov esi, dword [eax]
and ecx, 0xfffe
add ecx, 1
mov dword [esp + 0x48], esi
and edx, 0xfffe
add edx, 1
mov dword [esp + 0x54], edi
mov dword [esp + 0x9c], edx
mov eax, dword [eax + 4]
mov esi, 0x10000
sub esi, ecx
mov edi, 0x10000
sub edi, edx
imul edx, esi
mov dword [esp + 0x74], ebx
mov dword [esp + 0xb0], edi
imul edi, esi
mov esi, dword [esp + 0x54]
shr ebx, 0x18
shr esi, 0x18
shr edx, 0x10
imul edx, esi
mov esi, ecx
imul ecx, dword [esp + 0x9c]
imul esi, dword [esp + 0xb0]
shr edi, 0x10
imul edi, ebx
mov ebx, dword [esp + 0x48]
shr ebx, 0x18
shr ecx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [esp + 0x3c]
movzx ebx, word [ebx]
mov dword [esp + 0xb0], ebx
shr ecx, 0x10
shr edx, 0x10
shr esi, 0x10
mov ebx, 0x100
sub ebx, ecx
sub ebx, esi
sub ebx, edx
shr edi, 0x10
sub ebx, edi
mov dword [esp + 0x38], ebx
movzx ebx, word [esp + 0xb0]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x44], ecx
movzx ebx, al
imul ebx, ecx
movzx ecx, byte [esp + 0x48]
imul ecx, esi
add ebx, ecx
movzx ecx, byte [esp + 0x54]
imul ecx, edx
mov dword [esp + 0x4c], edx
movzx edx, byte [esp + 0x74]
imul edx, edi
add ebx, ecx
mov ecx, dword [esp + 0xb8]
add ebx, edx
shr ebx, cl
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x78], esi
shl ebx, cl
mov ecx, dword [esp + 0x8c]
and ecx, dword [esp + 0x40]
mov edx, eax
imul ecx, dword [esp + 0x38]
shr ecx, 8
and ecx, dword [esp + 0x40]
and edx, 0xff0000
add ebx, ecx
imul edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
and ecx, 0xff0000
imul ecx, esi
add edx, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff0000
imul ecx, dword [esp + 0x4c]
add edx, ecx
mov ecx, dword [esp + 0x74]
and ecx, 0xff0000
imul ecx, edi
add edx, ecx
mov ecx, dword [esp + 0xd0]
shr edx, cl
mov ecx, dword [esp + 0xa4]
and eax, 0xff00
imul eax, dword [esp + 0x44]
shl edx, cl
mov ecx, dword [esp + 0x8c]
and ecx, dword [esp + 0x34]
imul ecx, dword [esp + 0x38]
shr ecx, 8
and ecx, dword [esp + 0x34]
add edx, ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff00
imul ecx, esi
add eax, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff00
imul ecx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x74]
and ecx, 0xff00
imul ecx, edi
add eax, ecx
mov ecx, dword [esp + 0x98]
shr eax, cl
mov ecx, dword [esp + 0x84]
mov edi, dword [esp + 0x94]
add dword [esp + 0x30], edi
shl eax, cl
mov ecx, dword [esp + 0x8c]
or ebx, edx
mov edx, dword [esp + 0xac]
and ecx, edx
imul ecx, dword [esp + 0x38]
mov esi, dword [ebp + 8]
shr ecx, 8
and ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x5c]
or ebx, eax
mov eax, dword [esp + 0x3c]
mov word [eax], bx
mov ebx, dword [esp + 0x70]
add eax, 2
add ecx, ebx
sub dword [esp + 0x60], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x5c], ecx
jne 0x519c12
mov edx, dword [esp + 0x6c]
add dword [esp + 0x50], edx
mov eax, 1
add dword [esp + 0x58], eax
fild dword [esp + 0x58]
add dword [esp + 0x68], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x519a10
jmp 0x51e438
fnstsw ax
mov dword [esp + 0x5c], 0
test ah, 0x41
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x90]
fld dword [esp + 0x90]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov edx, dword [esp + 0x3c]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x8c]
lea ecx, [eax + eax]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x60], edx
fild dword [esp + 0x60]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0x90]
fld dword [esp + 0x90]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x30], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp edi, 0xffffffff
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], edx
jg 0x519fa6
test eax, eax
jl 0x51a356
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x27fff
cdq
idiv edi
test eax, eax
jl 0x519f8e
mov dword [esp + 0x38], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x30]
cdq
idiv edi
cmp eax, dword [esp + 0x2c]
jge 0x51a017
mov dword [esp + 0x2c], eax
jmp 0x51a017
cmp edi, 1
jl 0x519ff3
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
add edx, 0xffffffff
cmp eax, edx
jge 0x51a356
mov eax, 0x10000
sub eax, dword [esp + 0x30]
cdq
idiv edi
test eax, eax
jle 0x519fd4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x17fff
cdq
idiv edi
cmp eax, dword [esp + 0x2c]
jge 0x51a017
mov dword [esp + 0x2c], eax
jmp 0x51a017
cmp dword [esp + 0x30], 0
jl 0x51a356
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp dword [esp + 0x30], edx
jge 0x51a356
cmp ebx, 0xffffffff
jg 0x51a057
cmp dword [esp + 0x44], 0
jl 0x51a356
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv ebx
cmp eax, dword [esp + 0x38]
jle 0x51a044
mov dword [esp + 0x38], eax
mov eax, ecx
cdq
idiv ebx
neg eax
cmp eax, dword [esp + 0x2c]
jge 0x51a0c3
mov dword [esp + 0x2c], eax
jmp 0x51a0c3
cmp ebx, 1
jl 0x51a0a4
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x3c], eax
add eax, 0xffffffff
cmp dword [esp + 0x44], eax
jge 0x51a356
mov eax, 0x10000
sub eax, ecx
cdq
idiv ebx
cmp eax, dword [esp + 0x38]
jle 0x51a087
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jge 0x51a0c3
mov dword [esp + 0x2c], eax
jmp 0x51a0c3
test ecx, ecx
jl 0x51a356
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
shl edx, 0x10
sub edx, 0x10000
cmp ecx, edx
jge 0x51a356
mov eax, dword [esp + 0x38]
imul eax, edi
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov edx, eax
imul edx, ebx
add ecx, edx
mov edx, dword [esp + 0x50]
lea edx, [edx + eax*2]
mov dword [esp + 0x8c], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x2c]
cmp eax, edx
mov dword [esp + 0x38], ecx
jg 0x51a356
sub edx, eax
add edx, 1
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
mov esi, dword [esi + 0x24]
mov eax, ecx
sar eax, 0x10
imul eax, dword [esp + 0x90]
mov edi, edx
sar edi, 0x10
add eax, edi
mov edi, dword [esp + 0x80]
mov ebx, dword [edi + eax*4]
lea eax, [edi + eax*4]
mov edi, dword [eax + 4]
lea eax, [eax + esi*4]
mov esi, dword [eax]
and ecx, 0xfffe
add ecx, 1
mov dword [esp + 0x48], esi
and edx, 0xfffe
add edx, 1
mov dword [esp + 0x54], edi
mov dword [esp + 0x9c], edx
mov eax, dword [eax + 4]
mov esi, 0x10000
sub esi, ecx
mov edi, 0x10000
sub edi, edx
imul edx, esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0xb0], edi
imul edi, esi
mov esi, dword [esp + 0x54]
shr ebx, 0x18
shr esi, 0x18
shr edx, 0x10
imul edx, esi
mov esi, ecx
imul ecx, dword [esp + 0x9c]
imul esi, dword [esp + 0xb0]
shr edi, 0x10
imul edi, ebx
mov ebx, dword [esp + 0x48]
shr ebx, 0x18
shr ecx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [esp + 0x8c]
movzx ebx, word [ebx]
mov dword [esp + 0xb0], ebx
shr ecx, 0x10
shr edx, 0x10
shr esi, 0x10
mov ebx, 0x100
sub ebx, ecx
sub ebx, esi
sub ebx, edx
shr edi, 0x10
sub ebx, edi
mov dword [esp + 0x74], ebx
movzx ebx, word [esp + 0xb0]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x44], ecx
movzx ebx, al
imul ebx, ecx
movzx ecx, byte [esp + 0x48]
imul ecx, esi
add ebx, ecx
movzx ecx, byte [esp + 0x54]
imul ecx, edx
mov dword [esp + 0x4c], edx
movzx edx, byte [esp + 0x58]
imul edx, edi
add ebx, ecx
mov ecx, dword [esp + 0xb8]
add ebx, edx
shr ebx, cl
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x78], esi
shl ebx, cl
mov ecx, dword [esp + 0x68]
and ecx, dword [esp + 0x40]
mov edx, eax
imul ecx, dword [esp + 0x74]
shr ecx, 8
and ecx, dword [esp + 0x40]
and edx, 0xff0000
add ebx, ecx
imul edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
and ecx, 0xff0000
imul ecx, esi
add edx, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff0000
imul ecx, dword [esp + 0x4c]
add edx, ecx
mov ecx, dword [esp + 0x58]
and ecx, 0xff0000
imul ecx, edi
add edx, ecx
mov ecx, dword [esp + 0xd0]
shr edx, cl
mov ecx, dword [esp + 0xa4]
and eax, 0xff00
imul eax, dword [esp + 0x44]
shl edx, cl
mov ecx, dword [esp + 0x68]
and ecx, dword [esp + 0x34]
imul ecx, dword [esp + 0x74]
shr ecx, 8
and ecx, dword [esp + 0x34]
add edx, ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff00
imul ecx, esi
add eax, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff00
imul ecx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x58]
and ecx, 0xff00
imul ecx, edi
add eax, ecx
mov ecx, dword [esp + 0x98]
shr eax, cl
mov ecx, dword [esp + 0x84]
mov edi, dword [esp + 0x94]
add dword [esp + 0x30], edi
shl eax, cl
mov ecx, dword [esp + 0x68]
or ebx, edx
mov edx, dword [esp + 0xac]
and ecx, edx
imul ecx, dword [esp + 0x74]
mov esi, dword [ebp + 8]
shr ecx, 8
and ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x38]
or ebx, eax
mov eax, dword [esp + 0x8c]
mov word [eax], bx
mov ebx, dword [esp + 0x70]
add eax, 2
add ecx, ebx
sub dword [esp + 0x2c], 1
mov dword [esp + 0x8c], eax
mov dword [esp + 0x38], ecx
jne 0x51a10a
mov edx, dword [esp + 0x6c]
add dword [esp + 0x50], edx
mov eax, 1
add dword [esp + 0x5c], eax
fild dword [esp + 0x5c]
add dword [esp + 0x60], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x519f05
jmp 0x51e438
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax]
add ecx, 1
mov dword [esp + 0xa0], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
add eax, 1
mov dword [esp + 0x88], eax
fnstsw ax
add ecx, 1
test ah, 0x41
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x4c], 0
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x90]
fld dword [esp + 0x90]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov edx, dword [esp + 0x8c]
fld qword [0x686db8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x64], eax
lea eax, [edx + edx]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x8c], ecx
fild dword [esp + 0x8c]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0x90]
fld dword [esp + 0x90]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x30], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp edi, 0xffffffff
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], edx
jg 0x51a4ce
test eax, eax
jl 0x51a8ad
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x27fff
cdq
idiv edi
test eax, eax
jl 0x51a4b6
mov dword [esp + 0x38], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x30]
cdq
idiv edi
cmp eax, dword [esp + 0x2c]
jge 0x51a53f
mov dword [esp + 0x2c], eax
jmp 0x51a53f
cmp edi, 1
jl 0x51a51b
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
add edx, 0xffffffff
cmp eax, edx
jge 0x51a8ad
mov eax, 0x10000
sub eax, dword [esp + 0x30]
cdq
idiv edi
test eax, eax
jle 0x51a4fc
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x17fff
cdq
idiv edi
cmp eax, dword [esp + 0x2c]
jge 0x51a53f
mov dword [esp + 0x2c], eax
jmp 0x51a53f
cmp dword [esp + 0x30], 0
jl 0x51a8ad
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp dword [esp + 0x30], edx
jge 0x51a8ad
cmp ebx, 0xffffffff
jg 0x51a57f
cmp dword [esp + 0x44], 0
jl 0x51a8ad
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv ebx
cmp eax, dword [esp + 0x38]
jle 0x51a56c
mov dword [esp + 0x38], eax
mov eax, ecx
cdq
idiv ebx
neg eax
cmp eax, dword [esp + 0x2c]
jge 0x51a5eb
mov dword [esp + 0x2c], eax
jmp 0x51a5eb
cmp ebx, 1
jl 0x51a5cc
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x3c], eax
add eax, 0xffffffff
cmp dword [esp + 0x44], eax
jge 0x51a8ad
mov eax, 0x10000
sub eax, ecx
cdq
idiv ebx
cmp eax, dword [esp + 0x38]
jle 0x51a5af
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jge 0x51a5eb
mov dword [esp + 0x2c], eax
jmp 0x51a5eb
test ecx, ecx
jl 0x51a8ad
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
shl edx, 0x10
sub edx, 0x10000
cmp ecx, edx
jge 0x51a8ad
mov eax, dword [esp + 0x38]
imul eax, edi
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov edx, eax
imul edx, ebx
add ecx, edx
mov edx, dword [esp + 0x50]
lea edx, [edx + eax*2]
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x2c]
cmp eax, edx
mov dword [esp + 0x3c], ecx
jg 0x51a8ad
sub edx, eax
add edx, 1
mov dword [esp + 0x2c], edx
mov esi, dword [esi + 0x24]
mov edx, dword [esp + 0x30]
mov eax, ecx
sar eax, 0x10
imul eax, dword [esp + 0x90]
mov edi, edx
sar edi, 0x10
add eax, edi
mov edi, dword [esp + 0x80]
mov ebx, dword [edi + eax*4]
lea eax, [edi + eax*4]
mov edi, dword [eax + 4]
lea eax, [eax + esi*4]
mov esi, dword [eax]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x68]
movzx esi, word [esi]
and ecx, 0xfffe
mov dword [esp + 0x78], esi
add ecx, 1
mov dword [esp + 0x74], edi
and edx, 0xfffe
add edx, 1
mov dword [esp + 0x9c], edx
mov eax, dword [eax + 4]
mov esi, 0x10000
sub esi, ecx
mov edi, 0x10000
sub edi, edx
imul edx, esi
mov dword [esp + 0xb0], edi
imul edi, esi
mov esi, dword [esp + 0x74]
shr esi, 0x18
shr edx, 0x10
imul edx, esi
mov esi, ecx
imul ecx, dword [esp + 0x9c]
imul esi, dword [esp + 0xb0]
mov dword [esp + 0x5c], ebx
shr ebx, 0x18
shr edi, 0x10
imul edi, ebx
mov ebx, dword [esp + 0x54]
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
shr ecx, 0x10
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
shr ecx, 0x10
imul ecx, dword [esp + 0x48]
shr esi, 0x10
imul esi, dword [esp + 0x48]
shr edx, 0x10
imul edx, dword [esp + 0x48]
shr edi, 0x10
imul edi, dword [esp + 0x48]
sar ecx, 8
sar esi, 8
mov ebx, 0x100
sub ebx, ecx
sub ebx, esi
sar edx, 8
sub ebx, edx
sar edi, 8
sub ebx, edi
mov dword [esp + 0x58], ebx
movzx ebx, word [esp + 0x78]
mov dword [esp + 0x60], ebx
movzx ebx, al
imul ebx, ecx
mov dword [esp + 0x44], ecx
movzx ecx, byte [esp + 0x54]
imul ecx, esi
add ebx, ecx
movzx ecx, byte [esp + 0x74]
mov dword [esp + 0x38], edx
imul ecx, edx
mov dword [esp + 0xb0], esi
add ebx, ecx
movzx edx, byte [esp + 0x5c]
imul edx, edi
add ebx, edx
mov ecx, dword [esp + 0xb8]
shr ebx, 8
imul ebx, dword [esp + 0x88]
shr ebx, cl
mov ecx, dword [esp + 0xd4]
mov edx, eax
and edx, 0xff0000
shl ebx, cl
imul edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x60]
and ecx, dword [esp + 0x40]
and eax, 0xff00
imul ecx, dword [esp + 0x58]
imul eax, dword [esp + 0x44]
shr ecx, 8
and ecx, dword [esp + 0x40]
add ebx, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff0000
imul ecx, esi
add edx, ecx
mov ecx, dword [esp + 0x74]
and ecx, 0xff0000
imul ecx, dword [esp + 0x38]
add edx, ecx
mov ecx, dword [esp + 0x5c]
and ecx, 0xff0000
imul ecx, edi
add edx, ecx
mov ecx, dword [esp + 0xd0]
shr edx, 8
imul edx, dword [esp + 0xa0]
shr edx, cl
mov ecx, dword [esp + 0xa4]
shl edx, cl
mov ecx, dword [esp + 0x60]
and ecx, dword [esp + 0x34]
imul ecx, dword [esp + 0x58]
shr ecx, 8
and ecx, dword [esp + 0x34]
add edx, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff00
imul ecx, esi
add eax, ecx
mov ecx, dword [esp + 0x74]
and ecx, 0xff00
imul ecx, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x5c]
and ecx, 0xff00
imul ecx, edi
add eax, ecx
mov ecx, dword [esp + 0x98]
shr eax, 8
imul eax, dword [esp + 0x7c]
shr eax, cl
mov ecx, dword [esp + 0x84]
mov edi, dword [esp + 0x94]
add dword [esp + 0x30], edi
shl eax, cl
mov ecx, dword [esp + 0x60]
or ebx, edx
mov edx, dword [esp + 0xac]
and ecx, edx
imul ecx, dword [esp + 0x58]
shr ecx, 8
and ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x3c]
or ebx, eax
mov eax, dword [esp + 0x68]
mov word [eax], bx
mov ebx, dword [esp + 0x70]
add eax, 2
mov dword [esp + 0x68], eax
add ecx, ebx
sub dword [esp + 0x2c], 1
mov esi, dword [ebp + 8]
mov dword [esp + 0x3c], ecx
jne 0x51a62f
mov edx, dword [esp + 0x6c]
add dword [esp + 0x50], edx
mov eax, 1
add dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
add dword [esp + 0x8c], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51a42a
jmp 0x51e438
cmp eax, 0x20
jne 0x51e442
fld qword [esp + 0xe0]
call fcn.0062a660
fld qword [esp + 0xd8]
mov dword [esp + 0x3c], eax
call fcn.0062a660
mov ecx, dword [esp + 0xbc]
mov ecx, dword [ecx + 0x90]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
imul eax, ecx
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0xbc]
mov edx, dword [edx + 0xa4]
sar eax, 2
add eax, dword [esp + 0x64]
lea eax, [edx + eax*4]
mov dword [esp + 0x6c], eax
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x1c]
call fcn.00502ac0
test al, al
fld qword [esp + 0xf0]
fcomp qword [0x6867e8]
je 0x51b307
cmp byte [0x6b9d7f], 0
fnstsw ax
je 0x51ae36
test ah, 0x41
mov dword [esp + 0x68], 0
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov ecx, dword [esp + 0x4c]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
lea edx, [ecx*4]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x30], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp edi, 0xffffffff
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], edx
jg 0x51aa84
test eax, eax
jl 0x51ae03
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x27fff
cdq
idiv edi
test eax, eax
jl 0x51aa6c
mov dword [esp + 0x38], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x30]
cdq
idiv edi
cmp eax, dword [esp + 0x2c]
jge 0x51aaf5
mov dword [esp + 0x2c], eax
jmp 0x51aaf5
cmp edi, 1
jl 0x51aad1
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
add edx, 0xffffffff
cmp eax, edx
jge 0x51ae03
mov eax, 0x10000
sub eax, dword [esp + 0x30]
cdq
idiv edi
test eax, eax
jle 0x51aab2
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x17fff
cdq
idiv edi
cmp eax, dword [esp + 0x2c]
jge 0x51aaf5
mov dword [esp + 0x2c], eax
jmp 0x51aaf5
cmp dword [esp + 0x30], 0
jl 0x51ae03
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp dword [esp + 0x30], edx
jge 0x51ae03
cmp ebx, 0xffffffff
jg 0x51ab35
cmp dword [esp + 0x44], 0
jl 0x51ae03
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv ebx
cmp eax, dword [esp + 0x38]
jle 0x51ab22
mov dword [esp + 0x38], eax
mov eax, ecx
cdq
idiv ebx
neg eax
cmp eax, dword [esp + 0x2c]
jge 0x51aba1
mov dword [esp + 0x2c], eax
jmp 0x51aba1
cmp ebx, 1
jl 0x51ab82
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x3c], eax
add eax, 0xffffffff
cmp dword [esp + 0x44], eax
jge 0x51ae03
mov eax, 0x10000
sub eax, ecx
cdq
idiv ebx
cmp eax, dword [esp + 0x38]
jle 0x51ab65
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jge 0x51aba1
mov dword [esp + 0x2c], eax
jmp 0x51aba1
test ecx, ecx
jl 0x51ae03
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
shl edx, 0x10
sub edx, 0x10000
cmp ecx, edx
jge 0x51ae03
mov eax, dword [esp + 0x38]
imul eax, edi
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov edx, eax
imul edx, ebx
add ecx, edx
mov edx, dword [esp + 0x6c]
lea edx, [edx + eax*4]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x2c]
cmp eax, edx
mov dword [esp + 0x98], ecx
jg 0x51ae03
sub edx, eax
add edx, 1
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x30]
mov esi, dword [esi + 0x24]
mov eax, ecx
sar eax, 0x10
imul eax, dword [esp + 0x7c]
mov edi, edx
sar edi, 0x10
add eax, edi
mov edi, dword [esp + 0x80]
mov ebx, dword [edi + eax*4]
lea eax, [edi + eax*4]
mov edi, dword [eax + 4]
lea eax, [eax + esi*4]
mov esi, dword [eax]
and ecx, 0xfffe
add ecx, 1
mov dword [esp + 0x48], esi
and edx, 0xfffe
add edx, 1
mov dword [esp + 0x54], edi
mov dword [esp + 0x90], edx
mov eax, dword [eax + 4]
mov esi, 0x10000
sub esi, ecx
mov edi, 0x10000
sub edi, edx
imul edx, esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0xa0], edi
imul edi, esi
mov esi, dword [esp + 0x54]
shr ebx, 0x18
shr esi, 0x18
shr edx, 0x10
imul edx, esi
mov esi, ecx
imul ecx, dword [esp + 0x90]
imul esi, dword [esp + 0xa0]
shr edi, 0x10
imul edi, ebx
mov ebx, dword [esp + 0x48]
shr ebx, 0x18
shr ecx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [esp + 0x60]
mov ebx, dword [ebx]
mov dword [esp + 0x5c], ebx
shr ecx, 0x10
shr edx, 0x10
shr esi, 0x10
mov ebx, 0x100
sub ebx, ecx
sub ebx, esi
sub ebx, edx
shr edi, 0x10
sub ebx, edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x74], ecx
mov ebx, eax
and ebx, 0xff00
imul ebx, ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff00
imul ecx, esi
add ebx, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff00
imul ecx, edx
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x4c]
and edx, 0xff00
imul edx, edi
add ebx, ecx
mov ecx, dword [esp + 0x5c]
add ebx, edx
mov dword [esp + 0xa0], esi
and ebx, 0xffff0000
and ecx, 0xff00
imul ecx, dword [esp + 0x44]
movzx edx, byte [esp + 0x48]
add ebx, ecx
imul edx, esi
movzx ecx, al
imul ecx, dword [esp + 0x74]
add ecx, edx
movzx edx, byte [esp + 0x54]
imul edx, dword [esp + 0x84]
add ecx, edx
movzx edx, byte [esp + 0x4c]
mov esi, dword [esp + 0x5c]
imul edx, edi
add ecx, edx
mov edx, dword [esp + 0x44]
and ecx, 0xff00
and esi, 0xffff00ff
imul esi, edx
add ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff00ff
imul ecx, dword [esp + 0xa0]
and eax, 0xff00ff
imul eax, dword [esp + 0x74]
add eax, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff00ff
imul ecx, dword [esp + 0x84]
add eax, ecx
mov ecx, dword [esp + 0x4c]
and ecx, 0xff00ff
imul ecx, edi
add eax, ecx
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x94]
add dword [esp + 0x30], edi
mov esi, dword [ebp + 8]
and ecx, 0xff00ff
imul ecx, edx
and eax, 0xff00ff00
add eax, ecx
mov ecx, dword [esp + 0x98]
and ebx, 0xff0000
xor ebx, eax
mov eax, dword [esp + 0x60]
shr ebx, 8
mov dword [eax], ebx
mov ebx, dword [esp + 0x70]
add eax, 4
add ecx, ebx
sub dword [esp + 0xa4], 1
mov dword [esp + 0x60], eax
mov dword [esp + 0x98], ecx
jne 0x51abe8
mov eax, 1
add dword [esp + 0x68], eax
fild dword [esp + 0x68]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x8c]
add dword [esp + 0x6c], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51a9e9
jmp 0x51e438
test ah, 0x41
mov dword [esp + 0x74], 0
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov ecx, dword [esp + 0x4c]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
lea edx, [ecx*4]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x68], eax
fild dword [esp + 0x68]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x30], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp edi, 0xffffffff
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], edx
jg 0x51af41
test eax, eax
jl 0x51b2d4
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x27fff
cdq
idiv edi
test eax, eax
jl 0x51af29
mov dword [esp + 0x38], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x30]
cdq
idiv edi
cmp eax, dword [esp + 0x2c]
jge 0x51afb2
mov dword [esp + 0x2c], eax
jmp 0x51afb2
cmp edi, 1
jl 0x51af8e
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
add edx, 0xffffffff
cmp eax, edx
jge 0x51b2d4
mov eax, 0x10000
sub eax, dword [esp + 0x30]
cdq
idiv edi
test eax, eax
jle 0x51af6f
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x17fff
cdq
idiv edi
cmp eax, dword [esp + 0x2c]
jge 0x51afb2
mov dword [esp + 0x2c], eax
jmp 0x51afb2
cmp dword [esp + 0x30], 0
jl 0x51b2d4
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp dword [esp + 0x30], edx
jge 0x51b2d4
cmp ebx, 0xffffffff
jg 0x51aff2
cmp dword [esp + 0x44], 0
jl 0x51b2d4
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv ebx
cmp eax, dword [esp + 0x38]
jle 0x51afdf
mov dword [esp + 0x38], eax
mov eax, ecx
cdq
idiv ebx
neg eax
cmp eax, dword [esp + 0x2c]
jge 0x51b05e
mov dword [esp + 0x2c], eax
jmp 0x51b05e
cmp ebx, 1
jl 0x51b03f
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x3c], eax
add eax, 0xffffffff
cmp dword [esp + 0x44], eax
jge 0x51b2d4
mov eax, 0x10000
sub eax, ecx
cdq
idiv ebx
cmp eax, dword [esp + 0x38]
jle 0x51b022
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jge 0x51b05e
mov dword [esp + 0x2c], eax
jmp 0x51b05e
test ecx, ecx
jl 0x51b2d4
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
shl edx, 0x10
sub edx, 0x10000
cmp ecx, edx
jge 0x51b2d4
mov eax, dword [esp + 0x38]
imul eax, edi
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov edx, eax
imul edx, ebx
add ecx, edx
mov edx, dword [esp + 0x6c]
lea edx, [edx + eax*4]
mov dword [esp + 0x58], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x2c]
cmp eax, edx
mov dword [esp + 0x3c], ecx
jg 0x51b2d4
sub edx, eax
add edx, 1
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
mov esi, dword [esi + 0x24]
mov eax, ecx
sar eax, 0x10
imul eax, dword [esp + 0x7c]
mov edi, edx
sar edi, 0x10
add eax, edi
mov edi, dword [esp + 0x80]
mov ebx, dword [edi + eax*4]
lea eax, [edi + eax*4]
mov edi, dword [eax + 4]
lea eax, [eax + esi*4]
mov esi, dword [eax]
and ecx, 0xfffe
add ecx, 1
mov dword [esp + 0x48], esi
and edx, 0xfffe
add edx, 1
mov dword [esp + 0x54], edi
mov dword [esp + 0x90], edx
mov eax, dword [eax + 4]
mov esi, 0x10000
sub esi, ecx
mov edi, 0x10000
sub edi, edx
imul edx, esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0xa0], edi
imul edi, esi
mov esi, dword [esp + 0x54]
shr ebx, 0x18
shr esi, 0x18
shr edx, 0x10
imul edx, esi
mov esi, ecx
imul ecx, dword [esp + 0x90]
imul esi, dword [esp + 0xa0]
shr edi, 0x10
imul edi, ebx
mov ebx, dword [esp + 0x48]
shr ebx, 0x18
shr ecx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [esp + 0x58]
mov ebx, dword [ebx]
mov dword [esp + 0x5c], ebx
shr ecx, 0x10
shr edx, 0x10
shr esi, 0x10
mov ebx, 0x100
sub ebx, ecx
sub ebx, esi
sub ebx, edx
shr edi, 0x10
sub ebx, edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x44], ecx
mov ebx, eax
and ebx, 0xff00
imul ebx, ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff00
imul ecx, esi
add ebx, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff00
imul ecx, edx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x4c]
and edx, 0xff00
imul edx, edi
add ebx, ecx
mov ecx, dword [esp + 0x98]
add ebx, edx
mov dword [esp + 0xa0], esi
shr ebx, cl
mov ecx, dword [esp + 0x84]
shl ebx, cl
mov ecx, dword [esp + 0x5c]
and ecx, dword [esp + 0xac]
movzx edx, al
imul ecx, dword [esp + 0x60]
imul edx, dword [esp + 0x44]
shr ecx, 8
and ecx, dword [esp + 0xac]
and eax, 0xff0000
add ebx, ecx
imul eax, dword [esp + 0x44]
movzx ecx, byte [esp + 0x48]
imul ecx, esi
add edx, ecx
movzx ecx, byte [esp + 0x54]
imul ecx, dword [esp + 0x38]
add edx, ecx
movzx ecx, byte [esp + 0x4c]
imul ecx, edi
add edx, ecx
mov ecx, dword [esp + 0xb8]
shr edx, cl
mov ecx, dword [esp + 0xd4]
shl edx, cl
mov ecx, dword [esp + 0x5c]
and ecx, dword [esp + 0x40]
imul ecx, dword [esp + 0x60]
shr ecx, 8
and ecx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff0000
imul ecx, esi
add eax, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff0000
imul ecx, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x4c]
and ecx, 0xff0000
imul ecx, edi
add eax, ecx
mov ecx, dword [esp + 0xd0]
shr eax, cl
mov ecx, dword [esp + 0xa4]
mov edi, dword [esp + 0x94]
add dword [esp + 0x30], edi
shl eax, cl
mov ecx, dword [esp + 0x5c]
or ebx, edx
mov edx, dword [esp + 0x34]
and ecx, edx
imul ecx, dword [esp + 0x60]
mov esi, dword [ebp + 8]
shr ecx, 8
and ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x3c]
or ebx, eax
mov eax, dword [esp + 0x58]
mov dword [eax], ebx
mov ebx, dword [esp + 0x70]
add eax, 4
add ecx, ebx
sub dword [esp + 0x2c], 1
mov dword [esp + 0x58], eax
mov dword [esp + 0x3c], ecx
jne 0x51b09f
mov edx, dword [esp + 0x8c]
add dword [esp + 0x6c], edx
mov eax, 1
add dword [esp + 0x74], eax
fild dword [esp + 0x74]
add dword [esp + 0x68], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51aea6
jmp 0x51e438
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx]
add eax, 1
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 4]
add eax, 1
mov dword [esp + 0xb0], eax
mov eax, dword [ecx + 8]
add eax, 1
mov dword [esp + 0xa0], eax
fnstsw ax
mov dword [esp + 0x68], 0
test ah, 0x41
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov ecx, dword [esp + 0x4c]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
lea edx, [ecx*4]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x30], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp edi, 0xffffffff
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], edx
jg 0x51b444
test eax, eax
jl 0x51b80d
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x27fff
cdq
idiv edi
test eax, eax
jl 0x51b42c
mov dword [esp + 0x38], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x30]
cdq
idiv edi
cmp eax, dword [esp + 0x2c]
jge 0x51b4b5
mov dword [esp + 0x2c], eax
jmp 0x51b4b5
cmp edi, 1
jl 0x51b491
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
add edx, 0xffffffff
cmp eax, edx
jge 0x51b80d
mov eax, 0x10000
sub eax, dword [esp + 0x30]
cdq
idiv edi
test eax, eax
jle 0x51b472
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x30]
sub eax, 0x17fff
cdq
idiv edi
cmp eax, dword [esp + 0x2c]
jge 0x51b4b5
mov dword [esp + 0x2c], eax
jmp 0x51b4b5
cmp dword [esp + 0x30], 0
jl 0x51b80d
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp dword [esp + 0x30], edx
jge 0x51b80d
cmp ebx, 0xffffffff
jg 0x51b4f5
cmp dword [esp + 0x44], 0
jl 0x51b80d
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv ebx
cmp eax, dword [esp + 0x38]
jle 0x51b4e2
mov dword [esp + 0x38], eax
mov eax, ecx
cdq
idiv ebx
neg eax
cmp eax, dword [esp + 0x2c]
jge 0x51b561
mov dword [esp + 0x2c], eax
jmp 0x51b561
cmp ebx, 1
jl 0x51b542
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x3c], eax
add eax, 0xffffffff
cmp dword [esp + 0x44], eax
jge 0x51b80d
mov eax, 0x10000
sub eax, ecx
cdq
idiv ebx
cmp eax, dword [esp + 0x38]
jle 0x51b525
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jge 0x51b561
mov dword [esp + 0x2c], eax
jmp 0x51b561
test ecx, ecx
jl 0x51b80d
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
shl edx, 0x10
sub edx, 0x10000
cmp ecx, edx
jge 0x51b80d
mov eax, dword [esp + 0x38]
imul eax, edi
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov edx, eax
imul edx, ebx
add ecx, edx
mov edx, dword [esp + 0x6c]
lea edx, [edx + eax*4]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x2c]
cmp eax, edx
mov dword [esp + 0x50], ecx
jg 0x51b80d
sub edx, eax
add edx, 1
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x60]
mov esi, dword [esi + 0x24]
mov edi, dword [esp + 0x30]
mov edx, dword [edx]
mov eax, ecx
sar eax, 0x10
imul eax, dword [esp + 0x7c]
mov ebx, edi
sar ebx, 0x10
add eax, ebx
mov ebx, dword [esp + 0x80]
lea eax, [ebx + eax*4]
mov ebx, dword [eax]
mov dword [esp + 0x38], ebx
mov ebx, dword [eax + 4]
lea eax, [eax + esi*4]
mov esi, dword [eax]
mov dword [esp + 0x48], esi
and edi, 0xfffe
and ecx, 0xfffe
mov dword [esp + 0x4c], edx
add edi, 1
add ecx, 1
mov dword [esp + 0x44], edi
mov edx, 0x10000
sub edx, edi
mov edi, edx
imul edx, ecx
mov esi, 0x10000
sub esi, ecx
imul ecx, dword [esp + 0x44]
imul edi, esi
imul esi, dword [esp + 0x44]
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x38]
shr ebx, 0x18
shr esi, 0x10
shr edi, 0x10
imul edi, ebx
mov ebx, dword [esp + 0x54]
shr ebx, 0x18
imul esi, ebx
mov eax, dword [eax + 4]
shr esi, 0x10
imul esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x5c]
sar esi, 8
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0x48]
shr edx, 0x10
shr esi, 0x18
imul edx, esi
shr ecx, 0x10
mov esi, eax
shr esi, 0x18
imul ecx, esi
shr ecx, 0x10
imul ecx, ebx
shr edx, 0x10
imul edx, ebx
sar ecx, 8
movzx esi, al
imul esi, ecx
sar edx, 8
mov dword [esp + 0x44], ecx
mov ebx, 0x100
sub ebx, ecx
movzx ecx, byte [esp + 0x48]
sub ebx, edx
imul ecx, edx
sub ebx, dword [esp + 0x74]
shr edi, 0x10
imul edi, dword [esp + 0x5c]
mov dword [esp + 0x2c], edx
movzx edx, byte [esp + 0x54]
imul edx, dword [esp + 0x74]
sar edi, 8
sub ebx, edi
add esi, ecx
movzx ecx, byte [esp + 0x38]
mov dword [esp + 0x3c], ebx
add esi, edx
imul ecx, edi
add esi, ecx
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x4c]
shr esi, 8
imul esi, dword [esp + 0xa0]
shr esi, cl
mov ecx, dword [esp + 0xd4]
shl esi, cl
mov ecx, dword [esp + 0x40]
and edx, ecx
imul edx, ebx
shr edx, 8
and edx, ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff0000
imul ecx, dword [esp + 0x2c]
add esi, edx
mov edx, eax
and edx, 0xff0000
imul edx, dword [esp + 0x44]
add edx, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff0000
imul ecx, dword [esp + 0x74]
add edx, ecx
mov ecx, dword [esp + 0x38]
and ecx, 0xff0000
imul ecx, edi
add edx, ecx
mov ecx, dword [esp + 0xd0]
shr edx, 8
imul edx, dword [esp + 0x90]
shr edx, cl
mov ecx, dword [esp + 0xa4]
and eax, 0xff00
imul eax, dword [esp + 0x44]
shl edx, cl
mov ecx, dword [esp + 0x4c]
and ecx, dword [esp + 0x34]
imul ecx, ebx
shr ecx, 8
and ecx, dword [esp + 0x34]
add edx, ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff00
imul ecx, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff00
imul ecx, dword [esp + 0x74]
add eax, ecx
mov ecx, dword [esp + 0x38]
and ecx, 0xff00
imul ecx, edi
add eax, ecx
mov ecx, dword [esp + 0x98]
shr eax, 8
imul eax, dword [esp + 0xb0]
shr eax, cl
mov ecx, dword [esp + 0x84]
mov edi, dword [esp + 0x94]
add dword [esp + 0x30], edi
shl eax, cl
mov ecx, dword [esp + 0x4c]
or esi, edx
mov edx, dword [esp + 0xac]
and ecx, edx
imul ecx, ebx
mov ebx, dword [esp + 0x70]
shr ecx, 8
and ecx, edx
mov edx, dword [esp + 0x60]
add eax, ecx
mov ecx, dword [esp + 0x50]
or esi, eax
mov dword [edx], esi
add edx, 4
add ecx, ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x50], ecx
sub dword [esp + 0x88], 1
mov esi, dword [ebp + 8]
jne 0x51b5a9
mov edx, dword [esp + 0x8c]
add dword [esp + 0x6c], edx
mov eax, 1
add dword [esp + 0x68], eax
fild dword [esp + 0x68]
add dword [esp + 0x58], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51b3a9
jmp 0x51e438
mov edx, dword [ebp + 0x14]
fld qword [ebp + 0x24]
imul eax, dword [edx + 4]
add eax, dword [ecx + 0x4c]
add eax, dword [edx]
mov dword [esp + 0xd4], eax
call fcn.00629ff0
fstp qword [esp + 0xc8]
fld qword [ebp + 0x24]
call fcn.0062a160
fst qword [esp + 0xc0]
fld qword [esp + 0xc8]
fld qword [0x686db8]
fmul st(1), st(0)
fxch st(1)
call fcn.0062a660
fmulp st(1)
mov ebx, eax
mov dword [esp + 0xac], ebx
call fcn.0062a660
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x50], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xbc]
call edx
test al, al
je 0x51ffe0
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx + 0x6c]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x74], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x28]
mov dword [esp + 0xa4], edx
mov edx, 0x20
sub edx, dword [eax + 0x14]
mov dword [esp + 0xd0], edx
mov edx, 0x18
sub edx, dword [eax + 0x18]
mov dword [esp + 0x54], edx
mov edx, 0x10
sub edx, dword [eax + 0x1c]
mov eax, dword [ecx + 0xd4]
cmp eax, 0x10
mov dword [esp + 0x98], edx
mov edx, dword [ecx + 0xd8]
mov dword [esp + 0x38], edx
mov edx, dword [ecx + 0xdc]
mov ecx, dword [ecx + 0xe0]
mov dword [esp + 0x8c], edx
mov dword [esp + 0xb8], ecx
jne 0x51d39a
fld qword [esp + 0xe0]
call fcn.0062a660
fld qword [esp + 0xd8]
mov dword [esp + 0x3c], eax
call fcn.0062a660
mov edx, dword [esp + 0xbc]
mov ecx, dword [edx + 0x90]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
imul eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0xbc]
mov edx, dword [edx + 0xa4]
sar eax, 1
add eax, dword [esp + 0x64]
lea eax, [edx + eax*2]
mov dword [esp + 0x30], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x1c]
call fcn.00502ac0
test al, al
fld qword [esp + 0xf0]
fcomp qword [0x6867e8]
je 0x51ce17
cmp byte [0x6b9d7f], 0
je 0x51c8de
mov eax, dword [esp + 0x8c]
cmp eax, 0x7e0
jne 0x51bec1
fnstsw ax
mov dword [esp + 0x58], 0
test ah, 0x41
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov ecx, dword [esp + 0x84]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
lea edx, [ecx + ecx]
mov dword [esp + 0x80], edx
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x34], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x40], eax
sar eax, 0x10
sar edx, 0x10
cmp ebx, 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x88], eax
jg 0x51bad0
test edx, edx
jl 0x51be8e
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x27fff
cdq
idiv ebx
test eax, eax
jl 0x51bac5
mov dword [esp + 0x2c], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x34]
jmp 0x51bb0e
cmp ebx, 1
jl 0x51bb1d
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
add eax, 0xffffffff
cmp edx, eax
jge 0x51be8e
mov eax, 0x10000
sub eax, dword [esp + 0x34]
cdq
idiv ebx
test eax, eax
jle 0x51bafe
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, ecx
jge 0x51bb40
mov ecx, eax
mov dword [esp + 0x48], ecx
jmp 0x51bb40
cmp dword [esp + 0x34], 0
jl 0x51be8e
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
shl eax, 0x10
sub eax, 0x10000
cmp dword [esp + 0x34], eax
jge 0x51be8e
mov eax, dword [esp + 0x50]
cmp eax, 0xffffffff
jg 0x51bb8f
cmp dword [esp + 0x88], 0
jl 0x51be8e
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0xc]
shl eax, 0x10
sub eax, dword [esp + 0x40]
sub eax, 0x27fff
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x2c]
jle 0x51bb78
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
cdq
idiv dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
neg eax
cmp eax, ecx
jge 0x51bc08
mov ecx, eax
jmp 0x51bc08
cmp eax, 1
jl 0x51bbe5
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
add eax, 0xffffffff
cmp dword [esp + 0x88], eax
jge 0x51be8e
mov eax, 0x10000
sub eax, dword [esp + 0x40]
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x2c]
jle 0x51bbc2
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
sub eax, 0x17fff
cdq
idiv dword [esp + 0x50]
cmp eax, ecx
jge 0x51bc08
mov ecx, eax
jmp 0x51bc08
cmp dword [esp + 0x40], 0
jl 0x51be8e
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp dword [esp + 0x40], eax
jge 0x51be8e
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
imul edx, ebx
imul eax, dword [esp + 0x50]
add dword [esp + 0x34], edx
add dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
cmp eax, ecx
mov edx, dword [esp + 0x30]
lea edx, [edx + eax*2]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x7c], edx
jg 0x51be8e
sub ecx, eax
add ecx, 1
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
mov edx, eax
sar edx, 0x10
imul edx, dword [esp + 0x7c]
add edx, dword [esp + 0xd4]
mov ecx, ebx
sar ecx, 0x10
add ecx, edx
movzx edx, byte [ecx]
mov edx, dword [edi + edx*4]
mov dword [esp + 0x74], edx
movzx edx, byte [ecx + 1]
mov edx, dword [edi + edx*4]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x24]
add ecx, edx
movzx edx, byte [ecx]
mov edx, dword [edi + edx*4]
mov dword [esp + 0x48], edx
and ebx, 0xfffe
add ebx, 1
and eax, 0xfffe
add eax, 1
mov dword [esp + 0x88], ebx
mov esi, 0x10000
sub esi, ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0xa0], esi
mov edx, 0x10000
sub edx, eax
imul esi, edx
imul edx, dword [esp + 0x88]
shr ebx, 0x18
shr edx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, dword [esp + 0x54]
shr ebx, 0x18
imul edx, ebx
movzx ecx, byte [ecx + 1]
mov ebx, dword [esp + 0x48]
mov ecx, dword [edi + ecx*4]
shr edx, 0x10
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0xa0]
imul edx, eax
imul eax, dword [esp + 0x88]
shr edx, 0x10
shr ebx, 0x18
imul edx, ebx
shr eax, 0x10
mov ebx, ecx
shr ebx, 0x18
imul eax, ebx
shr eax, 0x10
mov ebx, eax
shr edx, 0x10
mov eax, ecx
and eax, 0xffff00ff
imul eax, ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x48]
and ebx, 0xffff00ff
imul ebx, edx
mov edx, dword [esp + 0x54]
and edx, 0xffff00ff
imul edx, dword [esp + 0x84]
add eax, ebx
add eax, edx
mov edx, dword [esp + 0x74]
shr esi, 0x10
and edx, 0xffff00ff
imul edx, esi
add eax, edx
mov edx, ecx
and edx, 0xff00
imul edx, dword [esp + 0x4c]
mov dword [esp + 0x90], esi
mov esi, dword [esp + 0x48]
and esi, 0xff00
imul esi, dword [esp + 0x5c]
add edx, esi
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x74]
and esi, 0xff00
imul esi, dword [esp + 0x84]
add edx, esi
mov esi, dword [esp + 0x90]
and ebx, 0xff00
imul ebx, esi
add edx, ebx
xor eax, edx
mov edx, dword [esp + 0x48]
and ecx, 0xff00ff
imul ecx, dword [esp + 0x4c]
and edx, 0xff00ff
imul edx, dword [esp + 0x5c]
add ecx, edx
mov edx, dword [esp + 0x54]
and edx, 0xff00ff
imul edx, dword [esp + 0x84]
add ecx, edx
mov edx, dword [esp + 0x74]
and edx, 0xff00ff
imul edx, esi
add ecx, edx
mov edx, dword [esp + 0x44]
movzx ebx, word [edx]
and eax, 0xff0000
xor eax, ecx
mov ecx, 0x100
sub ecx, dword [esp + 0x4c]
shr eax, 8
sub ecx, dword [esp + 0x5c]
add edx, 2
sub ecx, dword [esp + 0x84]
mov dword [esp + 0x44], edx
sub ecx, esi
sar ecx, 3
mov esi, ebx
shl esi, 0x10
or esi, ebx
and esi, 0x7e0f81f
imul ecx, esi
mov ebx, dword [esp + 0xac]
add dword [esp + 0x34], ebx
mov esi, eax
shr ecx, 5
and esi, 0xfc00
shl esi, 0xb
and ecx, 0x7e0f81f
add ecx, esi
mov esi, eax
shr esi, 3
shr eax, 8
and esi, 0x1f
and eax, 0xf800
add ecx, esi
mov esi, dword [ebp + 8]
add ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
mov ecx, dword [esp + 0x50]
add dword [esp + 0x40], ecx
sub dword [esp + 0x68], 1
mov word [edx - 2], ax
jne 0x51bc47
mov edx, dword [esp + 0x80]
add dword [esp + 0x30], edx
mov eax, 1
add dword [esp + 0x58], eax
fild dword [esp + 0x58]
add dword [esp + 0x60], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51ba3f
jmp 0x51e438
cmp eax, 0x3e0
fnstsw ax
jne 0x51c3bf
test ah, 0x41
mov dword [esp + 0x58], 0
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov edx, dword [esp + 0x3c]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x84]
lea ecx, [eax + eax]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x60], edx
fild dword [esp + 0x60]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x34], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x40], eax
sar eax, 0x10
sar edx, 0x10
cmp ebx, 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x88], eax
jg 0x51bfce
test edx, edx
jl 0x51c38c
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x27fff
cdq
idiv ebx
test eax, eax
jl 0x51bfc3
mov dword [esp + 0x2c], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x34]
jmp 0x51c00c
cmp ebx, 1
jl 0x51c01b
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
add eax, 0xffffffff
cmp edx, eax
jge 0x51c38c
mov eax, 0x10000
sub eax, dword [esp + 0x34]
cdq
idiv ebx
test eax, eax
jle 0x51bffc
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, ecx
jge 0x51c03e
mov ecx, eax
mov dword [esp + 0x48], ecx
jmp 0x51c03e
cmp dword [esp + 0x34], 0
jl 0x51c38c
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
shl eax, 0x10
sub eax, 0x10000
cmp dword [esp + 0x34], eax
jge 0x51c38c
mov eax, dword [esp + 0x50]
cmp eax, 0xffffffff
jg 0x51c08d
cmp dword [esp + 0x88], 0
jl 0x51c38c
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0xc]
shl eax, 0x10
sub eax, dword [esp + 0x40]
sub eax, 0x27fff
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x2c]
jle 0x51c076
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
cdq
idiv dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
neg eax
cmp eax, ecx
jge 0x51c106
mov ecx, eax
jmp 0x51c106
cmp eax, 1
jl 0x51c0e3
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
add eax, 0xffffffff
cmp dword [esp + 0x88], eax
jge 0x51c38c
mov eax, 0x10000
sub eax, dword [esp + 0x40]
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x2c]
jle 0x51c0c0
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
sub eax, 0x17fff
cdq
idiv dword [esp + 0x50]
cmp eax, ecx
jge 0x51c106
mov ecx, eax
jmp 0x51c106
cmp dword [esp + 0x40], 0
jl 0x51c38c
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp dword [esp + 0x40], eax
jge 0x51c38c
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
imul edx, ebx
imul eax, dword [esp + 0x50]
add dword [esp + 0x34], edx
add dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
cmp eax, ecx
mov edx, dword [esp + 0x30]
lea edx, [edx + eax*2]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x7c], edx
jg 0x51c38c
sub ecx, eax
add ecx, 1
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
mov edx, eax
sar edx, 0x10
imul edx, dword [esp + 0x7c]
add edx, dword [esp + 0xd4]
mov ecx, ebx
sar ecx, 0x10
add ecx, edx
movzx edx, byte [ecx]
mov edx, dword [edi + edx*4]
mov dword [esp + 0x74], edx
movzx edx, byte [ecx + 1]
mov edx, dword [edi + edx*4]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x24]
add ecx, edx
movzx edx, byte [ecx]
mov edx, dword [edi + edx*4]
mov dword [esp + 0x48], edx
and ebx, 0xfffe
add ebx, 1
and eax, 0xfffe
add eax, 1
mov dword [esp + 0x88], ebx
mov esi, 0x10000
sub esi, ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0xa0], esi
mov edx, 0x10000
sub edx, eax
imul esi, edx
imul edx, dword [esp + 0x88]
shr ebx, 0x18
shr edx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, dword [esp + 0x54]
shr ebx, 0x18
imul edx, ebx
movzx ecx, byte [ecx + 1]
mov ebx, dword [esp + 0x48]
mov ecx, dword [edi + ecx*4]
shr edx, 0x10
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0xa0]
imul edx, eax
imul eax, dword [esp + 0x88]
shr edx, 0x10
shr ebx, 0x18
imul edx, ebx
shr eax, 0x10
mov ebx, ecx
shr ebx, 0x18
imul eax, ebx
shr eax, 0x10
mov ebx, eax
shr edx, 0x10
mov eax, ecx
and eax, 0xffff00ff
imul eax, ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x48]
and ebx, 0xffff00ff
imul ebx, edx
mov edx, dword [esp + 0x54]
and edx, 0xffff00ff
imul edx, dword [esp + 0x84]
add eax, ebx
add eax, edx
mov edx, dword [esp + 0x74]
shr esi, 0x10
and edx, 0xffff00ff
imul edx, esi
add eax, edx
mov edx, ecx
and edx, 0xff00
imul edx, dword [esp + 0x4c]
mov dword [esp + 0x90], esi
mov esi, dword [esp + 0x48]
and esi, 0xff00
imul esi, dword [esp + 0x5c]
add edx, esi
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x74]
and esi, 0xff00
imul esi, dword [esp + 0x84]
add edx, esi
mov esi, dword [esp + 0x90]
and ebx, 0xff00
imul ebx, esi
add edx, ebx
xor eax, edx
mov edx, dword [esp + 0x48]
and ecx, 0xff00ff
imul ecx, dword [esp + 0x4c]
and edx, 0xff00ff
imul edx, dword [esp + 0x5c]
add ecx, edx
mov edx, dword [esp + 0x54]
and edx, 0xff00ff
imul edx, dword [esp + 0x84]
add ecx, edx
mov edx, dword [esp + 0x74]
and edx, 0xff00ff
imul edx, esi
add ecx, edx
mov edx, dword [esp + 0x44]
movzx ebx, word [edx]
and eax, 0xff0000
xor eax, ecx
mov ecx, 0x100
sub ecx, dword [esp + 0x4c]
shr eax, 8
sub ecx, dword [esp + 0x5c]
add edx, 2
sub ecx, dword [esp + 0x84]
mov dword [esp + 0x44], edx
sub ecx, esi
sar ecx, 3
mov esi, ebx
shl esi, 0x10
or esi, ebx
and esi, 0x3e07c1f
imul ecx, esi
mov ebx, dword [esp + 0xac]
add dword [esp + 0x34], ebx
mov esi, eax
shr ecx, 5
shr esi, 3
and esi, 0x1f
and ecx, 0x3e07c1f
add ecx, esi
mov esi, eax
shr esi, 9
and eax, 0xf800
and esi, 0x7c00
shl eax, 0xa
add ecx, esi
mov esi, dword [ebp + 8]
add ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
mov ecx, dword [esp + 0x50]
add dword [esp + 0x40], ecx
sub dword [esp + 0x68], 1
mov word [edx - 2], ax
jne 0x51c145
mov edx, dword [esp + 0x80]
add dword [esp + 0x30], edx
mov eax, 1
add dword [esp + 0x58], eax
fild dword [esp + 0x58]
add dword [esp + 0x60], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51bf3d
jmp 0x51e438
test ah, 0x41
mov dword [esp + 0x68], 0
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov edx, dword [esp + 0x3c]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x84]
lea ecx, [eax + eax]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x58], edx
fild dword [esp + 0x58]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x34], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x34]
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp ebx, 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x88], edx
jg 0x51c4cc
test eax, eax
jl 0x51c8ab
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x27fff
cdq
idiv ebx
test eax, eax
jl 0x51c4b4
mov dword [esp + 0x2c], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x34]
cdq
idiv ebx
cmp eax, dword [esp + 0x6c]
jge 0x51c53d
mov dword [esp + 0x6c], eax
jmp 0x51c53d
cmp ebx, 1
jl 0x51c519
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
add edx, 0xffffffff
cmp eax, edx
jge 0x51c8ab
mov eax, 0x10000
sub eax, dword [esp + 0x34]
cdq
idiv ebx
test eax, eax
jle 0x51c4fa
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, dword [esp + 0x6c]
jge 0x51c53d
mov dword [esp + 0x6c], eax
jmp 0x51c53d
cmp dword [esp + 0x34], 0
jl 0x51c8ab
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp dword [esp + 0x34], edx
jge 0x51c8ab
mov eax, dword [esp + 0x50]
cmp eax, 0xffffffff
jg 0x51c588
cmp dword [esp + 0x88], 0
jl 0x51c8ab
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x2c]
jle 0x51c573
mov dword [esp + 0x2c], eax
mov eax, ecx
cdq
idiv dword [esp + 0x50]
neg eax
cmp eax, dword [esp + 0x6c]
jge 0x51c5f8
mov dword [esp + 0x6c], eax
jmp 0x51c5f8
cmp eax, 1
jl 0x51c5da
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
add eax, 0xffffffff
cmp dword [esp + 0x88], eax
jge 0x51c8ab
mov eax, 0x10000
sub eax, ecx
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x2c]
jle 0x51c5b9
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x6c]
jge 0x51c5f8
mov dword [esp + 0x6c], eax
jmp 0x51c5f8
test ecx, ecx
jl 0x51c8ab
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp ecx, eax
jge 0x51c8ab
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
imul edx, ebx
imul eax, dword [esp + 0x50]
add dword [esp + 0x34], edx
mov edx, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x2c]
lea edx, [edx + eax*2]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x6c]
cmp eax, edx
mov dword [esp + 0x70], ecx
jg 0x51c8ab
sub edx, eax
add edx, 1
mov dword [esp + 0x78], edx
mov ebx, dword [esp + 0x34]
mov edx, ecx
sar edx, 0x10
imul edx, dword [esp + 0x7c]
add edx, dword [esp + 0xd4]
mov eax, ebx
sar eax, 0x10
add eax, edx
movzx edx, byte [eax]
mov edx, dword [edi + edx*4]
mov dword [esp + 0x40], edx
movzx edx, byte [eax + 1]
mov edx, dword [edi + edx*4]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x24]
and ebx, 0xfffe
add ebx, 1
add eax, edx
movzx edx, byte [eax]
mov edx, dword [edi + edx*4]
and ecx, 0xfffe
add ecx, 1
mov dword [esp + 0x88], ebx
mov dword [esp + 0x94], edx
mov edx, 0x10000
sub edx, ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0xa0], edx
shr ebx, 0x18
mov esi, 0x10000
sub esi, ecx
imul edx, esi
imul esi, dword [esp + 0x88]
shr edx, 0x10
imul edx, ebx
mov ebx, dword [esp + 0x2c]
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
movzx eax, byte [eax + 1]
mov ebx, dword [esp + 0x94]
mov eax, dword [edi + eax*4]
shr esi, 0x10
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0xa0]
imul esi, ecx
imul ecx, dword [esp + 0x88]
shr ebx, 0x18
shr ecx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
shr ecx, 0x10
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x60]
movzx ecx, word [ecx]
shr esi, 0x10
mov ebx, 0x100
sub ebx, dword [esp + 0x84]
movzx ecx, cx
sub ebx, esi
sub ebx, dword [esp + 0x6c]
shr edx, 0x10
sub ebx, edx
mov dword [esp + 0x4c], ecx
movzx ecx, byte [esp + 0x94]
mov dword [esp + 0x5c], ebx
imul ecx, esi
movzx ebx, al
imul ebx, dword [esp + 0x84]
add ebx, ecx
movzx ecx, byte [esp + 0x2c]
imul ecx, dword [esp + 0x6c]
add ebx, ecx
movzx ecx, byte [esp + 0x40]
imul ecx, edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], esi
add ebx, ecx
mov ecx, dword [esp + 0x98]
shr ebx, cl
mov ecx, dword [esp + 0xa4]
shl ebx, cl
mov ecx, dword [esp + 0xb8]
mov edx, ecx
and edx, dword [esp + 0x4c]
imul edx, dword [esp + 0x5c]
shr edx, 8
and edx, ecx
mov ecx, dword [esp + 0x94]
and ecx, 0xff0000
imul ecx, esi
add ebx, edx
mov edx, eax
and edx, 0xff0000
imul edx, dword [esp + 0x84]
add edx, ecx
mov ecx, dword [esp + 0x2c]
and ecx, 0xff0000
imul ecx, dword [esp + 0x6c]
add edx, ecx
mov ecx, dword [esp + 0x40]
and ecx, 0xff0000
imul ecx, dword [esp + 0x3c]
add edx, ecx
mov ecx, dword [esp + 0xd0]
shr edx, cl
mov ecx, dword [esp + 0x74]
and eax, 0xff00
imul eax, dword [esp + 0x84]
shl edx, cl
mov ecx, dword [esp + 0x38]
and ecx, dword [esp + 0x4c]
imul ecx, dword [esp + 0x5c]
shr ecx, 8
and ecx, dword [esp + 0x38]
add edx, ecx
mov ecx, dword [esp + 0x94]
and ecx, 0xff00
imul ecx, esi
add eax, ecx
mov ecx, dword [esp + 0x2c]
and ecx, 0xff00
imul ecx, dword [esp + 0x6c]
add eax, ecx
mov ecx, dword [esp + 0x40]
and ecx, 0xff00
imul ecx, dword [esp + 0x3c]
add eax, ecx
mov ecx, dword [esp + 0x54]
shr eax, cl
mov ecx, dword [esp + 0x48]
or ebx, edx
mov esi, dword [ebp + 8]
shl eax, cl
mov ecx, dword [esp + 0x8c]
mov edx, ecx
and edx, dword [esp + 0x4c]
imul edx, dword [esp + 0x5c]
shr edx, 8
and edx, ecx
mov ecx, dword [esp + 0x70]
add ecx, dword [esp + 0x50]
add eax, edx
or ebx, eax
mov eax, dword [esp + 0x60]
mov word [eax], bx
mov ebx, dword [esp + 0xac]
add dword [esp + 0x34], ebx
add eax, 2
sub dword [esp + 0x78], 1
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], ecx
jne 0x51c63d
mov eax, 1
add dword [esp + 0x68], eax
fild dword [esp + 0x68]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x80]
add dword [esp + 0x30], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51c42e
jmp 0x51e438
fnstsw ax
mov dword [esp + 0x68], 0
test ah, 0x41
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov ecx, dword [esp + 0x84]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
lea edx, [ecx + ecx]
mov dword [esp + 0x80], edx
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x34], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x40], edx
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp ebx, 0xffffffff
mov dword [esp + 0x6c], 0
mov dword [esp + 0x78], edx
jg 0x51c9ea
test eax, eax
jl 0x51cde4
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x27fff
cdq
idiv ebx
test eax, eax
jl 0x51c9d2
mov dword [esp + 0x6c], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x34]
cdq
idiv ebx
cmp eax, dword [esp + 0x40]
jge 0x51ca5b
mov dword [esp + 0x40], eax
jmp 0x51ca5b
cmp ebx, 1
jl 0x51ca37
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
add edx, 0xffffffff
cmp eax, edx
jge 0x51cde4
mov eax, 0x10000
sub eax, dword [esp + 0x34]
cdq
idiv ebx
test eax, eax
jle 0x51ca18
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, dword [esp + 0x40]
jge 0x51ca5b
mov dword [esp + 0x40], eax
jmp 0x51ca5b
cmp dword [esp + 0x34], 0
jl 0x51cde4
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp dword [esp + 0x34], edx
jge 0x51cde4
mov eax, dword [esp + 0x50]
cmp eax, 0xffffffff
jg 0x51caa3
cmp dword [esp + 0x78], 0
jl 0x51cde4
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x6c]
jle 0x51ca8e
mov dword [esp + 0x6c], eax
mov eax, ecx
cdq
idiv dword [esp + 0x50]
neg eax
cmp eax, dword [esp + 0x40]
jge 0x51cb10
mov dword [esp + 0x40], eax
jmp 0x51cb10
cmp eax, 1
jl 0x51caf2
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
add eax, 0xffffffff
cmp dword [esp + 0x78], eax
jge 0x51cde4
mov eax, 0x10000
sub eax, ecx
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x6c]
jle 0x51cad1
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x40]
jge 0x51cb10
mov dword [esp + 0x40], eax
jmp 0x51cb10
test ecx, ecx
jl 0x51cde4
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp ecx, eax
jge 0x51cde4
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
imul edx, ebx
imul eax, dword [esp + 0x50]
add dword [esp + 0x34], edx
mov edx, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x40]
lea edx, [edx + eax*2]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x7c], edx
jg 0x51cde4
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x6c]
add eax, 1
mov dword [esp + 0x44], eax
jmp 0x51cb5f
mov ecx, dword [esp + 0x2c]
mov esi, dword [esi + 0x24]
mov eax, ecx
mov ecx, dword [esp + 0x34]
sar eax, 0x10
imul eax, dword [esp + 0x7c]
add eax, dword [esp + 0xd4]
mov edx, ecx
sar edx, 0x10
movzx ebx, byte [edx + eax]
mov ebx, dword [edi + ebx*4]
add edx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x6c], ebx
movzx ebx, byte [edx + 1]
mov ebx, dword [edi + ebx*4]
add edx, esi
movzx esi, byte [edx]
mov esi, dword [edi + esi*4]
movzx edx, byte [edx + 1]
mov edx, dword [edi + edx*4]
and eax, 0xfffe
mov dword [esp + 0x70], esi
add eax, 1
mov dword [esp + 0x94], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x84], edx
and ecx, 0xfffe
add ecx, 1
mov dword [esp + 0x90], ecx
mov esi, 0x10000
sub esi, eax
mov edx, 0x10000
sub edx, ecx
imul ecx, esi
mov dword [esp + 0xa0], edx
imul edx, esi
mov esi, dword [esp + 0x94]
shr ebx, 0x18
shr esi, 0x18
shr ecx, 0x10
imul ecx, esi
mov esi, eax
imul eax, dword [esp + 0x90]
imul esi, dword [esp + 0xa0]
shr edx, 0x10
imul edx, ebx
mov ebx, dword [esp + 0x70]
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
mov ebx, dword [esp + 0x84]
shr ebx, 0x18
shr eax, 0x10
imul eax, ebx
mov ebx, dword [esp + 0x60]
movzx ebx, word [ebx]
mov dword [esp + 0xa0], ebx
shr eax, 0x10
shr esi, 0x10
mov ebx, 0x100
sub ebx, eax
sub ebx, esi
shr ecx, 0x10
sub ebx, ecx
shr edx, 0x10
sub ebx, edx
mov dword [esp + 0x5c], ebx
movzx ebx, word [esp + 0xa0]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x78], eax
and ebx, 0xff0000
imul ebx, eax
mov eax, dword [esp + 0x70]
and eax, 0xff0000
imul eax, esi
add ebx, eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x88], ecx
mov dword [esp + 0xb0], esi
and eax, 0xff0000
imul eax, ecx
mov ecx, dword [esp + 0x6c]
and ecx, 0xff0000
imul ecx, edx
add ebx, eax
mov eax, dword [esp + 0x38]
and eax, dword [esp + 0x4c]
add ebx, ecx
imul eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0xd0]
shr ebx, cl
mov ecx, dword [esp + 0x74]
shr eax, 8
and eax, dword [esp + 0x38]
shl ebx, cl
mov ecx, dword [esp + 0x70]
and ecx, 0xff00
imul ecx, esi
add ebx, eax
mov eax, dword [esp + 0x84]
and eax, 0xff00
imul eax, dword [esp + 0x78]
add eax, ecx
mov ecx, dword [esp + 0x94]
and ecx, 0xff00
imul ecx, dword [esp + 0x88]
add eax, ecx
mov ecx, dword [esp + 0x6c]
and ecx, 0xff00
imul ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x54]
shr eax, cl
mov ecx, dword [esp + 0x48]
movzx esi, byte [esp + 0x84]
shl eax, cl
imul esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x8c]
and ecx, dword [esp + 0x4c]
imul ecx, dword [esp + 0x5c]
shr ecx, 8
and ecx, dword [esp + 0x8c]
add eax, ecx
movzx ecx, byte [esp + 0x94]
imul ecx, dword [esp + 0x88]
or ebx, eax
movzx eax, byte [esp + 0x70]
imul eax, dword [esp + 0xb0]
add esi, eax
movzx eax, byte [esp + 0x6c]
imul eax, edx
add esi, ecx
mov ecx, dword [esp + 0x98]
add esi, eax
mov eax, dword [esp + 0xb8]
shr esi, cl
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x50]
add dword [esp + 0x2c], edx
shl esi, cl
mov ecx, eax
and ecx, dword [esp + 0x4c]
imul ecx, dword [esp + 0x5c]
shr ecx, 8
and ecx, eax
mov eax, dword [esp + 0x60]
add esi, ecx
or ebx, esi
mov esi, dword [ebp + 8]
mov word [eax], bx
mov ebx, dword [esp + 0xac]
add dword [esp + 0x34], ebx
add eax, 2
sub dword [esp + 0x44], 1
mov dword [esp + 0x60], eax
jne 0x51cb5b
mov eax, 1
add dword [esp + 0x68], eax
fild dword [esp + 0x68]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x80]
add dword [esp + 0x30], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51c94f
jmp 0x51e438
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [ecx + 0xc]
add eax, 1
mov dword [esp + 0x9c], eax
mov eax, dword [ecx + 4]
add eax, 1
mov dword [esp + 0xa8], eax
mov eax, dword [ecx + 8]
add eax, 1
mov dword [esp + 0xb0], eax
fnstsw ax
mov dword [esp + 0x6c], edx
test ah, 0x41
mov dword [esp + 0x68], 0
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov edx, dword [esp + 0x3c]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x84]
lea ecx, [eax + eax]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x58], edx
fild dword [esp + 0x58]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x34], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp ebx, 0xffffffff
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], edx
jg 0x51cf53
test eax, eax
jl 0x51d367
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x27fff
cdq
idiv ebx
test eax, eax
jl 0x51cf3b
mov dword [esp + 0x70], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x34]
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jge 0x51cfc4
mov dword [esp + 0x2c], eax
jmp 0x51cfc4
cmp ebx, 1
jl 0x51cfa0
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
add edx, 0xffffffff
cmp eax, edx
jge 0x51d367
mov eax, 0x10000
sub eax, dword [esp + 0x34]
cdq
idiv ebx
test eax, eax
jle 0x51cf81
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jge 0x51cfc4
mov dword [esp + 0x2c], eax
jmp 0x51cfc4
cmp dword [esp + 0x34], 0
jl 0x51d367
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp dword [esp + 0x34], edx
jge 0x51d367
mov eax, dword [esp + 0x50]
cmp eax, 0xffffffff
jg 0x51d00c
cmp dword [esp + 0x78], 0
jl 0x51d367
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x70]
jle 0x51cff7
mov dword [esp + 0x70], eax
mov eax, ecx
cdq
idiv dword [esp + 0x50]
neg eax
cmp eax, dword [esp + 0x2c]
jge 0x51d079
mov dword [esp + 0x2c], eax
jmp 0x51d079
cmp eax, 1
jl 0x51d05b
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
add eax, 0xffffffff
cmp dword [esp + 0x78], eax
jge 0x51d367
mov eax, 0x10000
sub eax, ecx
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x70]
jle 0x51d03a
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x2c]
jge 0x51d079
mov dword [esp + 0x2c], eax
jmp 0x51d079
test ecx, ecx
jl 0x51d367
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp ecx, eax
jge 0x51d367
mov eax, dword [esp + 0x70]
mov edx, ebx
imul edx, dword [esp + 0x70]
add dword [esp + 0x34], edx
mov edx, dword [esp + 0x50]
imul edx, eax
add ecx, edx
mov edx, dword [esp + 0x30]
lea edx, [edx + eax*2]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x2c]
cmp eax, edx
mov dword [esp + 0x94], ecx
jg 0x51d367
sub edx, eax
add edx, 1
mov dword [esp + 0x3c], edx
mov ebx, dword [esp + 0x34]
mov edx, ecx
sar edx, 0x10
imul edx, dword [esp + 0x7c]
add edx, dword [esp + 0xd4]
mov eax, ebx
sar eax, 0x10
add eax, edx
movzx edx, byte [eax]
mov edx, dword [edi + edx*4]
mov dword [esp + 0x40], edx
movzx edx, byte [eax + 1]
mov edx, dword [edi + edx*4]
mov dword [esp + 0x70], edx
mov edx, dword [esi + 0x24]
add eax, edx
movzx edx, byte [eax]
mov edx, dword [edi + edx*4]
and ebx, 0xfffe
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x60]
movzx edx, word [edx]
add ebx, 1
mov dword [esp + 0x78], ebx
mov dword [esp + 0x90], edx
and ecx, 0xfffe
add ecx, 1
mov edx, 0x10000
sub edx, ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0xa0], edx
mov esi, 0x10000
sub esi, ecx
imul edx, esi
imul esi, dword [esp + 0x78]
shr ebx, 0x18
shr esi, 0x10
shr edx, 0x10
imul edx, ebx
mov ebx, dword [esp + 0x70]
shr ebx, 0x18
imul esi, ebx
shr esi, 0x10
imul esi, dword [esp + 0x6c]
movzx eax, byte [eax + 1]
mov ebx, dword [esp + 0x84]
mov eax, dword [edi + eax*4]
sar esi, 8
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0xa0]
imul esi, ecx
imul ecx, dword [esp + 0x78]
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
shr ecx, 0x10
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
shr ecx, 0x10
imul ecx, dword [esp + 0x6c]
shr esi, 0x10
imul esi, dword [esp + 0x6c]
shr edx, 0x10
imul edx, dword [esp + 0x6c]
sar ecx, 8
sar esi, 8
mov ebx, 0x100
sub ebx, ecx
sub ebx, esi
sub ebx, dword [esp + 0x2c]
sar edx, 8
sub ebx, edx
mov dword [esp + 0x5c], ebx
movzx ebx, word [esp + 0x90]
mov dword [esp + 0x4c], ebx
movzx ebx, al
mov dword [esp + 0x44], edx
imul ebx, ecx
mov dword [esp + 0x88], esi
mov dword [esp + 0x78], ecx
movzx ecx, byte [esp + 0x84]
imul ecx, esi
add ebx, ecx
movzx ecx, byte [esp + 0x70]
imul ecx, dword [esp + 0x2c]
add ebx, ecx
movzx ecx, byte [esp + 0x40]
imul ecx, edx
add ebx, ecx
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x4c]
shr ebx, 8
imul ebx, dword [esp + 0xb0]
shr ebx, cl
mov ecx, dword [esp + 0xa4]
shl ebx, cl
mov ecx, dword [esp + 0xb8]
and edx, ecx
imul edx, dword [esp + 0x5c]
shr edx, 8
and edx, ecx
mov ecx, dword [esp + 0x84]
and ecx, 0xff0000
imul ecx, esi
add ebx, edx
mov edx, eax
and edx, 0xff0000
imul edx, dword [esp + 0x78]
add edx, ecx
mov ecx, dword [esp + 0x70]
and ecx, 0xff0000
imul ecx, dword [esp + 0x2c]
add edx, ecx
mov ecx, dword [esp + 0x40]
and ecx, 0xff0000
imul ecx, dword [esp + 0x44]
add edx, ecx
mov ecx, dword [esp + 0xd0]
shr edx, 8
imul edx, dword [esp + 0x9c]
shr edx, cl
mov ecx, dword [esp + 0x74]
and eax, 0xff00
imul eax, dword [esp + 0x78]
shl edx, cl
mov ecx, dword [esp + 0x4c]
and ecx, dword [esp + 0x38]
imul ecx, dword [esp + 0x5c]
shr ecx, 8
and ecx, dword [esp + 0x38]
add edx, ecx
mov ecx, dword [esp + 0x84]
and ecx, 0xff00
imul ecx, esi
add eax, ecx
mov ecx, dword [esp + 0x70]
and ecx, 0xff00
imul ecx, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x40]
and ecx, 0xff00
imul ecx, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x54]
shr eax, 8
imul eax, dword [esp + 0xa8]
shr eax, cl
mov ecx, dword [esp + 0x48]
or ebx, edx
mov edx, dword [esp + 0x8c]
shl eax, cl
mov ecx, dword [esp + 0x4c]
and ecx, edx
imul ecx, dword [esp + 0x5c]
shr ecx, 8
and ecx, edx
add eax, ecx
or ebx, eax
mov eax, dword [esp + 0x60]
mov word [eax], bx
add eax, 2
mov ecx, dword [esp + 0x94]
mov ebx, dword [esp + 0xac]
add ecx, dword [esp + 0x50]
add dword [esp + 0x34], ebx
sub dword [esp + 0x3c], 1
mov esi, dword [ebp + 8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x94], ecx
jne 0x51d0bf
mov edx, dword [esp + 0x80]
add dword [esp + 0x30], edx
mov eax, 1
add dword [esp + 0x68], eax
fild dword [esp + 0x68]
add dword [esp + 0x58], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51ceb8
jmp 0x51e438
cmp eax, 0x20
jne 0x51e442
fld qword [esp + 0xe0]
call fcn.0062a660
fld qword [esp + 0xd8]
mov dword [esp + 0x3c], eax
call fcn.0062a660
mov ecx, dword [esp + 0xbc]
mov ecx, dword [ecx + 0x90]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
imul eax, ecx
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0xbc]
mov edx, dword [edx + 0xa4]
sar eax, 2
add eax, dword [esp + 0x64]
lea eax, [edx + eax*4]
mov dword [esp + 0x6c], eax
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x1c]
call fcn.00502ac0
test al, al
fld qword [esp + 0xf0]
fcomp qword [0x6867e8]
je 0x51de82
cmp byte [0x6b9d7f], 0
fnstsw ax
je 0x51d947
test ah, 0x41
mov dword [esp + 0x58], 0
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0xa8]
fld dword [esp + 0xa8]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov ecx, dword [esp + 0x4c]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
lea edx, [ecx*4]
mov dword [esp + 0x84], edx
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0xa8]
fld dword [esp + 0xa8]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x34], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x80], edx
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp ebx, 0xffffffff
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], edx
jg 0x51d557
test eax, eax
jl 0x51d914
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x27fff
cdq
idiv ebx
test eax, eax
jl 0x51d535
mov dword [esp + 0x70], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x34]
cdq
idiv ebx
cmp eax, dword [esp + 0x80]
jge 0x51d5ce
mov dword [esp + 0x80], eax
jmp 0x51d5ce
cmp ebx, 1
jl 0x51d5aa
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
add edx, 0xffffffff
cmp eax, edx
jge 0x51d914
mov eax, 0x10000
sub eax, dword [esp + 0x34]
cdq
idiv ebx
test eax, eax
jle 0x51d585
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, dword [esp + 0x80]
jge 0x51d5ce
mov dword [esp + 0x80], eax
jmp 0x51d5ce
cmp dword [esp + 0x34], 0
jl 0x51d914
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp dword [esp + 0x34], edx
jge 0x51d914
mov eax, dword [esp + 0x50]
cmp eax, 0xffffffff
jg 0x51d61c
cmp dword [esp + 0x78], 0
jl 0x51d914
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x70]
jle 0x51d601
mov dword [esp + 0x70], eax
mov eax, ecx
cdq
idiv dword [esp + 0x50]
neg eax
cmp eax, dword [esp + 0x80]
jge 0x51d68f
mov dword [esp + 0x80], eax
jmp 0x51d68f
cmp eax, 1
jl 0x51d671
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
add eax, 0xffffffff
cmp dword [esp + 0x78], eax
jge 0x51d914
mov eax, 0x10000
sub eax, ecx
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x70]
jle 0x51d64a
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x80]
jge 0x51d68f
mov dword [esp + 0x80], eax
jmp 0x51d68f
test ecx, ecx
jl 0x51d914
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp ecx, eax
jge 0x51d914
mov eax, dword [esp + 0x70]
mov edx, ebx
imul edx, dword [esp + 0x70]
add dword [esp + 0x34], edx
mov edx, dword [esp + 0x50]
imul edx, eax
add ecx, edx
mov edx, dword [esp + 0x6c]
lea edx, [edx + eax*4]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x80]
cmp eax, edx
mov dword [esp + 0x94], ecx
jg 0x51d914
sub edx, eax
add edx, 1
mov dword [esp + 0xa4], edx
mov ebx, dword [esp + 0x34]
mov edx, ecx
sar edx, 0x10
imul edx, dword [esp + 0xa8]
add edx, dword [esp + 0xd4]
mov eax, ebx
sar eax, 0x10
add eax, edx
movzx edx, byte [eax]
mov edx, dword [edi + edx*4]
mov dword [esp + 0x98], edx
movzx edx, byte [eax + 1]
mov edx, dword [edi + edx*4]
and ebx, 0xfffe
add ebx, 1
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x24]
add eax, edx
movzx edx, byte [eax]
mov edx, dword [edi + edx*4]
mov dword [esp + 0x78], ebx
and ecx, 0xfffe
add ecx, 1
mov dword [esp + 0x48], edx
mov edx, 0x10000
sub edx, ebx
mov ebx, dword [esp + 0x98]
shr ebx, 0x18
mov dword [esp + 0x7c], edx
mov esi, 0x10000
sub esi, ecx
imul edx, esi
imul esi, dword [esp + 0x78]
shr edx, 0x10
imul edx, ebx
mov ebx, dword [esp + 0x54]
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
movzx eax, byte [eax + 1]
mov ebx, dword [esp + 0x48]
mov eax, dword [edi + eax*4]
shr esi, 0x10
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0x7c]
imul esi, ecx
imul ecx, dword [esp + 0x78]
shr ebx, 0x18
shr ecx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [esp + 0x5c]
mov ebx, dword [ebx]
mov dword [esp + 0x4c], ebx
shr ecx, 0x10
shr esi, 0x10
mov ebx, 0x100
sub ebx, ecx
sub ebx, esi
sub ebx, dword [esp + 0x74]
shr edx, 0x10
sub ebx, edx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x88], ecx
movzx ebx, al
imul ebx, ecx
movzx ecx, byte [esp + 0x48]
imul ecx, esi
add ebx, ecx
movzx ecx, byte [esp + 0x54]
imul ecx, dword [esp + 0x74]
add ebx, ecx
movzx ecx, byte [esp + 0x98]
imul ecx, edx
add ebx, ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x44], esi
and ebx, 0xff00
mov edx, dword [esp + 0x4c]
and edx, 0xffff00ff
imul edx, dword [esp + 0x78]
add ebx, edx
mov edx, dword [esp + 0x48]
mov ecx, eax
and ecx, 0xff00
imul ecx, dword [esp + 0x88]
and edx, 0xff00
imul edx, esi
add ecx, edx
mov edx, dword [esp + 0x54]
and edx, 0xff00
imul edx, dword [esp + 0x74]
add ecx, edx
mov edx, dword [esp + 0x98]
mov esi, dword [esp + 0x4c]
and edx, 0xff00
imul edx, dword [esp + 0x68]
add ecx, edx
mov edx, dword [esp + 0x78]
and ecx, 0xffff0000
and esi, 0xff00
imul esi, edx
add ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff00ff
imul ecx, dword [esp + 0x44]
and eax, 0xff00ff
imul eax, dword [esp + 0x88]
add eax, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff00ff
imul ecx, dword [esp + 0x74]
add eax, ecx
mov ecx, dword [esp + 0x98]
and ecx, 0xff00ff
imul ecx, dword [esp + 0x68]
add eax, ecx
mov ecx, dword [esp + 0x4c]
mov esi, dword [ebp + 8]
and ecx, 0xff00ff
imul ecx, edx
and eax, 0xff00ff00
add eax, ecx
mov ecx, dword [esp + 0x94]
add ecx, dword [esp + 0x50]
and ebx, 0xff0000
xor ebx, eax
mov eax, dword [esp + 0x5c]
shr ebx, 8
mov dword [eax], ebx
mov ebx, dword [esp + 0xac]
add dword [esp + 0x34], ebx
add eax, 4
sub dword [esp + 0xa4], 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x94], ecx
jne 0x51d6de
mov eax, 1
add dword [esp + 0x58], eax
fild dword [esp + 0x58]
add dword [esp + 0x60], eax
mov eax, dword [esp + 0x84]
add dword [esp + 0x6c], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51d4a9
jmp 0x51e438
test ah, 0x41
mov dword [esp + 0x68], 0
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0xa8]
fld dword [esp + 0xa8]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov ecx, dword [esp + 0x4c]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
lea edx, [ecx*4]
mov dword [esp + 0x84], edx
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0xa8]
fld dword [esp + 0xa8]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x34], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], edx
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp ebx, 0xffffffff
mov dword [esp + 0x80], 0
mov dword [esp + 0x78], edx
jg 0x51da64
test eax, eax
jl 0x51de4f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x27fff
cdq
idiv ebx
test eax, eax
jl 0x51da4c
mov dword [esp + 0x80], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x34]
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jge 0x51dad8
mov dword [esp + 0x2c], eax
jmp 0x51dad8
cmp ebx, 1
jl 0x51dab4
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
add edx, 0xffffffff
cmp eax, edx
jge 0x51de4f
mov eax, 0x10000
sub eax, dword [esp + 0x34]
cdq
idiv ebx
test eax, eax
jle 0x51da95
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jge 0x51dad8
mov dword [esp + 0x2c], eax
jmp 0x51dad8
cmp dword [esp + 0x34], 0
jl 0x51de4f
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp dword [esp + 0x34], edx
jge 0x51de4f
mov eax, dword [esp + 0x50]
cmp eax, 0xffffffff
jg 0x51db26
cmp dword [esp + 0x78], 0
jl 0x51de4f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x80]
jle 0x51db11
mov dword [esp + 0x80], eax
mov eax, ecx
cdq
idiv dword [esp + 0x50]
neg eax
cmp eax, dword [esp + 0x2c]
jge 0x51db99
mov dword [esp + 0x2c], eax
jmp 0x51db99
cmp eax, 1
jl 0x51db7b
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
add eax, 0xffffffff
cmp dword [esp + 0x78], eax
jge 0x51de4f
mov eax, 0x10000
sub eax, ecx
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x80]
jle 0x51db5a
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x2c]
jge 0x51db99
mov dword [esp + 0x2c], eax
jmp 0x51db99
test ecx, ecx
jl 0x51de4f
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp ecx, eax
jge 0x51de4f
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x80]
imul edx, ebx
imul eax, dword [esp + 0x50]
add dword [esp + 0x34], edx
mov edx, dword [esp + 0x6c]
add ecx, eax
mov eax, dword [esp + 0x80]
lea edx, [edx + eax*4]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x2c]
cmp eax, edx
mov dword [esp + 0x70], ecx
jg 0x51de4f
sub edx, eax
add edx, 1
mov dword [esp + 0x30], edx
mov ebx, dword [esp + 0x34]
mov edx, ecx
sar edx, 0x10
imul edx, dword [esp + 0xa8]
add edx, dword [esp + 0xd4]
mov eax, ebx
sar eax, 0x10
add eax, edx
movzx edx, byte [eax]
mov edx, dword [edi + edx*4]
mov dword [esp + 0x40], edx
movzx edx, byte [eax + 1]
mov edx, dword [edi + edx*4]
mov dword [esp + 0x80], edx
mov edx, dword [esi + 0x24]
add eax, edx
movzx edx, byte [eax]
mov edx, dword [edi + edx*4]
and ebx, 0xfffe
add ebx, 1
mov dword [esp + 0x94], edx
mov dword [esp + 0x78], ebx
and ecx, 0xfffe
add ecx, 1
mov esi, 0x10000
sub esi, ebx
mov ebx, dword [esp + 0x40]
shr ebx, 0x18
mov dword [esp + 0x7c], esi
mov edx, 0x10000
sub edx, ecx
imul esi, edx
imul edx, dword [esp + 0x78]
shr edx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, dword [esp + 0x80]
shr ebx, 0x18
imul edx, ebx
movzx eax, byte [eax + 1]
mov ebx, dword [esp + 0x94]
mov eax, dword [edi + eax*4]
shr edx, 0x10
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x7c]
imul edx, ecx
imul ecx, dword [esp + 0x78]
shr ebx, 0x18
shr edx, 0x10
imul edx, ebx
shr ecx, 0x10
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [esp + 0x60]
mov ebx, dword [ebx]
mov dword [esp + 0x4c], ebx
shr ecx, 0x10
shr edx, 0x10
mov ebx, 0x100
sub ebx, ecx
sub ebx, edx
sub ebx, dword [esp + 0x2c]
shr esi, 0x10
sub ebx, esi
mov dword [esp + 0x5c], ebx
mov ebx, eax
and ebx, 0xff00
imul ebx, ecx
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x94]
and ecx, 0xff00
imul ecx, edx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x80]
and edx, 0xff00
imul edx, dword [esp + 0x2c]
add ebx, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x44], esi
add ebx, edx
and ecx, 0xff00
imul ecx, esi
add ebx, ecx
mov ecx, dword [esp + 0x54]
shr ebx, cl
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
shl ebx, cl
mov ecx, dword [esp + 0x8c]
and edx, ecx
imul edx, dword [esp + 0x5c]
shr edx, 8
and edx, ecx
movzx ecx, byte [esp + 0x94]
imul ecx, dword [esp + 0x88]
add ebx, edx
movzx edx, al
imul edx, dword [esp + 0x78]
add edx, ecx
movzx ecx, byte [esp + 0x80]
imul ecx, dword [esp + 0x2c]
add edx, ecx
movzx ecx, byte [esp + 0x40]
imul ecx, esi
add edx, ecx
mov ecx, dword [esp + 0x98]
shr edx, cl
mov ecx, dword [esp + 0xa4]
and eax, 0xff0000
imul eax, dword [esp + 0x78]
shl edx, cl
mov ecx, dword [esp + 0x4c]
and ecx, dword [esp + 0xb8]
imul ecx, dword [esp + 0x5c]
shr ecx, 8
and ecx, dword [esp + 0xb8]
add edx, ecx
mov ecx, dword [esp + 0x94]
and ecx, 0xff0000
imul ecx, dword [esp + 0x88]
add eax, ecx
mov ecx, dword [esp + 0x80]
and ecx, 0xff0000
imul ecx, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x40]
and ecx, 0xff0000
imul ecx, esi
add eax, ecx
mov ecx, dword [esp + 0xd0]
shr eax, cl
mov ecx, dword [esp + 0x74]
or ebx, edx
mov edx, dword [esp + 0x38]
shl eax, cl
mov ecx, dword [esp + 0x4c]
and ecx, edx
imul ecx, dword [esp + 0x5c]
mov esi, dword [ebp + 8]
shr ecx, 8
and ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x70]
add ecx, dword [esp + 0x50]
or ebx, eax
mov eax, dword [esp + 0x60]
mov dword [eax], ebx
mov ebx, dword [esp + 0xac]
add dword [esp + 0x34], ebx
add eax, 4
sub dword [esp + 0x30], 1
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], ecx
jne 0x51dbea
mov edx, dword [esp + 0x84]
add dword [esp + 0x6c], edx
mov eax, 1
add dword [esp + 0x68], eax
fild dword [esp + 0x68]
add dword [esp + 0x58], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51d9bd
jmp 0x51e438
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x94], eax
mov eax, dword [ecx]
add eax, 1
mov dword [esp + 0x9c], eax
mov eax, dword [ecx + 4]
add eax, 1
mov dword [esp + 0xb4], eax
mov eax, dword [ecx + 8]
add eax, 1
mov dword [esp + 0xb0], eax
fnstsw ax
mov dword [esp + 0x44], 0
test ah, 0x41
jne 0x51e442
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0xa8]
fld dword [esp + 0xa8]
fld st(0)
fld qword [esp + 0xc8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov ecx, dword [esp + 0x4c]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
lea edx, [ecx*4]
mov dword [esp + 0x84], edx
mov dword [esp + 0x68], eax
fild dword [esp + 0x68]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0xa8]
fld dword [esp + 0xa8]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov dword [esp + 0x34], eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], edx
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp ebx, 0xffffffff
mov dword [esp + 0x80], 0
mov dword [esp + 0x78], edx
jg 0x51dfd4
test eax, eax
jl 0x51e40a
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x27fff
cdq
idiv ebx
test eax, eax
jl 0x51dfbc
mov dword [esp + 0x80], eax
mov eax, 0x7fff
sub eax, dword [esp + 0x34]
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jge 0x51e048
mov dword [esp + 0x2c], eax
jmp 0x51e048
cmp ebx, 1
jl 0x51e024
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
add edx, 0xffffffff
cmp eax, edx
jge 0x51e40a
mov eax, 0x10000
sub eax, dword [esp + 0x34]
cdq
idiv ebx
test eax, eax
jle 0x51e005
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x3c]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x17fff
cdq
idiv ebx
cmp eax, dword [esp + 0x2c]
jge 0x51e048
mov dword [esp + 0x2c], eax
jmp 0x51e048
cmp dword [esp + 0x34], 0
jl 0x51e40a
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp dword [esp + 0x34], edx
jge 0x51e40a
mov eax, dword [esp + 0x50]
cmp eax, 0xffffffff
jg 0x51e096
cmp dword [esp + 0x78], 0
jl 0x51e40a
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x80]
jle 0x51e081
mov dword [esp + 0x80], eax
mov eax, ecx
cdq
idiv dword [esp + 0x50]
neg eax
cmp eax, dword [esp + 0x2c]
jge 0x51e109
mov dword [esp + 0x2c], eax
jmp 0x51e109
cmp eax, 1
jl 0x51e0eb
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
add eax, 0xffffffff
cmp dword [esp + 0x78], eax
jge 0x51e40a
mov eax, 0x10000
sub eax, ecx
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x80]
jle 0x51e0ca
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv dword [esp + 0x50]
cmp eax, dword [esp + 0x2c]
jge 0x51e109
mov dword [esp + 0x2c], eax
jmp 0x51e109
test ecx, ecx
jl 0x51e40a
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp ecx, eax
jge 0x51e40a
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x80]
imul edx, ebx
imul eax, dword [esp + 0x50]
add dword [esp + 0x34], edx
mov edx, dword [esp + 0x6c]
add ecx, eax
mov eax, dword [esp + 0x80]
lea edx, [edx + eax*4]
mov dword [esp + 0x58], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x2c]
cmp eax, edx
mov dword [esp + 0x70], ecx
jg 0x51e40a
sub edx, eax
add edx, 1
mov dword [esp + 0x88], edx
mov esi, dword [esi + 0x24]
mov edx, dword [esp + 0x34]
mov ebx, ecx
sar ebx, 0x10
imul ebx, dword [esp + 0xa8]
add ebx, dword [esp + 0xd4]
mov eax, edx
sar eax, 0x10
add eax, ebx
movzx ebx, byte [eax]
mov ebx, dword [edi + ebx*4]
mov dword [esp + 0x40], ebx
movzx ebx, byte [eax + 1]
mov ebx, dword [edi + ebx*4]
add eax, esi
movzx esi, byte [eax]
mov esi, dword [edi + esi*4]
mov dword [esp + 0x80], esi
mov esi, dword [esp + 0x58]
mov esi, dword [esi]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x2c], ebx
and edx, 0xfffe
and ecx, 0xfffe
add edx, 1
add ecx, 1
mov esi, 0x10000
sub esi, edx
mov dword [esp + 0xa0], esi
mov ebx, 0x10000
sub ebx, ecx
imul esi, ebx
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x40]
shr esi, 0x10
shr ebx, 0x18
imul esi, ebx
shr esi, 0x10
imul esi, dword [esp + 0x94]
movzx eax, byte [eax + 1]
mov dword [esp + 0x90], edx
imul edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
mov eax, dword [edi + eax*4]
sar esi, 8
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x2c]
shr esi, 0x18
shr edx, 0x10
imul edx, esi
mov esi, ecx
imul ecx, dword [esp + 0x90]
imul esi, dword [esp + 0xa0]
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
shr ecx, 0x10
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
shr ecx, 0x10
imul ecx, dword [esp + 0x94]
shr esi, 0x10
imul esi, dword [esp + 0x94]
shr edx, 0x10
imul edx, dword [esp + 0x94]
sar ecx, 8
sar esi, 8
mov ebx, 0x100
sub ebx, ecx
sub ebx, esi
sar edx, 8
sub ebx, edx
sub ebx, dword [esp + 0x30]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x60], ebx
movzx ebx, al
imul ebx, ecx
movzx ecx, byte [esp + 0x80]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], esi
imul ecx, esi
add ebx, ecx
movzx ecx, byte [esp + 0x2c]
imul ecx, edx
add ebx, ecx
movzx edx, byte [esp + 0x40]
imul edx, dword [esp + 0x30]
add ebx, edx
mov ecx, dword [esp + 0x98]
shr ebx, 8
imul ebx, dword [esp + 0xb0]
shr ebx, cl
mov ecx, dword [esp + 0xa4]
mov edx, eax
and edx, 0xff0000
shl ebx, cl
imul edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
and ecx, dword [esp + 0xb8]
and eax, 0xff00
imul ecx, dword [esp + 0x60]
imul eax, dword [esp + 0x4c]
shr ecx, 8
and ecx, dword [esp + 0xb8]
add ebx, ecx
mov ecx, dword [esp + 0x80]
and ecx, 0xff0000
imul ecx, esi
add edx, ecx
mov ecx, dword [esp + 0x2c]
and ecx, 0xff0000
imul ecx, dword [esp + 0x78]
add edx, ecx
mov ecx, dword [esp + 0x40]
and ecx, 0xff0000
imul ecx, dword [esp + 0x30]
add edx, ecx
mov ecx, dword [esp + 0xd0]
shr edx, 8
imul edx, dword [esp + 0x9c]
shr edx, cl
mov ecx, dword [esp + 0x74]
shl edx, cl
mov ecx, dword [esp + 0x5c]
and ecx, dword [esp + 0x38]
imul ecx, dword [esp + 0x60]
shr ecx, 8
and ecx, dword [esp + 0x38]
add edx, ecx
mov ecx, dword [esp + 0x80]
and ecx, 0xff00
imul ecx, esi
add eax, ecx
mov ecx, dword [esp + 0x2c]
and ecx, 0xff00
imul ecx, dword [esp + 0x78]
add eax, ecx
mov ecx, dword [esp + 0x40]
and ecx, 0xff00
imul ecx, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [esp + 0x54]
shr eax, 8
imul eax, dword [esp + 0xb4]
shr eax, cl
mov ecx, dword [esp + 0x48]
or ebx, edx
mov edx, dword [esp + 0x8c]
shl eax, cl
mov ecx, dword [esp + 0x5c]
and ecx, edx
imul ecx, dword [esp + 0x60]
shr ecx, 8
and ecx, edx
add eax, ecx
or ebx, eax
mov eax, dword [esp + 0x58]
mov dword [eax], ebx
mov ebx, dword [esp + 0xac]
add eax, 4
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x70]
add ecx, dword [esp + 0x50]
add dword [esp + 0x34], ebx
sub dword [esp + 0x88], 1
mov esi, dword [ebp + 8]
mov dword [esp + 0x70], ecx
jne 0x51e15d
mov edx, dword [esp + 0x84]
add dword [esp + 0x6c], edx
mov eax, 1
add dword [esp + 0x44], eax
fild dword [esp + 0x44]
add dword [esp + 0x68], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51df2d
fstp st(0)
fstp st(0)
fstp st(1)
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc0]
call edx
mov esi, dword [esp + 0xbc]
call fcn.0050ac20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov ebx, dword [ecx + 0x48]
mov dword [esp + 0xa4], ebx
call fcn.00527e40
test ebx, ebx
jne 0x51f210
mov edi, eax
mov eax, dword [ebp + 0x14]
imul edi, dword [eax + 4]
add edi, dword [eax]
mov eax, dword [ecx]
mov edx, dword [eax + 0x7c]
add edi, edi
add edi, edi
call edx
add eax, edi
fld qword [ebp + 0x24]
mov dword [esp + 0xb8], eax
call fcn.00629ff0
fstp qword [esp + 0xf8]
fld qword [ebp + 0x24]
call fcn.0062a160
fst qword [esp + 0xc0]
fld qword [esp + 0xf8]
fld qword [0x686db8]
fmul st(1), st(0)
fxch st(1)
call fcn.0062a660
fmulp st(1)
mov dword [esp + 0x34], eax
call fcn.0062a660
mov ebx, dword [esp + 0xbc]
mov edi, eax
mov eax, dword [ebx]
mov edx, dword [eax + 0xbc]
mov ecx, ebx
mov dword [esp + 0x30], edi
call edx
test al, al
je 0x51ffe0
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax + 0xd0]
mov edx, dword [eax + 0xd4]
mov dword [esp + 0x70], ecx
mov ecx, dword [eax + 0xd8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x50], ecx
mov ecx, 0x20
sub ecx, dword [eax + 0x14]
mov dword [esp + 0x9c], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0xac], ecx
mov ecx, 0x18
sub ecx, dword [eax + 0x18]
mov dword [esp + 0x74], edx
mov edx, dword [eax + 0x28]
mov dword [esp + 0x6c], ecx
mov ecx, 0x10
sub ecx, dword [eax + 0x1c]
mov eax, dword [ebx + 0xd8]
mov dword [esp + 0xd4], eax
mov eax, dword [ebx + 0xd4]
cmp eax, 0x10
mov dword [esp + 0x84], edx
mov edx, dword [ebx + 0xe0]
mov dword [esp + 0x94], ecx
mov ecx, dword [ebx + 0xdc]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x80], edx
jne 0x51ebc5
fld qword [esp + 0xe0]
call fcn.0062a660
fld qword [esp + 0xd8]
mov dword [esp + 0x3c], eax
call fcn.0062a660
fld qword [esp + 0xf0]
mov ecx, dword [ebx + 0x90]
fcomp qword [0x6867e8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
imul eax, ecx
cdq
sub eax, edx
mov edx, dword [ebx + 0xa4]
sar eax, 1
add eax, dword [esp + 0x64]
mov dword [esp + 0x68], 0
lea eax, [edx + eax*2]
mov dword [esp + 0x58], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax]
imul ecx, edx
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
imul ecx, eax
mov dword [esp + 0xb4], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx + 8]
imul ecx, dword [esp + 0xb4]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xb0], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x90], eax
fnstsw ax
test ah, 0x41
jne 0x51f207
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0xb4]
fld dword [esp + 0xb4]
fld st(0)
fld qword [esp + 0xf8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov edx, dword [esp + 0xa8]
fld qword [0x686db8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x64], eax
lea eax, [edx + edx]
mov dword [esp + 0xc8], eax
mov dword [esp + 0x60], ecx
fild dword [esp + 0x60]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0xb4]
fld dword [esp + 0xb4]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov ebx, eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, ebx
sar eax, 0x10
mov dword [esp + 0x78], eax
mov eax, ecx
sar eax, 0x10
cmp dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], eax
jg 0x51e7a4
cmp dword [esp + 0x78], 0
jl 0x51eb92
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
mov edi, dword [esp + 0x34]
shl eax, 0x10
sub eax, ebx
sub eax, 0x27fff
cdq
idiv edi
test eax, eax
jl 0x51e77c
mov dword [esp + 0x38], eax
mov eax, 0x7fff
sub eax, ebx
cdq
idiv edi
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0x30]
cmp eax, edx
jge 0x51e81f
mov edx, eax
mov dword [esp + 0x8c], edx
jmp 0x51e81f
cmp dword [esp + 0x34], 1
jl 0x51e801
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
add eax, 0xffffffff
cmp dword [esp + 0x78], eax
jge 0x51eb92
mov edi, dword [esp + 0x34]
mov eax, 0x10000
sub eax, ebx
cdq
idiv edi
test eax, eax
jle 0x51e7d4
mov dword [esp + 0x38], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
shl eax, 0x10
sub eax, ebx
sub eax, 0x17fff
cdq
idiv edi
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0x30]
cmp eax, edx
jge 0x51e81f
mov edx, eax
mov dword [esp + 0x8c], eax
jmp 0x51e81f
test ebx, ebx
jl 0x51eb92
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, 0x10000
cmp ebx, eax
jge 0x51eb92
cmp edi, 0xffffffff
jg 0x51e865
cmp dword [esp + 0x88], 0
jl 0x51eb92
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv edi
cmp eax, dword [esp + 0x38]
jle 0x51e84f
mov dword [esp + 0x38], eax
mov eax, ecx
cdq
idiv edi
mov edx, dword [esp + 0x8c]
neg eax
cmp eax, edx
jge 0x51e8d4
mov edx, eax
jmp 0x51e8d4
cmp edi, 1
jl 0x51e8b6
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
add eax, 0xffffffff
cmp dword [esp + 0x88], eax
jge 0x51eb92
mov eax, 0x10000
sub eax, ecx
cdq
idiv edi
cmp eax, dword [esp + 0x38]
jle 0x51e894
mov dword [esp + 0x38], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv edi
mov edx, dword [esp + 0x8c]
cmp eax, edx
jge 0x51e8d4
mov edx, eax
jmp 0x51e8d4
test ecx, ecx
jl 0x51eb92
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp ecx, eax
jge 0x51eb92
mov eax, dword [esp + 0x38]
imul eax, dword [esp + 0x34]
mov edi, dword [esp + 0x58]
add ebx, eax
mov eax, dword [esp + 0x38]
imul eax, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x38]
cmp eax, edx
lea edi, [edi + eax*2]
mov dword [esp + 0x5c], edi
mov edi, dword [esi + 0x24]
mov dword [esp + 0x98], ebx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xb4], edi
jg 0x51eb8e
sub edx, eax
add edx, 1
mov dword [esp + 0xd0], edx
mov esi, dword [esi + 0x24]
mov edx, ecx
sar edx, 0x10
imul edx, dword [esp + 0xb4]
mov eax, ebx
sar eax, 0x10
add edx, eax
mov eax, dword [esp + 0xb8]
mov edi, dword [eax + edx*4 + 4]
lea eax, [eax + edx*4]
mov edx, ebx
mov ebx, dword [eax]
and ecx, 0xfffe
lea eax, [eax + esi*4]
mov esi, dword [eax]
add ecx, 1
mov dword [esp + 0x48], esi
and edx, 0xfffe
add edx, 1
mov dword [esp + 0x54], edi
mov dword [esp + 0x7c], edx
mov eax, dword [eax + 4]
mov esi, 0x10000
sub esi, ecx
mov edi, 0x10000
sub edi, edx
imul edx, esi
mov dword [esp + 0xa8], edi
imul edi, esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x44], ebx
shr ebx, 0x18
shr edx, 0x10
shr esi, 0x18
imul edx, esi
mov esi, ecx
imul ecx, dword [esp + 0x7c]
imul esi, dword [esp + 0xa8]
shr edi, 0x10
imul edi, ebx
mov ebx, dword [esp + 0x48]
shr ebx, 0x18
shr ecx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [esp + 0x5c]
movzx ebx, word [ebx]
movzx ebx, bx
mov dword [esp + 0x4c], ebx
shr ecx, 0x10
mov dword [esp + 0x78], ecx
mov ebx, eax
and ebx, 0xff0000
imul ebx, ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff0000
shr esi, 0x10
imul ecx, esi
add ebx, ecx
mov ecx, dword [esp + 0x54]
shr edx, 0x10
and ecx, 0xff0000
imul ecx, edx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x44]
and edx, 0xff0000
shr edi, 0x10
imul edx, edi
add ebx, ecx
mov ecx, dword [esp + 0xac]
add ebx, edx
mov edx, dword [esp + 0xd4]
shr ebx, cl
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xa8], esi
imul ebx, dword [esp + 0xa0]
shr ebx, 8
and edx, dword [esp + 0x4c]
shr edx, cl
mov ecx, dword [esp + 0x70]
add ebx, edx
mov dx, word [ecx + ebx*4]
mov ecx, dword [esp + 0x74]
shl dx, cl
movzx ecx, byte [esp + 0x48]
imul ecx, esi
movzx ebx, al
imul ebx, dword [esp + 0x78]
add ebx, ecx
movzx ecx, byte [esp + 0x54]
imul ecx, dword [esp + 0x88]
add ebx, ecx
movzx ecx, byte [esp + 0x44]
imul ecx, edi
add ebx, ecx
imul ebx, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x80]
and esi, dword [esp + 0x4c]
add ecx, 8
shr ebx, cl
mov ecx, dword [esp + 0x84]
shr esi, cl
mov ecx, dword [esp + 0x2c]
and eax, 0xff00
imul eax, dword [esp + 0x78]
add ebx, esi
mov si, word [ecx + ebx*4]
mov ecx, dword [esp + 0x84]
shl si, cl
mov ecx, dword [esp + 0x48]
and ecx, 0xff00
imul ecx, dword [esp + 0xa8]
add eax, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff00
imul ecx, dword [esp + 0x88]
add eax, ecx
mov ecx, dword [esp + 0x44]
and ecx, 0xff00
imul ecx, edi
add eax, ecx
imul eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x98]
add ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
or dx, si
mov esi, dword [esp + 0x40]
and esi, dword [esp + 0x4c]
add ecx, 8
shr eax, cl
mov ecx, dword [esp + 0x50]
shr esi, cl
mov dword [esp + 0x98], ebx
add eax, esi
mov esi, dword [esp + 0x9c]
mov ax, word [esi + eax*4]
mov esi, dword [ebp + 8]
shl ax, cl
mov ecx, dword [esp + 0xa4]
add ecx, edi
mov dword [esp + 0xa4], ecx
or dx, ax
mov eax, dword [esp + 0x5c]
mov word [eax], dx
add eax, 2
sub dword [esp + 0xd0], 1
mov dword [esp + 0x5c], eax
jne 0x51e925
jmp 0x51eb92
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0xc8]
add dword [esp + 0x58], ecx
mov eax, 1
add dword [esp + 0x68], eax
fild dword [esp + 0x68]
add dword [esp + 0x60], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51e6e6
jmp 0x51f1f6
cmp eax, 0x20
jne 0x51f207
fld qword [esp + 0xe0]
call fcn.0062a660
fld qword [esp + 0xd8]
mov dword [esp + 0x3c], eax
call fcn.0062a660
fld qword [esp + 0xf0]
mov ecx, dword [ebx + 0x90]
fcomp qword [0x6867e8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
imul eax, ecx
cdq
and edx, 3
add eax, edx
mov edx, dword [ebx + 0xa4]
sar eax, 2
add eax, dword [esp + 0x64]
mov dword [esp + 0x68], 0
lea eax, [edx + eax*4]
mov dword [esp + 0x58], eax
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0xb4], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax]
imul ecx, edx
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
imul ecx, eax
mov dword [esp + 0xc8], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx + 8]
imul ecx, dword [esp + 0xc8]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x90], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xa0], eax
fnstsw ax
test ah, 0x41
jne 0x51f207
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0xc8]
fld dword [esp + 0xc8]
fld st(0)
fld qword [esp + 0xf8]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xc0]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov edx, dword [esp + 0xb4]
fld qword [0x686db8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x64], eax
lea eax, [edx*4]
mov dword [esp + 0xb0], eax
mov dword [esp + 0x60], ecx
fild dword [esp + 0x60]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0xc8]
fld dword [esp + 0xc8]
fld qword [esp + 0xc0]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov ebx, eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, ebx
sar eax, 0x10
mov dword [esp + 0x78], eax
mov eax, ecx
sar eax, 0x10
cmp dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], eax
jg 0x51ede4
cmp dword [esp + 0x78], 0
jl 0x51f1c8
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
mov edi, dword [esp + 0x34]
shl eax, 0x10
sub eax, ebx
sub eax, 0x27fff
cdq
idiv edi
test eax, eax
jl 0x51edbc
mov dword [esp + 0x38], eax
mov eax, 0x7fff
sub eax, ebx
cdq
idiv edi
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0x30]
cmp eax, edx
jge 0x51ee5f
mov edx, eax
mov dword [esp + 0x8c], edx
jmp 0x51ee5f
cmp dword [esp + 0x34], 1
jl 0x51ee41
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
add eax, 0xffffffff
cmp dword [esp + 0x78], eax
jge 0x51f1c8
mov edi, dword [esp + 0x34]
mov eax, 0x10000
sub eax, ebx
cdq
idiv edi
test eax, eax
jle 0x51ee14
mov dword [esp + 0x38], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
shl eax, 0x10
sub eax, ebx
sub eax, 0x17fff
cdq
idiv edi
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0x30]
cmp eax, edx
jge 0x51ee5f
mov edx, eax
mov dword [esp + 0x8c], eax
jmp 0x51ee5f
test ebx, ebx
jl 0x51f1c8
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, 0x10000
cmp ebx, eax
jge 0x51f1c8
cmp edi, 0xffffffff
jg 0x51eea5
cmp dword [esp + 0x88], 0
jl 0x51f1c8
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv edi
cmp eax, dword [esp + 0x38]
jle 0x51ee8f
mov dword [esp + 0x38], eax
mov eax, ecx
cdq
idiv edi
mov edx, dword [esp + 0x8c]
neg eax
cmp eax, edx
jge 0x51ef14
mov edx, eax
jmp 0x51ef14
cmp edi, 1
jl 0x51eef6
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
add eax, 0xffffffff
cmp dword [esp + 0x88], eax
jge 0x51f1c8
mov eax, 0x10000
sub eax, ecx
cdq
idiv edi
cmp eax, dword [esp + 0x38]
jle 0x51eed4
mov dword [esp + 0x38], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv edi
mov edx, dword [esp + 0x8c]
cmp eax, edx
jge 0x51ef14
mov edx, eax
jmp 0x51ef14
test ecx, ecx
jl 0x51f1c8
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp ecx, eax
jge 0x51f1c8
mov eax, dword [esp + 0x38]
imul eax, dword [esp + 0x34]
mov edi, dword [esp + 0x58]
add ebx, eax
mov eax, dword [esp + 0x38]
imul eax, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x38]
cmp eax, edx
lea edi, [edi + eax*4]
mov dword [esp + 0x5c], edi
mov edi, dword [esi + 0x24]
mov dword [esp + 0x98], ebx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xc8], edi
jg 0x51f1c4
sub edx, eax
add edx, 1
mov dword [esp + 0xd0], edx
mov esi, dword [esi + 0x24]
mov edx, ecx
sar edx, 0x10
imul edx, dword [esp + 0xc8]
mov eax, ebx
sar eax, 0x10
add edx, eax
mov eax, dword [esp + 0xb8]
mov edi, dword [eax + edx*4 + 4]
lea eax, [eax + edx*4]
mov edx, ebx
mov ebx, dword [eax]
and ecx, 0xfffe
lea eax, [eax + esi*4]
mov esi, dword [eax]
add ecx, 1
and edx, 0xfffe
mov dword [esp + 0x48], esi
add edx, 1
mov dword [esp + 0xa8], edx
mov dword [esp + 0x54], edi
mov eax, dword [eax + 4]
mov esi, 0x10000
sub esi, ecx
mov edi, 0x10000
sub edi, edx
imul edx, esi
mov dword [esp + 0xb4], edi
imul edi, esi
mov esi, dword [esp + 0x54]
shr edx, 0x10
mov dword [esp + 0x44], ebx
shr esi, 0x18
imul edx, esi
mov esi, ecx
imul ecx, dword [esp + 0xa8]
imul esi, dword [esp + 0xb4]
shr ebx, 0x18
shr edi, 0x10
imul edi, ebx
mov ebx, dword [esp + 0x48]
shr ebx, 0x18
shr ecx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [esp + 0x5c]
mov ebx, dword [ebx]
mov dword [esp + 0x4c], ebx
shr ecx, 0x10
mov dword [esp + 0x78], ecx
mov ebx, eax
and ebx, 0xff0000
imul ebx, ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff0000
shr esi, 0x10
imul ecx, esi
add ebx, ecx
mov ecx, dword [esp + 0x54]
shr edx, 0x10
mov dword [esp + 0x88], edx
and ecx, 0xff0000
imul ecx, edx
mov edx, dword [esp + 0x44]
and edx, 0xff0000
shr edi, 0x10
imul edx, edi
add ebx, ecx
mov ecx, dword [esp + 0xac]
add ebx, edx
mov edx, dword [esp + 0x4c]
and edx, dword [esp + 0xd4]
shr ebx, cl
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xb4], esi
imul ebx, dword [esp + 0x7c]
shr ebx, 8
shr edx, cl
mov ecx, dword [esp + 0x70]
add ebx, edx
mov ebx, dword [ecx + ebx*4]
mov ecx, dword [esp + 0x74]
shl ebx, cl
movzx ecx, byte [esp + 0x48]
imul ecx, esi
movzx edx, al
imul edx, dword [esp + 0x78]
add edx, ecx
movzx ecx, byte [esp + 0x54]
imul ecx, dword [esp + 0x88]
add edx, ecx
movzx ecx, byte [esp + 0x44]
imul ecx, edi
add edx, ecx
imul edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x4c]
and esi, dword [esp + 0x80]
add ecx, 8
shr edx, cl
mov ecx, dword [esp + 0x84]
shr esi, cl
mov ecx, dword [esp + 0x2c]
and eax, 0xff00
imul eax, dword [esp + 0x78]
add edx, esi
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x84]
shl edx, cl
mov ecx, dword [esp + 0x48]
and ecx, 0xff00
imul ecx, dword [esp + 0xb4]
add eax, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff00
imul ecx, dword [esp + 0x88]
add eax, ecx
mov ecx, dword [esp + 0x44]
and ecx, 0xff00
imul ecx, edi
add eax, ecx
imul eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x6c]
or ebx, edx
mov edx, dword [esp + 0x4c]
and edx, dword [esp + 0x40]
mov edi, dword [esp + 0x30]
add ecx, 8
shr eax, cl
mov ecx, dword [esp + 0x50]
mov esi, dword [ebp + 8]
shr edx, cl
add eax, edx
mov edx, dword [esp + 0x9c]
mov eax, dword [edx + eax*4]
shl eax, cl
mov ecx, dword [esp + 0xa4]
add ecx, edi
mov dword [esp + 0xa4], ecx
or ebx, eax
mov eax, dword [esp + 0x5c]
mov dword [eax], ebx
mov ebx, dword [esp + 0x98]
add ebx, dword [esp + 0x34]
add eax, 4
sub dword [esp + 0xd0], 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x98], ebx
jne 0x51ef65
jmp 0x51f1c8
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0xb0]
add dword [esp + 0x58], ecx
mov eax, 1
add dword [esp + 0x68], eax
fild dword [esp + 0x68]
add dword [esp + 0x60], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51ed26
mov ebx, dword [esp + 0xbc]
fstp st(0)
fstp st(0)
fstp st(1)
fstp st(0)
fstp st(0)
mov edx, dword [ebx]
mov ecx, ebx
jmp 0x51ff0f
mov edx, dword [ebp + 0x14]
fld qword [ebp + 0x24]
imul eax, dword [edx + 4]
add eax, dword [ecx + 0x4c]
add eax, dword [edx]
mov dword [esp + 0xd0], eax
call fcn.00629ff0
fstp qword [esp + 0xc0]
fld qword [ebp + 0x24]
call fcn.0062a160
fst qword [esp + 0xf8]
fld qword [esp + 0xc0]
fld qword [0x686db8]
fmul st(1), st(0)
fxch st(1)
call fcn.0062a660
fmulp st(1)
mov dword [esp + 0x30], eax
call fcn.0062a660
mov edx, dword [edi]
mov dword [esp + 0x8c], eax
mov eax, dword [edx + 0xbc]
mov ecx, edi
call eax
test al, al
je 0x51ffe0
mov eax, dword [edi + 0x6c]
mov ecx, dword [eax + 0xd0]
mov edx, dword [eax + 0xd4]
mov dword [esp + 0x94], ecx
mov ecx, dword [eax + 0xd8]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0xb0], ecx
mov ecx, 0x20
sub ecx, dword [eax + 0x14]
mov dword [esp + 0x90], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0xd4], ecx
mov ecx, 0x18
sub ecx, dword [eax + 0x18]
mov dword [esp + 0x84], edx
mov edx, dword [eax + 0x28]
mov dword [esp + 0x40], ecx
mov ecx, 0x10
sub ecx, dword [eax + 0x1c]
mov eax, dword [edi + 0xd8]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0xd4]
cmp eax, 0x10
mov dword [esp + 0x98], edx
mov edx, dword [edi + 0xe0]
mov dword [esp + 0x80], ecx
mov ecx, dword [edi + 0xdc]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], edx
jne 0x51f930
fld qword [esp + 0xe0]
call fcn.0062a660
fld qword [esp + 0xd8]
mov dword [esp + 0x3c], eax
call fcn.0062a660
fld qword [esp + 0xf0]
mov ecx, dword [edi + 0x90]
fcomp qword [0x6867e8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
imul eax, ecx
cdq
sub eax, edx
mov edx, dword [edi + 0xa4]
sar eax, 1
add eax, dword [esp + 0x64]
mov edi, dword [ebp + 0x1c]
lea eax, [edx + eax*2]
mov dword [esp + 0x60], eax
mov eax, ecx
mov ecx, dword [edi]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0xb4], eax
mov eax, dword [edi + 0xc]
imul ecx, eax
mov dword [esp + 0x9c], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [edi + 4]
imul ecx, dword [esp + 0x9c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xa8], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [edi + 8]
imul ecx, dword [esp + 0x9c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xa0], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x58], 0
fnstsw ax
test ah, 0x41
jne 0x51ff06
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0xc8]
fld dword [esp + 0xc8]
fld st(0)
fld qword [esp + 0xc0]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xf8]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov ecx, dword [esp + 0xb4]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
lea edx, [ecx + ecx]
mov dword [esp + 0xac], edx
mov dword [esp + 0x5c], eax
fild dword [esp + 0x5c]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0xc8]
fld dword [esp + 0xc8]
fld qword [esp + 0xf8]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov edi, eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, edi
mov dword [esp + 0x34], ecx
sar ecx, 0x10
sar eax, 0x10
cmp dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x38], 0
mov dword [esp + 0xb8], edx
mov dword [esp + 0x9c], ecx
jg 0x51f4fb
test eax, eax
jl 0x51f8fd
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x30]
shl eax, 0x10
sub eax, edi
sub eax, 0x27fff
cdq
idiv ecx
test eax, eax
jl 0x51f4f2
mov dword [esp + 0x38], eax
mov eax, 0x7fff
sub eax, edi
jmp 0x51f539
cmp dword [esp + 0x30], 1
jl 0x51f552
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + 8]
add ecx, 0xffffffff
cmp eax, ecx
jge 0x51f8fd
mov ecx, dword [esp + 0x30]
mov eax, 0x10000
sub eax, edi
cdq
idiv ecx
test eax, eax
jle 0x51f529
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, edi
sub eax, 0x17fff
cdq
idiv ecx
mov edx, dword [esp + 0xb8]
cmp eax, edx
jge 0x51f570
mov edx, eax
mov dword [esp + 0xb8], edx
jmp 0x51f570
test edi, edi
jl 0x51f8fd
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 8]
shl eax, 0x10
sub eax, 0x10000
cmp edi, eax
jge 0x51f8fd
mov ecx, dword [esp + 0x8c]
cmp ecx, 0xffffffff
jg 0x51f5c1
cmp dword [esp + 0x9c], 0
jl 0x51f8fd
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x27fff
cdq
idiv ecx
cmp eax, dword [esp + 0x38]
jle 0x51f5a9
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
cdq
idiv ecx
mov edx, dword [esp + 0xb8]
neg eax
cmp eax, edx
jge 0x51f639
mov edx, eax
jmp 0x51f639
cmp ecx, 1
jl 0x51f616
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
add eax, 0xffffffff
cmp dword [esp + 0x9c], eax
jge 0x51f8fd
mov eax, 0x10000
sub eax, dword [esp + 0x34]
cdq
idiv ecx
cmp eax, dword [esp + 0x38]
jle 0x51f5f2
mov dword [esp + 0x38], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x17fff
cdq
idiv ecx
mov edx, dword [esp + 0xb8]
cmp eax, edx
jge 0x51f639
mov edx, eax
jmp 0x51f639
cmp dword [esp + 0x34], 0
jl 0x51f8fd
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp dword [esp + 0x34], eax
jge 0x51f8fd
mov eax, dword [esp + 0x38]
imul eax, dword [esp + 0x30]
add edi, eax
mov eax, dword [esp + 0x38]
imul eax, ecx
add dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
cmp eax, edx
mov ecx, dword [esp + 0x60]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x88], edi
mov dword [esp + 0xc8], ecx
jg 0x51f8fd
sub edx, eax
mov eax, dword [esp + 0x34]
add edx, 1
mov dword [esp + 0x68], edx
mov edx, eax
sar edx, 0x10
imul edx, dword [esp + 0xc8]
add edx, dword [esp + 0xd0]
mov eax, edi
mov ecx, dword [esp + 0x34]
sar eax, 0x10
add eax, edx
movzx edx, byte [eax]
mov edx, dword [ebx + edx*4]
mov dword [esp + 0x74], edx
movzx edx, byte [eax + 1]
mov edx, dword [ebx + edx*4]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x24]
add eax, edx
movzx edx, byte [eax]
mov edx, dword [ebx + edx*4]
movzx eax, byte [eax + 1]
mov eax, dword [ebx + eax*4]
mov ebx, dword [esp + 0x74]
and ecx, 0xfffe
add ecx, 1
mov dword [esp + 0x48], edx
and edi, 0xfffe
add edi, 1
mov dword [esp + 0x9c], edi
shr ebx, 0x18
mov esi, 0x10000
sub esi, edi
mov edi, esi
imul esi, ecx
mov edx, 0x10000
sub edx, ecx
imul ecx, dword [esp + 0x9c]
imul edi, edx
imul edx, dword [esp + 0x9c]
shr edi, 0x10
imul edi, ebx
mov ebx, dword [esp + 0x54]
shr ebx, 0x18
shr edx, 0x10
imul edx, ebx
mov ebx, dword [esp + 0x48]
shr ebx, 0x18
shr ecx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [esp + 0x4c]
movzx ebx, word [ebx]
movzx ebx, bx
mov dword [esp + 0x44], ebx
shr ecx, 0x10
mov dword [esp + 0x9c], ecx
mov ebx, eax
and ebx, 0xff0000
imul ebx, ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff0000
shr esi, 0x10
imul ecx, esi
add ebx, ecx
mov ecx, dword [esp + 0x54]
shr edx, 0x10
and ecx, 0xff0000
imul ecx, edx
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x74]
shr edi, 0x10
and edx, 0xff0000
imul edx, edi
add ebx, ecx
mov ecx, dword [esp + 0xd4]
add ebx, edx
shr ebx, cl
mov dword [esp + 0xb4], esi
imul ebx, dword [esp + 0xa8]
shr ebx, 8
mov edx, dword [esp + 0x44]
and edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x84]
shr edx, cl
mov ecx, dword [esp + 0x94]
add ebx, edx
mov bx, word [ecx + ebx*4]
mov ecx, dword [esp + 0x84]
shl bx, cl
movzx ecx, byte [esp + 0x48]
imul ecx, esi
movzx edx, al
imul edx, dword [esp + 0x9c]
add edx, ecx
movzx ecx, byte [esp + 0x54]
imul ecx, dword [esp + 0x78]
add edx, ecx
movzx ecx, byte [esp + 0x74]
imul ecx, edi
add edx, ecx
imul edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x44]
and esi, dword [esp + 0x2c]
add ecx, 8
shr edx, cl
mov ecx, dword [esp + 0x98]
shr esi, cl
mov ecx, dword [esp + 0x6c]
and eax, 0xff00
imul eax, dword [esp + 0x9c]
add edx, esi
mov dx, word [ecx + edx*4]
mov ecx, dword [esp + 0x98]
shl dx, cl
mov ecx, dword [esp + 0x48]
and ecx, 0xff00
imul ecx, dword [esp + 0xb4]
add eax, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff00
imul ecx, dword [esp + 0x78]
add eax, ecx
mov ecx, dword [esp + 0x74]
and ecx, 0xff00
imul ecx, edi
add eax, ecx
imul eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x40]
or bx, dx
mov edx, dword [esp + 0x44]
and edx, dword [esp + 0x50]
mov edi, dword [esp + 0x88]
add edi, dword [esp + 0x30]
add ecx, 8
shr eax, cl
mov ecx, dword [esp + 0xb0]
mov esi, dword [ebp + 8]
shr edx, cl
mov dword [esp + 0x88], edi
add eax, edx
mov edx, dword [esp + 0x90]
mov ax, word [edx + eax*4]
shl ax, cl
or bx, ax
mov eax, dword [esp + 0x4c]
mov word [eax], bx
mov ebx, dword [esp + 0xa4]
add eax, 2
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x8c]
sub dword [esp + 0x68], 1
mov dword [esp + 0x34], eax
jne 0x51f684
mov ecx, dword [esp + 0xac]
add dword [esp + 0x60], ecx
mov eax, 1
add dword [esp + 0x58], eax
fild dword [esp + 0x58]
add dword [esp + 0x5c], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51f461
jmp 0x51fefc
cmp eax, 0x20
jne 0x51ff06
fld qword [esp + 0xe0]
call fcn.0062a660
fld qword [esp + 0xd8]
mov edx, edi
mov edi, dword [edx + 0x90]
mov dword [esp + 0x3c], eax
call fcn.0062a660
fld qword [esp + 0xf0]
mov ecx, eax
fcomp qword [0x6867e8]
mov eax, edi
imul eax, dword [esp + 0x3c]
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0xbc]
mov edx, dword [ecx + 0xa4]
lea eax, [edx + eax*4]
mov dword [esp + 0x60], eax
mov eax, edi
mov edi, dword [ebp + 0x1c]
mov ecx, dword [edi]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0xb4], eax
mov eax, dword [edi + 0xc]
imul ecx, eax
mov dword [esp + 0x9c], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [edi + 4]
imul ecx, dword [esp + 0x9c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x7c], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [edi + 8]
imul ecx, dword [esp + 0x9c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xb8], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xa0], eax
mov dword [esp + 0x58], 0
fnstsw ax
test ah, 0x41
jne 0x51ff06
fild dword [esp + 0x64]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fstp dword [esp + 0xc8]
fld dword [esp + 0xc8]
fld st(0)
fld qword [esp + 0xc0]
fmul st(1), st(0)
fxch st(2)
fmul qword [esp + 0xf8]
fld qword [esp + 0xe8]
fsub qword [0x665830]
call fcn.0062a660
fld dword [ebp + 0x30]
mov ecx, dword [esp + 0xb4]
fld qword [0x686db8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
lea edx, [ecx*4]
mov dword [esp + 0xc0], edx
mov dword [esp + 0x5c], eax
fild dword [esp + 0x5c]
fsub st(2)
fsub dword [ebp + 0x10]
fstp dword [esp + 0xc8]
fld dword [esp + 0xc8]
fld qword [esp + 0xf8]
fmul st(1)
fsubr st(5)
fadd dword [ebp + 0x2c]
fmul st(2)
call fcn.0062a660
fmul st(5)
mov edi, eax
fadd st(3)
fadd st(2)
fmul st(1)
call fcn.0062a660
mov edx, dword [esp + 0x64]
mov ecx, eax
mov dword [esp + 0x38], edx
mov eax, edi
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], ecx
mov dword [esp + 0xac], 0
mov dword [esp + 0x9c], edx
jg 0x51fb35
test eax, eax
jl 0x51fece
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x30]
shl eax, 0x10
sub eax, edi
sub eax, 0x27fff
cdq
idiv ecx
test eax, eax
jl 0x51fb2c
mov dword [esp + 0xac], eax
mov eax, 0x7fff
sub eax, edi
jmp 0x51fb76
cmp dword [esp + 0x30], 1
jl 0x51fb89
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 8]
add ecx, 0xffffffff
cmp eax, ecx
jge 0x51fece
mov ecx, dword [esp + 0x30]
mov eax, 0x10000
sub eax, edi
cdq
idiv ecx
test eax, eax
jle 0x51fb66
mov dword [esp + 0xac], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
shl eax, 0x10
sub eax, edi
sub eax, 0x17fff
cdq
idiv ecx
mov ecx, dword [esp + 0x34]
cmp eax, dword [esp + 0x38]
jge 0x51fba8
mov dword [esp + 0x38], eax
jmp 0x51fba8
test edi, edi
jl 0x51fece
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp edi, edx
jge 0x51fece
mov eax, dword [esp + 0x8c]
cmp eax, 0xffffffff
jg 0x51ff2c
cmp dword [esp + 0x9c], 0
jl 0x51fece
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
mov ecx, dword [esp + 0x8c]
sub eax, 0x27fff
cdq
idiv ecx
cmp eax, dword [esp + 0xac]
jle 0x51fbf0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x34]
cdq
idiv ecx
neg eax
cmp eax, dword [esp + 0x38]
jge 0x51fc03
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xac]
mov edx, eax
imul eax, dword [esp + 0x8c]
imul edx, dword [esp + 0x30]
add edi, edx
mov edx, dword [esp + 0x60]
add ecx, eax
mov eax, dword [esp + 0xac]
lea edx, [edx + eax*4]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0xc8], edx
mov edx, dword [esp + 0x38]
cmp eax, edx
mov dword [esp + 0x88], edi
mov dword [esp + 0x34], ecx
jg 0x51fece
sub edx, eax
add edx, 1
mov dword [esp + 0x68], edx
mov esi, dword [esi + 0x24]
mov edx, ecx
sar edx, 0x10
imul edx, dword [esp + 0xc8]
add edx, dword [esp + 0xd0]
mov eax, edi
sar eax, 0x10
add eax, edx
mov edx, edi
movzx edi, byte [eax]
mov edi, dword [ebx + edi*4]
mov dword [esp + 0x74], edi
movzx edi, byte [eax + 1]
mov edi, dword [ebx + edi*4]
add eax, esi
movzx esi, byte [eax]
mov esi, dword [ebx + esi*4]
and ecx, 0xfffe
add ecx, 1
movzx eax, byte [eax + 1]
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x48], esi
and edx, 0xfffe
add edx, 1
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x54], edi
mov dword [esp + 0xa8], edx
mov esi, 0x10000
sub esi, ecx
mov edi, 0x10000
sub edi, edx
imul edx, esi
mov dword [esp + 0xb4], edi
imul edi, esi
mov esi, dword [esp + 0x54]
shr esi, 0x18
shr edx, 0x10
imul edx, esi
mov esi, ecx
imul ecx, dword [esp + 0xa8]
imul esi, dword [esp + 0xb4]
shr ebx, 0x18
shr edi, 0x10
imul edi, ebx
mov ebx, dword [esp + 0x48]
shr ebx, 0x18
shr ecx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [esp + 0x4c]
mov ebx, dword [ebx]
mov dword [esp + 0x44], ebx
shr ecx, 0x10
mov dword [esp + 0x9c], ecx
mov ebx, eax
and ebx, 0xff0000
imul ebx, ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff0000
shr esi, 0x10
imul ecx, esi
add ebx, ecx
mov ecx, dword [esp + 0x54]
shr edx, 0x10
and ecx, 0xff0000
imul ecx, edx
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x74]
shr edi, 0x10
and edx, 0xff0000
imul edx, edi
add ebx, ecx
mov ecx, dword [esp + 0xd4]
add ebx, edx
shr ebx, cl
mov dword [esp + 0xb4], esi
imul ebx, dword [esp + 0x7c]
shr ebx, 8
mov edx, dword [esp + 0x44]
and edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x84]
shr edx, cl
mov ecx, dword [esp + 0x94]
add ebx, edx
mov ebx, dword [ecx + ebx*4]
mov ecx, dword [esp + 0x84]
shl ebx, cl
movzx ecx, byte [esp + 0x48]
imul ecx, esi
movzx edx, al
imul edx, dword [esp + 0x9c]
add edx, ecx
movzx ecx, byte [esp + 0x54]
imul ecx, dword [esp + 0x78]
add edx, ecx
movzx ecx, byte [esp + 0x74]
imul ecx, edi
add edx, ecx
imul edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x44]
and esi, dword [esp + 0x2c]
add ecx, 8
shr edx, cl
mov ecx, dword [esp + 0x98]
shr esi, cl
mov ecx, dword [esp + 0x6c]
and eax, 0xff00
imul eax, dword [esp + 0x9c]
add edx, esi
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x98]
shl edx, cl
mov ecx, dword [esp + 0x48]
and ecx, 0xff00
imul ecx, dword [esp + 0xb4]
add eax, ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff00
imul ecx, dword [esp + 0x78]
add eax, ecx
mov ecx, dword [esp + 0x74]
and ecx, 0xff00
imul ecx, edi
add eax, ecx
imul eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x88]
add edi, dword [esp + 0x30]
or ebx, edx
mov edx, dword [esp + 0x44]
and edx, dword [esp + 0x50]
mov esi, dword [ebp + 8]
add ecx, 8
shr eax, cl
mov ecx, dword [esp + 0xb0]
shr edx, cl
mov dword [esp + 0x88], edi
add eax, edx
mov edx, dword [esp + 0x90]
mov eax, dword [edx + eax*4]
shl eax, cl
mov ecx, dword [esp + 0x34]
add ecx, dword [esp + 0x8c]
or ebx, eax
mov eax, dword [esp + 0x4c]
mov dword [eax], ebx
mov ebx, dword [esp + 0xa4]
add eax, 4
sub dword [esp + 0x68], 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], ecx
jne 0x51fc5d
mov ecx, dword [esp + 0xc0]
add dword [esp + 0x60], ecx
mov eax, 1
add dword [esp + 0x58], eax
fild dword [esp + 0x58]
add dword [esp + 0x5c], eax
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 5
jnp 0x51fa96
fstp st(0)
fstp st(0)
fstp st(1)
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0xbc]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc0]
call eax
mov esi, dword [esp + 0xbc]
call fcn.0050ac20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
cmp eax, 1
jl 0x51ff7e
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
add eax, 0xffffffff
cmp dword [esp + 0x9c], eax
jge 0x51fece
mov eax, 0x10000
sub eax, ecx
mov ecx, dword [esp + 0x8c]
cdq
idiv ecx
cmp eax, dword [esp + 0xac]
jle 0x51ff64
mov dword [esp + 0xac], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, dword [esp + 0x34]
sub eax, 0x17fff
cdq
idiv ecx
jmp 0x51fbf9
test ecx, ecx
jl 0x51fece
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp ecx, eax
jge 0x51fece
jmp 0x51fc07
fld dword [ebp + 0x30]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [ebp + 0x2c]
fstp dword [esp + 8]
fld qword [ebp + 0x24]
fstp qword [esp]
push ecx
mov ecx, dword [ebp + 0x14]
fld dword [ebp + 0x10]
push edx
push eax
push ecx
sub esp, 8
fstp dword [esp + 4]
mov ecx, edi
fld dword [ebp + 0xc]
fstp dword [esp]
push esi
call fcn.005348d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c