Function at 0x422450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f0
push ebx
push esi
mov esi, edx
push edi
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x1d0], ecx
mov dword [ebp - 0x4f0], 2
mov edx, 1
jmp 0x422483
mov edx, dword [ebp - 8]
cmp edx, 0x62
jge 0x4227e7
mov ecx, dword [ebp + edx*4 - 0x1d4]
mov eax, dword [ebp + edx*4 - 0x364]
mov edi, dword [ebp + edx*4 - 0x4f4]
sub edx, 1
mov dword [ebp - 8], edx
mov edx, ecx
sub edx, eax
cmp edx, 0x14
jl 0x4227b1
cmp edi, 0xe
jg 0x4227b1
lea edx, [esi + eax*4]
add eax, ecx
mov ecx, dword [esi + ecx*4]
sar eax, 1
mov ebx, dword [esi + eax*4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov edx, dword [edx]
add ebx, edi
mov bl, byte [ebx + eax]
add ecx, edi
mov cl, byte [ecx + eax]
add edx, edi
mov al, byte [edx + eax]
call fcn.00422430
movzx eax, al
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + eax*4 - 0x360]
mov eax, dword [ebp + eax*4 - 0x1d0]
mov edx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
cmp ecx, eax
jg 0x422589
lea ecx, [ecx]
mov edx, dword [esi + ecx*4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
add edx, edi
movzx edx, byte [edx + ebx]
sub edx, dword [ebp - 0xc]
jne 0x422542
mov edx, dword [ebp - 4]
mov ebx, dword [esi + edx*4]
mov dword [esi + ecx*4], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [esi + edx*4], ebx
add edx, 1
add ecx, 1
cmp ecx, eax
mov dword [ebp - 4], edx
jle 0x422510
jmp 0x422589
test edx, edx
jle 0x4225c4
cmp ecx, eax
jg 0x422586
mov edi, edi
mov edx, dword [esi + eax*4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
add edx, edi
movzx edx, byte [edx + ebx]
sub edx, dword [ebp - 0xc]
jne 0x42257b
mov edx, dword [ebp - 0x10]
mov ebx, dword [esi + edx*4]
mov dword [esi + eax*4], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [esi + edx*4], ebx
sub edx, 1
mov dword [ebp - 0x10], edx
jmp 0x42257f
test edx, edx
jl 0x4225a6
sub eax, 1
cmp ecx, eax
jle 0x422550
mov edx, dword [ebp - 4]
cmp dword [ebp - 0x10], edx
jge 0x4225cf
mov eax, dword [ebp - 8]
add edi, 1
mov dword [ebp + eax*4 - 0x4f0], edi
add eax, 1
mov dword [ebp - 8], eax
jmp 0x4227d6
cmp ecx, eax
jg 0x422586
mov edx, dword [esi + ecx*4]
mov ebx, dword [esi + eax*4]
mov dword [esi + ecx*4], ebx
mov dword [esi + eax*4], edx
mov edx, dword [ebp - 4]
add ecx, 1
sub eax, 1
jmp 0x422505
mov edx, dword [ebp - 4]
add ecx, 1
jmp 0x422505
mov ebx, ecx
sub ebx, edx
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 8]
sub edx, dword [ebp + ebx*4 - 0x360]
mov ebx, dword [ebp - 0x1c]
cmp edx, ebx
jl 0x4225e9
mov edx, ebx
test edx, edx
mov dword [ebp - 0xc], edx
jle 0x42262b
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], ebx
mov ebx, ecx
sub ebx, edx
lea edx, [esi + ebx*4]
mov dword [ebp - 0x18], edx
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
mov edx, dword [edx]
sub dword [ebp - 0xc], 1
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ebx], edx
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov dword [edx], ebx
add edx, 4
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x18], edx
jg 0x422600
mov ebx, dword [ebp - 0x10]
mov edx, ebx
sub edx, eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
mov edx, dword [ebp + edx*4 - 0x1d0]
sub edx, ebx
mov ebx, dword [ebp - 0x14]
cmp edx, ebx
jl 0x42264a
mov edx, ebx
test edx, edx
mov dword [ebp - 0x18], edx
jle 0x422685
mov ebx, dword [ebp - 8]
mov ebx, dword [ebp + ebx*4 - 0x1d0]
sub ebx, edx
lea ecx, [esi + ecx*4]
lea edx, [esi + ebx*4 + 4]
mov ebx, dword [ecx]
mov dword [ebp - 0x14], ebx
mov ebx, dword [edx]
mov dword [ecx], ebx
mov ebx, dword [ebp - 0x14]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
sub ebx, 1
add ecx, 4
add edx, 4
test ebx, ebx
mov dword [ebp - 0x18], ebx
jg 0x422664
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + ecx*4 - 0x360]
mov ecx, dword [ebp + ecx*4 - 0x1d0]
mov ebx, dword [ebp - 0x1c]
lea eax, [eax + ecx + 1]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
mov ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
lea ebx, [ebx + edx - 1]
lea eax, [ebx + 1]
mov dword [ebp - 0x38], eax
mov eax, ecx
add eax, 0xffffffff
mov dword [ebp - 0x20], eax
lea eax, [edi + 1]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
sub eax, ecx
sub ebx, edx
cmp ebx, eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
jge 0x4226f8
mov eax, dword [ebp - 0x14]
mov ebx, ecx
mov ecx, edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
jmp 0x4226fb
mov ebx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub edx, dword [ebp - 0x38]
sub eax, ecx
cmp eax, edx
jge 0x422727
mov edx, dword [ebp - 0x20]
mov eax, ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
sub edx, ecx
sub eax, ebx
cmp eax, edx
jge 0x42274c
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov ebx, ecx
mov ecx, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
jmp 0x422752
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x1d0], edx
mov edx, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x4f0], edx
mov edx, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0x360], ebx
add eax, 1
mov dword [ebp + eax*4 - 0x360], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x1d0], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x4f0], edi
add eax, 1
mov dword [ebp + eax*4 - 0x360], edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x1d0], ecx
mov dword [ebp + eax*4 - 0x4f0], edx
add eax, 1
mov dword [ebp - 8], eax
jmp 0x4227d6
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
push esi
mov ebx, edi
call fcn.004221c0
mov eax, dword [ebp + 0x14]
add esp, 0x1c
cmp dword [eax], 0
jl 0x4227e0
cmp dword [ebp - 8], 0
jg 0x422480
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x3e9
jmp 0x41b4b0