Function at 0x4909f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x136c
call fcn.0047fbf0
push ebx
mov ebx, dword [edx + 0x504]
xor eax, eax
push esi
mov esi, dword [edx + 0x510]
mov dword [esp + 0x14], edx
xor edx, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x3c], ebx
push edi
test ebx, ebx
jle 0x490a70
mov eax, 0xffffff38
lea edi, [esp + 0x158]
mov ecx, ebx
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x368]
mov ecx, ebx
rep stosd dword es:[edi], eax
test ebx, ebx
jle 0x490a70
mov eax, 1
lea edi, [esp + 0x260]
mov ecx, ebx
rep stosd dword es:[edi], eax
or eax, 0xffffffff
lea edi, [esp + 0x470]
mov ecx, ebx
test ebx, ebx
rep stosd dword es:[edi], eax
jne 0x490a99
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
push esi
mov eax, dword [ecx + 0x508]
lea ecx, [esp + 0x57c]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push 0
call fcn.0048f580
add esp, 0x14
jmp 0x490af3
lea eax, [ebx - 1]
xor esi, esi
mov dword [esp + 0xc], eax
test eax, eax
jle 0x490fbe
lea edi, [esp + 0x578]
xor ebx, ebx
mov eax, dword [esp + 0x18]
push dword [esp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push dword [eax + 0x508]
push edi
push dword [eax + esi*4 + 4]
push dword [eax + esi*4]
call fcn.0048f580
inc esi
add esp, 0x14
add ebx, eax
add edi, 0x38
cmp esi, dword [esp + 0xc]
jl 0x490ab3
mov esi, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x490fbc
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0xffffff38
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0xffffff38
lea edx, [ebx - 1]
push eax
lea ecx, [esp + 0x584]
call fcn.0048f2c0
mov eax, dword [esp + 0x1c]
mov esi, 2
mov edi, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x158], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x15c], edi
cmp ebx, esi
jle 0x490e05
mov edx, dword [esp + 0x18]
lea eax, [edx + 0x210]
mov dword [esp + 0x1c], eax
nop dword [eax]
nop word [eax + eax]
mov eax, dword [eax]
mov ecx, dword [esp + eax*4 + 0x368]
mov eax, dword [esp + eax*4 + 0x260]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x4c], eax
cmp dword [esp + ecx*4 + 0x470], eax
je 0x490de4
mov edi, dword [edx + ecx*4 + 0x208]
mov edx, dword [edx + eax*4 + 0x208]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x44], edi
mov dword [esp + ecx*4 + 0x470], eax
mov edi, dword [edx + ecx*4 + 0x344]
mov dword [esp + 0x24], edi
mov edi, dword [edx + eax*4 + 0x344]
mov dword [esp + 0x28], edi
mov edi, dword [esp + ecx*4 + 0x158]
test edi, edi
jns 0x490beb
lea edx, [esp + 0x50]
mov edi, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
jmp 0x490bfd
lea ecx, [esp + ecx*4 + 0x50]
mov dword [esp + 0x30], ecx
mov ecx, dword [ecx]
test ecx, ecx
js 0x490bfd
add edi, ecx
sar edi, 1
lea ecx, [eax*4]
lea eax, [esp + 0x158]
add eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
jns 0x490c21
mov eax, dword [esp + ecx + 0x50]
jmp 0x490c2d
mov ecx, dword [esp + ecx + 0x50]
test ecx, ecx
js 0x490c31
add eax, ecx
sar eax, 1
mov dword [esp + 0x10], eax
cmp edi, 0xffffffff
je 0x490fc7
cmp eax, 0xffffffff
je 0x490fc7
mov ecx, dword [esp + 0x24]
push edx
push dword [ebp + 8]
mov edx, dword [esp + 0x30]
push dword [ebp + 0xc]
push eax
push edi
call fcn.0048f0a0
add esp, 0x14
test eax, eax
je 0x490dcd
push dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0xffffff38
push eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], 0xffffff38
mov dword [esp + 0x38], 0xffffff38
mov dword [esp + 0x30], 0xffffff38
mov edx, dword [eax]
lea eax, [ecx*8]
sub eax, ecx
sub edx, ecx
lea ecx, [esp + 0x584]
lea ecx, [ecx + eax*8]
call fcn.0048f2c0
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x28], eax
push dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
sub edx, eax
lea ecx, [eax*8]
sub ecx, eax
lea eax, [esp + 0x584]
lea ecx, [eax + ecx*8]
call fcn.0048f2c0
mov ecx, eax
add esp, 0xc
cmp dword [esp + 0x28], 0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], eax
je 0x490d0b
mov edx, eax
jmp 0x490d13
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], edx
test ecx, ecx
je 0x490d25
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
jmp 0x490d29
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x28], 0
je 0x490d3b
cmp dword [esp + 0x38], 0
jne 0x490dcd
mov eax, dword [esp + 0x30]
cmp dword [esp + 0xc], 0
mov dword [eax], edi
mov eax, dword [esp + 0x158]
cmove eax, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x48]
mov dword [esp + esi*4 + 0x158], edx
mov edx, dword [esp + 0x4c]
cmp edx, 1
mov dword [esp + esi*4 + 0x50], edi
mov dword [eax], ecx
mov eax, dword [esp + 0x54]
cmove eax, ecx
cmp dword [esp + 0x20], 0
mov dword [esp + 0x54], eax
jge 0x490d89
test edi, edi
js 0x490de0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea eax, [ecx - 1]
test eax, eax
js 0x490dab
cmp dword [esp + eax*4 + 0x260], edx
jne 0x490dab
mov dword [esp + eax*4 + 0x260], esi
sub eax, 1
jns 0x490d96
lea eax, [ecx + 1]
cmp eax, ebx
jge 0x490de0
mov ecx, dword [esp + 0xc]
cmp dword [esp + eax*4 + 0x368], ecx
jne 0x490de0
mov dword [esp + eax*4 + 0x368], esi
inc eax
cmp eax, ebx
jl 0x490db6
jmp 0x490de0
mov dword [esp + esi*4 + 0x50], 0xffffff38
mov dword [esp + esi*4 + 0x158], 0xffffff38
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc esi
add eax, 4
mov dword [esp + 0x1c], eax
cmp esi, ebx
jl 0x490b70
mov edi, dword [esp + 0x15c]
mov esi, dword [esp + 0x50]
jmp 0x490e09
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
lea ecx, [ebx*4 + 7]
and ecx, 0xfffffff8
mov dword [esp + 0xc], ecx
mov eax, dword [edx + 0x48]
add eax, ecx
cmp eax, dword [edx + 0x4c]
jle 0x490e6f
cmp dword [edx + 0x44], 0
je 0x490e51
push 8
call fcn.0046a75c
mov edx, dword [esp + 0x38]
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.0046a75c
mov edx, dword [esp + 0x38]
add esp, 4
mov ecx, dword [esp + 0xc]
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 + 0x158], 0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], edx
mov dword [ecx + 0x48], eax
jl 0x490ea4
test esi, esi
jns 0x490e9b
mov esi, dword [esp + 0x158]
jmp 0x490ea4
add esi, dword [esp + 0x158]
sar esi, 1
mov dword [edx], esi
test edi, edi
jns 0x490eb0
mov edi, dword [esp + 0x54]
jmp 0x490ebd
cmp dword [esp + 0x54], 0
jl 0x490ebd
add edi, dword [esp + 0x54]
sar edi, 1
mov dword [edx + 4], edi
mov dword [esp + 0x28], 2
cmp ebx, 2
jle 0x490fbe
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add ecx, 0x30c
mov dword [esp + 0x24], ecx
lea eax, [ebx + 0x34c]
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0xfc]
mov esi, dword [ecx]
mov ecx, dword [esp + 0x10]
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 + 0xc], eax
mov eax, ebx
sub ecx, edi
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + esi*4 + 0x344]
sub ecx, edi
cdq
idiv ecx
mov ecx, eax
mov eax, dword [esp + 0xc]
test ebx, ebx
jns 0x490f4a
sub eax, ecx
jmp 0x490f4c
add eax, ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + edx*4 + 0x158]
test ecx, ecx
jns 0x490f61
mov ecx, dword [esp + edx*4 + 0x50]
jmp 0x490f6d
mov esi, dword [esp + edx*4 + 0x50]
test esi, esi
js 0x490f6d
add ecx, esi
sar ecx, 1
test ecx, ecx
js 0x490f7f
cmp eax, ecx
je 0x490f7f
mov eax, dword [esp + 0x30]
mov dword [eax + edx*4 - 8], ecx
jmp 0x490f8c
mov ecx, dword [esp + 0x30]
or eax, 0x8000
mov dword [ecx + edx*4 - 8], eax
mov ecx, dword [esp + 0x24]
inc edx
add dword [esp + 0x10], 4
add ecx, 4
cmp edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
jl 0x490ef4
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.004663d5
int3