Function at 0x656c20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x137c
call fcn.00684280
mov eax, dword [0x71a00c]
xor eax, esp
mov dword [esp + 0x1378], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [edx + 0x504]
push esi
mov esi, dword [edx + 0x510]
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x44], ebx
push edi
test ebx, ebx
jle 0x656cb5
mov eax, 0xffffff38
lea edi, [esp + 0x160]
mov ecx, ebx
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x370]
mov ecx, ebx
rep stosd dword es:[edi], eax
test ebx, ebx
jle 0x656cb5
mov eax, 1
lea edi, [esp + 0x268]
mov ecx, ebx
rep stosd dword es:[edi], eax
or eax, 0xffffffff
lea edi, [esp + 0x478]
mov ecx, ebx
test ebx, ebx
rep stosd dword es:[edi], eax
jne 0x656cdf
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
push esi
mov eax, dword [ecx + 0x508]
lea ecx, [esp + 0x584]
push eax
push ecx
mov ecx, dword [esp + 0x48]
push eax
push 0
call fcn.00656130
add esp, 0x14
jmp 0x656d41
lea eax, [ebx - 1]
xor esi, esi
mov dword [esp + 0x10], eax
test eax, eax
jle 0x657218
lea edi, [esp + 0x580]
xor ebx, ebx
nop dword [eax]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x40]
push dword [eax + 0x508]
push edi
push dword [eax + esi*4 + 4]
push dword [eax + esi*4]
call fcn.00656130
inc esi
add esp, 0x14
add ebx, eax
add edi, 0x38
cmp esi, dword [esp + 0x10]
jl 0x656d00
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x657216
push esi
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0xffffff38
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0xffffff38
lea edx, [ebx - 1]
push eax
lea ecx, [esp + 0x58c]
call fcn.006562d0
mov eax, dword [esp + 0x20]
mov esi, 2
mov edi, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x160], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x164], edi
cmp ebx, esi
jle 0x657046
mov edx, dword [esp + 0x1c]
lea eax, [edx + 0x210]
mov dword [esp + 0x20], eax
nop
mov eax, dword [eax]
mov ecx, dword [esp + eax*4 + 0x370]
mov eax, dword [esp + eax*4 + 0x268]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x54], eax
cmp dword [esp + ecx*4 + 0x478], eax
je 0x657025
mov edi, dword [edx + ecx*4 + 0x208]
mov edx, dword [edx + eax*4 + 0x208]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], edi
mov dword [esp + ecx*4 + 0x478], eax
mov edi, dword [edx + ecx*4 + 0x344]
mov dword [esp + 0x28], edi
mov edi, dword [edx + eax*4 + 0x344]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + ecx*4 + 0x160]
test edi, edi
jns 0x656e2b
lea edx, [esp + 0x58]
mov edi, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x18]
jmp 0x656e3d
lea ecx, [esp + ecx*4 + 0x58]
mov dword [esp + 0x34], ecx
mov ecx, dword [ecx]
test ecx, ecx
js 0x656e3d
add edi, ecx
sar edi, 1
lea ecx, [eax*4]
lea eax, [esp + 0x160]
add eax, ecx
mov dword [esp + 0x50], eax
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
jns 0x656e61
mov eax, dword [esp + ecx + 0x58]
jmp 0x656e6d
mov ecx, dword [esp + ecx + 0x58]
test ecx, ecx
js 0x656e71
add eax, ecx
sar eax, 1
mov dword [esp + 0x14], eax
cmp edi, 0xffffffff
je 0x65722f
cmp eax, 0xffffffff
je 0x65722f
mov ecx, dword [esp + 0x28]
push edx
push dword [ebp + 8]
mov edx, dword [esp + 0x34]
push dword [esp + 0x44]
push eax
push edi
call fcn.006569d0
add esp, 0x14
test eax, eax
je 0x65700e
push dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0xffffff38
push eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], 0xffffff38
mov dword [esp + 0x3c], 0xffffff38
mov dword [esp + 0x34], 0xffffff38
mov edx, dword [eax]
lea eax, [ecx*8]
sub eax, ecx
sub edx, ecx
lea ecx, [esp + 0x58c]
lea ecx, [ecx + eax*8]
call fcn.006562d0
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x2c], eax
push dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
sub edx, eax
lea ecx, [eax*8]
sub ecx, eax
lea eax, [esp + 0x58c]
lea ecx, [eax + ecx*8]
call fcn.006562d0
mov ecx, eax
add esp, 0xc
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], eax
je 0x656f4c
mov edx, eax
jmp 0x656f54
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x656f66
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
jmp 0x656f6a
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x2c], 0
je 0x656f7c
cmp dword [esp + 0x40], 0
jne 0x65700e
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x10], 0
mov dword [eax], edi
mov eax, dword [esp + 0x160]
cmove eax, edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x160], eax
mov eax, dword [esp + 0x50]
mov dword [esp + esi*4 + 0x160], edx
mov edx, dword [esp + 0x54]
cmp edx, 1
mov dword [esp + esi*4 + 0x58], edi
mov dword [eax], ecx
mov eax, dword [esp + 0x5c]
cmove eax, ecx
cmp dword [esp + 0x24], 0
mov dword [esp + 0x5c], eax
jge 0x656fca
test edi, edi
js 0x657021
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea eax, [ecx - 1]
test eax, eax
js 0x656fec
cmp dword [esp + eax*4 + 0x268], edx
jne 0x656fec
mov dword [esp + eax*4 + 0x268], esi
sub eax, 1
jns 0x656fd7
lea eax, [ecx + 1]
cmp eax, ebx
jge 0x657021
mov ecx, dword [esp + 0x10]
cmp dword [esp + eax*4 + 0x370], ecx
jne 0x657021
mov dword [esp + eax*4 + 0x370], esi
inc eax
cmp eax, ebx
jl 0x656ff7
jmp 0x657021
mov dword [esp + esi*4 + 0x58], 0xffffff38
mov dword [esp + esi*4 + 0x160], 0xffffff38
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
inc esi
add eax, 4
mov dword [esp + 0x20], eax
cmp esi, ebx
jl 0x656db0
mov edi, dword [esp + 0x164]
mov esi, dword [esp + 0x58]
jmp 0x65704a
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
lea ecx, [ebx*4 + 7]
and ecx, 0xfffffff8
mov dword [esp + 0x10], ecx
mov eax, dword [edx + 0x48]
add eax, ecx
cmp eax, dword [edx + 0x4c]
jle 0x6570b0
cmp dword [edx + 0x44], 0
je 0x657092
push 8
call fcn.0067647e
mov edx, dword [esp + 0x3c]
add esp, 4
mov ecx, dword [edx + 0x48]
add dword [edx + 0x50], ecx
mov ecx, dword [edx + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 0x44]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov dword [edx + 0x54], eax
push ecx
mov dword [edx + 0x4c], ecx
call fcn.0067647e
mov edx, dword [esp + 0x3c]
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], 0
mov eax, dword [edx + 0x48]
mov edx, dword [edx + 0x44]
add edx, eax
add eax, ecx
cmp dword [esp + 0x160], 0
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
mov dword [ecx + 0x48], eax
jl 0x6570e5
test esi, esi
jns 0x6570dc
mov esi, dword [esp + 0x160]
jmp 0x6570e5
add esi, dword [esp + 0x160]
sar esi, 1
mov dword [edx], esi
test edi, edi
jns 0x6570f1
mov edi, dword [esp + 0x5c]
jmp 0x6570fe
cmp dword [esp + 0x5c], 0
jl 0x6570fe
add edi, dword [esp + 0x5c]
sar edi, 1
mov dword [edx + 4], edi
mov dword [esp + 0x2c], 2
cmp ebx, 2
jle 0x657218
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, 0x30c
mov dword [esp + 0x28], ecx
lea eax, [ebx + 0x34c]
mov dword [esp + 0x14], eax
lea eax, [edx + 8]
mov dword [esp + 0x34], eax
nop word [eax + eax]
mov eax, dword [ecx + 0xfc]
mov esi, dword [ecx]
mov ecx, dword [esp + 0x14]
mov edi, dword [ebx + eax*4 + 0x344]
mov eax, dword [edx + eax*4]
mov ebx, dword [edx + esi*4]
and eax, 0x7fff
mov ecx, dword [ecx]
and ebx, 0x7fff
sub ebx, eax
mov dword [esp + 0x10], eax
mov eax, ebx
sub ecx, edi
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + esi*4 + 0x344]
sub ecx, edi
cdq
idiv ecx
mov ecx, eax
mov eax, dword [esp + 0x10]
test ebx, ebx
jns 0x657196
sub eax, ecx
jmp 0x657198
add eax, ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + edx*4 + 0x160]
test ecx, ecx
jns 0x6571ad
mov ecx, dword [esp + edx*4 + 0x58]
jmp 0x6571b9
mov esi, dword [esp + edx*4 + 0x58]
test esi, esi
js 0x6571b9
add ecx, esi
sar ecx, 1
test ecx, ecx
js 0x6571cb
cmp eax, ecx
je 0x6571cb
mov eax, dword [esp + 0x34]
mov dword [eax + edx*4 - 8], ecx
jmp 0x6571d8
mov ecx, dword [esp + 0x34]
or eax, 0x8000
mov dword [ecx + edx*4 - 8], eax
mov ecx, dword [esp + 0x28]
inc edx
add dword [esp + 0x14], 4
add ecx, 4
cmp edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
jl 0x657140
mov eax, edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1378]
xor ecx, esp
call fcn.0066bc45
mov esp, ebp
pop ebp
ret
xor edx, edx
mov ecx, dword [esp + 0x1384]
mov eax, edx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0066bc45
mov esp, ebp
pop ebp
ret
push 1
call fcn.00677238
int3