Function at 0x10085c10
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x178]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 0x184]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xac]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
and ecx, 0x7c0000
shr ecx, 0x12
mov edx, 1
shl edx, cl
add edx, 2
mov dword [ebp - 8], edx
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xa8]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
mov edx, dword [ebp - 0x20]
add eax, dword [edx + 0x14]
cmp ecx, eax
jbe 0x10085c9a
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x20]
add ecx, dword [edx + 0x14]
mov eax, dword [ebp - 0x20]
sub ecx, dword [eax + 0xa8]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x88], 0
je 0x10085d0c
mov edx, dword [ebp + 8]
cmp dword [edx + 0xa4], 1
je 0x10085cc3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 1
je 0x10085cc3
mov ecx, dword [ebp - 0xc]
and ecx, 4
je 0x10085cda
mov edx, dword [ebp + 0x10]
shl edx, 2
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.10064e10
add esp, 0xc
jmp 0x10085cef
mov ecx, dword [ebp + 0x10]
shl ecx, 3
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.10064e10
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xa8]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0xa8], ecx
mov eax, dword [ebp + 0x10]
jmp 0x10087678
mov eax, dword [ebp - 0xc]
and eax, 8
je 0x10085d25
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x74], 0
jne 0x10085d25
mov edx, dword [ebp - 8]
shl edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x74], 0
jne 0x10085f70
mov ecx, dword [ebp - 0xc]
and ecx, 0x40000004
je 0x10085f70
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0xc]
and edx, 8
je 0x10085da1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x34]
jae 0x10085d9f
push 0
xor edx, edx
mov ecx, dword [ebp - 0x20]
call fcn.10091cd0
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
add ecx, 4
mov dword [ebp - 0x24], ecx
cmp eax, 0x80000000
jne 0x10085d9d
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp + 0xc]
sar edx, 2
mov dword [ebp - 0x14], edx
jmp 0x10085d9f
jmp 0x10085d61
jmp 0x10085db8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.100929c0
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x34]
jae 0x10085f6b
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x84]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
add eax, 0x160
mov dword [ebp - 0x10], eax
jmp 0x10085df4
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
sub eax, 1
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x10085f1f
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 8
jle 0x10085e59
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
and eax, 1
je 0x10085e2d
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
shl edx, 1
mov eax, dword [ebp - 0x10]
sub edx, dword [eax + 0x14]
mov dword [ebp - 0x38], edx
jmp 0x10085e44
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx + 0x14]
sar eax, 1
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x10]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x14], ecx
mov dword [ebp - 0x40], 0
jmp 0x10085e74
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4 + 0x10]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
add eax, dword [edx]
and eax, 7
mov dword [ebp - 0x40], eax
movsx ecx, word [ebp - 0x38]
cmp dword [ebp - 0x38], ecx
je 0x10085eb1
mov edx, dword [ebp - 0x38]
and edx, 0xffff
mov eax, dword [ebp - 0x10]
imul edx, dword [eax + 8]
sar edx, 9
mov ecx, dword [ebp - 0x38]
and ecx, 0xffff0000
sar ecx, 9
mov eax, dword [ebp - 0x10]
imul ecx, dword [eax + 8]
lea ecx, [edx + ecx + 1]
sar ecx, 1
mov dword [ebp - 0x100], ecx
jmp 0x10085ec9
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
imul eax, dword [ebp - 0x38]
add eax, 0x200
sar eax, 0xa
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x38], 0
je 0x10085f07
cmp dword [ebp - 0x18], 0
je 0x10085f07
mov edx, dword [ebp - 0x38]
xor edx, dword [ebp - 0x18]
sar edx, 0x1f
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
xor ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
sub eax, dword [ebp - 0x44]
add ecx, eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4 + 0x10], eax
jmp 0x10085deb
mov eax, dword [ebp - 0x18]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 8]
jle 0x10085f3a
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp + 0xc]
sar ecx, 2
mov dword [ebp - 0x14], ecx
jmp 0x10085f6b
mov edx, dword [ebp - 0x28]
add edx, 1
and edx, 7
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + edx*2]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x24]
add edx, 4
mov dword [ebp - 0x24], edx
jmp 0x10085dbe
jmp 0x100873fa
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x74], 0
jne 0x100862ae
mov ecx, dword [ebp - 0xc]
and ecx, 0x40000004
jne 0x100862ae
mov edx, dword [ebp + 0x10]
shl edx, 1
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0xc]
and edx, 8
je 0x10086012
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
jmp 0x10085fb9
mov edx, dword [ebp - 0x24]
add edx, 8
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x48]
jae 0x10086010
push 0
xor edx, edx
mov ecx, dword [ebp - 0x20]
call fcn.10091cd0
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x80000000
je 0x10085ffe
push 0
mov edx, 1
mov ecx, dword [ebp - 0x20]
call fcn.10091cd0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx + 4], 0x80000000
jne 0x1008600e
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp + 0xc]
sar eax, 2
shr eax, 1
mov dword [ebp - 0x14], eax
jmp 0x10086010
jmp 0x10085fb0
jmp 0x10086029
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.100929c0
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x84]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
add eax, 0x160
mov dword [ebp - 0x10], eax
jmp 0x1008604b
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
sub eax, 1
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x100861b5
mov ecx, dword [ebp - 0xc]
and ecx, 0x7c0000
shr ecx, 0x12
cmp ecx, 0x10
jb 0x10086089
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10087680
add esp, 0xc
jmp 0x100861b0
cmp dword [ebp - 0x1c], 0
je 0x100860cb
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x11
jne 0x100860cb
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x60], 0x11
jne 0x100860cb
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.10088bc0
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x60
mov dword [ebp - 0x10], edx
jmp 0x100861b0
cmp dword [ebp - 0x1c], 0
je 0x1008610d
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x11
jne 0x1008610d
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x60], 0x12
jne 0x1008610d
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10088980
add esp, 0xc
mov edx, dword [ebp - 0x1c]
sub edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
add eax, 0x60
mov dword [ebp - 0x10], eax
jmp 0x100861b0
cmp dword [ebp - 0x1c], 0
je 0x1008614c
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0x12
jne 0x1008614c
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x60], 0x12
jne 0x1008614c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10088df0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
sub eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
mov dword [ebp - 0x10], ecx
jmp 0x100861b0
cmp dword [ebp - 0x1c], 0
je 0x1008619c
mov edx, dword [ebp - 0x10]
cmp dword [edx], 1
jl 0x1008619c
mov eax, dword [ebp - 0x10]
cmp dword [eax], 7
jg 0x1008619c
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x60], 1
jl 0x1008619c
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x60], 7
jg 0x1008619c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10089040
add esp, 0xc
mov eax, dword [ebp - 0x1c]
sub eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
mov dword [ebp - 0x10], ecx
jmp 0x100861b0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.100881b0
add esp, 0xc
jmp 0x10086042
mov edx, dword [ebp - 0xc]
and edx, 0x10
je 0x1008621d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x100861ce
mov ecx, dword [ebp - 0x24]
add ecx, 8
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x48]
jae 0x1008621b
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
sar ecx, 1
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
add eax, dword [ecx + 4]
mov edx, dword [ebp - 0x24]
mov dword [edx], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
shl ecx, 1
mov edx, dword [ebp - 4]
lea eax, [ecx + edx*8]
mov ecx, dword [ebp - 0x24]
add eax, dword [ecx]
mov edx, dword [ebp - 0x24]
add eax, dword [edx + 4]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
jmp 0x100861c5
jmp 0x10086256
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x1008622e
mov ecx, dword [ebp - 0x24]
add ecx, 8
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x48]
jae 0x10086256
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
shl ecx, 1
mov edx, dword [ebp - 4]
lea eax, [ecx + edx*8]
mov ecx, dword [ebp - 0x24]
add eax, dword [ecx]
mov edx, dword [ebp - 0x24]
add eax, dword [edx + 4]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
jmp 0x10086225
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x10086267
mov ecx, dword [ebp - 0x24]
add ecx, 0x40
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x48]
jae 0x100862a0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 8]
jg 0x1008628e
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 8]
jle 0x1008629e
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp + 0xc]
sar edx, 2
shr edx, 1
mov dword [ebp - 0x14], edx
jmp 0x100862a0
jmp 0x1008625e
mov eax, dword [ebp + 0x10]
and eax, 7
mov dword [ebp - 0x28], eax
jmp 0x100873fa
mov ecx, dword [ebp - 0xc]
and ecx, 8
je 0x100865ca
mov edx, dword [ebp - 0xc]
and edx, 0x40000004
je 0x100865ca
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
jmp 0x100862e1
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x10]
jae 0x100865c5
lea eax, [ebp - 0x30]
push eax
xor edx, edx
mov ecx, dword [ebp - 0x20]
call fcn.10091cd0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x80000000
jne 0x1008630c
jmp 0x100865c5
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x84]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
add eax, 0x160
mov dword [ebp - 0x10], eax
jmp 0x1008632e
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
sub eax, 1
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x10086456
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 8
jle 0x10086390
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
and eax, 1
je 0x10086367
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
shl edx, 1
mov eax, dword [ebp - 0x10]
sub edx, dword [eax + 0x14]
mov dword [ebp - 0x4c], edx
jmp 0x1008637b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
imul edx, edx, 3
mov eax, dword [ebp - 0x10]
sub edx, dword [eax + 0x14]
sar edx, 1
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x14], eax
mov dword [ebp - 0x54], 0
jmp 0x100863ab
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4 + 0x10]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx]
and edx, 7
mov dword [ebp - 0x54], edx
movsx eax, word [ebp - 0x4c]
cmp dword [ebp - 0x4c], eax
je 0x100863e7
mov ecx, dword [ebp - 0x4c]
and ecx, 0xffff
mov edx, dword [ebp - 0x10]
imul ecx, dword [edx + 8]
sar ecx, 9
mov eax, dword [ebp - 0x4c]
and eax, 0xffff0000
sar eax, 9
mov edx, dword [ebp - 0x10]
imul eax, dword [edx + 8]
lea eax, [ecx + eax + 1]
sar eax, 1
mov dword [ebp - 0x104], eax
jmp 0x10086400
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
imul edx, dword [ebp - 0x4c]
add edx, 0x200
sar edx, 0xa
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x104]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x4c], 0
je 0x1008643e
cmp dword [ebp - 0x18], 0
je 0x1008643e
mov ecx, dword [ebp - 0x4c]
xor ecx, dword [ebp - 0x18]
sar ecx, 0x1f
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
xor eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
sub edx, dword [ebp - 0x58]
add eax, edx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ecx + eax*4 + 0x10], edx
jmp 0x10086325
mov eax, dword [ebp - 0x28]
add eax, 1
and eax, 7
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x40
je 0x10086588
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x120]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x128]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x120], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x120]
sar ecx, 0x10
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x20]
movsx eax, word [edx + 0x130]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x130], eax
je 0x100864e6
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x130]
and eax, 0xffff
imul eax, dword [ebp - 0x5c]
sar eax, 9
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x130]
and edx, 0xffff0000
sar edx, 9
imul edx, dword [ebp - 0x5c]
lea eax, [eax + edx + 1]
sar eax, 1
mov dword [ebp - 0x108], eax
jmp 0x10086502
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x5c]
imul edx, dword [ecx + 0x130]
add edx, 0x200
sar edx, 0xa
mov dword [ebp - 0x108], edx
mov eax, dword [ebp - 0x108]
neg eax
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x20000000
je 0x1008656c
cmp dword [ebp - 0x5c], 0
jge 0x1008656c
cmp dword [ebp - 0x60], 0
je 0x1008656c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x60]
cmp eax, dword [edx + 0x130]
jne 0x1008655b
cmp dword [ebp - 0x60], 0
jge 0x10086546
mov ecx, dword [ebp - 0x60]
add ecx, 1
mov dword [ebp - 0x10c], ecx
jmp 0x10086552
mov edx, dword [ebp - 0x60]
sub edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
sub ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x130], ecx
jmp 0x1008657a
mov eax, dword [ebp - 0x30]
neg eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x130], eax
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
jmp 0x10086591
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
lea eax, [edx + ecx*2]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 8]
jle 0x100865af
jmp 0x100865c5
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
add eax, 4
mov dword [ebp - 0x24], eax
jmp 0x100862d8
jmp 0x100873fa
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x74], 0
je 0x100873f3
mov edx, dword [ebp - 0xc]
and edx, 0x40000004
jne 0x100873f3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
jmp 0x100865fe
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x10]
jae 0x100873f1
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x30]
push eax
xor edx, edx
mov ecx, dword [ebp - 0x20]
call fcn.10091cd0
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0x80000000
je 0x1008664f
lea ecx, [ebp - 0x2c]
push ecx
mov edx, 1
mov ecx, dword [ebp - 0x20]
call fcn.10091cd0
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0x80000000
jne 0x10086654
jmp 0x100873f1
mov edx, dword [ebp - 0xc]
and edx, 0x20
je 0x10086a46
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x78]
add ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x84]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x160
mov dword [ebp - 0x10], ecx
jmp 0x10086695
mov edx, dword [ebp - 0x10]
add edx, 0x60
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x10086a28
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
jle 0x100867f6
mov eax, dword [ebp - 0x10]
cmp dword [eax], 8
jle 0x10086715
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
and edx, 1
je 0x100866eb
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
shl ecx, 1
mov edx, dword [ebp - 0x10]
sub ecx, dword [edx + 0x14]
mov dword [ebp - 0x80], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x30]
shl ecx, 1
mov edx, dword [ebp - 0x10]
sub ecx, dword [edx + 0x34]
mov dword [ebp - 0x7c], ecx
jmp 0x10086713
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
imul ecx, ecx, 3
mov edx, dword [ebp - 0x10]
sub ecx, dword [edx + 0x14]
sar ecx, 1
mov dword [ebp - 0x80], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x30]
imul ecx, ecx, 3
mov edx, dword [ebp - 0x10]
sub ecx, dword [edx + 0x34]
sar ecx, 1
mov dword [ebp - 0x7c], ecx
jmp 0x1008672f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax*4 + 0x10]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax*4 + 0x30]
mov dword [ebp - 0x7c], edx
movsx eax, word [ebp - 0x80]
cmp dword [ebp - 0x80], eax
je 0x1008676b
mov ecx, dword [ebp - 0x80]
and ecx, 0xffff
mov edx, dword [ebp - 0x10]
imul ecx, dword [edx + 8]
sar ecx, 9
mov eax, dword [ebp - 0x80]
and eax, 0xffff0000
sar eax, 9
mov edx, dword [ebp - 0x10]
imul eax, dword [edx + 8]
lea eax, [ecx + eax + 1]
sar eax, 1
mov dword [ebp - 0x110], eax
jmp 0x10086784
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
imul edx, dword [ebp - 0x80]
add edx, 0x200
sar edx, 0xa
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x110]
mov dword [ebp - 0x64], eax
movsx ecx, word [ebp - 0x7c]
cmp dword [ebp - 0x7c], ecx
je 0x100867cd
mov edx, dword [ebp - 0x7c]
and edx, 0xffff
mov eax, dword [ebp - 0x10]
imul edx, dword [eax + 0xc]
sar edx, 9
mov ecx, dword [ebp - 0x7c]
and ecx, 0xffff0000
sar ecx, 9
mov eax, dword [ebp - 0x10]
imul ecx, dword [eax + 0xc]
lea ecx, [edx + ecx + 1]
sar ecx, 1
mov dword [ebp - 0x114], ecx
jmp 0x100867e5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
imul eax, dword [ebp - 0x7c]
add eax, 0x200
sar eax, 0xa
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x6c]
add ecx, dword [ebp - 0x114]
mov dword [ebp - 0x6c], ecx
jmp 0x10086a23
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0xffffffff
jne 0x100868d9
mov eax, dword [ebp - 0x10]
movsx ecx, word [eax + 0x10]
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], ecx
je 0x1008684b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
and ecx, 0xffff
mov edx, dword [ebp - 0x10]
imul ecx, dword [edx + 8]
sar ecx, 9
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x10]
and edx, 0xffff0000
sar edx, 9
mov eax, dword [ebp - 0x10]
imul edx, dword [eax + 8]
lea ecx, [ecx + edx + 1]
sar ecx, 1
mov dword [ebp - 0x118], ecx
jmp 0x10086867
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 8]
imul ecx, dword [eax + 0x10]
add ecx, 0x200
sar ecx, 0xa
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x118]
mov dword [ebp - 0x64], edx
movsx eax, word [ebp - 0x64]
cmp dword [ebp - 0x64], eax
je 0x100868af
mov ecx, dword [ebp - 0x64]
and ecx, 0xffff
mov edx, dword [ebp - 0x10]
imul ecx, dword [edx + 0xc]
sar ecx, 9
mov eax, dword [ebp - 0x64]
and eax, 0xffff0000
sar eax, 9
mov edx, dword [ebp - 0x10]
imul eax, dword [edx + 0xc]
lea eax, [ecx + eax + 1]
sar eax, 1
mov dword [ebp - 0x11c], eax
jmp 0x100868c8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
imul edx, dword [ebp - 0x64]
add edx, 0x200
sar edx, 0xa
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x11c]
mov dword [ebp - 0x6c], eax
jmp 0x10086a23
mov ecx, dword [ebp - 0x10]
movsx edx, word [ecx + 0x30]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x30], edx
je 0x10086921
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x30]
and edx, 0xffff
mov eax, dword [ebp - 0x10]
imul edx, dword [eax + 0xc]
sar edx, 9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x30]
and eax, 0xffff0000
sar eax, 9
mov ecx, dword [ebp - 0x10]
imul eax, dword [ecx + 0xc]
lea edx, [edx + eax + 1]
sar edx, 1
mov dword [ebp - 0x120], edx
jmp 0x1008693d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
imul edx, dword [ecx + 0x30]
add edx, 0x200
sar edx, 0xa
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x120]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0xfffffffd
jne 0x100869c2
mov edx, dword [ebp - 0x10]
movsx eax, word [edx + 0x10]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], eax
je 0x10086999
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
and eax, 0xffff
mov ecx, dword [ebp - 0x10]
imul eax, dword [ecx + 8]
sar eax, 9
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x10]
and ecx, 0xffff0000
sar ecx, 9
mov edx, dword [ebp - 0x10]
imul ecx, dword [edx + 8]
lea eax, [eax + ecx + 1]
sar eax, 1
mov dword [ebp - 0x124], eax
jmp 0x100869b4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 8]
imul eax, dword [edx + 0x10]
add eax, 0x200
sar eax, 0xa
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x64]
add ecx, dword [ebp - 0x124]
mov dword [ebp - 0x64], ecx
jmp 0x10086a23
movsx edx, word [ebp - 0x6c]
cmp dword [ebp - 0x6c], edx
je 0x100869fe
mov eax, dword [ebp - 0x6c]
and eax, 0xffff
mov ecx, dword [ebp - 0x10]
imul eax, dword [ecx + 8]
sar eax, 9
mov edx, dword [ebp - 0x6c]
and edx, 0xffff0000
sar edx, 9
mov ecx, dword [ebp - 0x10]
imul edx, dword [ecx + 8]
lea edx, [eax + edx + 1]
sar edx, 1
mov dword [ebp - 0x128], edx
jmp 0x10086a17
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
imul ecx, dword [ebp - 0x6c]
add ecx, 0x200
sar ecx, 0xa
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x128]
mov dword [ebp - 0x64], edx
jmp 0x1008668c
mov eax, dword [ebp - 0xc]
and eax, 0x10
je 0x10086a46
mov ecx, dword [ebp - 0x64]
sar ecx, 1
mov edx, dword [ebp - 0x6c]
sub edx, ecx
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x84]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
add eax, 0x160
mov dword [ebp - 0x10], eax
jmp 0x10086a68
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
sub eax, 1
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x1008708a
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0
jle 0x10086cde
mov edx, dword [ebp - 0x10]
cmp dword [edx], 8
jle 0x10086b1a
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
and ecx, 1
je 0x10086ac8
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
shl eax, 1
mov ecx, dword [ebp - 0x10]
sub eax, dword [ecx + 0x14]
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x30]
shl eax, 1
mov ecx, dword [ebp - 0x10]
sub eax, dword [ecx + 0x34]
mov dword [ebp - 0x84], eax
jmp 0x10086af6
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
imul eax, eax, 3
mov ecx, dword [ebp - 0x10]
sub eax, dword [ecx + 0x14]
sar eax, 1
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x30]
imul eax, eax, 3
mov ecx, dword [ebp - 0x10]
sub eax, dword [ecx + 0x34]
sar eax, 1
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x34], ecx
mov dword [ebp - 0x8c], 0
jmp 0x10086b4b
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4 + 0x10]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4 + 0x30]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
add eax, dword [edx]
and eax, 7
mov dword [ebp - 0x8c], eax
movsx ecx, word [ebp - 0x88]
cmp dword [ebp - 0x88], ecx
je 0x10086b94
mov edx, dword [ebp - 0x88]
and edx, 0xffff
mov eax, dword [ebp - 0x10]
imul edx, dword [eax + 8]
sar edx, 9
mov ecx, dword [ebp - 0x88]
and ecx, 0xffff0000
sar ecx, 9
mov eax, dword [ebp - 0x10]
imul ecx, dword [eax + 8]
lea ecx, [edx + ecx + 1]
sar ecx, 1
mov dword [ebp - 0x12c], ecx
jmp 0x10086baf
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
imul eax, dword [ebp - 0x88]
add eax, 0x200
sar eax, 0xa
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
add ecx, dword [ebp - 0x74]
mov dword [ebp - 0x70], ecx
movsx edx, word [ebp - 0x84]
cmp dword [ebp - 0x84], edx
je 0x10086c03
mov eax, dword [ebp - 0x84]
and eax, 0xffff
mov ecx, dword [ebp - 0x10]
imul eax, dword [ecx + 0xc]
sar eax, 9
mov edx, dword [ebp - 0x84]
and edx, 0xffff0000
sar edx, 9
mov ecx, dword [ebp - 0x10]
imul edx, dword [ecx + 0xc]
lea edx, [eax + edx + 1]
sar edx, 1
mov dword [ebp - 0x130], edx
jmp 0x10086c1f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
imul ecx, dword [ebp - 0x84]
add ecx, 0x200
sar ecx, 0xa
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x130]
add edx, dword [ebp - 0x78]
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x88], 0
je 0x10086c6c
cmp dword [ebp - 0x74], 0
je 0x10086c6c
mov eax, dword [ebp - 0x88]
xor eax, dword [ebp - 0x74]
sar eax, 0x1f
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
xor edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
sub ecx, dword [ebp - 0x90]
add edx, ecx
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
cmp dword [ebp - 0x84], 0
je 0x10086cad
cmp dword [ebp - 0x78], 0
je 0x10086cad
mov ecx, dword [ebp - 0x84]
xor ecx, dword [ebp - 0x78]
sar ecx, 0x1f
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
xor eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
sub edx, dword [ebp - 0x94]
add eax, edx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x74]
mov dword [ecx + eax*4 + 0x10], edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x78]
mov dword [edx + ecx*4 + 0x30], eax
jmp 0x10087085
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0xffffffff
jne 0x10086eac
mov edx, dword [ebp - 0x10]
movsx eax, word [edx + 0x10]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], eax
je 0x10086d32
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
and eax, 0xffff
mov ecx, dword [ebp - 0x10]
imul eax, dword [ecx + 8]
sar eax, 9
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x10]
and ecx, 0xffff0000
sar ecx, 9
mov edx, dword [ebp - 0x10]
imul ecx, dword [edx + 8]
lea eax, [eax + ecx + 1]
sar eax, 1
mov dword [ebp - 0x134], eax
jmp 0x10086d4d
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 8]
imul eax, dword [edx + 0x10]
add eax, 0x200
sar eax, 0xa
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x74]
add ecx, dword [ebp - 0x134]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], 0
je 0x10086dc8
cmp dword [ebp - 0x74], 0
je 0x10086dc8
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
xor ecx, dword [ebp - 0x74]
sar ecx, 0x1f
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
xor eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
sub edx, dword [ebp - 0x98]
add eax, edx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 8], 0x400
jle 0x10086db0
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0x400
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
xor edx, dword [ebp - 0x98]
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x74], ecx
movsx edx, word [ebp - 0x70]
cmp dword [ebp - 0x70], edx
je 0x10086e0a
mov eax, dword [ebp - 0x70]
and eax, 0xffff
mov ecx, dword [ebp - 0x10]
imul eax, dword [ecx + 0xc]
sar eax, 9
mov edx, dword [ebp - 0x70]
and edx, 0xffff0000
sar edx, 9
mov ecx, dword [ebp - 0x10]
imul edx, dword [ecx + 0xc]
lea edx, [eax + edx + 1]
sar edx, 1
mov dword [ebp - 0x138], edx
jmp 0x10086e23
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
imul ecx, dword [ebp - 0x70]
add ecx, 0x200
sar ecx, 0xa
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x78]
add edx, dword [ebp - 0x138]
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x70], 0
je 0x10086e98
cmp dword [ebp - 0x78], 0
je 0x10086e98
mov eax, dword [ebp - 0x70]
xor eax, dword [ebp - 0x78]
sar eax, 0x1f
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
xor edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
sub ecx, dword [ebp - 0x9c]
add edx, ecx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0xc], 0x400
jle 0x10086e80
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0x400
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
xor ecx, dword [ebp - 0x9c]
sub ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x78]
mov dword [ecx + 0x10], edx
jmp 0x10087085
mov eax, dword [ebp - 0x10]
movsx ecx, word [eax + 0x30]
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x30], ecx
je 0x10086ef5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x30]
and ecx, 0xffff
mov edx, dword [ebp - 0x10]
imul ecx, dword [edx + 0xc]
sar ecx, 9
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x30]
and edx, 0xffff0000
sar edx, 9
mov eax, dword [ebp - 0x10]
imul edx, dword [eax + 0xc]
lea ecx, [ecx + edx + 1]
sar ecx, 1
mov dword [ebp - 0x13c], ecx
jmp 0x10086f11
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 0xc]
imul ecx, dword [eax + 0x30]
add ecx, 0x200
sar ecx, 0xa
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x78]
add edx, dword [ebp - 0x13c]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x30], 0
je 0x10086f8c
cmp dword [ebp - 0x78], 0
je 0x10086f8c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x30]
xor edx, dword [ebp - 0x78]
sar edx, 0x1f
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
xor ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
sub eax, dword [ebp - 0xa0]
add ecx, eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0x400
jle 0x10086f74
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 0x400
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
xor eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0xfffffffd
jne 0x10086fac
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x78]
mov dword [eax + 0x10], ecx
movsx edx, word [ebp - 0x68]
cmp dword [ebp - 0x68], edx
je 0x10086fe8
mov eax, dword [ebp - 0x68]
and eax, 0xffff
mov ecx, dword [ebp - 0x10]
imul eax, dword [ecx + 8]
sar eax, 9
mov edx, dword [ebp - 0x68]
and edx, 0xffff0000
sar edx, 9
mov ecx, dword [ebp - 0x10]
imul edx, dword [ecx + 8]
lea edx, [eax + edx + 1]
sar edx, 1
mov dword [ebp - 0x140], edx
jmp 0x10087001
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
imul ecx, dword [ebp - 0x68]
add ecx, 0x200
sar ecx, 0xa
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x74]
add edx, dword [ebp - 0x140]
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x68], 0
je 0x10087076
cmp dword [ebp - 0x74], 0
je 0x10087076
mov eax, dword [ebp - 0x68]
xor eax, dword [ebp - 0x74]
sar eax, 0x1f
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
xor edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
sub ecx, dword [ebp - 0xa4]
add edx, ecx
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 8], 0x400
jle 0x1008705e
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0x400
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
xor ecx, dword [ebp - 0xa4]
sub ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x74]
mov dword [ecx + 0x30], edx
jmp 0x10086a5f
mov eax, dword [ebp - 0x28]
add eax, 1
and eax, 7
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x20
jne 0x100870ce
mov edx, dword [ebp - 0x74]
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x10
je 0x100870ce
mov edx, dword [ebp - 0x64]
sar edx, 1
mov eax, dword [ebp - 0x6c]
sub eax, edx
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x64]
add ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0xc]
and edx, 0x10
je 0x100870ec
mov eax, dword [ebp - 0x74]
sar eax, 1
mov ecx, dword [ebp - 0x78]
sub ecx, eax
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x74]
add edx, dword [ebp - 0x78]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0xc]
and eax, 0x40
je 0x1008738a
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x74]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x120]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x128]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x120], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x120]
sar ecx, 0x10
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0x20]
movsx eax, word [edx + 0x130]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x130], eax
je 0x10087182
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x130]
and eax, 0xffff
imul eax, dword [ebp - 0xa8]
sar eax, 9
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x130]
and edx, 0xffff0000
sar edx, 9
imul edx, dword [ebp - 0xa8]
lea eax, [eax + edx + 1]
sar eax, 1
mov dword [ebp - 0x144], eax
jmp 0x100871a1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xa8]
imul edx, dword [ecx + 0x130]
add edx, 0x200
sar edx, 0xa
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x144]
neg eax
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x20000000
je 0x10087226
cmp dword [ebp - 0xa8], 0
jge 0x10087226
cmp dword [ebp - 0xac], 0
je 0x10087226
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xac]
cmp eax, dword [edx + 0x130]
jne 0x10087212
cmp dword [ebp - 0xac], 0
jge 0x100871f7
mov ecx, dword [ebp - 0xac]
add ecx, 1
mov dword [ebp - 0x148], ecx
jmp 0x10087206
mov edx, dword [ebp - 0xac]
sub edx, 1
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
sub ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x130], ecx
jmp 0x10087234
mov eax, dword [ebp - 0x30]
neg eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x130], eax
mov edx, dword [ebp - 0x64]
sub edx, dword [ebp - 0xac]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x124]
mov eax, dword [ebp - 0x20]
add edx, dword [eax + 0x12c]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x124], edx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x124]
sar eax, 0x10
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x20]
movsx edx, word [ecx + 0x134]
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x134], edx
je 0x100872cb
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x134]
and edx, 0xffff
imul edx, dword [ebp - 0xa8]
sar edx, 9
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x134]
and ecx, 0xffff0000
sar ecx, 9
imul ecx, dword [ebp - 0xa8]
lea edx, [edx + ecx + 1]
sar edx, 1
mov dword [ebp - 0x14c], edx
jmp 0x100872ea
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xa8]
imul ecx, dword [eax + 0x134]
add ecx, 0x200
sar ecx, 0xa
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x14c]
neg edx
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0xc]
and eax, 0x20000000
je 0x1008736e
cmp dword [ebp - 0xa8], 0
jge 0x1008736e
cmp dword [ebp - 0xac], 0
je 0x1008736e
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xac]
cmp edx, dword [ecx + 0x134]
jne 0x1008735a
cmp dword [ebp - 0xac], 0
jge 0x1008733f
mov eax, dword [ebp - 0xac]
add eax, 1
mov dword [ebp - 0x150], eax
jmp 0x1008734e
mov ecx, dword [ebp - 0xac]
sub ecx, 1
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0xac]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x134], eax
jmp 0x1008737c
mov edx, dword [ebp - 0x2c]
neg edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x134], edx
mov ecx, dword [ebp - 0x6c]
sub ecx, dword [ebp - 0xac]
mov dword [ebp - 0x78], ecx
jmp 0x10087396
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x74]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 8]
jg 0x100873b0
mov eax, dword [ebp - 0x78]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 8]
jle 0x100873b2
jmp 0x100873f1
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x74]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
lea edx, [eax + ecx*8]
add edx, dword [ebp - 0x78]
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x74]
mov dword [eax], ecx
mov edx, dword [ebp - 0x24]
add edx, 4
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x78]
mov dword [eax], ecx
mov edx, dword [ebp - 0x24]
add edx, 4
mov dword [ebp - 0x24], edx
jmp 0x100865f5
jmp 0x100873fa
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
je 0x10087455
mov ecx, dword [ebp - 0xc]
and ecx, 4
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffc
add ecx, 8
imul ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.10064e10
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x88], 1
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0xf8], 0
je 0x10087455
mov eax, dword [ebp - 0x20]
add eax, 0xf0
push eax
call fcn.100912d0
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x10087538
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x84]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
add eax, 0x160
mov dword [ebp - 0x10], eax
jmp 0x10087481
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
sub eax, 1
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x10087538
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0
jle 0x10087533
mov edx, dword [ebp - 0x10]
cmp dword [edx], 8
jg 0x10087533
mov esi, dword [ebp - 0x10]
add esi, 0x10
mov ecx, 8
lea edi, [ebp - 0xf0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x10]
add esi, 0x30
mov ecx, 8
lea edi, [ebp - 0xd0]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xb0], 0
jmp 0x100874ee
mov eax, dword [ebp - 0xb0]
add eax, 1
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 8
jge 0x10087533
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0xf0]
mov dword [edx + ecx*4 + 0x10], eax
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0xd0]
mov dword [edx + ecx*4 + 0x30], eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
and ecx, 7
mov dword [ebp - 0x28], ecx
jmp 0x100874df
jmp 0x10087478
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100892b0
add esp, 0xc
mov edx, dword [ebp - 0xc]
and edx, 0x80
je 0x100875b4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x9c]
and ecx, 0x10
je 0x100875b4
mov edx, dword [ebp - 0xc]
and edx, 0x40000004
je 0x1008757b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x154], eax
jmp 0x10087586
mov ecx, dword [ebp - 0x14]
shl ecx, 1
mov dword [ebp - 0x154], ecx
mov edx, dword [ebp - 0x20]
movzx eax, byte [edx + 0x11f]
mov ecx, 0x7f
sub ecx, eax
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0xa0]
push ecx
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10094490
add esp, 0xc
mov edx, dword [ebp - 0xc]
and edx, 0x40000000
je 0x10087654
mov eax, dword [ebp - 0x14]
shl eax, 1
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*4]
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*4]
mov dword [ebp - 0xf4], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ebp - 0xf8]
sub edx, 1
mov dword [ebp - 0xf8], edx
test ecx, ecx
je 0x10087654
mov eax, dword [ebp - 0xf4]
sub eax, 4
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0xfc]
sub ecx, 4
mov dword [ebp - 0xfc], ecx
mov edx, dword [ebp - 0xfc]
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 0xfc]
sub edx, 4
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp - 0xfc]
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ecx]
mov dword [eax], edx
jmp 0x100875ec
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xa8]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0xa8], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov dword [eax + 0xac], ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret