Function at 0x421800
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 0x421833
mov eax, dword [ebp - 8]
cmp eax, 0x63
jge 0x421a86
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 0x421872
mov ebx, dword [ebp + 8]
push ecx
mov eax, edi
call fcn.00421740
add esp, 4
jmp 0x421a75
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 0x4218a9
mov eax, dword [edi + ecx*4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*4]
mov dword [ebp - 4], eax
jmp 0x4218cd
cmp eax, 1
jne 0x4218c1
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 0x4218cd
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 0x421908
jmp 0x4218e0
mov esi, dword [edi + ecx*4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + esi*4]
sub edx, dword [ebp - 4]
jne 0x4219e9
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 0x4218e0
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0xc], ebx
jl 0x421a75
mov edx, ecx
sub edx, ebx
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
cmp ebx, edx
jl 0x421921
mov ebx, edx
test ebx, ebx
mov dword [ebp - 4], ebx
jle 0x421959
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 0x421935
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 0x421969
mov edx, ebx
test edx, edx
mov dword [ebp - 4], edx
jle 0x4219a1
mov ebx, esi
sub ebx, edx
lea ecx, [edi + ecx*4]
lea edx, [edi + ebx*4 + 4]
jmp 0x421980
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 0x421980
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 0x421a54
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 0x421a78
test edx, edx
jle 0x421a49
cmp ecx, eax
jg 0x421905
mov esi, dword [edi + eax*4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + esi*4]
sub edx, dword [ebp - 4]
jne 0x421a1a
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 0x421a1e
test edx, edx
jl 0x421a2a
sub eax, 1
cmp ecx, eax
jle 0x4219f5
jmp 0x421905
cmp ecx, eax
jg 0x421905
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 0x4218d4
mov esi, dword [ebp - 0x10]
add ecx, 1
jmp 0x4218d4
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 0x421830
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x3ec
jmp 0x41b4b0