Function at 0x5af0a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1360
call fcn.005c36f0
mov eax, dword [0x93d814]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1054], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ecx + 0x504]
mov dword [ebp - 0x1038], eax
mov eax, dword [ecx + 0x510]
push esi
mov esi, dword [ecx + 0x508]
mov dword [ebp - 0x1018], eax
xor eax, eax
mov dword [ebp - 0x1020], ecx
mov dword [ebp - 0x1044], ebx
push edi
test ebx, ebx
jle 0x5af142
mov eax, 0xffffff38
lea edi, [ebp - 0x20c]
mov ecx, ebx
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x125c]
mov ecx, ebx
rep stosd dword es:[edi], eax
test ebx, ebx
jle 0x5af142
mov eax, 1
lea edi, [ebp - 0x1158]
mov ecx, ebx
rep stosd dword es:[edi], eax
or eax, 0xffffffff
lea edi, [ebp - 0x1360]
mov ecx, ebx
test ebx, ebx
rep stosd dword es:[edi], eax
jne 0x5af169
mov edi, dword [ebp - 0x1018]
lea eax, [ebp - 0x100c]
push edi
push esi
push eax
push esi
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x1038]
call fcn.005ae750
add esp, 0x1c
jmp 0x5af1d5
lea eax, [ebx - 1]
xor esi, esi
mov dword [ebp - 0x101c], eax
test eax, eax
jle 0x5af713
lea edi, [ebp - 0x100c]
xor ebx, ebx
push dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1020]
push dword [eax + 0x508]
push edi
push dword [eax + esi*4 + 4]
push dword [eax + esi*4]
push dword [ebp + 0x10]
push dword [ebp - 0x1038]
call fcn.005ae750
inc esi
add esp, 0x1c
add ebx, eax
add edi, 0x38
cmp esi, dword [ebp - 0x101c]
jl 0x5af184
mov edi, dword [ebp - 0x1018]
mov dword [ebp - 0x101c], ebx
mov ebx, dword [ebp - 0x1044]
mov eax, dword [ebp - 0x101c]
test eax, eax
je 0x5af711
push edi
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1014], 0xffffff38
push ecx
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x1010], 0xffffff38
push ecx
lea eax, [ebx - 1]
push eax
lea eax, [ebp - 0x100c]
push eax
call fcn.005ae8c0
mov eax, dword [ebp - 0x1014]
mov esi, 2
mov edi, dword [ebp - 0x1010]
add esp, 0x14
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x208], edi
cmp ebx, esi
jle 0x5af57b
mov edx, dword [ebp - 0x1020]
lea eax, [edx + 0x210]
mov dword [ebp - 0x1010], eax
nop word [eax + eax]
mov eax, dword [eax]
mov ecx, dword [ebp + eax*4 - 0x125c]
mov eax, dword [ebp + eax*4 - 0x1158]
mov dword [ebp - 0x101c], ecx
mov dword [ebp - 0x1050], eax
cmp dword [ebp + ecx*4 - 0x1360], eax
je 0x5af555
mov edi, dword [edx + ecx*4 + 0x208]
mov edx, dword [edx + eax*4 + 0x208]
mov dword [ebp - 0x103c], edx
mov edx, dword [ebp - 0x1018]
mov dword [ebp - 0x1048], edi
mov dword [ebp + ecx*4 - 0x1360], eax
mov edi, dword [edx + ecx*4 + 0x344]
mov dword [ebp - 0x1034], edi
mov edi, dword [edx + eax*4 + 0x344]
mov dword [ebp - 0x1024], edi
mov edi, dword [ebp + ecx*4 - 0x20c]
test edi, edi
jns 0x5af2ef
lea edx, [ebp - 0x108]
mov edi, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
mov dword [ebp - 0x1030], edx
mov edx, dword [ebp - 0x1018]
jmp 0x5af306
lea ecx, [ebp + ecx*4 - 0x108]
mov dword [ebp - 0x1030], ecx
mov ecx, dword [ecx]
test ecx, ecx
js 0x5af306
add edi, ecx
sar edi, 1
lea ecx, [eax*4]
lea eax, [ebp - 0x20c]
add eax, ecx
mov dword [ebp - 0x104c], eax
mov eax, dword [eax]
mov dword [ebp - 0x1014], eax
test eax, eax
jns 0x5af330
mov eax, dword [ebp + ecx - 0x108]
jmp 0x5af33f
mov ecx, dword [ebp + ecx - 0x108]
test ecx, ecx
js 0x5af345
add eax, ecx
sar eax, 1
mov dword [ebp - 0x1014], eax
cmp edi, 0xffffffff
je 0x5af726
cmp eax, 0xffffffff
je 0x5af726
push edx
push dword [ebp + 0x10]
push dword [ebp - 0x1038]
push eax
push edi
push dword [ebp - 0x1024]
push dword [ebp - 0x1034]
call fcn.005afa20
add esp, 0x1c
test eax, eax
je 0x5af539
push dword [ebp - 0x1018]
mov ecx, dword [ebp - 0x1048]
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x1040], 0xffffff38
push eax
mov eax, dword [ebp - 0x1010]
mov dword [ebp - 0x102c], 0xffffff38
mov dword [ebp - 0x1028], 0xffffff38
mov dword [ebp - 0x1034], 0xffffff38
mov eax, dword [eax]
sub eax, ecx
push eax
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [ebp - 0x100c]
lea eax, [ecx + eax*8]
push eax
call fcn.005ae8c0
push dword [ebp - 0x1018]
mov edx, dword [ebp - 0x1010]
lea ecx, [ebp - 0x1034]
push ecx
mov dword [ebp - 0x1024], eax
lea ecx, [ebp - 0x1028]
mov eax, dword [ebp - 0x103c]
push ecx
mov ecx, dword [edx]
sub eax, ecx
push eax
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [ebp - 0x100c]
lea eax, [ecx + eax*8]
push eax
call fcn.005ae8c0
mov ecx, eax
add esp, 0x28
cmp dword [ebp - 0x1024], 0
mov eax, dword [ebp - 0x1028]
mov dword [ebp - 0x103c], ecx
mov dword [ebp - 0x1028], eax
je 0x5af44b
mov edx, eax
jmp 0x5af457
mov edi, dword [ebp - 0x1040]
mov edx, dword [ebp - 0x102c]
mov dword [ebp - 0x102c], edx
test ecx, ecx
je 0x5af46f
mov ecx, dword [ebp - 0x1014]
mov dword [ebp - 0x1028], edx
jmp 0x5af475
mov ecx, dword [ebp - 0x1034]
cmp dword [ebp - 0x1024], 0
je 0x5af48b
cmp dword [ebp - 0x103c], 0
jne 0x5af539
mov eax, dword [ebp - 0x1030]
cmp dword [ebp - 0x101c], 0
mov dword [eax], edi
mov eax, dword [ebp - 0x20c]
cmove eax, edi
mov edi, dword [ebp - 0x1028]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x104c]
mov dword [ebp + esi*4 - 0x20c], edx
mov edx, dword [ebp - 0x1050]
cmp edx, 1
mov dword [ebp + esi*4 - 0x108], edi
mov dword [eax], ecx
mov eax, dword [ebp - 0x104]
cmove eax, ecx
cmp dword [ebp - 0x102c], 0
mov dword [ebp - 0x104], eax
jge 0x5af4ea
test edi, edi
js 0x5af54f
mov eax, dword [ebp - 0x1010]
mov ecx, dword [eax]
lea eax, [ecx - 1]
test eax, eax
js 0x5af515
nop dword [eax]
cmp dword [ebp + eax*4 - 0x1158], edx
jne 0x5af515
mov dword [ebp + eax*4 - 0x1158], esi
sub eax, 1
jns 0x5af500
lea eax, [ecx + 1]
cmp eax, ebx
jge 0x5af54f
mov ecx, dword [ebp - 0x101c]
cmp dword [ebp + eax*4 - 0x125c], ecx
jne 0x5af54f
mov dword [ebp + eax*4 - 0x125c], esi
inc eax
cmp eax, ebx
jl 0x5af522
jmp 0x5af54f
mov dword [ebp + esi*4 - 0x108], 0xffffff38
mov dword [ebp + esi*4 - 0x20c], 0xffffff38
mov edx, dword [ebp - 0x1020]
mov eax, dword [ebp - 0x1010]
inc esi
add eax, 4
mov dword [ebp - 0x1010], eax
cmp esi, ebx
jl 0x5af260
mov edi, dword [ebp - 0x208]
mov esi, dword [ebp - 0x108]
jmp 0x5af581
mov esi, dword [ebp - 0x1014]
lea eax, [ebx*4]
push eax
push dword [ebp - 0x1054]
call fcn.005a4590
add esp, 8
mov edx, eax
cmp dword [ebp - 0x20c], 0
mov dword [ebp - 0x1010], edx
jl 0x5af5bc
test esi, esi
jns 0x5af5b4
mov esi, dword [ebp - 0x20c]
jmp 0x5af5bc
add esi, dword [ebp - 0x20c]
sar esi, 1
mov dword [edx], esi
test edi, edi
jns 0x5af5ca
mov edi, dword [ebp - 0x104]
jmp 0x5af5db
cmp dword [ebp - 0x104], 0
jl 0x5af5db
add edi, dword [ebp - 0x104]
sar edi, 1
mov dword [edx + 4], edi
mov dword [ebp - 0x1030], 2
cmp ebx, 2
jle 0x5af713
mov ebx, dword [ebp - 0x1018]
mov ecx, dword [ebp - 0x1020]
add ecx, 0x30c
mov dword [ebp - 0x1024], ecx
lea eax, [ebx + 0x34c]
mov dword [ebp - 0x1014], eax
nop word [eax + eax]
mov eax, dword [ecx + 0xfc]
mov esi, dword [ecx]
mov ecx, dword [ebp - 0x1014]
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 [ebp - 0x101c], eax
mov eax, ebx
sub ecx, edi
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
mov ecx, dword [ebp - 0x1018]
mov ecx, dword [ecx + esi*4 + 0x344]
sub ecx, edi
cdq
idiv ecx
mov ecx, dword [ebp - 0x101c]
test ebx, ebx
jns 0x5af67c
sub ecx, eax
jmp 0x5af67e
add ecx, eax
mov edx, dword [ebp - 0x1030]
mov eax, dword [ebp + edx*4 - 0x20c]
test eax, eax
jns 0x5af698
mov eax, dword [ebp + edx*4 - 0x108]
jmp 0x5af6a7
mov esi, dword [ebp + edx*4 - 0x108]
test esi, esi
js 0x5af6a7
add eax, esi
sar eax, 1
test eax, eax
js 0x5af6ba
cmp ecx, eax
je 0x5af6ba
mov esi, dword [ebp - 0x1010]
mov dword [esi + edx*4], eax
jmp 0x5af6c9
mov esi, dword [ebp - 0x1010]
or ecx, 0x8000
mov dword [esi + edx*4], ecx
mov ecx, dword [ebp - 0x1024]
inc edx
add dword [ebp - 0x1014], 4
add ecx, 4
cmp edx, dword [ebp - 0x1044]
mov ebx, dword [ebp - 0x1018]
mov dword [ebp - 0x1030], edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1024], ecx
jl 0x5af620
pop edi
pop esi
mov eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c33e1
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.005c33e1
mov esp, ebp
pop ebp
ret
push 1
call fcn.005d0ba0
int3