Function at 0x4eae80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1360
call fcn.0050c7e0
mov eax, dword [0x582904]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1348], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x1340], ecx
mov ecx, dword [ebp + 0x14]
mov ebx, dword [eax + 0x504]
push esi
mov esi, dword [eax + 0x508]
mov dword [ebp - 0x1330], eax
mov dword [ebp - 0x1334], ecx
mov ecx, dword [eax + 0x510]
xor eax, eax
mov dword [ebp - 0x1320], ecx
lea eax, [ebx*4]
mov dword [ebp - 0x133c], ebx
push edi
test ebx, ebx
jle 0x4eaf5c
mov ecx, eax
lea edi, [ebp - 0x108]
shr ecx, 2
mov eax, 0xffffff38
rep stosd dword es:[edi], eax
lea eax, [ebx*4]
test ebx, ebx
jle 0x4eaf5c
mov ecx, eax
lea edi, [ebp - 0x20c]
shr ecx, 2
mov eax, 0xffffff38
rep stosd dword es:[edi], eax
xor eax, eax
lea ecx, [ebx*4]
shr ecx, 2
lea edi, [ebp - 0x414]
rep stosd dword es:[edi], eax
lea ecx, [ebx*4]
mov eax, 1
shr ecx, 2
lea edi, [ebp - 0x310]
rep stosd dword es:[edi], eax
lea ecx, [ebx*4]
or eax, 0xffffffff
shr ecx, 2
lea edi, [ebp - 0x518]
rep stosd dword es:[edi], eax
test ebx, ebx
jne 0x4eaf86
mov edi, dword [ebp - 0x1320]
lea eax, [ebp - 0x1318]
push edi
push esi
push eax
push esi
push 0
push dword [ebp - 0x1340]
push dword [ebp - 0x1334]
call fcn.004ea270
add esp, 0x1c
jmp 0x4eaff5
lea eax, [ebx - 1]
xor esi, esi
mov dword [ebp - 0x131c], eax
test eax, eax
jle 0x4eb514
lea edi, [ebp - 0x1318]
xor ebx, ebx
push dword [ebp - 0x1320]
mov eax, dword [ebp - 0x1330]
push dword [eax + 0x508]
push edi
push dword [eax + esi*4 + 4]
push dword [eax + esi*4]
push dword [ebp - 0x1340]
push dword [ebp - 0x1334]
call fcn.004ea270
inc esi
add esp, 0x1c
add ebx, eax
add edi, 0x38
cmp esi, dword [ebp - 0x131c]
jl 0x4eafa1
mov edi, dword [ebp - 0x1320]
mov dword [ebp - 0x131c], ebx
mov ebx, dword [ebp - 0x133c]
mov eax, dword [ebp - 0x131c]
test eax, eax
je 0x4eb512
push edi
lea ecx, [ebp - 0x1328]
mov dword [ebp - 0x1324], 0xffffff38
push ecx
lea ecx, [ebp - 0x1324]
mov dword [ebp - 0x1328], 0xffffff38
push ecx
lea eax, [ebx - 1]
push eax
lea eax, [ebp - 0x1318]
push eax
call fcn.004ea400
mov eax, dword [ebp - 0x1324]
mov esi, 2
mov edi, dword [ebp - 0x1328]
add esp, 0x14
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x104], edi
cmp ebx, esi
jle 0x4eb36f
mov edx, dword [ebp - 0x1330]
lea eax, [edx + 0x210]
mov dword [ebp - 0x1324], eax
nop word [eax + eax]
mov eax, dword [eax]
mov ecx, dword [ebp + eax*4 - 0x414]
mov eax, dword [ebp + eax*4 - 0x310]
mov dword [ebp - 0x135c], ecx
mov dword [ebp - 0x1344], eax
cmp dword [ebp + ecx*4 - 0x518], eax
je 0x4eb349
mov edi, dword [edx + ecx*4 + 0x208]
mov edx, dword [edx + eax*4 + 0x208]
mov dword [ebp - 0x1354], edx
mov edx, dword [ebp - 0x1320]
mov dword [ebp - 0x1350], edi
lea edi, [ebp - 0x20c]
mov dword [ebp + ecx*4 - 0x518], eax
mov ebx, dword [edx + ecx*4 + 0x344]
mov edx, dword [edx + eax*4 + 0x344]
mov dword [ebp - 0x131c], edx
mov edx, dword [ebp + ecx*4 - 0x108]
lea ecx, [edi + ecx*4]
mov edi, dword [ecx]
mov dword [ebp - 0x1338], ebx
mov dword [ebp - 0x1358], ecx
test edx, edx
js 0x4eb112
test edi, edi
jns 0x4eb10e
mov edi, edx
jmp 0x4eb112
add edi, edx
sar edi, 1
mov ebx, dword [ebp + eax*4 - 0x20c]
lea ecx, [ebp - 0x108]
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x1360], ecx
mov ecx, dword [ecx]
test ecx, ecx
js 0x4eb13a
test ebx, ebx
jns 0x4eb136
mov ebx, ecx
jmp 0x4eb13a
add ebx, ecx
sar ebx, 1
cmp edi, 0xffffffff
je 0x4eb527
cmp ebx, 0xffffffff
je 0x4eb527
push dword [ebp - 0x1320]
push dword [ebp - 0x1340]
push dword [ebp - 0x1334]
push ebx
push edi
push dword [ebp - 0x131c]
push dword [ebp - 0x1338]
call fcn.004eb780
add esp, 0x1c
test eax, eax
je 0x4eb327
push dword [ebp - 0x1320]
mov ecx, dword [ebp - 0x1350]
lea eax, [ebp - 0x132c]
push eax
lea eax, [ebp - 0x134c]
mov dword [ebp - 0x134c], 0xffffff38
push eax
mov eax, dword [ebp - 0x1324]
mov dword [ebp - 0x132c], 0xffffff38
mov dword [ebp - 0x1328], 0xffffff38
mov dword [ebp - 0x1338], 0xffffff38
mov eax, dword [eax]
sub eax, ecx
push eax
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [ebp - 0x1318]
lea eax, [ecx + eax*8]
push eax
call fcn.004ea400
push dword [ebp - 0x1320]
mov edx, dword [ebp - 0x1324]
lea ecx, [ebp - 0x1338]
push ecx
mov dword [ebp - 0x131c], eax
lea ecx, [ebp - 0x1328]
mov eax, dword [ebp - 0x1354]
push ecx
mov ecx, dword [edx]
sub eax, ecx
push eax
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [ebp - 0x1318]
lea eax, [ecx + eax*8]
push eax
call fcn.004ea400
add esp, 0x28
mov edx, eax
cmp dword [ebp - 0x131c], 0
mov eax, dword [ebp - 0x1328]
mov dword [ebp - 0x1328], eax
je 0x4eb242
mov ecx, eax
jmp 0x4eb24e
mov edi, dword [ebp - 0x134c]
mov ecx, dword [ebp - 0x132c]
mov dword [ebp - 0x132c], ecx
test edx, edx
je 0x4eb260
mov dword [ebp - 0x1328], ecx
jmp 0x4eb266
mov ebx, dword [ebp - 0x1338]
cmp dword [ebp - 0x131c], 0
je 0x4eb277
test edx, edx
jne 0x4eb327
mov eax, dword [ebp - 0x1358]
mov edx, dword [ebp - 0x135c]
test edx, edx
mov dword [eax], edi
mov eax, dword [ebp - 0x108]
cmove eax, edi
mov edi, dword [ebp - 0x1328]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x1360]
mov dword [ebp + esi*4 - 0x108], ecx
mov ecx, dword [ebp - 0x1344]
cmp ecx, 1
mov dword [ebp + esi*4 - 0x20c], edi
mov dword [eax], ebx
mov eax, dword [ebp - 0x208]
cmove eax, ebx
cmp dword [ebp - 0x132c], 0
mov dword [ebp - 0x208], eax
jge 0x4eb2d7
test edi, edi
js 0x4eb33d
mov eax, dword [ebp - 0x1324]
mov ebx, dword [eax]
lea eax, [ebx - 1]
test eax, eax
js 0x4eb2fb
cmp dword [ebp + eax*4 - 0x310], ecx
jne 0x4eb2fb
mov dword [ebp + eax*4 - 0x310], esi
sub eax, 1
jns 0x4eb2e6
lea eax, [ebx + 1]
mov ebx, dword [ebp - 0x133c]
cmp eax, ebx
jge 0x4eb343
nop dword [eax + eax]
cmp dword [ebp + eax*4 - 0x414], edx
jne 0x4eb343
mov dword [ebp + eax*4 - 0x414], esi
inc eax
cmp eax, ebx
jl 0x4eb310
jmp 0x4eb343
mov dword [ebp + esi*4 - 0x20c], 0xffffff38
mov dword [ebp + esi*4 - 0x108], 0xffffff38
mov ebx, dword [ebp - 0x133c]
mov edx, dword [ebp - 0x1330]
mov eax, dword [ebp - 0x1324]
inc esi
add eax, 4
mov dword [ebp - 0x1324], eax
cmp esi, ebx
jl 0x4eb080
mov edi, dword [ebp - 0x104]
mov esi, dword [ebp - 0x20c]
jmp 0x4eb375
mov esi, dword [ebp - 0x1324]
lea eax, [ebx*4]
push eax
push dword [ebp - 0x1348]
call fcn.004b4020
add esp, 8
mov edx, eax
cmp dword [ebp - 0x108], 0
mov dword [ebp - 0x1334], edx
jl 0x4eb3b0
test esi, esi
jns 0x4eb3a8
mov esi, dword [ebp - 0x108]
jmp 0x4eb3b0
add esi, dword [ebp - 0x108]
sar esi, 1
mov dword [edx], esi
test edi, edi
jns 0x4eb3be
mov edi, dword [ebp - 0x208]
jmp 0x4eb3cf
cmp dword [ebp - 0x208], 0
jl 0x4eb3cf
add edi, dword [ebp - 0x208]
sar edi, 1
mov dword [edx + 4], edi
mov dword [ebp - 0x131c], 2
cmp ebx, 2
jle 0x4eb514
mov esi, dword [ebp - 0x1330]
mov eax, 0xfffffcfc
mov ebx, dword [ebp - 0x1320]
sub eax, esi
mov dword [ebp - 0x1344], eax
lea edx, [esi + 0x30c]
lea ecx, [ebx + 0x34c]
mov dword [ebp - 0x1338], edx
mov dword [ebp - 0x132c], ecx
nop word [eax + eax]
mov eax, dword [edx + 0xfc]
mov esi, dword [edx]
mov edx, dword [ebp - 0x1334]
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 [ebp - 0x1348], eax
and ebx, 0x7fff
sub ebx, eax
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
mov ecx, dword [ebp - 0x1320]
mov ecx, dword [ecx + esi*4 + 0x344]
sub ecx, edi
cdq
idiv ecx
mov edx, dword [ebp - 0x1348]
lea ecx, [eax + edx]
sub edx, eax
test ebx, ebx
mov ebx, dword [ebp - 0x131c]
cmovns edx, ecx
mov ecx, dword [ebp + ebx*4 - 0x108]
mov eax, dword [ebp + ebx*4 - 0x20c]
test ecx, ecx
js 0x4eb4a2
test eax, eax
jns 0x4eb49e
mov eax, ecx
jmp 0x4eb4a2
add eax, ecx
sar eax, 1
test eax, eax
js 0x4eb4aa
cmp edx, eax
jne 0x4eb4b1
mov eax, edx
or eax, 0x8000
mov edx, dword [ebp - 0x1338]
inc ebx
mov ecx, dword [ebp - 0x1344]
mov esi, dword [ebp - 0x1334]
add ecx, edx
add edx, 4
mov dword [ebp - 0x131c], ebx
mov dword [ecx + esi], eax
mov ecx, dword [ebp - 0x132c]
add ecx, 4
mov dword [ebp - 0x1338], edx
cmp ebx, dword [ebp - 0x133c]
mov ebx, dword [ebp - 0x1320]
mov dword [ebp - 0x132c], ecx
jl 0x4eb420
mov edx, dword [ebp - 0x1334]
mov eax, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b540
mov esp, ebp
pop ebp
ret
xor edx, edx
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b540
mov esp, ebp
pop ebp
ret
push 1
call fcn.0051cd68
int3