Function at 0x4c1580
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x137c
call fcn.004cdc60
mov eax, dword [0x52a2f8]
xor eax, esp
mov dword [esp + 0x1378], eax
mov eax, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 8]
xor edx, edx
push ebx
mov dword [esp + 0x2c], ecx
mov ebx, dword [eax + 0x504]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 0x508]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x510]
xor eax, eax
mov dword [esp + 0xc], ecx
lea eax, [ebx*4]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], eax
push edi
test ebx, ebx
jle 0x4c1659
mov ecx, eax
lea edi, [esp + 0x58]
shr ecx, 2
mov eax, 0xffffff38
rep stosd dword es:[edi], eax
lea eax, [ebx*4]
test ebx, ebx
jle 0x4c1659
mov ecx, eax
lea edi, [esp + 0x160]
shr ecx, 2
mov eax, 0xffffff38
rep stosd dword es:[edi], eax
xor eax, eax
lea ecx, [ebx*4]
shr ecx, 2
lea edi, [esp + 0x370]
rep stosd dword es:[edi], eax
lea ecx, [ebx*4]
mov eax, 1
shr ecx, 2
lea edi, [esp + 0x268]
rep stosd dword es:[edi], eax
lea ecx, [ebx*4]
or eax, 0xffffffff
shr ecx, 2
lea edi, [esp + 0x478]
rep stosd dword es:[edi], eax
test ebx, ebx
jne 0x4c167e
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x580]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push edi
push esi
push eax
push esi
push 0
call fcn.004c0f00
add esp, 0x14
jmp 0x4c16e2
lea eax, [ebx - 1]
xor esi, esi
mov dword [esp + 0xc], eax
test eax, eax
jle 0x4c1ba7
lea edi, [esp + 0x580]
xor ebx, ebx
nop dword [eax + eax]
mov eax, dword [esp + 0x28]
push dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push dword [eax + 0x508]
push edi
push dword [eax + esi*4 + 4]
push dword [eax + esi*4]
call fcn.004c0f00
inc esi
add esp, 0x14
add ebx, eax
add edi, 0x38
cmp esi, dword [esp + 0xc]
jl 0x4c16a0
mov edi, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4c1ba5
push edi
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffff38
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0xffffff38
lea edx, [ebx - 1]
push eax
lea ecx, [esp + 0x58c]
call fcn.004c1090
mov eax, dword [esp + 0x24]
mov esi, 2
mov edi, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x58], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], edi
mov dword [esp + 0x5c], edi
cmp ebx, esi
jle 0x4c19c7
mov edx, dword [esp + 0x28]
lea eax, [edx + 0x210]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
mov ecx, dword [esp + eax*4 + 0x370]
mov eax, dword [esp + eax*4 + 0x268]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], eax
cmp dword [esp + ecx*4 + 0x478], eax
je 0x4c19a6
mov edi, dword [edx + ecx*4 + 0x208]
mov edx, dword [edx + eax*4 + 0x208]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x44], edi
lea edi, [esp + 0x160]
mov dword [esp + ecx*4 + 0x478], eax
mov ebx, dword [edx + ecx*4 + 0x344]
mov edx, dword [edx + eax*4 + 0x344]
mov dword [esp + 0xc], edx
mov edx, dword [esp + ecx*4 + 0x58]
lea ecx, [edi + ecx*4]
mov edi, dword [ecx]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x4c], ecx
test edx, edx
js 0x4c17d0
test edi, edi
jns 0x4c17cc
mov edi, edx
jmp 0x4c17d0
add edi, edx
sar edi, 1
mov ebx, dword [esp + eax*4 + 0x160]
lea ecx, [esp + 0x58]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x54], ecx
mov ecx, dword [ecx]
test ecx, ecx
js 0x4c17f4
test ebx, ebx
jns 0x4c17f0
mov ebx, ecx
jmp 0x4c17f4
add ebx, ecx
sar ebx, 1
cmp edi, 0xffffffff
je 0x4c1bbe
cmp ebx, 0xffffffff
je 0x4c1bbe
push dword [esp + 0x10]
mov edx, dword [esp + 0x10]
push dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x38]
push ebx
push edi
call fcn.004c1360
add esp, 0x14
test eax, eax
je 0x4c198b
push dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0xffffff38
push eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], 0xffffff38
mov dword [esp + 0x28], 0xffffff38
mov dword [esp + 0x20], 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.004c1090
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x20]
add esp, 0xc
mov dword [esp + 0xc], eax
push dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
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.004c1090
add esp, 0xc
mov edx, eax
cmp dword [esp + 0xc], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
je 0x4c18cf
mov ecx, eax
jmp 0x4c18d7
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
test edx, edx
je 0x4c18e5
mov dword [esp + 0x1c], ecx
jmp 0x4c18e9
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0xc], 0
je 0x4c18f8
test edx, edx
jne 0x4c198b
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
test edx, edx
mov dword [eax], edi
mov eax, dword [esp + 0x58]
cmove eax, edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x54]
mov dword [esp + esi*4 + 0x58], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, 1
mov dword [esp + esi*4 + 0x160], edi
mov dword [eax], ebx
mov eax, dword [esp + 0x164]
cmove eax, ebx
cmp dword [esp + 0x20], 0
mov dword [esp + 0x164], eax
jge 0x4c1947
test edi, edi
js 0x4c199e
mov eax, dword [esp + 0x18]
mov ebx, dword [eax]
lea eax, [ebx - 1]
test eax, eax
js 0x4c1969
cmp dword [esp + eax*4 + 0x268], ecx
jne 0x4c1969
mov dword [esp + eax*4 + 0x268], esi
sub eax, 1
jns 0x4c1954
lea eax, [ebx + 1]
mov ebx, dword [esp + 0x2c]
cmp eax, ebx
jge 0x4c19a2
cmp dword [esp + eax*4 + 0x370], edx
jne 0x4c19a2
mov dword [esp + eax*4 + 0x370], esi
inc eax
cmp eax, ebx
jl 0x4c1974
jmp 0x4c19a2
mov dword [esp + esi*4 + 0x160], 0xffffff38
mov dword [esp + esi*4 + 0x58], 0xffffff38
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
inc esi
add eax, 4
mov dword [esp + 0x18], eax
cmp esi, ebx
jl 0x4c1750
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x160]
jmp 0x4c19cb
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x24]
add ecx, 7
and ecx, 0xfffffff8
mov edx, dword [eax + 0x48]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edx
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x4c]
mov ebx, dword [esp + 0x2c]
jle 0x4c1a41
mov edx, dword [esp + 0x24]
cmp dword [edx + 0x44], 0
je 0x4c1a24
push 8
call fcn.004df2ee
mov edx, dword [esp + 0x28]
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 + 0xc]
mov dword [edx + 0x54], eax
push ecx
mov dword [edx + 0x4c], ecx
call fcn.004df2ee
mov ecx, dword [esp + 0x28]
add esp, 4
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [ecx + 0x44], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x44]
add edx, eax
mov eax, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x30], edx
cmp dword [esp + 0x58], 0
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0x48], eax
jl 0x4c1a72
test esi, esi
jns 0x4c1a6c
mov esi, dword [esp + 0x58]
jmp 0x4c1a72
add esi, dword [esp + 0x58]
sar esi, 1
mov dword [edx], esi
test edi, edi
jns 0x4c1a81
mov edi, dword [esp + 0x164]
jmp 0x4c1a94
cmp dword [esp + 0x164], 0
jl 0x4c1a94
add edi, dword [esp + 0x164]
sar edi, 1
mov dword [edx + 4], edi
mov dword [esp + 0xc], 2
cmp ebx, 2
jle 0x4c1ba7
mov esi, dword [esp + 0x28]
mov eax, 0xfffffcfc
mov ebx, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0x38], eax
lea edx, [esi + 0x30c]
lea ecx, [ebx + 0x34c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ecx
nop
mov eax, dword [edx + 0xfc]
mov esi, dword [edx]
mov edx, dword [esp + 0x30]
mov ecx, dword [ecx]
mov edi, dword [ebx + eax*4 + 0x344]
sub ecx, edi
mov eax, dword [edx + eax*4]
mov ebx, dword [edx + esi*4]
and eax, 0x7fff
mov dword [esp + 0x3c], eax
and ebx, 0x7fff
sub ebx, eax
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + esi*4 + 0x344]
sub ecx, edi
cdq
idiv ecx
mov edx, dword [esp + 0x3c]
lea ecx, [eax + edx]
sub edx, eax
test ebx, ebx
mov ebx, dword [esp + 0xc]
cmovns edx, ecx
mov ecx, dword [esp + ebx*4 + 0x58]
mov eax, dword [esp + ebx*4 + 0x160]
test ecx, ecx
js 0x4c1b45
test eax, eax
jns 0x4c1b41
mov eax, ecx
jmp 0x4c1b45
add eax, ecx
sar eax, 1
test eax, eax
js 0x4c1b4d
cmp edx, eax
jne 0x4c1b54
mov eax, edx
or eax, 0x8000
mov edx, dword [esp + 0x14]
inc ebx
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
add ecx, edx
add edx, 4
mov dword [esp + 0xc], ebx
mov dword [ecx + esi], eax
mov ecx, dword [esp + 0x20]
add ecx, 4
mov dword [esp + 0x14], edx
cmp ebx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
jl 0x4c1ad0
mov edx, dword [esp + 0x30]
mov eax, edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1378]
xor ecx, esp
call fcn.004ccfb7
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.004ccfb7
mov esp, ebp
pop ebp
ret
push 1
call fcn.004df6fe
int3