Function at 0x10004b00
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 0x10004b8a
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 0x10004bfc
mov edx, dword [ebp + 8]
cmp dword [edx + 0xa4], 1
je 0x10004bb3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 1
je 0x10004bb3
mov ecx, dword [ebp - 0xc]
and ecx, 4
je 0x10004bca
mov edx, dword [ebp + 0x10]
shl edx, 2
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.1008b230
add esp, 0xc
jmp 0x10004bdf
mov ecx, dword [ebp + 0x10]
shl ecx, 3
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.1008b230
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 0x10006568
mov eax, dword [ebp - 0xc]
and eax, 8
je 0x10004c15
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x74], 0
jne 0x10004c15
mov edx, dword [ebp - 8]
shl edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x74], 0
jne 0x10004e60
mov ecx, dword [ebp - 0xc]
and ecx, 0x40000004
je 0x10004e60
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 0x10004c91
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 0x10004c8f
push 0
xor edx, edx
mov ecx, dword [ebp - 0x20]
call fcn.10010bc0
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 0x10004c8d
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp + 0xc]
sar edx, 2
mov dword [ebp - 0x14], edx
jmp 0x10004c8f
jmp 0x10004c51
jmp 0x10004ca8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.100118b0
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 0x10004e5b
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 0x10004ce4
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 0x10004e0f
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 8
jle 0x10004d49
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
and eax, 1
je 0x10004d1d
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 0x10004d34
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 0x10004d64
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 0x10004da1
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 0x10004db9
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 0x10004df7
cmp dword [ebp - 0x18], 0
je 0x10004df7
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 0x10004cdb
mov eax, dword [ebp - 0x18]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 8]
jle 0x10004e2a
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp + 0xc]
sar ecx, 2
mov dword [ebp - 0x14], ecx
jmp 0x10004e5b
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 0x10004cae
jmp 0x100062ea
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x74], 0
jne 0x1000519e
mov ecx, dword [ebp - 0xc]
and ecx, 0x40000004
jne 0x1000519e
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 0x10004f02
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
jmp 0x10004ea9
mov edx, dword [ebp - 0x24]
add edx, 8
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x48]
jae 0x10004f00
push 0
xor edx, edx
mov ecx, dword [ebp - 0x20]
call fcn.10010bc0
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x80000000
je 0x10004eee
push 0
mov edx, 1
mov ecx, dword [ebp - 0x20]
call fcn.10010bc0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx + 4], 0x80000000
jne 0x10004efe
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp + 0xc]
sar eax, 2
shr eax, 1
mov dword [ebp - 0x14], eax
jmp 0x10004f00
jmp 0x10004ea0
jmp 0x10004f19
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.100118b0
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 0x10004f3b
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 0x100050a5
mov ecx, dword [ebp - 0xc]
and ecx, 0x7c0000
shr ecx, 0x12
cmp ecx, 0x10
jb 0x10004f79
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10006570
add esp, 0xc
jmp 0x100050a0
cmp dword [ebp - 0x1c], 0
je 0x10004fbb
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x11
jne 0x10004fbb
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x60], 0x11
jne 0x10004fbb
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.10007ab0
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 0x100050a0
cmp dword [ebp - 0x1c], 0
je 0x10004ffd
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x11
jne 0x10004ffd
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x60], 0x12
jne 0x10004ffd
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10007870
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 0x100050a0
cmp dword [ebp - 0x1c], 0
je 0x1000503c
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0x12
jne 0x1000503c
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x60], 0x12
jne 0x1000503c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10007ce0
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 0x100050a0
cmp dword [ebp - 0x1c], 0
je 0x1000508c
mov edx, dword [ebp - 0x10]
cmp dword [edx], 1
jl 0x1000508c
mov eax, dword [ebp - 0x10]
cmp dword [eax], 7
jg 0x1000508c
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x60], 1
jl 0x1000508c
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x60], 7
jg 0x1000508c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10007f30
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 0x100050a0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.100070a0
add esp, 0xc
jmp 0x10004f32
mov edx, dword [ebp - 0xc]
and edx, 0x10
je 0x1000510d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x100050be
mov ecx, dword [ebp - 0x24]
add ecx, 8
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x48]
jae 0x1000510b
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 0x100050b5
jmp 0x10005146
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x1000511e
mov ecx, dword [ebp - 0x24]
add ecx, 8
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x48]
jae 0x10005146
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 0x10005115
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x10005157
mov ecx, dword [ebp - 0x24]
add ecx, 0x40
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x48]
jae 0x10005190
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 8]
jg 0x1000517e
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 8]
jle 0x1000518e
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp + 0xc]
sar edx, 2
shr edx, 1
mov dword [ebp - 0x14], edx
jmp 0x10005190
jmp 0x1000514e
mov eax, dword [ebp + 0x10]
and eax, 7
mov dword [ebp - 0x28], eax
jmp 0x100062ea
mov ecx, dword [ebp - 0xc]
and ecx, 8
je 0x100054ba
mov edx, dword [ebp - 0xc]
and edx, 0x40000004
je 0x100054ba
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
jmp 0x100051d1
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x10]
jae 0x100054b5
lea eax, [ebp - 0x30]
push eax
xor edx, edx
mov ecx, dword [ebp - 0x20]
call fcn.10010bc0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x80000000
jne 0x100051fc
jmp 0x100054b5
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 0x1000521e
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 0x10005346
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 8
jle 0x10005280
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
and eax, 1
je 0x10005257
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 0x1000526b
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 0x1000529b
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 0x100052d7
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 0x100052f0
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 0x1000532e
cmp dword [ebp - 0x18], 0
je 0x1000532e
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 0x10005215
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 0x10005478
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 0x100053d6
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 0x100053f2
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 0x1000545c
cmp dword [ebp - 0x5c], 0
jge 0x1000545c
cmp dword [ebp - 0x60], 0
je 0x1000545c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x60]
cmp eax, dword [edx + 0x130]
jne 0x1000544b
cmp dword [ebp - 0x60], 0
jge 0x10005436
mov ecx, dword [ebp - 0x60]
add ecx, 1
mov dword [ebp - 0x10c], ecx
jmp 0x10005442
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 0x1000546a
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 0x10005481
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 0x1000549f
jmp 0x100054b5
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 0x100051c8
jmp 0x100062ea
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x74], 0
je 0x100062e3
mov edx, dword [ebp - 0xc]
and edx, 0x40000004
jne 0x100062e3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
jmp 0x100054ee
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x10]
jae 0x100062e1
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.10010bc0
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0x80000000
je 0x1000553f
lea ecx, [ebp - 0x2c]
push ecx
mov edx, 1
mov ecx, dword [ebp - 0x20]
call fcn.10010bc0
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0x80000000
jne 0x10005544
jmp 0x100062e1
mov edx, dword [ebp - 0xc]
and edx, 0x20
je 0x10005936
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 0x10005585
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 0x10005918
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
jle 0x100056e6
mov eax, dword [ebp - 0x10]
cmp dword [eax], 8
jle 0x10005605
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
and edx, 1
je 0x100055db
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 0x10005603
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 0x1000561f
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 0x1000565b
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 0x10005674
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 0x100056bd
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 0x100056d5
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 0x10005913
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0xffffffff
jne 0x100057c9
mov eax, dword [ebp - 0x10]
movsx ecx, word [eax + 0x10]
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], ecx
je 0x1000573b
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 0x10005757
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 0x1000579f
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 0x100057b8
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 0x10005913
mov ecx, dword [ebp - 0x10]
movsx edx, word [ecx + 0x30]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x30], edx
je 0x10005811
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 0x1000582d
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 0x100058b2
mov edx, dword [ebp - 0x10]
movsx eax, word [edx + 0x10]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], eax
je 0x10005889
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 0x100058a4
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 0x10005913
movsx edx, word [ebp - 0x6c]
cmp dword [ebp - 0x6c], edx
je 0x100058ee
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 0x10005907
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 0x1000557c
mov eax, dword [ebp - 0xc]
and eax, 0x10
je 0x10005936
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 0x10005958
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 0x10005f7a
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0
jle 0x10005bce
mov edx, dword [ebp - 0x10]
cmp dword [edx], 8
jle 0x10005a0a
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
and ecx, 1
je 0x100059b8
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 0x100059e6
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 0x10005a3b
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 0x10005a84
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 0x10005a9f
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 0x10005af3
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 0x10005b0f
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 0x10005b5c
cmp dword [ebp - 0x74], 0
je 0x10005b5c
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 0x10005b9d
cmp dword [ebp - 0x78], 0
je 0x10005b9d
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 0x10005f75
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0xffffffff
jne 0x10005d9c
mov edx, dword [ebp - 0x10]
movsx eax, word [edx + 0x10]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], eax
je 0x10005c22
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 0x10005c3d
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 0x10005cb8
cmp dword [ebp - 0x74], 0
je 0x10005cb8
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 0x10005ca0
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 0x10005cfa
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 0x10005d13
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 0x10005d88
cmp dword [ebp - 0x78], 0
je 0x10005d88
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 0x10005d70
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 0x10005f75
mov eax, dword [ebp - 0x10]
movsx ecx, word [eax + 0x30]
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x30], ecx
je 0x10005de5
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 0x10005e01
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 0x10005e7c
cmp dword [ebp - 0x78], 0
je 0x10005e7c
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 0x10005e64
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 0x10005e9c
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 0x10005ed8
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 0x10005ef1
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 0x10005f66
cmp dword [ebp - 0x74], 0
je 0x10005f66
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 0x10005f4e
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 0x1000594f
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 0x10005fbe
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 0x10005fbe
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 0x10005fdc
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 0x1000627a
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 0x10006072
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 0x10006091
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 0x10006116
cmp dword [ebp - 0xa8], 0
jge 0x10006116
cmp dword [ebp - 0xac], 0
je 0x10006116
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xac]
cmp eax, dword [edx + 0x130]
jne 0x10006102
cmp dword [ebp - 0xac], 0
jge 0x100060e7
mov ecx, dword [ebp - 0xac]
add ecx, 1
mov dword [ebp - 0x148], ecx
jmp 0x100060f6
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 0x10006124
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 0x100061bb
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 0x100061da
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 0x1000625e
cmp dword [ebp - 0xa8], 0
jge 0x1000625e
cmp dword [ebp - 0xac], 0
je 0x1000625e
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xac]
cmp edx, dword [ecx + 0x134]
jne 0x1000624a
cmp dword [ebp - 0xac], 0
jge 0x1000622f
mov eax, dword [ebp - 0xac]
add eax, 1
mov dword [ebp - 0x150], eax
jmp 0x1000623e
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 0x1000626c
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 0x10006286
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 0x100062a0
mov eax, dword [ebp - 0x78]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 8]
jle 0x100062a2
jmp 0x100062e1
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 0x100054e5
jmp 0x100062ea
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
je 0x10006345
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.1008b230
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 0x10006345
mov eax, dword [ebp - 0x20]
add eax, 0xf0
push eax
call fcn.100101c0
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x10006428
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 0x10006371
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 0x10006428
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0
jle 0x10006423
mov edx, dword [ebp - 0x10]
cmp dword [edx], 8
jg 0x10006423
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 0x100063de
mov eax, dword [ebp - 0xb0]
add eax, 1
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 8
jge 0x10006423
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 0x100063cf
jmp 0x10006368
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100081a0
add esp, 0xc
mov edx, dword [ebp - 0xc]
and edx, 0x80
je 0x100064a4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x9c]
and ecx, 0x10
je 0x100064a4
mov edx, dword [ebp - 0xc]
and edx, 0x40000004
je 0x1000646b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x154], eax
jmp 0x10006476
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.10013380
add esp, 0xc
mov edx, dword [ebp - 0xc]
and edx, 0x40000000
je 0x10006544
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 0x10006544
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 0x100064dc
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