Function at 0x4201c0
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 0x4201f3
mov eax, dword [ebp - 8]
cmp eax, 0x63
jge 0x420446
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 0x420232
mov ebx, dword [ebp + 8]
push ecx
mov eax, edi
call fcn.00420100
add esp, 4
jmp 0x420435
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 0x420269
mov eax, dword [edi + ecx*4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*4]
mov dword [ebp - 4], eax
jmp 0x42028d
cmp eax, 1
jne 0x420281
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 0x42028d
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 0x4202c8
jmp 0x4202a0
mov esi, dword [edi + ecx*4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + esi*4]
sub edx, dword [ebp - 4]
jne 0x4203a9
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 0x4202a0
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0xc], ebx
jl 0x420435
mov edx, ecx
sub edx, ebx
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
cmp ebx, edx
jl 0x4202e1
mov ebx, edx
test ebx, ebx
mov dword [ebp - 4], ebx
jle 0x420319
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 0x4202f5
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 0x420329
mov edx, ebx
test edx, edx
mov dword [ebp - 4], edx
jle 0x420361
mov ebx, esi
sub ebx, edx
lea ecx, [edi + ecx*4]
lea edx, [edi + ebx*4 + 4]
jmp 0x420340
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 0x420340
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 0x420414
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 0x420438
test edx, edx
jle 0x420409
cmp ecx, eax
jg 0x4202c5
mov esi, dword [edi + eax*4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + esi*4]
sub edx, dword [ebp - 4]
jne 0x4203da
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 0x4203de
test edx, edx
jl 0x4203ea
sub eax, 1
cmp ecx, eax
jle 0x4203b5
jmp 0x4202c5
cmp ecx, eax
jg 0x4202c5
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 0x420294
mov esi, dword [ebp - 0x10]
add ecx, 1
jmp 0x420294
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 0x4201f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x3ec
jmp 0x419e70