Function at 0x650480
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x110]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
lea edi, [ebp - 0x100]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], ecx
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x651a2a
mov eax, dword [ebp + 0xc]
mov edx, eax
shl eax, 8
sub eax, edx
mov ecx, 0x64
cdq
idiv ecx
mov dl, 0xff
sub dl, al
mov byte [ebp - 0x4d], dl
mov dl, 7
mov eax, ebx
call fcn.00503f4c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov dword [ebp - 0x38], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
mov dword [ebp - 0x3c], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x650522
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x30]
mov dword [ebp - 0x48], eax
jmp 0x65052c
xor eax, eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x100]
mov dl, 1
call sym.StartupControl.exe__Acntutils_HeightOf_qqrrx11Types_TRectxo
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x110]
mov dl, 1
call sym.StartupControl.exe__Acntutils_HeightOf_qqrrx11Types_TRectxo
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0xa0]
jge 0x65056e
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
jmp 0x65057a
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0xfc]
cmp eax, dword [ebp - 0x2c]
jle 0x65059c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xa8], eax
jmp 0x6505ab
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0xfc]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x2c]
jle 0x6505cd
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xac], eax
jmp 0x6505dc
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x10c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
dec eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x651a2a
lea eax, [ebp - 0x100]
mov dl, 1
call sym.StartupControl.exe__Acntutils_WidthOf_qqrrx11Types_TRectxo
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x110]
mov dl, 1
call sym.StartupControl.exe__Acntutils_WidthOf_qqrrx11Types_TRectxo
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb0]
cmp eax, dword [ebp - 0xb4]
jge 0x650632
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb8], eax
jmp 0x65063e
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x100]
cmp eax, dword [ebp - 0x30]
jle 0x650660
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xbc], eax
jmp 0x65066f
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x100]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x110]
cmp eax, dword [ebp - 0x30]
jle 0x650691
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc0], eax
jmp 0x6506a0
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x110]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x651a2a
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp - 0x100]
jle 0x65077f
cmp dword [ebp - 0x100], 0
jge 0x650723
mov eax, dword [ebp - 0x100]
neg eax
add dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x100]
neg eax
sub dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x110]
cmp eax, dword [ebp - 0x30]
jle 0x650708
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc4], eax
jmp 0x650717
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x110]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
dec eax
mov dword [ebp - 0x30], eax
jmp 0x65077f
cmp dword [ebp - 0x110], 0
jge 0x65077f
mov eax, dword [ebp - 0x110]
neg eax
add dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x110]
neg eax
sub dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x100]
cmp eax, dword [ebp - 0x30]
jle 0x650766
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc8], eax
jmp 0x650775
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x100]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
dec eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0xfc]
jle 0x65084b
cmp dword [ebp - 0xfc], 0
jge 0x6507ef
mov eax, dword [ebp - 0xfc]
neg eax
add dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0xfc]
neg eax
sub dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x2c]
jle 0x6507d4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xcc], eax
jmp 0x6507e3
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x10c]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
dec eax
mov dword [ebp - 0x2c], eax
jmp 0x65084b
cmp dword [ebp - 0x10c], 0
jge 0x65084b
mov eax, dword [ebp - 0x10c]
neg eax
add dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x10c]
neg eax
sub dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0xfc]
cmp eax, dword [ebp - 0x2c]
jle 0x650832
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xd0], eax
jmp 0x650841
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0xfc]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
dec eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x100]
cmp eax, dword [ebp - 0x30]
jle 0x650864
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xd4], eax
jmp 0x650873
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x100]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x110]
cmp eax, dword [ebp - 0x30]
jle 0x650895
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xd8], eax
jmp 0x6508a4
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x110]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
dec eax
mov dword [ebp - 0x30], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x70]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0xc]
mov eax, ebx
call sym.StartupControl.exe__Sgraphutils_InitLine_qqrp16Graphics_TBitmaprpvri
test al, al
je 0x651a2a
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call sym.StartupControl.exe__Sgraphutils_InitLine_qqrp16Graphics_TBitmaprpvri
test al, al
je 0x651a2a
cmp dword [ebp + 0x10], 0x1fffffff
je 0x6511f7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
movzx eax, byte [ebp - 7]
movzx edx, byte [ebp - 8]
cmp eax, edx
jge 0x65090b
movzx eax, byte [ebp - 8]
mov dword [ebp - 0xdc], eax
jmp 0x650915
movzx eax, byte [ebp - 7]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
movzx edx, al
movzx ecx, byte [ebp - 6]
cmp edx, ecx
jge 0x650932
movzx eax, byte [ebp - 6]
mov dword [ebp - 0xe0], eax
jmp 0x65093b
movzx eax, al
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
push eax
mov al, 0xff
pop edx
sub al, dl
add byte [ebp - 8], al
add byte [ebp - 7], al
add byte [ebp - 6], al
cmp dword [ebp + 0xc], 0
je 0x650cbe
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x20], 0
jne 0x650ab0
mov eax, dword [ebp - 0x2c]
test eax, eax
jl 0x65101e
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jl 0x650a9f
inc ebx
mov dword [ebp - 0x24], 0
mov edi, dword [ebp - 0x100]
add edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x110]
add esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax + 3]
movzx edx, byte [ebp - 0x4d]
imul edx
shr eax, 8
mov edx, dword [ebp - 0x58]
movzx edx, byte [edx + 2]
shr edx, 2
mov ecx, dword [ebp - 0x58]
movzx ecx, byte [ecx + 1]
shr ecx, 1
add dl, cl
mov ecx, dword [ebp - 0x58]
movzx ecx, byte [ecx]
shr ecx, 2
add dl, cl
mov byte [ebp - 0x4c], dl
movzx edx, byte [ebp - 0x4c]
movzx ecx, byte [ebp - 8]
imul edx, ecx
shr edx, 8
mov byte [ebp - 0x49], dl
movzx edx, byte [ebp - 0x4c]
movzx ecx, byte [ebp - 7]
imul edx, ecx
shr edx, 8
mov byte [ebp - 0x4a], dl
movzx edx, byte [ebp - 0x4c]
movzx ecx, byte [ebp - 6]
imul edx, ecx
shr edx, 8
mov byte [ebp - 0x4b], dl
mov edx, dword [ebp - 0x18]
lea edx, [edx + edi*4]
movzx ecx, byte [ebp - 0x49]
movzx esi, byte [edx + 2]
sub ecx, esi
movzx esi, al
imul ecx, esi
movzx esi, byte [edx + 2]
shl esi, 8
add ecx, esi
shr ecx, 8
mov byte [edx + 2], cl
movzx ecx, byte [ebp - 0x4a]
movzx esi, byte [edx + 1]
sub ecx, esi
movzx esi, al
imul ecx, esi
movzx esi, byte [edx + 1]
shl esi, 8
add ecx, esi
shr ecx, 8
mov byte [edx + 1], cl
movzx ecx, byte [ebp - 0x4b]
movzx esi, byte [edx]
sub ecx, esi
movzx eax, al
imul ecx, eax
movzx eax, byte [edx]
shl eax, 8
add ecx, eax
shr ecx, 8
mov byte [edx], cl
inc dword [ebp - 0x24]
dec ebx
jne 0x6509b4
inc dword [ebp - 0x28]
dec dword [ebp - 0x54]
jne 0x65097d
jmp 0x65101e
mov eax, dword [ebp - 0x2c]
test eax, eax
jl 0x65101e
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x100]
mov esi, dword [ebp - 0x110]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jl 0x650cad
inc ebx
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax], 0xff00ff
je 0x650c10
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 3], 0x10
jbe 0x650c10
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax + 3]
movzx edx, byte [ebp - 0x4d]
imul edx
shr eax, 8
mov edx, dword [ebp - 0x5c]
movzx edx, byte [edx + 2]
shr edx, 2
mov ecx, dword [ebp - 0x5c]
movzx ecx, byte [ecx + 1]
shr ecx, 1
add dl, cl
mov ecx, dword [ebp - 0x5c]
movzx ecx, byte [ecx]
shr ecx, 2
add dl, cl
mov byte [ebp - 0x4c], dl
movzx edx, byte [ebp - 0x4c]
movzx ecx, byte [ebp - 8]
imul edx, ecx
shr edx, 8
mov byte [ebp - 0x49], dl
movzx edx, byte [ebp - 0x4c]
movzx ecx, byte [ebp - 7]
imul edx, ecx
shr edx, 8
mov byte [ebp - 0x4a], dl
movzx edx, byte [ebp - 0x4c]
movzx ecx, byte [ebp - 6]
imul edx, ecx
shr edx, 8
mov byte [ebp - 0x4b], dl
mov edx, dword [ebp - 0x18]
lea edx, [edx + edi*4]
mov dword [ebp - 0x60], edx
movzx edx, byte [ebp - 0x49]
mov ecx, dword [ebp - 0x60]
movzx ecx, byte [ecx + 2]
sub edx, ecx
movzx ecx, al
imul edx, ecx
mov ecx, dword [ebp - 0x60]
movzx ecx, byte [ecx + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 2], dl
movzx edx, byte [ebp - 0x4a]
mov ecx, dword [ebp - 0x60]
movzx ecx, byte [ecx + 1]
sub edx, ecx
movzx ecx, al
imul edx, ecx
mov ecx, dword [ebp - 0x60]
movzx ecx, byte [ecx + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 1], dl
movzx edx, byte [ebp - 0x4b]
mov ecx, dword [ebp - 0x60]
movzx ecx, byte [ecx]
sub edx, ecx
movzx eax, al
imul edx, eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
shl eax, 8
add edx, eax
shr edx, 8
mov eax, dword [ebp - 0x60]
mov byte [eax], dl
jmp 0x650ca4
cmp byte [ebp + 0x14], 0
je 0x650ca4
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x44]
jge 0x650ca4
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, edi
test eax, eax
jl 0x650ca4
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, edi
cmp eax, dword [ebp - 0x48]
jge 0x650cad
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
test eax, eax
jl 0x650cad
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0xfc]
add ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, edi
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call sym.StartupControl.exe__Salphagraph_GetAPixel_qqrpx16Graphics_TBitmapii
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + edi*4]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
movzx edx, byte [ebp - 8]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x64]
movzx edx, byte [ebp - 7]
mov byte [eax + 1], dl
mov eax, dword [ebp - 0x64]
movzx edx, byte [ebp - 6]
mov byte [eax], dl
inc edi
inc esi
dec ebx
jne 0x650b02
inc dword [ebp - 0x28]
dec dword [ebp - 0x54]
jne 0x650ac6
jmp 0x65101e
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x20], 0
jne 0x650e23
mov eax, dword [ebp - 0x2c]
test eax, eax
jl 0x65101e
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x100]
mov esi, dword [ebp - 0x110]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jl 0x650e12
inc ebx
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax + 2]
shr eax, 2
mov edx, dword [ebp - 0x68]
movzx edx, byte [edx + 1]
shr edx, 1
add al, dl
mov edx, dword [ebp - 0x68]
movzx edx, byte [edx]
shr edx, 2
add al, dl
mov byte [ebp - 0x4c], al
movzx eax, byte [ebp - 0x4c]
movzx edx, byte [ebp - 8]
imul edx
shr eax, 8
mov byte [ebp - 0x49], al
movzx eax, byte [ebp - 0x4c]
movzx edx, byte [ebp - 7]
imul edx
shr eax, 8
mov byte [ebp - 0x4a], al
movzx eax, byte [ebp - 0x4c]
movzx edx, byte [ebp - 6]
imul edx
shr eax, 8
mov byte [ebp - 0x4b], al
mov eax, dword [ebp - 0x18]
lea eax, [eax + edi*4]
movzx edx, byte [ebp - 0x49]
movzx ecx, byte [eax + 2]
sub edx, ecx
mov ecx, dword [ebp - 0x68]
movzx ecx, byte [ecx + 3]
imul edx, ecx
movzx ecx, byte [eax + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 2], dl
movzx edx, byte [ebp - 0x4a]
movzx ecx, byte [eax + 1]
sub edx, ecx
mov ecx, dword [ebp - 0x68]
movzx ecx, byte [ecx + 3]
imul edx, ecx
movzx ecx, byte [eax + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 1], dl
movzx edx, byte [ebp - 0x4b]
movzx ecx, byte [eax]
sub edx, ecx
mov ecx, dword [ebp - 0x68]
movzx ecx, byte [ecx + 3]
imul edx, ecx
movzx ecx, byte [eax]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax], dl
movzx edx, byte [eax + 3]
mov ecx, 0xff
sub ecx, edx
mov edx, dword [ebp - 0x68]
movzx edx, byte [edx + 3]
imul ecx, edx
movzx edx, byte [eax + 3]
shl edx, 8
add ecx, edx
shr ecx, 8
mov byte [eax + 3], cl
inc edi
inc esi
dec ebx
jne 0x650d1d
inc dword [ebp - 0x28]
dec dword [ebp - 0x54]
jne 0x650ce1
jmp 0x65101e
mov eax, dword [ebp - 0x2c]
test eax, eax
jl 0x65101e
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x100]
mov esi, dword [ebp - 0x110]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jl 0x651012
inc ebx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*4]
movzx edx, byte [eax + 2]
shr edx, 2
movzx ecx, byte [eax + 1]
shr ecx, 1
add dl, cl
movzx ecx, byte [eax]
shr ecx, 2
add dl, cl
mov byte [ebp - 0x4c], dl
movzx edx, byte [ebp - 0x4c]
movzx ecx, byte [ebp - 8]
imul edx, ecx
shr edx, 8
mov byte [ebp - 0x49], dl
movzx edx, byte [ebp - 0x4c]
movzx ecx, byte [ebp - 7]
imul edx, ecx
shr edx, 8
mov byte [ebp - 0x4a], dl
movzx edx, byte [ebp - 0x4c]
movzx ecx, byte [ebp - 6]
imul edx, ecx
shr edx, 8
mov byte [ebp - 0x4b], dl
cmp dword [eax], 0xff00ff
je 0x650f6b
cmp byte [eax + 3], 0x10
jbe 0x650f6b
mov edx, dword [ebp - 0x18]
lea edx, [edx + edi*4]
mov dword [ebp - 0x6c], edx
movzx edx, byte [ebp - 0x49]
mov ecx, dword [ebp - 0x6c]
movzx ecx, byte [ecx + 2]
sub edx, ecx
movzx ecx, byte [eax + 3]
imul edx, ecx
mov ecx, dword [ebp - 0x6c]
movzx ecx, byte [ecx + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
mov ecx, dword [ebp - 0x6c]
mov byte [ecx + 2], dl
movzx edx, byte [ebp - 0x4a]
mov ecx, dword [ebp - 0x6c]
movzx ecx, byte [ecx + 1]
sub edx, ecx
movzx ecx, byte [eax + 3]
imul edx, ecx
mov ecx, dword [ebp - 0x6c]
movzx ecx, byte [ecx + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
mov ecx, dword [ebp - 0x6c]
mov byte [ecx + 1], dl
movzx edx, byte [ebp - 0x4b]
mov ecx, dword [ebp - 0x6c]
movzx ecx, byte [ecx]
sub edx, ecx
movzx eax, byte [eax + 3]
imul edx, eax
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax]
shl eax, 8
add edx, eax
shr edx, 8
mov eax, dword [ebp - 0x6c]
mov byte [eax], dl
jmp 0x651006
cmp byte [ebp + 0x14], 0
je 0x651006
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x44]
jge 0x651006
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, edi
test eax, eax
jl 0x651006
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, edi
cmp eax, dword [ebp - 0x48]
jge 0x651012
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
test eax, eax
jl 0x651012
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0xfc]
add ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x100]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call sym.StartupControl.exe__Salphagraph_GetAPixel_qqrpx16Graphics_TBitmapii
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + edi*4]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
movzx edx, byte [ebp - 8]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x70]
movzx edx, byte [ebp - 7]
mov byte [eax + 1], dl
mov eax, dword [ebp - 0x70]
movzx edx, byte [ebp - 6]
mov byte [eax], dl
inc edi
inc esi
inc dword [ebp - 0x24]
dec ebx
jne 0x650e7c
inc dword [ebp - 0x28]
dec dword [ebp - 0x54]
jne 0x650e39
cmp byte [ebp + 8], 0
je 0x651a2a
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0xf4]
dec eax
mov edx, dword [ebp - 0x3c]
sar edx, 1
jns 0x65103c
adc edx, 0
dec edx
cmp eax, edx
jle 0x651054
mov eax, dword [ebp - 0x3c]
sar eax, 1
jns 0x65104b
adc eax, 0
dec eax
mov dword [ebp - 0xe4], eax
jmp 0x651064
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0xf4]
dec eax
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
jle 0x651a2a
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x104]
sub eax, dword [ebp - 0x28]
dec eax
imul dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xf4]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x100]
mov esi, dword [ebp - 0x110]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jl 0x6511e6
inc ebx
mov eax, dword [ebp - 0x10]
lea ecx, [eax + esi*4]
mov eax, dword [ebp - 0x18]
lea eax, [eax + edi*4]
mov dword [ebp - 0x74], eax
cmp dword [ecx], 0xff00ff
je 0x6511dd
cmp byte [ecx + 3], 0x10
jbe 0x6511dd
movzx eax, byte [ecx + 2]
shr eax, 2
movzx edx, byte [ecx + 1]
shr edx, 1
add al, dl
movzx edx, byte [ecx]
shr edx, 2
add al, dl
mov byte [ebp - 0x4c], al
cmp dword [ebp + 0xc], 0
jne 0x651119
movzx eax, byte [ecx + 3]
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x28]
imul edx
cdq
idiv dword [ebp - 0x2c]
shr eax, 2
jmp 0x651135
movzx eax, byte [ecx + 3]
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x28]
imul edx
cdq
idiv dword [ebp - 0x2c]
shr eax, 2
movzx edx, byte [ebp - 0x4d]
imul edx
shr eax, 8
movzx edx, byte [ebp - 0x4c]
movzx ecx, byte [ebp - 8]
imul edx, ecx
shr edx, 8
mov byte [ebp - 0x49], dl
movzx edx, byte [ebp - 0x4c]
movzx ecx, byte [ebp - 7]
imul edx, ecx
shr edx, 8
mov byte [ebp - 0x4a], dl
movzx edx, byte [ebp - 0x4c]
movzx ecx, byte [ebp - 6]
imul edx, ecx
shr edx, 8
mov byte [ebp - 0x4b], dl
movzx edx, byte [ebp - 0x49]
mov ecx, dword [ebp - 0x74]
movzx ecx, byte [ecx + 2]
sub edx, ecx
movzx ecx, al
imul edx, ecx
mov ecx, dword [ebp - 0x74]
movzx ecx, byte [ecx + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
mov ecx, dword [ebp - 0x74]
mov byte [ecx + 2], dl
movzx edx, byte [ebp - 0x4a]
mov ecx, dword [ebp - 0x74]
movzx ecx, byte [ecx + 1]
sub edx, ecx
movzx ecx, al
imul edx, ecx
mov ecx, dword [ebp - 0x74]
movzx ecx, byte [ecx + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
mov ecx, dword [ebp - 0x74]
mov byte [ecx + 1], dl
movzx edx, byte [ebp - 0x4b]
mov ecx, dword [ebp - 0x74]
movzx ecx, byte [ecx]
sub edx, ecx
movzx eax, al
imul edx, eax
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
shl eax, 8
add edx, eax
shr edx, 8
mov eax, dword [ebp - 0x74]
mov byte [eax], dl
inc edi
inc esi
dec ebx
jne 0x6510bf
inc dword [ebp - 0x28]
dec dword [ebp - 0x54]
jne 0x651082
jmp 0x651a2a
cmp dword [ebp + 0xc], 0
je 0x6514d9
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x20], 0
jne 0x651309
mov eax, dword [ebp - 0x2c]
test eax, eax
jl 0x651833
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jl 0x6512f8
inc ebx
mov dword [ebp - 0x24], 0
mov edi, dword [ebp - 0x100]
add edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x110]
add esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*4]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax + 3]
movzx edx, byte [ebp - 0x4d]
imul edx
shr eax, 8
mov edx, dword [ebp - 0x18]
lea edx, [edx + edi*4]
mov ecx, dword [ebp - 0x78]
movzx ecx, byte [ecx + 2]
movzx esi, byte [edx + 2]
sub ecx, esi
movzx esi, al
imul ecx, esi
movzx esi, byte [edx + 2]
shl esi, 8
add ecx, esi
shr ecx, 8
mov byte [edx + 2], cl
mov ecx, dword [ebp - 0x78]
movzx ecx, byte [ecx + 1]
movzx esi, byte [edx + 1]
sub ecx, esi
movzx esi, al
imul ecx, esi
movzx esi, byte [edx + 1]
shl esi, 8
add ecx, esi
shr ecx, 8
mov byte [edx + 1], cl
mov ecx, dword [ebp - 0x78]
movzx ecx, byte [ecx]
movzx esi, byte [edx]
sub ecx, esi
movzx eax, al
imul ecx, eax
movzx eax, byte [edx]
shl eax, 8
add ecx, eax
shr ecx, 8
mov byte [edx], cl
inc dword [ebp - 0x24]
dec ebx
jne 0x65125b
inc dword [ebp - 0x28]
dec dword [ebp - 0x54]
jne 0x651224
jmp 0x651833
mov eax, dword [ebp - 0x2c]
test eax, eax
jl 0x651833
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x100]
mov esi, dword [ebp - 0x110]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jl 0x6514c8
inc ebx
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
cmp dword [eax], 0xff00ff
je 0x65141b
mov eax, dword [ebp - 0x7c]
cmp byte [eax + 3], 0x10
jbe 0x65141b
mov eax, dword [ebp - 0x7c]
movzx eax, byte [eax + 3]
movzx edx, byte [ebp - 0x4d]
imul edx
shr eax, 8
mov edx, dword [ebp - 0x18]
lea edx, [edx + edi*4]
mov dword [ebp - 0x80], edx
mov edx, dword [ebp - 0x7c]
movzx edx, byte [edx + 2]
mov ecx, dword [ebp - 0x80]
movzx ecx, byte [ecx + 2]
sub edx, ecx
movzx ecx, al
imul edx, ecx
mov ecx, dword [ebp - 0x80]
movzx ecx, byte [ecx + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
mov ecx, dword [ebp - 0x80]
mov byte [ecx + 2], dl
mov edx, dword [ebp - 0x7c]
movzx edx, byte [edx + 1]
mov ecx, dword [ebp - 0x80]
movzx ecx, byte [ecx + 1]
sub edx, ecx
movzx ecx, al
imul edx, ecx
mov ecx, dword [ebp - 0x80]
movzx ecx, byte [ecx + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
mov ecx, dword [ebp - 0x80]
mov byte [ecx + 1], dl
mov edx, dword [ebp - 0x7c]
movzx edx, byte [edx]
mov ecx, dword [ebp - 0x80]
movzx ecx, byte [ecx]
sub edx, ecx
movzx eax, al
imul edx, eax
mov eax, dword [ebp - 0x80]
movzx eax, byte [eax]
shl eax, 8
add edx, eax
shr edx, 8
mov eax, dword [ebp - 0x80]
mov byte [eax], dl
jmp 0x6514bf
cmp byte [ebp + 0x14], 0
je 0x6514bf
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x44]
jge 0x6514bf
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, edi
test eax, eax
jl 0x6514bf
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, edi
cmp eax, dword [ebp - 0x48]
jge 0x6514c8
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
test eax, eax
jl 0x6514c8
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0xfc]
add ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, edi
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call sym.StartupControl.exe__Salphagraph_GetAPixel_qqrpx16Graphics_TBitmapii
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + edi*4]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
movzx edx, byte [ebp - 8]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x84]
movzx edx, byte [ebp - 7]
mov byte [eax + 1], dl
mov eax, dword [ebp - 0x84]
movzx edx, byte [ebp - 6]
mov byte [eax], dl
inc edi
inc esi
dec ebx
jne 0x65135b
inc dword [ebp - 0x28]
dec dword [ebp - 0x54]
jne 0x65131f
jmp 0x651833
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x20], 0
jne 0x65161b
mov eax, dword [ebp - 0x2c]
test eax, eax
jl 0x651833
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x100]
mov esi, dword [ebp - 0x110]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jl 0x65160a
inc ebx
mov eax, dword [ebp - 0x18]
lea eax, [eax + edi*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + esi*4]
mov dword [ebp - 0x88], edx
mov edx, dword [ebp - 0x88]
movzx edx, byte [edx + 2]
movzx ecx, byte [eax + 2]
sub edx, ecx
mov ecx, dword [ebp - 0x88]
movzx ecx, byte [ecx + 3]
imul edx, ecx
movzx ecx, byte [eax + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov edx, dword [ebp - 0x88]
movzx edx, byte [edx + 1]
movzx ecx, byte [eax + 1]
sub edx, ecx
mov ecx, dword [ebp - 0x88]
movzx ecx, byte [ecx + 3]
imul edx, ecx
movzx ecx, byte [eax + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, dword [ebp - 0x88]
movzx edx, byte [edx]
movzx ecx, byte [eax]
sub edx, ecx
mov ecx, dword [ebp - 0x88]
movzx ecx, byte [ecx + 3]
imul edx, ecx
movzx ecx, byte [eax]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax], dl
mov edx, dword [ebp - 0x88]
movzx edx, byte [edx + 3]
movzx ecx, byte [eax + 3]
cmp edx, ecx
jge 0x6515e8
movzx edx, byte [eax + 3]
mov dword [ebp - 0xe8], edx
jmp 0x6515f8
mov edx, dword [ebp - 0x88]
movzx edx, byte [edx + 3]
mov dword [ebp - 0xe8], edx
mov edx, dword [ebp - 0xe8]
mov byte [eax + 3], dl
inc edi
inc esi
dec ebx
jne 0x651538
inc dword [ebp - 0x28]
dec dword [ebp - 0x54]
jne 0x6514fc
jmp 0x651833
mov eax, dword [ebp - 0x2c]
test eax, eax
jl 0x651833
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x100]
mov esi, dword [ebp - 0x110]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jl 0x651827
inc ebx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*4]
cmp dword [eax], 0xff00ff
je 0x651770
cmp byte [eax + 3], 0x10
jbe 0x651770
mov edx, dword [ebp - 0x18]
lea edx, [edx + edi*4]
mov dword [ebp - 0x8c], edx
movzx edx, byte [eax + 2]
mov ecx, dword [ebp - 0x8c]
movzx ecx, byte [ecx + 2]
sub edx, ecx
movzx ecx, byte [eax + 3]
imul edx, ecx
mov ecx, dword [ebp - 0x8c]
movzx ecx, byte [ecx + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
mov ecx, dword [ebp - 0x8c]
mov byte [ecx + 2], dl
movzx edx, byte [eax + 1]
mov ecx, dword [ebp - 0x8c]
movzx ecx, byte [ecx + 1]
sub edx, ecx
movzx ecx, byte [eax + 3]
imul edx, ecx
mov ecx, dword [ebp - 0x8c]
movzx ecx, byte [ecx + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
mov ecx, dword [ebp - 0x8c]
mov byte [ecx + 1], dl
movzx edx, byte [eax]
mov ecx, dword [ebp - 0x8c]
movzx ecx, byte [ecx]
sub edx, ecx
movzx ecx, byte [eax + 3]
imul edx, ecx
mov ecx, dword [ebp - 0x8c]
movzx ecx, byte [ecx]
shl ecx, 8
add edx, ecx
shr edx, 8
mov ecx, dword [ebp - 0x8c]
mov byte [ecx], dl
movzx edx, byte [eax + 3]
mov ecx, dword [ebp - 0x8c]
movzx ecx, byte [ecx + 3]
cmp edx, ecx
jge 0x651752
mov eax, dword [ebp - 0x8c]
movzx eax, byte [eax + 3]
mov dword [ebp - 0xec], eax
jmp 0x65175c
movzx eax, byte [eax + 3]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
mov edx, dword [ebp - 0x8c]
mov byte [edx + 3], al
jmp 0x65181b
cmp byte [ebp + 0x14], 0
je 0x65181b
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x44]
jge 0x65181b
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, edi
test eax, eax
jl 0x65181b
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, edi
cmp eax, dword [ebp - 0x48]
jge 0x651827
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x28]
test eax, eax
jl 0x651827
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0xfc]
add ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x100]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call sym.StartupControl.exe__Salphagraph_GetAPixel_qqrpx16Graphics_TBitmapii
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + edi*4]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
movzx edx, byte [ebp - 8]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x90]
movzx edx, byte [ebp - 7]
mov byte [eax + 1], dl
mov eax, dword [ebp - 0x90]
movzx edx, byte [ebp - 6]
mov byte [eax], dl
inc edi
inc esi
inc dword [ebp - 0x24]
dec ebx
jne 0x651674
inc dword [ebp - 0x28]
dec dword [ebp - 0x54]
jne 0x651631
cmp byte [ebp + 8], 0
je 0x651a2a
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0xf4]
dec eax
mov edx, dword [ebp - 0x3c]
sar edx, 1
jns 0x651851
adc edx, 0
dec edx
cmp eax, edx
jle 0x651869
mov eax, dword [ebp - 0x3c]
sar eax, 1
jns 0x651860
adc eax, 0
dec eax
mov dword [ebp - 0xf0], eax
jmp 0x651879
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0xf4]
dec eax
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x2c], eax
mov eax, 0xff
cdq
idiv dword [ebp - 0x3c]
mov byte [ebp - 5], al
mov byte [ebp - 8], 0xff
mov eax, dword [ebp - 0x2c]
test eax, eax
jle 0x651a2a
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x104]
sub eax, dword [ebp - 0x28]
dec eax
imul dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xf4]
add eax, dword [ebp - 0x28]
imul dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x100]
mov esi, dword [ebp - 0x110]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jl 0x651a17
inc ebx
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*4]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
cmp dword [eax], 0xff00ff
je 0x651a0e
mov eax, dword [ebp - 0x94]
cmp byte [eax + 3], 0x10
jbe 0x651a0e
cmp dword [ebp + 0xc], 0
jne 0x651939
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax + 3]
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x28]
imul edx
cdq
idiv dword [ebp - 0x2c]
movzx edx, byte [ebp - 8]
imul edx
shr eax, 9
jmp 0x651961
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax + 3]
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x28]
imul edx
cdq
idiv dword [ebp - 0x2c]
movzx edx, byte [ebp - 8]
imul edx
shr eax, 9
movzx edx, byte [ebp - 0x4d]
imul edx
shr eax, 8
mov edx, dword [ebp - 0x18]
lea edx, [edx + edi*4]
mov dword [ebp - 0x98], edx
mov edx, dword [ebp - 0x94]
movzx edx, byte [edx + 2]
mov ecx, dword [ebp - 0x98]
movzx ecx, byte [ecx + 2]
sub edx, ecx
movzx ecx, al
imul edx, ecx
mov ecx, dword [ebp - 0x98]
movzx ecx, byte [ecx + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
mov ecx, dword [ebp - 0x98]
mov byte [ecx + 2], dl
mov edx, dword [ebp - 0x94]
movzx edx, byte [edx + 1]
mov ecx, dword [ebp - 0x98]
movzx ecx, byte [ecx + 1]
sub edx, ecx
movzx ecx, al
imul edx, ecx
mov ecx, dword [ebp - 0x98]
movzx ecx, byte [ecx + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
mov ecx, dword [ebp - 0x98]
mov byte [ecx + 1], dl
mov edx, dword [ebp - 0x94]
movzx edx, byte [edx]
mov ecx, dword [ebp - 0x98]
movzx ecx, byte [ecx]
sub edx, ecx
movzx eax, al
imul edx, eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
shl eax, 8
add edx, eax
shr edx, 8
mov eax, dword [ebp - 0x98]
mov byte [eax], dl
inc edi
inc esi
dec ebx
jne 0x6518e4
movzx eax, byte [ebp - 5]
sub byte [ebp - 8], al
inc dword [ebp - 0x28]
dec dword [ebp - 0x54]
jne 0x6518a7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18