Function at 0x421dc0
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 0x421df3
mov eax, dword [ebp - 8]
cmp eax, 0x63
jge 0x422046
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 0x421e32
mov ebx, dword [ebp + 8]
push ecx
mov eax, edi
call fcn.00421d00
add esp, 4
jmp 0x422035
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 0x421e69
mov eax, dword [edi + ecx*4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*4]
mov dword [ebp - 4], eax
jmp 0x421e8d
cmp eax, 1
jne 0x421e81
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 0x421e8d
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 0x421ec8
jmp 0x421ea0
mov esi, dword [edi + ecx*4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + esi*4]
sub edx, dword [ebp - 4]
jne 0x421fa9
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 0x421ea0
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0xc], ebx
jl 0x422035
mov edx, ecx
sub edx, ebx
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
cmp ebx, edx
jl 0x421ee1
mov ebx, edx
test ebx, ebx
mov dword [ebp - 4], ebx
jle 0x421f19
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 0x421ef5
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 0x421f29
mov edx, ebx
test edx, edx
mov dword [ebp - 4], edx
jle 0x421f61
mov ebx, esi
sub ebx, edx
lea ecx, [edi + ecx*4]
lea edx, [edi + ebx*4 + 4]
jmp 0x421f40
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 0x421f40
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 0x422014
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 0x422038
test edx, edx
jle 0x422009
cmp ecx, eax
jg 0x421ec5
mov esi, dword [edi + eax*4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + esi*4]
sub edx, dword [ebp - 4]
jne 0x421fda
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 0x421fde
test edx, edx
jl 0x421fea
sub eax, 1
cmp ecx, eax
jle 0x421fb5
jmp 0x421ec5
cmp ecx, eax
jg 0x421ec5
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 0x421e94
mov esi, dword [ebp - 0x10]
add ecx, 1
jmp 0x421e94
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 0x421df0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x3ec
jmp 0x41ba70