Function at 0x4205f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push ebx
mov dword [ebp - 0x1b0], eax
push esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x340], ecx
mov eax, 1
jmp 0x420623
mov eax, dword [ebp - 8]
cmp eax, 0x63
jge 0x420876
mov esi, dword [ebp + eax*4 - 0x344]
mov ecx, dword [ebp + eax*4 - 0x1b4]
sub eax, 1
mov edx, esi
sub edx, ecx
cmp edx, 0xa
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esi
jge 0x420662
mov ebx, dword [ebp + 8]
push ecx
mov eax, edi
call fcn.00420530
add esp, 4
jmp 0x420865
mov ebx, dword [ebp - 0x1c]
imul ebx, ebx, 0x1dc5
add ebx, 1
and ebx, 0x7fff
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea eax, [edx + edx*2]
mov edx, eax
mov eax, ebx
sub eax, edx
mov dword [ebp - 0x1c], ebx
jne 0x420699
mov eax, dword [edi + ecx*4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*4]
mov dword [ebp - 4], eax
jmp 0x4206bd
cmp eax, 1
jne 0x4206b1
lea edx, [esi + ecx]
sar edx, 1
mov eax, dword [edi + edx*4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*4]
mov dword [ebp - 4], eax
jmp 0x4206bd
mov edx, dword [edi + esi*4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*4]
mov dword [ebp - 4], edx
mov ebx, ecx
mov dword [ebp - 0xc], esi
mov eax, esi
cmp ecx, eax
jg 0x4206f8
jmp 0x4206d0
mov esi, dword [edi + ecx*4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + esi*4]
sub edx, dword [ebp - 4]
jne 0x4207d9
mov edx, dword [edi + ebx*4]
mov dword [edi + ecx*4], edx
mov dword [edi + ebx*4], esi
add ecx, 1
add ebx, 1
cmp ecx, eax
jle 0x4206d0
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0xc], ebx
jl 0x420865
mov edx, ecx
sub edx, ebx
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
cmp ebx, edx
jl 0x420711
mov ebx, edx
test ebx, ebx
mov dword [ebp - 4], ebx
jle 0x420749
mov edx, dword [ebp - 0x14]
mov esi, ecx
sub esi, ebx
lea edx, [edi + edx*4]
lea esi, [edi + esi*4]
mov ebx, dword [edx]
mov dword [ebp - 0x18], ebx
mov ebx, dword [esi]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov dword [esi], ebx
mov ebx, dword [ebp - 4]
sub ebx, 1
add edx, 4
add esi, 4
test ebx, ebx
mov dword [ebp - 4], ebx
jg 0x420725
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov edx, esi
sub edx, dword [ebp - 0xc]
sub ebx, eax
cmp edx, ebx
jl 0x420759
mov edx, ebx
test edx, edx
mov dword [ebp - 4], edx
jle 0x420791
mov ebx, esi
sub ebx, edx
lea ecx, [edi + ecx*4]
lea edx, [edi + ebx*4 + 4]
jmp 0x420770
mov ebx, dword [ecx]
mov dword [ebp - 0x18], ebx
mov ebx, dword [edx]
mov dword [ecx], ebx
mov ebx, dword [ebp - 0x18]
mov dword [edx], ebx
mov ebx, dword [ebp - 4]
sub ebx, 1
add ecx, 4
add edx, 4
test ebx, ebx
mov dword [ebp - 4], ebx
jg 0x420770
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
lea edx, [ecx + edx - 1]
mov ebx, edx
sub ebx, dword [ebp - 0x14]
lea eax, [eax + esi + 1]
mov ecx, esi
sub ecx, eax
cmp ebx, ecx
mov ecx, dword [ebp - 8]
jle 0x420844
mov dword [ebp + ecx*4 - 0x340], edx
add ecx, 1
mov dword [ebp + ecx*4 - 0x1b0], eax
mov dword [ebp + ecx*4 - 0x340], esi
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x420868
test edx, edx
jle 0x420839
cmp ecx, eax
jg 0x4206f5
mov esi, dword [edi + eax*4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + esi*4]
sub edx, dword [ebp - 4]
jne 0x42080a
mov edx, dword [ebp - 0xc]
mov edx, dword [edi + edx*4]
mov dword [edi + eax*4], edx
mov edx, dword [ebp - 0xc]
mov dword [edi + edx*4], esi
sub edx, 1
mov dword [ebp - 0xc], edx
jmp 0x42080e
test edx, edx
jl 0x42081a
sub eax, 1
cmp ecx, eax
jle 0x4207e5
jmp 0x4206f5
cmp ecx, eax
jg 0x4206f5
mov edx, dword [edi + ecx*4]
mov dword [edi + ecx*4], esi
mov esi, dword [ebp - 0x10]
mov dword [edi + eax*4], edx
add ecx, 1
sub eax, 1
jmp 0x4206c4
mov esi, dword [ebp - 0x10]
add ecx, 1
jmp 0x4206c4
mov dword [ebp + ecx*4 - 0x1b0], eax
mov eax, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp + ecx*4 - 0x1b0], eax
mov dword [ebp + ecx*4 - 0x340], edx
add ecx, 1
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
jg 0x420620
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x3ec
jmp 0x41a290