Function at 0x1007a760
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 0x1007a7ea
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 0x1007a85c
mov edx, dword [ebp + 8]
cmp dword [edx + 0xa4], 1
je 0x1007a813
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 1
je 0x1007a813
mov ecx, dword [ebp - 0xc]
and ecx, 4
je 0x1007a82a
mov edx, dword [ebp + 0x10]
shl edx, 2
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.10059a00
add esp, 0xc
jmp 0x1007a83f
mov ecx, dword [ebp + 0x10]
shl ecx, 3
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.10059a00
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 0x1007c1c8
mov eax, dword [ebp - 0xc]
and eax, 8
je 0x1007a875
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x74], 0
jne 0x1007a875
mov edx, dword [ebp - 8]
shl edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x74], 0
jne 0x1007aac0
mov ecx, dword [ebp - 0xc]
and ecx, 0x40000004
je 0x1007aac0
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 0x1007a8f1
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 0x1007a8ef
push 0
xor edx, edx
mov ecx, dword [ebp - 0x20]
call fcn.10086820
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 0x1007a8ed
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp + 0xc]
sar edx, 2
mov dword [ebp - 0x14], edx
jmp 0x1007a8ef
jmp 0x1007a8b1
jmp 0x1007a908
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.10087510
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 0x1007aabb
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 0x1007a944
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 0x1007aa6f
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 8
jle 0x1007a9a9
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
and eax, 1
je 0x1007a97d
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 0x1007a994
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 0x1007a9c4
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 0x1007aa01
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 0x1007aa19
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 0x1007aa57
cmp dword [ebp - 0x18], 0
je 0x1007aa57
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 0x1007a93b
mov eax, dword [ebp - 0x18]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 8]
jle 0x1007aa8a
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp + 0xc]
sar ecx, 2
mov dword [ebp - 0x14], ecx
jmp 0x1007aabb
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 0x1007a90e
jmp 0x1007bf4a
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x74], 0
jne 0x1007adfe
mov ecx, dword [ebp - 0xc]
and ecx, 0x40000004
jne 0x1007adfe
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 0x1007ab62
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
jmp 0x1007ab09
mov edx, dword [ebp - 0x24]
add edx, 8
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x48]
jae 0x1007ab60
push 0
xor edx, edx
mov ecx, dword [ebp - 0x20]
call fcn.10086820
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x80000000
je 0x1007ab4e
push 0
mov edx, 1
mov ecx, dword [ebp - 0x20]
call fcn.10086820
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx + 4], 0x80000000
jne 0x1007ab5e
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp + 0xc]
sar eax, 2
shr eax, 1
mov dword [ebp - 0x14], eax
jmp 0x1007ab60
jmp 0x1007ab00
jmp 0x1007ab79
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.10087510
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 0x1007ab9b
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 0x1007ad05
mov ecx, dword [ebp - 0xc]
and ecx, 0x7c0000
shr ecx, 0x12
cmp ecx, 0x10
jb 0x1007abd9
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1007c1d0
add esp, 0xc
jmp 0x1007ad00
cmp dword [ebp - 0x1c], 0
je 0x1007ac1b
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x11
jne 0x1007ac1b
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x60], 0x11
jne 0x1007ac1b
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.1007d710
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 0x1007ad00
cmp dword [ebp - 0x1c], 0
je 0x1007ac5d
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x11
jne 0x1007ac5d
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x60], 0x12
jne 0x1007ac5d
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1007d4d0
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 0x1007ad00
cmp dword [ebp - 0x1c], 0
je 0x1007ac9c
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0x12
jne 0x1007ac9c
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x60], 0x12
jne 0x1007ac9c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1007d940
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 0x1007ad00
cmp dword [ebp - 0x1c], 0
je 0x1007acec
mov edx, dword [ebp - 0x10]
cmp dword [edx], 1
jl 0x1007acec
mov eax, dword [ebp - 0x10]
cmp dword [eax], 7
jg 0x1007acec
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x60], 1
jl 0x1007acec
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x60], 7
jg 0x1007acec
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1007db90
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 0x1007ad00
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1007cd00
add esp, 0xc
jmp 0x1007ab92
mov edx, dword [ebp - 0xc]
and edx, 0x10
je 0x1007ad6d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x1007ad1e
mov ecx, dword [ebp - 0x24]
add ecx, 8
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x48]
jae 0x1007ad6b
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 0x1007ad15
jmp 0x1007ada6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x1007ad7e
mov ecx, dword [ebp - 0x24]
add ecx, 8
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x48]
jae 0x1007ada6
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 0x1007ad75
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x1007adb7
mov ecx, dword [ebp - 0x24]
add ecx, 0x40
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x48]
jae 0x1007adf0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 8]
jg 0x1007adde
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 8]
jle 0x1007adee
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp + 0xc]
sar edx, 2
shr edx, 1
mov dword [ebp - 0x14], edx
jmp 0x1007adf0
jmp 0x1007adae
mov eax, dword [ebp + 0x10]
and eax, 7
mov dword [ebp - 0x28], eax
jmp 0x1007bf4a
mov ecx, dword [ebp - 0xc]
and ecx, 8
je 0x1007b11a
mov edx, dword [ebp - 0xc]
and edx, 0x40000004
je 0x1007b11a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
jmp 0x1007ae31
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x10]
jae 0x1007b115
lea eax, [ebp - 0x30]
push eax
xor edx, edx
mov ecx, dword [ebp - 0x20]
call fcn.10086820
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x80000000
jne 0x1007ae5c
jmp 0x1007b115
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 0x1007ae7e
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 0x1007afa6
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 8
jle 0x1007aee0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
and eax, 1
je 0x1007aeb7
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 0x1007aecb
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 0x1007aefb
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 0x1007af37
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 0x1007af50
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 0x1007af8e
cmp dword [ebp - 0x18], 0
je 0x1007af8e
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 0x1007ae75
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 0x1007b0d8
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 0x1007b036
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 0x1007b052
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 0x1007b0bc
cmp dword [ebp - 0x5c], 0
jge 0x1007b0bc
cmp dword [ebp - 0x60], 0
je 0x1007b0bc
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x60]
cmp eax, dword [edx + 0x130]
jne 0x1007b0ab
cmp dword [ebp - 0x60], 0
jge 0x1007b096
mov ecx, dword [ebp - 0x60]
add ecx, 1
mov dword [ebp - 0x10c], ecx
jmp 0x1007b0a2
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 0x1007b0ca
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 0x1007b0e1
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 0x1007b0ff
jmp 0x1007b115
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 0x1007ae28
jmp 0x1007bf4a
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x74], 0
je 0x1007bf43
mov edx, dword [ebp - 0xc]
and edx, 0x40000004
jne 0x1007bf43
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
jmp 0x1007b14e
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x10]
jae 0x1007bf41
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.10086820
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0x80000000
je 0x1007b19f
lea ecx, [ebp - 0x2c]
push ecx
mov edx, 1
mov ecx, dword [ebp - 0x20]
call fcn.10086820
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0x80000000
jne 0x1007b1a4
jmp 0x1007bf41
mov edx, dword [ebp - 0xc]
and edx, 0x20
je 0x1007b596
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 0x1007b1e5
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 0x1007b578
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
jle 0x1007b346
mov eax, dword [ebp - 0x10]
cmp dword [eax], 8
jle 0x1007b265
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
and edx, 1
je 0x1007b23b
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 0x1007b263
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 0x1007b27f
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 0x1007b2bb
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 0x1007b2d4
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 0x1007b31d
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 0x1007b335
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 0x1007b573
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0xffffffff
jne 0x1007b429
mov eax, dword [ebp - 0x10]
movsx ecx, word [eax + 0x10]
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], ecx
je 0x1007b39b
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 0x1007b3b7
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 0x1007b3ff
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 0x1007b418
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 0x1007b573
mov ecx, dword [ebp - 0x10]
movsx edx, word [ecx + 0x30]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x30], edx
je 0x1007b471
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 0x1007b48d
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 0x1007b512
mov edx, dword [ebp - 0x10]
movsx eax, word [edx + 0x10]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], eax
je 0x1007b4e9
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 0x1007b504
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 0x1007b573
movsx edx, word [ebp - 0x6c]
cmp dword [ebp - 0x6c], edx
je 0x1007b54e
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 0x1007b567
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 0x1007b1dc
mov eax, dword [ebp - 0xc]
and eax, 0x10
je 0x1007b596
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 0x1007b5b8
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 0x1007bbda
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0
jle 0x1007b82e
mov edx, dword [ebp - 0x10]
cmp dword [edx], 8
jle 0x1007b66a
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
and ecx, 1
je 0x1007b618
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 0x1007b646
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 0x1007b69b
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 0x1007b6e4
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 0x1007b6ff
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 0x1007b753
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 0x1007b76f
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 0x1007b7bc
cmp dword [ebp - 0x74], 0
je 0x1007b7bc
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 0x1007b7fd
cmp dword [ebp - 0x78], 0
je 0x1007b7fd
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 0x1007bbd5
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0xffffffff
jne 0x1007b9fc
mov edx, dword [ebp - 0x10]
movsx eax, word [edx + 0x10]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], eax
je 0x1007b882
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 0x1007b89d
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 0x1007b918
cmp dword [ebp - 0x74], 0
je 0x1007b918
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 0x1007b900
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 0x1007b95a
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 0x1007b973
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 0x1007b9e8
cmp dword [ebp - 0x78], 0
je 0x1007b9e8
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 0x1007b9d0
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 0x1007bbd5
mov eax, dword [ebp - 0x10]
movsx ecx, word [eax + 0x30]
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x30], ecx
je 0x1007ba45
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 0x1007ba61
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 0x1007badc
cmp dword [ebp - 0x78], 0
je 0x1007badc
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 0x1007bac4
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 0x1007bafc
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 0x1007bb38
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 0x1007bb51
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 0x1007bbc6
cmp dword [ebp - 0x74], 0
je 0x1007bbc6
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 0x1007bbae
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 0x1007b5af
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 0x1007bc1e
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 0x1007bc1e
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 0x1007bc3c
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 0x1007beda
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 0x1007bcd2
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 0x1007bcf1
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 0x1007bd76
cmp dword [ebp - 0xa8], 0
jge 0x1007bd76
cmp dword [ebp - 0xac], 0
je 0x1007bd76
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xac]
cmp eax, dword [edx + 0x130]
jne 0x1007bd62
cmp dword [ebp - 0xac], 0
jge 0x1007bd47
mov ecx, dword [ebp - 0xac]
add ecx, 1
mov dword [ebp - 0x148], ecx
jmp 0x1007bd56
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 0x1007bd84
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 0x1007be1b
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 0x1007be3a
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 0x1007bebe
cmp dword [ebp - 0xa8], 0
jge 0x1007bebe
cmp dword [ebp - 0xac], 0
je 0x1007bebe
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xac]
cmp edx, dword [ecx + 0x134]
jne 0x1007beaa
cmp dword [ebp - 0xac], 0
jge 0x1007be8f
mov eax, dword [ebp - 0xac]
add eax, 1
mov dword [ebp - 0x150], eax
jmp 0x1007be9e
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 0x1007becc
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 0x1007bee6
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 0x1007bf00
mov eax, dword [ebp - 0x78]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 8]
jle 0x1007bf02
jmp 0x1007bf41
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 0x1007b145
jmp 0x1007bf4a
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
je 0x1007bfa5
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.10059a00
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 0x1007bfa5
mov eax, dword [ebp - 0x20]
add eax, 0xf0
push eax
call fcn.10085e20
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x1007c088
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 0x1007bfd1
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 0x1007c088
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0
jle 0x1007c083
mov edx, dword [ebp - 0x10]
cmp dword [edx], 8
jg 0x1007c083
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 0x1007c03e
mov eax, dword [ebp - 0xb0]
add eax, 1
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 8
jge 0x1007c083
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 0x1007c02f
jmp 0x1007bfc8
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1007de00
add esp, 0xc
mov edx, dword [ebp - 0xc]
and edx, 0x80
je 0x1007c104
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x9c]
and ecx, 0x10
je 0x1007c104
mov edx, dword [ebp - 0xc]
and edx, 0x40000004
je 0x1007c0cb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x154], eax
jmp 0x1007c0d6
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.10088fe0
add esp, 0xc
mov edx, dword [ebp - 0xc]
and edx, 0x40000000
je 0x1007c1a4
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 0x1007c1a4
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 0x1007c13c
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