Function at 0x677340
Capabilities:
Terminate process

Disassembly:
mov eax, 0x134c
call fcn.004ccea0
mov edx, dword [esp + 0x1354]
push ebx
push ebp
push esi
mov esi, dword [edx + 0x504]
mov eax, dword [edx + 0x508]
mov ebx, dword [edx + 0x510]
xor ebp, ebp
cmp esi, ebp
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], ebp
jle 0x677389
mov ecx, esi
mov eax, 0xffffff38
lea edi, [esp + 0x14c]
rep stosd dword es:[edi], eax
test esi, esi
jle 0x6773cf
mov ecx, esi
mov eax, 0xffffff38
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
jle 0x6773a9
mov ecx, esi
xor eax, eax
lea edi, [esp + 0x354]
rep stosd dword es:[edi], eax
test esi, esi
jle 0x6773cf
mov ecx, esi
mov eax, 1
lea edi, [esp + 0x250]
rep stosd dword es:[edi], eax
jle 0x6773cd
mov ecx, esi
or eax, 0xffffffff
lea edi, [esp + 0x458]
rep stosd dword es:[edi], eax
test esi, esi
jne 0x6773fc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1368]
push ebx
lea ecx, [esp + 0x560]
push eax
push ecx
push eax
mov eax, dword [esp + 0x137c]
push 0
push edx
push eax
call fcn.00677890
add esp, 0x1c
jmp 0x67745b
lea eax, [esi - 1]
test eax, eax
jle 0x67782d
mov esi, edx
lea edi, [esp + 0x55c]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ebx
push ecx
mov ecx, dword [esp + 0x1370]
push edi
push edx
mov edx, dword [esp + 0x137c]
push eax
push ecx
push edx
call fcn.00677890
mov edx, dword [esp + 0x2c]
add esp, 0x1c
add edx, eax
mov eax, dword [esp + 0x20]
add edi, 0x38
add esi, 4
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
jne 0x677414
mov esi, dword [esp + 0x24]
mov eax, edx
test eax, eax
je 0x67782d
mov eax, 0xffffff38
push ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esi - 1]
push ecx
lea eax, [esp + 0x568]
push edx
push eax
call fcn.00677a60
mov eax, dword [esp + 0x4c]
add esp, 0x14
mov dword [esp + 0x14c], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
cmp esi, 2
mov dword [esp + 0x4c], eax
mov dword [esp + 0x150], eax
mov dword [esp + 0x1c], 2
jle 0x677714
mov ecx, dword [esp + 0x1364]
mov dword [esp + 0x10], 0
add ecx, 0x210
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + ecx*4 + 0x354]
mov esi, dword [esp + ecx*4 + 0x250]
mov dword [esp + 0x44], eax
cmp dword [esp + eax*4 + 0x458], esi
je 0x6776e4
mov ecx, dword [esp + 0x1364]
mov edx, dword [ebx + esi*4 + 0x344]
mov dword [esp + eax*4 + 0x458], esi
push eax
mov edi, dword [ecx + eax*4 + 0x208]
mov ebp, dword [ecx + esi*4 + 0x208]
mov ecx, dword [ebx + eax*4 + 0x344]
lea eax, [esp + 0x4c]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x150]
push eax
push ecx
mov dword [esp + 0x24], edx
call fcn.00677f10
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x54]
push esi
lea eax, [esp + 0x15c]
push edx
push eax
call fcn.00677f10
mov ecx, dword [esp + 0x48]
add esp, 0x18
cmp ecx, 0xffffffff
mov dword [esp + 0x40], eax
je 0x6777ea
cmp eax, 0xffffffff
je 0x6777ea
mov edx, dword [esp + 0x1368]
push ebx
push edx
mov edx, dword [esp + 0x1374]
push edx
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call fcn.00677ce0
add esp, 0x1c
test eax, eax
je 0x6776d0
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push ebx
mov eax, 0xffffff38
push edx
lea edx, [edi*8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
sub edx, edi
push eax
sub ecx, edi
lea eax, [esp + edx*8 + 0x568]
push ecx
push eax
call fcn.00677a60
mov edi, eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ebx
push ecx
lea ecx, [eax*8]
lea edx, [esp + 0x50]
sub ecx, eax
push edx
sub ebp, eax
lea edx, [esp + ecx*8 + 0x57c]
push ebp
push edx
call fcn.00677a60
mov edx, dword [esp + 0x5c]
add esp, 0x28
test edi, edi
je 0x677624
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, edx
jmp 0x677628
mov ecx, dword [esp + 0x28]
test eax, eax
je 0x677634
mov ebp, dword [esp + 0x40]
mov edx, ecx
jmp 0x677638
mov ebp, dword [esp + 0x18]
test edi, edi
je 0x677644
test eax, eax
jne 0x6776d0
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
test edi, edi
mov dword [esp + edi*4 + 0x48], eax
jne 0x67765b
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x10]
cmp esi, 1
mov dword [esp + eax + 0x154], ecx
mov dword [esp + eax + 0x50], edx
mov dword [esp + esi*4 + 0x14c], ebp
jne 0x67767a
mov dword [esp + 0x4c], ebp
test ecx, ecx
jge 0x677682
test edx, edx
jl 0x6776e4
mov edx, dword [esp + 0x20]
lea eax, [edx - 1]
test eax, eax
jl 0x6776a6
lea ecx, [esp + eax*4 + 0x250]
cmp dword [ecx], esi
jne 0x6776a6
mov ebp, dword [esp + 0x1c]
dec eax
mov dword [ecx], ebp
sub ecx, 4
test eax, eax
jge 0x677694
mov ecx, dword [esp + 0x24]
lea eax, [edx + 1]
cmp eax, ecx
jge 0x6776e4
lea ecx, [esp + eax*4 + 0x354]
cmp dword [ecx], edi
jne 0x6776e4
mov edx, dword [esp + 0x1c]
inc eax
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
add ecx, 4
cmp eax, edx
jl 0x6776b8
jmp 0x6776e4
mov eax, dword [esp + 0x10]
mov ecx, 0xffffff38
mov dword [esp + eax + 0x154], ecx
mov dword [esp + eax + 0x50], ecx
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, 4
add esi, ecx
add edx, ecx
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
jl 0x6774d7
mov esi, ecx
mov ecx, dword [esp + 0x1360]
lea eax, [esi*4]
push eax
push ecx
call fcn.0066cfd0
mov ebp, eax
lea edx, [esp + 0x50]
push 0
lea eax, [esp + 0x158]
push edx
push eax
mov dword [esp + 0x2c], ebp
call fcn.00677f10
lea ecx, [esp + 0x5c]
push 1
lea edx, [esp + 0x164]
push ecx
push edx
mov dword [ebp], eax
call fcn.00677f10
add esp, 0x20
cmp esi, 2
mov dword [ebp + 4], eax
mov dword [esp + 0x1c], 2
jle 0x67782d
mov edx, dword [esp + 0x1364]
lea eax, [ebp + 8]
lea ecx, [ebx + 0x34c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
lea esi, [edx + 0x30c]
mov eax, dword [esi + 0xfc]
mov ecx, dword [esi]
mov edx, dword [ebx + eax*4 + 0x344]
mov edi, dword [ebx + ecx*4 + 0x344]
mov eax, dword [ebp + eax*4]
mov ecx, dword [ebp + ecx*4]
mov ebp, dword [esp + 0x14]
mov ebp, dword [ebp]
push ebp
push ecx
push eax
push edi
push edx
call fcn.00677840
mov ebp, dword [esp + 0x30]
mov edi, eax
lea eax, [esp + 0x5c]
push ebp
lea ecx, [esp + 0x164]
push eax
push ecx
call fcn.00677f10
add esp, 0x20
test eax, eax
jl 0x6777f1
cmp edi, eax
je 0x6777f1
mov edx, dword [esp + 0x10]
mov dword [edx], eax
jmp 0x6777fd
push 1
call fcn.004cbce7
mov eax, dword [esp + 0x10]
or edi, 0x8000
mov dword [eax], edi
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, 4
inc ebp
add esi, eax
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], ebp
cmp ebp, eax
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jl 0x67778f
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x134c
ret