Function at 0x421ce0
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 0x421d13
mov eax, dword [ebp - 8]
cmp eax, 0x63
jge 0x421f66
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 0x421d52
mov ebx, dword [ebp + 8]
push ecx
mov eax, edi
call fcn.00421c20
add esp, 4
jmp 0x421f55
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 0x421d89
mov eax, dword [edi + ecx*4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*4]
mov dword [ebp - 4], eax
jmp 0x421dad
cmp eax, 1
jne 0x421da1
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 0x421dad
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 0x421de8
jmp 0x421dc0
mov esi, dword [edi + ecx*4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + esi*4]
sub edx, dword [ebp - 4]
jne 0x421ec9
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 0x421dc0
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0xc], ebx
jl 0x421f55
mov edx, ecx
sub edx, ebx
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
cmp ebx, edx
jl 0x421e01
mov ebx, edx
test ebx, ebx
mov dword [ebp - 4], ebx
jle 0x421e39
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 0x421e15
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 0x421e49
mov edx, ebx
test edx, edx
mov dword [ebp - 4], edx
jle 0x421e81
mov ebx, esi
sub ebx, edx
lea ecx, [edi + ecx*4]
lea edx, [edi + ebx*4 + 4]
jmp 0x421e60
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 0x421e60
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 0x421f34
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 0x421f58
test edx, edx
jle 0x421f29
cmp ecx, eax
jg 0x421de5
mov esi, dword [edi + eax*4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + esi*4]
sub edx, dword [ebp - 4]
jne 0x421efa
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 0x421efe
test edx, edx
jl 0x421f0a
sub eax, 1
cmp ecx, eax
jle 0x421ed5
jmp 0x421de5
cmp ecx, eax
jg 0x421de5
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 0x421db4
mov esi, dword [ebp - 0x10]
add ecx, 1
jmp 0x421db4
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 0x421d10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x3ec
jmp 0x41b990