Function at 0x5217b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe20
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov ecx, 0x10a
mov esi, ebx
lea edi, [ebp - 0x8f8]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x10]
mov ecx, 0x10a
lea edi, [ebp - 0x4d0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x28]
test esi, esi
je 0x5217f4
mov ecx, 0x10a
lea edi, [ebp - 0xd20]
rep movsd dword es:[edi], dword [esi]
jmp 0x52180a
push 0x428
lea eax, [ebp - 0xd20]
push 0
push eax
call fcn.004dc0b0
add esp, 0xc
mov cl, byte [ebp - 0x4c9]
test cl, cl
mov esi, dword [ebp + 0x20]
mov edi, 1
je 0x521830
test esi, esi
jne 0x521829
cmp byte [ebp - 0x8f1], 0
je 0x521830
mov eax, edi
mov dword [ebp - 0x30], edi
jmp 0x521835
xor eax, eax
mov dword [ebp - 0x30], eax
test cl, cl
je 0x521849
test esi, esi
je 0x521849
cmp byte [ebp - 0x8f1], 0
mov dword [ebp - 0x38], edi
je 0x521850
mov dword [ebp - 0x38], 0
cmp eax, edi
je 0x52185d
test cl, cl
je 0x52185d
cmp dword [ebp + 0x4c], edi
jne 0x521864
mov dword [ebp + 0x3c], 0
cmp dword [ebp + 0x38], 0
je 0x521871
mov dword [ebp + 0x50], 0
mov edi, dword [ebp + 0x34]
mov esi, dword [edi + 8]
sub esi, dword [edi]
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
test esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
je 0x523e41
test eax, eax
je 0x523e41
cmp dword [ebp + 0x54], 0
je 0x521974
mov ecx, dword [ebp + 0x10]
cmp word [ecx + 2], 1
jne 0x521974
cmp word [ebx + 2], 1
jne 0x521974
cmp dword [ebp + 0x38], 0
jne 0x521974
push 0x400
lea edx, [ebx + 0x20]
mov eax, ecx
push edx
add eax, 0x20
push eax
call fcn.004dc0e0
add esp, 0xc
test eax, eax
je 0x521971
cmp dword [ebp - 4], 0
mov dword [ebp + 0x38], 0
jle 0x521968
mov eax, dword [ebp + 0x30]
imul eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x2c]
add eax, dword [ebp + 8]
mov dword [ebp + 0x1c], eax
mov edi, edi
mov eax, dword [ebp + 0x34]
mov esi, dword [eax + 4]
add esi, dword [ebp + 0x38]
mov edi, dword [ebp + 0x1c]
imul esi, dword [ebp + 0x18]
add esi, dword [eax]
add esi, dword [ebp + 0x14]
cmp dword [ebp - 8], 0
jle 0x521954
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x28], ecx
movzx edx, byte [esi]
movzx ecx, byte [ebx + edx*4 + 0x20]
lea eax, [ebx + edx*4 + 0x20]
movzx edx, byte [eax + 1]
movzx eax, byte [eax + 2]
push 0
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
call fcn.0051d8d0
mov byte [edi], al
add esp, 0x14
add esi, 1
add edi, 1
sub dword [ebp + 0x28], 1
jne 0x521921
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0xc]
add dword [ebp + 0x1c], edx
add eax, 1
cmp eax, dword [ebp - 4]
mov dword [ebp + 0x38], eax
jl 0x521900
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
cmp word [ecx], 8
jne 0x521c5d
movzx ecx, word [ebx]
cmp cx, 8
je 0x521be0
cmp dword [ebp + 0x4c], 0
jne 0x521be0
cmp dword [ebp + 0x38], 0
jne 0x521be0
movzx ecx, cx
cmp ecx, 0x10
je 0x521b2b
cmp ecx, 0x18
je 0x521a6f
cmp ecx, 0x20
jne 0x521bd7
test eax, eax
mov dword [ebp + 0x38], 0
jle 0x521bd7
mov eax, dword [ebp + 0x30]
imul eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x2c]
add eax, dword [ebp + 8]
mov dword [ebp + 0x1c], eax
nop
mov eax, dword [ebp + 0x34]
mov edx, dword [eax + 4]
add edx, dword [ebp + 0x38]
mov eax, dword [eax]
imul edx, dword [ebp + 0x18]
add edx, dword [ebp + 0x14]
cmp dword [ebp - 8], 0
mov edi, dword [ebp + 0x1c]
lea esi, [edx + eax*4]
jle 0x521a4e
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x28], ecx
mov eax, dword [esi]
movzx ecx, byte [ebx + 0xb]
mov edx, eax
and edx, dword [ebx + 0x18]
shr edx, cl
movzx ecx, byte [ebx + 0xa]
push edx
mov edx, dword [ebx + 0x14]
and edx, eax
shr edx, cl
movzx ecx, byte [ebx + 9]
push edx
mov edx, eax
and edx, dword [ebx + 0x10]
and eax, dword [ebx + 0xc]
shr edx, cl
movzx ecx, byte [ebx + 8]
shr eax, cl
push edx
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.0051d8d0
mov byte [edi], al
add esp, 0x14
add esi, 4
add edi, 1
sub dword [ebp + 0x28], 1
jne 0x521a04
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0xc]
add dword [ebp + 0x1c], ecx
add eax, 1
cmp eax, dword [ebp - 4]
mov dword [ebp + 0x38], eax
jl 0x5219e0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
mov dword [ebp + 0x38], 0
jle 0x521bd7
mov eax, dword [ebp + 0x30]
imul eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x2c]
add eax, dword [ebp + 8]
mov dword [ebp + 0x1c], eax
mov edi, edi
mov eax, dword [ebp + 0x34]
mov edx, dword [eax + 4]
add edx, dword [ebp + 0x38]
mov eax, dword [eax]
imul edx, dword [ebp + 0x18]
add edx, dword [ebp + 0x14]
cmp dword [ebp - 8], 0
mov edi, dword [ebp + 0x1c]
lea esi, [edx + eax*2]
jle 0x521b0a
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x28], ecx
movzx eax, byte [esi + 2]
movzx edx, word [esi]
movzx ecx, byte [ebx + 0xb]
shl eax, 0x10
or eax, edx
mov edx, eax
and edx, dword [ebx + 0x18]
shr edx, cl
movzx ecx, byte [ebx + 0xa]
push edx
mov edx, dword [ebx + 0x14]
and edx, eax
shr edx, cl
movzx ecx, byte [ebx + 9]
push edx
mov edx, eax
and edx, dword [ebx + 0x10]
shr edx, cl
movzx ecx, byte [ebx + 8]
push edx
mov edx, dword [ebx + 0xc]
and edx, eax
mov eax, dword [ebp + 0x10]
shr edx, cl
push edx
push eax
call fcn.0051d8d0
mov byte [edi], al
add esp, 0x14
add esi, 3
add edi, 1
sub dword [ebp + 0x28], 1
jne 0x521ab4
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0xc]
add dword [ebp + 0x1c], ecx
add eax, 1
cmp eax, dword [ebp - 4]
mov dword [ebp + 0x38], eax
jl 0x521a90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
mov dword [ebp + 0x38], 0
jle 0x521bd7
mov eax, dword [ebp + 0x30]
imul eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x2c]
add eax, dword [ebp + 8]
mov dword [ebp + 0x1c], eax
lea ebx, [ebx]
mov eax, dword [ebp + 0x34]
mov edx, dword [eax + 4]
add edx, dword [ebp + 0x38]
mov eax, dword [eax]
imul edx, dword [ebp + 0x18]
add edx, dword [ebp + 0x14]
cmp dword [ebp - 8], 0
mov edi, dword [ebp + 0x1c]
lea esi, [edx + eax*2]
jle 0x521bbf
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x28], ecx
movzx eax, word [esi]
movzx ecx, byte [ebx + 0xb]
mov edx, eax
and edx, dword [ebx + 0x18]
shr edx, cl
movzx ecx, byte [ebx + 0xa]
push edx
mov edx, dword [ebx + 0x14]
and edx, eax
shr edx, cl
movzx ecx, byte [ebx + 9]
push edx
mov edx, eax
and edx, dword [ebx + 0x10]
and eax, dword [ebx + 0xc]
shr edx, cl
movzx ecx, byte [ebx + 8]
shr eax, cl
push edx
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.0051d8d0
mov byte [edi], al
add esp, 0x14
add esi, 2
add edi, 1
sub dword [ebp + 0x28], 1
jne 0x521b74
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0xc]
add dword [ebp + 0x1c], ecx
add eax, 1
cmp eax, dword [ebp - 4]
mov dword [ebp + 0x38], eax
jl 0x521b50
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x48], 0
jne 0x521c5d
cmp dword [ebp + 0x50], 0
jne 0x521c5d
cmp dword [ebp + 0x4c], 0
jne 0x521c5d
cmp dword [ebp + 0x38], 0
jne 0x521c5d
cmp cx, 8
jne 0x523e41
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x28], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp - 8]
sub ecx, eax
sub edx, eax
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x34], edx
pushf
cld
mov edi, dword [ebp + 0x28]
mov esi, dword [ebp + 0x1c]
mov ebx, dword [ebp - 4]
mov eax, 0
mov ecx, dword [ebp - 8]
movzx edx, byte [esi]
mov byte [edi], dl
cmp edx, eax
jbe 0x521c40
mov eax, edx
inc esi
inc edi
dec ecx
jne 0x521c35
add edi, dword [ebp + 0x34]
add esi, dword [ebp + 0x10]
dec ebx
jne 0x521c32
mov dword [ebp + 0x38], eax
popf
mov eax, dword [ebp + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x3c]
test eax, eax
mov ebx, dword [ebp - 0x4bc]
jne 0x521fa9
cmp dword [ebp - 0x38], 0
jne 0x521fa9
cmp dword [ebp + 0x48], 0
jne 0x521fa9
cmp dword [ebp + 0x4c], 0
jne 0x521fa9
mov cx, word [ebp - 0x4d0]
cmp cx, word [ebp - 0x8f8]
jne 0x521fa9
mov edx, dword [ebp - 0x4c4]
cmp edx, dword [ebp - 0x8ec]
jne 0x521fa9
mov ecx, dword [ebp - 0x4c0]
cmp ecx, dword [ebp - 0x8e8]
jne 0x521fa9
cmp ebx, dword [ebp - 0x8e4]
jne 0x521fa9
mov edx, dword [ebp - 0x4b8]
cmp edx, dword [ebp - 0x8e0]
jne 0x521fa9
movzx ebx, word [ebp - 0x4ce]
mov ecx, ebx
imul ecx, esi
cmp dword [ebp + 0x38], 0
mov esi, dword [ebp + 0x30]
jne 0x521ee4
mov eax, dword [ebp + 0xc]
mov edx, ebx
imul esi, eax
imul edx, dword [ebp + 0x2c]
add edx, dword [ebp + 8]
sub eax, ecx
add esi, edx
mov edx, dword [ebp + 0x18]
mov dword [ebp + 0x28], esi
movzx esi, word [ebp - 0x8f6]
imul esi, dword [edi]
mov edi, dword [edi + 4]
add esi, dword [ebp + 0x14]
imul edi, edx
add edi, esi
sub edx, ecx
cmp dword [ebp + 0x50], 1
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x10], edx
jne 0x521e0d
movzx eax, word [ebp - 0x4d0]
mov dword [ebp + 0x38], eax
pushaw
pushf
cld
mov edi, dword [ebp + 0x28]
mov esi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x40]
mov edx, dword [ebp - 4]
cmp dword [ebp + 0x38], 8
je 0x521de5
cmp dword [ebp + 0x38], 0x10
je 0x521dc3
cmp dword [ebp + 0x38], 0x18
je 0x521d8e
mov ecx, dword [ebp - 8]
mov eax, dword [esi]
cmp eax, ebx
je 0x521d7a
mov dword [edi], eax
add esi, 4
add edi, 4
dec ecx
jne 0x521d72
add edi, dword [ebp + 0x34]
add esi, dword [ebp + 0x10]
dec edx
jne 0x521d6f
jmp 0x521e00
mov ecx, dword [ebp - 8]
and ebx, 0xffffff
xor eax, eax
mov al, byte [esi + 2]
shl eax, 0x10
mov ax, word [esi]
cmp eax, ebx
je 0x521daf
mov word [edi], ax
shr eax, 0x10
mov byte [edi + 2], al
add esi, 3
add edi, 3
dec ecx
jne 0x521d97
add edi, dword [ebp + 0x34]
add esi, dword [ebp + 0x10]
dec edx
jne 0x521d8e
jmp 0x521e00
mov ecx, dword [ebp - 8]
mov ax, word [esi]
cmp ax, bx
je 0x521dd1
mov word [edi], ax
add esi, 2
add edi, 2
dec ecx
jne 0x521dc6
add edi, dword [ebp + 0x34]
add esi, dword [ebp + 0x10]
dec edx
jne 0x521dc3
jmp 0x521e00
mov ecx, dword [ebp - 8]
mov al, byte [esi]
cmp al, bl
je 0x521df0
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x521de8
add edi, dword [ebp + 0x34]
add esi, dword [ebp + 0x10]
dec edx
jne 0x521de5
jmp 0x521e00
popf
popaw
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x40], eax
lea edx, [eax*4]
mov eax, ecx
sub eax, edx
cdq
idiv ebx
mov dword [ebp - 0x3c], eax
movzx eax, word [ebp - 0x4d0]
mov dword [ebp + 0x38], eax
pushaw
pushf
cld
mov edi, dword [ebp + 0x28]
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x34]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
cmp dword [ebp + 0x38], 8
je 0x521eb4
cmp dword [ebp + 0x38], 0x10
je 0x521e90
cmp dword [ebp + 0x38], 0x18
je 0x521e6a
mov ecx, dword [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
add edi, eax
add esi, ebx
dec edx
jne 0x521e5c
jmp 0x521ed7
mov ecx, dword [ebp - 0x40]
test ecx, 0xffffffff
je 0x521e77
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x3c]
test ecx, 0xffffffff
je 0x521e87
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
loop 0x521e82
add edi, eax
add esi, ebx
dec edx
jne 0x521e6a
jmp 0x521ed7
mov ecx, dword [ebp - 0x40]
test ecx, 0xffffffff
je 0x521e9d
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x3c]
test ecx, 0xffffffff
je 0x521eab
rep movsw word es:[edi], word [esi]
add edi, eax
add esi, ebx
dec edx
jne 0x521e90
jmp 0x521ed7
mov ecx, dword [ebp - 0x40]
test ecx, 0xffffffff
je 0x521ec1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x3c]
test ecx, 0xffffffff
je 0x521ece
rep movsb byte es:[edi], byte [esi]
add edi, eax
add esi, ebx
dec edx
jne 0x521eb4
jmp 0x521ed7
popf
popaw
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp - 8]
lea eax, [edx + eax - 1]
mov edx, dword [ebp + 0xc]
imul eax, ebx
add eax, dword [ebp + 8]
imul esi, edx
add esi, eax
mov dword [ebp + 0x28], esi
movzx esi, word [ebp - 0x8f6]
mov eax, edi
imul esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [ebp + 0x18]
add esi, dword [ebp + 0x14]
imul edi, eax
sub eax, ecx
mov dword [ebp + 0x10], eax
movzx eax, word [ebp - 0x4d0]
add edi, esi
add edx, ecx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x38], eax
pushaw
mov edi, dword [ebp + 0x28]
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x34]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
cmp dword [ebp + 0x38], 8
je 0x521f8c
cmp dword [ebp + 0x38], 0x10
je 0x521f79
cmp dword [ebp + 0x38], 0x18
je 0x521f65
mov ecx, dword [ebp - 8]
movsd dword es:[edi], dword [esi]
sub edi, 8
loop 0x521f56
add edi, eax
add esi, ebx
dec edx
jne 0x521f53
jmp 0x521f9e
mov ecx, dword [ebp - 8]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
sub edi, 6
loop 0x521f68
add edi, eax
add esi, ebx
dec edx
jne 0x521f65
jmp 0x521f9e
mov ecx, dword [ebp - 8]
movsw word es:[edi], word [esi]
sub edi, 4
loop 0x521f7c
add edi, eax
add esi, ebx
dec edx
jne 0x521f79
jmp 0x521f9e
mov ecx, dword [ebp - 8]
movsb byte es:[edi], byte [esi]
sub edi, 2
loop 0x521f8f
add edi, eax
add esi, ebx
dec edx
jne 0x521f8c
jmp 0x521f9e
popaw
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x50], 1
mov ecx, dword [ebp + 0x14]
jne 0x522126
cmp dword [ebp + 0x48], 0
jne 0x5233e4
cmp dword [ebp - 0x38], 0
jne 0x5233e4
cmp dword [ebp - 0x30], 0
jne 0x5233e4
cmp dword [ebp + 0x4c], 0
jne 0x5233e4
test eax, eax
jne 0x5233e4
cmp dword [ebp + 0x38], eax
jne 0x5233e4
mov eax, 0x20
cmp word [ebp - 0x8f8], ax
jne 0x5233e4
cmp word [ebp - 0x4d0], ax
jne 0x5233e4
mov eax, 0xff0000
cmp dword [ebp - 0x8ec], eax
jne 0x5233e4
mov ecx, 0xff00
cmp dword [ebp - 0x8e8], ecx
jne 0x5233e4
cmp dword [ebp - 0x8e4], 0xff
jne 0x5233e4
cmp dword [ebp - 0x8e0], 0
jne 0x5233e4
cmp dword [ebp - 0x4c4], eax
jne 0x5233e4
cmp dword [ebp - 0x4c0], ecx
jne 0x5233e4
cmp ebx, 0xff
jne 0x5233e4
cmp dword [ebp - 0x4b8], 0xff000000
jne 0x5233e4
mov eax, dword [ebp + 0x40]
movzx edx, word [ebp - 0x4ce]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x30]
and eax, 0xffffff
imul ecx, ebx
mov dword [ebp + 0x10], eax
mov eax, edx
imul eax, dword [ebp + 0x2c]
add eax, dword [ebp + 8]
movzx esi, word [ebp - 0x8f6]
add ecx, eax
mov eax, dword [edi + 4]
imul eax, dword [ebp + 0x18]
mov dword [ebp + 0x38], eax
mov eax, dword [edi]
mov edi, dword [ebp + 0x38]
imul eax, esi
add edi, dword [ebp + 0x14]
add eax, edi
mov edi, dword [ebp - 8]
imul edx, edi
imul esi, edi
sub ebx, edx
mov edx, dword [ebp + 0x18]
sub edx, esi
mov dword [ebp + 0x34], edx
mov edx, dword [ebp - 4]
test edx, edx
je 0x52211d
mov dword [ebp + 0x38], edx
jmp 0x5220e7
mov edi, dword [ebp - 8]
mov esi, edi
lea esp, [esp]
mov edx, dword [eax]
mov edi, edx
and edi, 0xffffff
cmp edi, dword [ebp + 0x10]
je 0x522107
or edx, 0xff000000
mov dword [ecx], edx
add ecx, 4
add eax, 4
sub esi, 1
jne 0x5220f0
add eax, dword [ebp + 0x34]
add ecx, ebx
sub dword [ebp + 0x38], 1
jne 0x5220e4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x4c9], 0
je 0x522407
cmp eax, 1
jne 0x522407
cmp dword [ebp + 0x48], 0
jne 0x522407
cmp dword [ebp + 0x4c], 0
jne 0x522407
mov edx, dword [ebp - 0x8ec]
cmp dword [ebp - 0x4c4], edx
jne 0x522407
mov eax, dword [ebp - 0x8e8]
cmp dword [ebp - 0x4c0], eax
jne 0x522407
cmp ebx, dword [ebp - 0x8e4]
jne 0x522407
mov dx, word [ebp - 0x8f8]
cmp word [ebp - 0x4d0], dx
jne 0x522407
mov eax, dword [ebp + 0x40]
mov ecx, eax
push 0xff
and ecx, 0xff
push ecx
movzx edx, ah
movzx eax, byte [ebp + 0x42]
push edx
push eax
lea ecx, [ebp - 0x4d0]
push ecx
call fcn.0051d8d0
or ebx, dword [ebp - 0x4c0]
add esp, 0x14
or ebx, dword [ebp - 0x4c4]
cmp dword [ebp + 0x38], 1
not ebx
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x28], ebx
jne 0x5221fd
movzx ecx, word [ebp - 0x4ce]
mov edx, dword [ebp + 0x2c]
mov ebx, ecx
imul ebx, esi
add ebx, dword [ebp + 0xc]
mov eax, ecx
lea edx, [edx + esi - 1]
imul edx, ecx
mov ecx, dword [ebp + 0x30]
neg eax
imul ecx, dword [ebp + 0xc]
jmp 0x52221c
movzx edx, word [ebp - 0x4ce]
mov ecx, dword [ebp + 0x30]
mov eax, edx
imul eax, esi
mov esi, dword [ebp + 0xc]
mov ebx, esi
sub ebx, eax
mov eax, edx
imul edx, dword [ebp + 0x2c]
imul ecx, esi
add edx, dword [ebp + 8]
mov esi, dword [edi]
add ecx, edx
mov edx, dword [edi + 4]
imul edx, dword [ebp + 0x18]
mov edi, edx
movzx edx, word [ebp - 0x8f6]
imul esi, edx
add edi, dword [ebp + 0x14]
mov dword [ebp + 0x38], ebx
add esi, edi
mov edi, edx
imul edi, dword [ebp - 8]
mov edx, dword [ebp + 0x18]
sub edx, edi
mov dword [ebp + 0x34], edx
movzx edx, word [ebp - 0x4d0]
add edx, 0xfffffff8
cmp edx, 0x18
ja case.0x522266.9
movzx edx, byte [edx + 0x523e60]
jmp dword [edx*4 + 0x523e4c]
cmp dword [ebp - 4], 0
mov dword [ebp + 0x38], 0
jle case.0x522266.9
cmp dword [ebp - 8], 0
jle 0x5222b2
mov edi, dword [ebp - 8]
mov dl, byte [esi]
cmp byte [ebp + 0x10], dl
jne 0x52229a
mov bl, byte [ebp - 0x4b8]
not bl
and dl, bl
jmp 0x5222a0
or dl, byte [ebp - 0x4b8]
mov byte [ecx], dl
movzx edx, word [ebp - 0x8f6]
add ecx, eax
add esi, edx
sub edi, 1
jne 0x522287
mov edx, dword [ebp + 0x38]
add esi, dword [ebp + 0x34]
add edx, 1
add ecx, eax
cmp edx, dword [ebp - 4]
mov dword [ebp + 0x38], edx
jl 0x52227e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0
mov dword [ebp + 0x1c], 0
jle case.0x522266.9
mov edi, dword [ebp - 8]
test edi, edi
jle 0x522317
movzx edx, word [esi]
cmp word [ebp + 0x10], dx
jne 0x5222fb
mov ebx, dword [ebp - 0x4b8]
not ebx
and edx, ebx
jmp 0x522301
or edx, dword [ebp - 0x4b8]
mov word [ecx], dx
movzx edx, word [ebp - 0x8f6]
add ecx, eax
add esi, edx
sub edi, 1
jne 0x5222e6
mov ebx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x1c]
add esi, dword [ebp + 0x34]
add edx, 1
add ecx, ebx
cmp edx, dword [ebp - 4]
mov dword [ebp + 0x1c], edx
jl 0x5222df
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0
mov dword [ebp + 0x1c], 0
jle case.0x522266.9
mov edi, dword [ebp - 8]
test edi, edi
jle 0x52238a
movzx edx, byte [esi + 2]
movzx ebx, word [esi]
shl edx, 0x10
add edx, ebx
cmp dword [ebp + 0x10], edx
jne 0x522368
mov ebx, dword [ebp - 0x4b8]
not ebx
and edx, ebx
jmp 0x52236e
or edx, dword [ebp - 0x4b8]
mov word [ecx], dx
shr edx, 0x10
mov byte [ecx + 2], dl
movzx edx, word [ebp - 0x8f6]
add ecx, eax
add esi, edx
sub edi, 1
jne 0x52234b
mov ebx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x1c]
add esi, dword [ebp + 0x34]
add edx, 1
add ecx, ebx
cmp edx, dword [ebp - 4]
mov dword [ebp + 0x1c], edx
jl 0x522344
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0
mov dword [ebp + 0x1c], 0
jle case.0x522266.9
mov edi, dword [ebp - 8]
test edi, edi
jle 0x5223eb
mov edx, dword [esi]
or edx, dword [ebp + 0x28]
cmp dword [ebp + 0x10], edx
jne 0x5223d0
mov ebx, dword [ebp - 0x4b8]
not ebx
and edx, ebx
jmp 0x5223d6
or edx, dword [ebp - 0x4b8]
mov dword [ecx], edx
movzx edx, word [ebp - 0x8f6]
add ecx, eax
add esi, edx
sub edi, 1
jne 0x5223ba
mov ebx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x1c]
add esi, dword [ebp + 0x34]
add edx, 1
add ecx, ebx
cmp edx, dword [ebp - 4]
mov dword [ebp + 0x1c], edx
jl 0x5223b3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x44], 0
jne 0x5233e4
cmp dword [ebp + 0x48], 0
jne 0x5233e4
cmp dword [ebp + 0x4c], 0
jne 0x5233e4
cmp dword [ebp + 0x38], 0
jne 0x5233e4
cmp dword [ebp + 0x20], 0
jne 0x5233e4
mov eax, dword [ebp + 0x3c]
test eax, eax
jne 0x52263f
mov ax, word [ebp - 0x8f8]
cmp ax, 8
jne 0x5227db
movzx eax, word [ebp - 0x4ce]
mov ebx, dword [ebp + 0xc]
mov edx, eax
imul eax, dword [ebp + 0x2c]
imul edx, esi
sub ebx, edx
movzx edx, word [ebp - 0x8f6]
add eax, dword [ebp + 8]
imul edx, esi
mov dword [ebp + 0x1c], ebx
mov ebx, dword [ebp + 0x18]
sub ebx, edx
mov edx, dword [ebp + 0x30]
imul edx, dword [ebp + 0xc]
add edx, eax
movzx eax, word [ebp - 0x8f6]
mov dword [ebp - 0x24], edx
mov edx, dword [edi + 4]
imul edx, dword [ebp + 0x18]
mov dword [ebp + 0x10], ebx
mov ebx, dword [edi]
imul ebx, eax
mov ax, word [ebp - 0x4d0]
add edx, ecx
add ebx, edx
cmp ax, 0x10
mov dword [ebp + 0x28], ebx
jne 0x5225be
cmp dword [ebp - 0x4b8], 0
jne 0x522bd9
mov eax, dword [ebp - 0x4c4]
cmp eax, 0xf800
jne 0x522540
cmp dword [ebp - 0x4c0], 0x7e0
jne 0x522bd9
cmp dword [ebp - 0x4bc], 0x1f
jne 0x522bd9
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp + 0x28]
mov ecx, dword [ebp - 8]
movzx eax, byte [esi]
mov eax, dword [ebp + eax*4 - 0x8d8]
mov edx, eax
shr edx, 5
and edx, 0x7e0
mov ebx, eax
shr ebx, 3
and ebx, 0x1f
or edx, ebx
shr eax, 8
and eax, 0xf800
or edx, eax
mov word [edi], dx
add edi, 2
inc esi
dec ecx
jne 0x5224f9
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x5224f6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x7c00
jne 0x522bd9
cmp dword [ebp - 0x4c0], 0x3e0
jne 0x522bd9
cmp dword [ebp - 0x4bc], 0x1f
jne 0x522bd9
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp + 0x28]
mov ecx, dword [ebp - 8]
movzx eax, byte [esi]
mov eax, dword [ebp + eax*4 - 0x8d8]
mov edx, eax
shr edx, 6
and edx, 0x3e0
mov ebx, eax
shr ebx, 3
and ebx, 0x1f
or edx, ebx
shr eax, 9
and eax, 0x7c00
or edx, eax
or edx, 0x8000
mov word [edi], dx
add edi, 2
inc esi
dec ecx
jne 0x522571
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x52256e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 0x20
jne 0x522bd9
cmp dword [ebp - 0x4b8], 0
jne 0x522bd9
cmp dword [ebp - 0x4c4], 0xff0000
jne 0x522bd9
cmp dword [ebp - 0x4c0], 0xff00
jne 0x522bd9
cmp dword [ebp - 0x4bc], 0xff
jne 0x522bd9
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 0x40]
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor eax, eax
mov al, byte [esi]
mov eax, dword [ebp + eax*4 - 0x8d8]
or eax, 0xff000000
mov dword [edi], eax
inc esi
add edi, 4
dec ecx
jne 0x522614
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec ebx
jne 0x522611
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x5233e4
mov ax, word [ebp - 0x8f8]
cmp ax, 8
jne 0x5229eb
movzx eax, word [ebp - 0x4ce]
mov ebx, dword [ebp + 0xc]
mov edx, eax
imul eax, dword [ebp + 0x2c]
imul edx, esi
sub ebx, edx
movzx edx, word [ebp - 0x8f6]
add eax, dword [ebp + 8]
imul edx, esi
mov dword [ebp + 0x1c], ebx
mov ebx, dword [ebp + 0x18]
sub ebx, edx
mov edx, dword [ebp + 0x30]
imul edx, dword [ebp + 0xc]
add edx, eax
movzx eax, word [ebp - 0x8f6]
mov dword [ebp - 0x10], edx
mov edx, dword [edi + 4]
imul edx, dword [ebp + 0x18]
mov edi, dword [edi]
imul edi, eax
mov ax, word [ebp - 0x4d0]
add edx, ecx
add edi, edx
cmp ax, 0x10
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x28], edi
jne 0x522754
cmp dword [ebp - 0x4b8], 0x8000
jne 0x5233e4
cmp dword [ebp - 0x4c4], 0x7c00
jne 0x5233e4
cmp dword [ebp - 0x4c0], 0x3e0
jne 0x5233e4
cmp dword [ebp - 0x4bc], 0x1f
jne 0x5233e4
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 0x28]
mov ecx, dword [ebp - 8]
movzx eax, byte [esi]
mov eax, dword [ebp + eax*4 - 0x8d8]
cmp eax, dword [ebp + 0x40]
je 0x522717
or eax, 0x1000000
mov edx, eax
shr edx, 6
and edx, 0x3e0
mov ebx, eax
shr ebx, 3
and ebx, 0x1f
or edx, ebx
shr eax, 9
and eax, 0xfc00
or edx, eax
mov word [edi], dx
add edi, 2
inc esi
dec ecx
jne 0x522703
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x522700
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 0x20
jne 0x5233e4
cmp dword [ebp - 0x4b8], 0xff000000
jne 0x5233e4
cmp dword [ebp - 0x4c4], 0xff0000
jne 0x5233e4
cmp dword [ebp - 0x4c0], 0xff00
jne 0x5233e4
cmp dword [ebp - 0x4bc], 0xff
jne 0x5233e4
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 0x40]
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, byte [esi]
mov eax, dword [ebp + eax*4 - 0x8d8]
cmp eax, edx
je 0x5227c0
or eax, 0xff000000
mov dword [edi], eax
inc esi
add edi, 4
dec ecx
jne 0x5227ad
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec ebx
jne 0x5227aa
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 0x18
jne 0x522bd9
cmp dword [ebp - 0x8ec], 0xff0000
jne 0x522bd9
cmp dword [ebp - 0x8e8], 0xff00
jne 0x522bd9
cmp dword [ebp - 0x8e4], 0xff
jne 0x522bd9
movzx eax, word [ebp - 0x4ce]
mov ebx, dword [ebp + 0xc]
mov edx, eax
imul eax, dword [ebp + 0x2c]
imul edx, esi
sub ebx, edx
movzx edx, word [ebp - 0x8f6]
add eax, dword [ebp + 8]
imul edx, esi
mov dword [ebp + 0x1c], ebx
mov ebx, dword [ebp + 0x18]
sub ebx, edx
mov edx, dword [ebp + 0x30]
imul edx, dword [ebp + 0xc]
add edx, eax
movzx eax, word [ebp - 0x8f6]
mov dword [ebp - 0x24], edx
mov edx, dword [edi + 4]
imul edx, dword [ebp + 0x18]
mov edi, dword [edi]
imul edi, eax
mov ax, word [ebp - 0x4d0]
add edx, ecx
add edi, edx
cmp ax, 0x10
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x28], edi
jne 0x52297f
cmp dword [ebp - 0x4b8], 0
jne 0x5233e4
mov eax, dword [ebp - 0x4c4]
cmp eax, 0xf800
jne 0x522901
cmp dword [ebp - 0x4c0], 0x7e0
jne 0x5233e4
cmp dword [ebp - 0x4bc], 0x1f
jne 0x5233e4
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp + 0x28]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp + 0x1c]
mov ecx, ebx
xor eax, eax
mov al, byte [esi + 2]
shr eax, 3
shl eax, 0xb
mov edx, eax
xor eax, eax
mov al, byte [esi + 1]
shr eax, 2
shl eax, 5
or edx, eax
xor eax, eax
mov al, byte [esi]
shr eax, 3
or edx, eax
mov word [edi], dx
add edi, 2
add esi, 3
dec ecx
jne 0x5228be
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x5228bc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x7c00
jne 0x5233e4
cmp dword [ebp - 0x4c0], 0x3e0
jne 0x5233e4
cmp dword [ebp - 0x4bc], 0x1f
jne 0x5233e4
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp + 0x28]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp + 0x1c]
mov ecx, ebx
xor eax, eax
mov al, byte [esi + 2]
shr eax, 3
shl eax, 0xa
mov edx, eax
xor eax, eax
mov al, byte [esi + 1]
shr eax, 3
shl eax, 5
or edx, eax
xor eax, eax
mov al, byte [esi]
shr eax, 3
or eax, 0x8000
or edx, eax
mov word [edi], dx
add edi, 2
add esi, 3
dec ecx
jne 0x522937
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x522935
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 0x20
jne 0x5233e4
cmp dword [ebp - 0x4c4], 0xff0000
jne 0x5233e4
cmp dword [ebp - 0x4c0], 0xff00
jne 0x5233e4
cmp dword [ebp - 0x4bc], 0xff
jne 0x5233e4
push ebp
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp + 0x28]
mov eax, dword [ebp + 0x10]
push eax
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
pop ebp
mov ecx, ebx
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [edi], 0xff
inc edi
dec ecx
jne 0x5229d0
add edi, edx
add esi, ebp
dec eax
jne 0x5229ce
pop ebp
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 0x18
jne 0x522d19
cmp dword [ebp - 0x8ec], 0xff0000
jne 0x5233e4
cmp dword [ebp - 0x8e8], 0xff00
jne 0x5233e4
cmp dword [ebp - 0x8e4], 0xff
jne 0x5233e4
movzx eax, word [ebp - 0x4ce]
mov ebx, dword [ebp + 0xc]
mov edx, eax
imul eax, dword [ebp + 0x2c]
imul edx, esi
sub ebx, edx
movzx edx, word [ebp - 0x8f6]
add eax, dword [ebp + 8]
imul edx, esi
mov dword [ebp + 0x1c], ebx
mov ebx, dword [ebp + 0x18]
sub ebx, edx
mov edx, dword [ebp + 0x30]
imul edx, dword [ebp + 0xc]
add edx, eax
movzx eax, word [ebp - 0x8f6]
mov dword [ebp - 0x10], edx
mov edx, dword [edi + 4]
imul edx, dword [ebp + 0x18]
mov edi, dword [edi]
imul edi, eax
mov ax, word [ebp - 0x4d0]
add edx, ecx
add edi, edx
cmp ax, 0x10
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x28], edi
jne 0x522b4f
cmp dword [ebp - 0x4b8], 0x8000
jne 0x5233e4
cmp dword [ebp - 0x4c4], 0x7c00
jne 0x5233e4
cmp dword [ebp - 0x4c0], 0x3e0
jne 0x5233e4
cmp dword [ebp - 0x4bc], 0x1f
jne 0x5233e4
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x40]
mov ecx, dword [ebp - 8]
mov eax, dword [esi]
and eax, 0xffffff
cmp eax, ebx
je 0x522b10
xor edx, edx
and eax, 0xf8f8f8
shr eax, 3
mov dl, al
shr ax, 8
shl ax, 5
or dx, ax
shr eax, 0x10
shl eax, 0xa
or edx, eax
or edx, 0x8000
mov word [edi], dx
add edi, 2
add esi, 3
dec ecx
jne 0x522ad2
jmp 0x522b3b
xor edx, edx
and eax, 0xf8f8f8
shr eax, 3
mov dl, al
shr ax, 8
shl ax, 5
or dx, ax
shr eax, 0x10
shl eax, 0xa
or edx, eax
mov word [edi], dx
add edi, 2
add esi, 3
dec ecx
jne 0x522ad2
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x522acf
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 0x20
jne 0x5233e4
cmp dword [ebp - 0x4b8], 0xff000000
jne 0x5233e4
cmp dword [ebp - 0x4c4], 0xff0000
jne 0x5233e4
cmp dword [ebp - 0x4c0], 0xff00
jne 0x5233e4
cmp dword [ebp - 0x4bc], 0xff
jne 0x5233e4
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 0x40]
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor eax, eax
mov al, byte [esi + 2]
shl eax, 0x10
mov ax, word [esi]
cmp eax, edx
je 0x522bbc
or eax, 0xff000000
mov dword [edi], eax
add esi, 3
add edi, 4
dec ecx
jne 0x522ba8
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec ebx
jne 0x522ba5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x30], 0
jne 0x5233e4
mov ax, word [ebp - 0x8f8]
cmp ax, 0x20
jne 0x522f0f
cmp dword [ebp - 0x8e0], 0
jne 0x5233e4
cmp dword [ebp - 0x8ec], 0xff0000
jne 0x5233e4
cmp dword [ebp - 0x8e8], 0xff00
jne 0x5233e4
cmp dword [ebp - 0x8e4], 0xff
jne 0x5233e4
movzx eax, word [ebp - 0x4ce]
mov ebx, dword [ebp + 0xc]
mov edx, eax
imul eax, dword [ebp + 0x2c]
imul edx, esi
sub ebx, edx
movzx edx, word [ebp - 0x8f6]
add eax, dword [ebp + 8]
imul edx, esi
mov dword [ebp + 0x1c], ebx
mov ebx, dword [ebp + 0x18]
sub ebx, edx
mov edx, dword [ebp + 0x30]
imul edx, dword [ebp + 0xc]
add edx, eax
movzx eax, word [ebp - 0x8f6]
mov dword [ebp - 0x3c], edx
mov edx, dword [edi + 4]
imul edx, dword [ebp + 0x18]
mov edi, dword [edi]
imul edi, eax
add edx, ecx
add edi, edx
cmp word [ebp - 0x4d0], 0x10
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x28], edi
jne 0x5233e4
cmp dword [ebp - 0x4b8], 0
jne 0x5233e4
cmp dword [ebp - 0x4c4], 0xf800
jne 0x5233e4
cmp dword [ebp - 0x4c0], 0x7e0
jne 0x5233e4
cmp dword [ebp - 0x4bc], 0x1f
jne 0x5233e4
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp + 0x28]
mov ecx, dword [ebp - 8]
mov eax, dword [esi]
mov ebx, eax
mov edx, eax
and ebx, 0xf80000
and edx, 0xfc00
and eax, 0xf8
shr ebx, 8
shr edx, 5
shr eax, 3
or edx, ebx
or eax, edx
mov word [edi], ax
add edi, 2
add esi, 4
dec ecx
jne 0x522cd5
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x522cd2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 0x10
jne 0x5233e4
cmp dword [ebp - 0x8e0], 0
jne 0x5233e4
cmp dword [ebp - 0x8ec], 0xf800
jne 0x5233e4
cmp dword [ebp - 0x8e8], 0x7e0
jne 0x5233e4
cmp dword [ebp - 0x8e4], 0x1f
jne 0x5233e4
movzx eax, word [ebp - 0x4ce]
mov ebx, dword [ebp + 0xc]
mov edx, eax
imul eax, dword [ebp + 0x2c]
imul edx, esi
sub ebx, edx
movzx edx, word [ebp - 0x8f6]
add eax, dword [ebp + 8]
imul edx, esi
mov dword [ebp + 0x1c], ebx
mov ebx, dword [ebp + 0x18]
sub ebx, edx
mov edx, dword [ebp + 0x30]
imul edx, dword [ebp + 0xc]
add edx, eax
movzx eax, word [ebp - 0x8f6]
mov dword [ebp - 0x28], edx
mov edx, dword [edi + 4]
imul edx, dword [ebp + 0x18]
mov edi, dword [edi]
imul edi, eax
mov eax, dword [ebp + 0x40]
add edx, ecx
movzx ecx, byte [ebp + 0x42]
and ecx, 0xfffffff8
add edi, edx
shl ecx, 5
movzx edx, ah
or ecx, edx
and ecx, 0xfffffff8
movzx eax, al
add ecx, ecx
shr eax, 3
add ecx, ecx
or ecx, eax
mov ax, word [ebp - 0x4d0]
cmp ax, 0x10
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x28], ecx
jne 0x522e6a
cmp dword [ebp - 0x4b8], 0x8000
jne 0x5233e4
cmp dword [ebp - 0x4c4], 0x7c00
jne 0x5233e4
cmp dword [ebp - 0x4c0], 0x3e0
jne 0x5233e4
cmp dword [ebp - 0x4bc], 0x1f
jne 0x5233e4
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp + 0x28]
mov ecx, dword [ebp - 8]
xor eax, eax
mov ax, word [esi]
mov edx, eax
and edx, 0x1f
and eax, 0xffc0
shr eax, 1
or eax, edx
cmp eax, ebx
je 0x522e4a
or eax, 0x8000
mov word [edi], ax
add edi, 2
add esi, 2
dec ecx
jne 0x522e2e
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x522e2b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 0x20
jne 0x5233e4
cmp dword [ebp - 0x4b8], 0xff000000
jne 0x5233e4
cmp dword [ebp - 0x4c4], 0xff0000
jne 0x5233e4
cmp dword [ebp - 0x4c0], 0xff00
jne 0x5233e4
cmp dword [ebp - 0x4bc], 0xff
jne 0x5233e4
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
xor eax, eax
mov ax, word [esi]
mov edx, eax
mov ebx, eax
and edx, 0x1f
and eax, 0x7e0
and ebx, 0xf800
shl edx, 3
shl eax, 5
shl ebx, 8
or eax, edx
or eax, ebx
xor edx, edx
mov dx, word [esi]
cmp edx, dword [ebp + 0x28]
je 0x522ef0
or eax, 0xff000000
mov dword [edi], eax
add edi, 4
add esi, 2
dec ecx
jne 0x522ebd
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x522eba
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 0x10
jne 0x5233e4
cmp dword [ebp - 0x8e0], 0
jne 0x5233e4
mov eax, dword [ebp - 0x8ec]
cmp eax, 0xf800
jne 0x52321f
cmp dword [ebp - 0x8e8], 0x7e0
jne 0x5233e4
cmp dword [ebp - 0x8e4], 0x1f
jne 0x5233e4
movzx eax, word [ebp - 0x4ce]
mov ebx, dword [ebp + 0xc]
mov edx, eax
imul eax, dword [ebp + 0x2c]
imul edx, esi
sub ebx, edx
movzx edx, word [ebp - 0x8f6]
add eax, dword [ebp + 8]
imul edx, esi
mov dword [ebp + 0x1c], ebx
mov ebx, dword [ebp + 0x18]
sub ebx, edx
mov edx, dword [ebp + 0x30]
imul edx, dword [ebp + 0xc]
add edx, eax
movzx eax, word [ebp - 0x8f6]
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 4]
imul edx, dword [ebp + 0x18]
mov edi, dword [edi]
imul edi, eax
mov ax, word [ebp - 0x4d0]
add edx, ecx
add edi, edx
cmp ax, 0x18
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x28], edi
jne 0x523047
cmp dword [ebp - 0x4b8], 0
jne 0x5233e4
cmp dword [ebp - 0x4c4], 0xff0000
jne 0x5233e4
cmp dword [ebp - 0x4c0], 0xff00
jne 0x5233e4
cmp dword [ebp - 0x4bc], 0xff
jne 0x5233e4
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp + 0x28]
mov ecx, dword [ebp - 8]
mov ax, word [esi]
mov ebx, eax
mov edx, eax
and ebx, 0xf800
and edx, 0x7e0
and eax, 0x1f
shl ebx, 8
shl edx, 5
shl eax, 3
or edx, ebx
or eax, edx
mov word [edi], ax
shr eax, 0x10
mov byte [edi + 2], al
add edi, 3
add esi, 2
dec ecx
jne 0x522ffe
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x522ffb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 0x20
jne 0x5230d9
cmp dword [ebp - 0x4b8], 0
jne 0x5233e4
cmp dword [ebp - 0x4c4], 0xff0000
jne 0x5233e4
cmp dword [ebp - 0x4c0], 0xff00
jne 0x5233e4
cmp dword [ebp - 0x4bc], 0xff
jne 0x5233e4
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp + 0x28]
mov ecx, dword [ebp - 8]
mov ax, word [esi]
mov ebx, eax
mov edx, eax
and ebx, 0xf800
and edx, 0x7e0
and eax, 0x1f
shl ebx, 8
shl edx, 5
shl eax, 3
or edx, ebx
or eax, edx
mov dword [edi], eax
add edi, 4
add esi, 2
dec ecx
jne 0x523097
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x523094
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 0x10
jne 0x5233e4
cmp dword [ebp - 0x4b8], 0
jne 0x5233e4
cmp dword [ebp - 0x4c4], 0x7c00
jne 0x5233e4
cmp dword [ebp - 0x4c0], 0x3e0
jne 0x5233e4
cmp dword [ebp - 0x4bc], 0x1f
jne 0x5233e4
call fcn.004dc770
cmp eax, 1
jne 0x5231ba
mov eax, 0xffc0ffc0
mov ebx, 0x1f001f
movd mm0, eax
movd mm1, ebx
movq mm2, mm0
movq mm3, mm1
psllq mm2, 0x20
psllq mm3, 0x20
por mm0, mm2
por mm1, mm3
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp + 0x28]
mov ecx, dword [ebp - 8]
shr ecx, 2
je 0x52317c
movq mm2, qword [esi]
movq mm3, mm2
pand mm2, mm0
pand mm3, mm1
psrlq mm2, 1
por mm2, mm3
movq qword [edi], mm2
add edi, 8
add esi, 8
dec ecx
jne 0x52315d
mov ecx, dword [ebp - 8]
and ecx, 3
je 0x5231a4
mov ax, word [esi]
mov ebx, eax
and ebx, 0xffc0ffc0
and eax, 0x1f001f
shr ebx, 1
or eax, ebx
mov word [edi], ax
add edi, 2
add esi, 2
dec ecx
jne 0x523184
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x523155
emms
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp + 0x28]
mov ecx, dword [ebp - 8]
shr ecx, 1
je 0x5231e5
mov eax, dword [esi]
mov ebx, eax
and ebx, 0xffc0ffc0
and eax, 0x1f001f
shr ebx, 1
or eax, ebx
mov dword [edi], eax
add edi, 4
add esi, 4
dec ecx
jne 0x5231c7
test dword [ebp - 8], 1
je 0x52320b
mov ax, word [esi]
mov ebx, eax
and ebx, 0xffc0ffc0
and eax, 0x1f001f
shr ebx, 1
or eax, ebx
mov word [edi], ax
add edi, 2
add esi, 2
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x5231c0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x7c00
jne 0x5233e4
cmp dword [ebp - 0x8e8], 0x3e0
jne 0x5233e4
cmp dword [ebp - 0x8e4], 0x1f
jne 0x5233e4
movzx eax, word [ebp - 0x4ce]
mov ebx, dword [ebp + 0xc]
mov edx, eax
imul eax, dword [ebp + 0x2c]
imul edx, esi
sub ebx, edx
movzx edx, word [ebp - 0x8f6]
add eax, dword [ebp + 8]
imul edx, esi
mov dword [ebp + 0x1c], ebx
mov ebx, dword [ebp + 0x18]
sub ebx, edx
mov edx, dword [ebp + 0x30]
imul edx, dword [ebp + 0xc]
add edx, eax
movzx eax, word [ebp - 0x8f6]
mov dword [ebp - 0x10], edx
mov edx, dword [edi + 4]
imul edx, dword [ebp + 0x18]
mov edi, dword [edi]
imul edi, eax
add edx, ecx
add edi, edx
cmp word [ebp - 0x4d0], 0x10
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x28], edi
jne 0x5233e4
cmp dword [ebp - 0x4b8], 0
jne 0x5233e4
cmp dword [ebp - 0x4c4], 0xf800
jne 0x5233e4
cmp dword [ebp - 0x4c0], 0x7e0
jne 0x5233e4
cmp dword [ebp - 0x4bc], 0x1f
jne 0x5233e4
call fcn.004dc770
cmp eax, 1
jne 0x52337f
mov eax, 0x7fe07fe0
mov ebx, 0x3f003f
movd mm0, eax
movd mm1, ebx
movq mm2, mm0
movq mm3, mm1
psllq mm2, 0x20
psllq mm3, 0x20
por mm0, mm2
por mm1, mm3
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 0x28]
mov ecx, dword [ebp - 8]
shr ecx, 2
je 0x523341
movq mm2, qword [esi]
movq mm3, mm2
pand mm2, mm0
pand mm3, mm1
psllq mm2, 1
por mm2, mm3
movq qword [edi], mm2
add edi, 8
add esi, 8
dec ecx
jne 0x523322
mov ecx, dword [ebp - 8]
and ecx, 3
je 0x523369
mov ax, word [esi]
mov ebx, eax
and ebx, 0x7fe07fe0
and eax, 0x3f003f
shl ebx, 1
or eax, ebx
mov word [edi], ax
add edi, 2
add esi, 2
dec ecx
jne 0x523349
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x52331a
emms
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 0x28]
mov ecx, dword [ebp - 8]
shr ecx, 1
je 0x5233aa
mov eax, dword [esi]
mov ebx, eax
and ebx, 0x7fe07fe0
and eax, 0x3f003f
shl ebx, 1
or eax, ebx
mov dword [edi], eax
add edi, 4
add esi, 4
dec ecx
jne 0x52338c
test dword [ebp - 8], 1
je 0x5233d0
mov ax, word [esi]
mov ebx, eax
and ebx, 0x7fe07fe0
and eax, 0x3f003f
shl ebx, 1
or eax, ebx
mov word [edi], ax
add edi, 2
add esi, 2
add edi, dword [ebp + 0x1c]
add esi, dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x523385
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp - 0x8f4]
cmp cl, byte [ebp - 0x4cc]
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0xa], 0
mov byte [ebp + 0x13], 0
jne 0x523414
mov al, byte [ebp - 0x8f3]
cmp al, byte [ebp - 0x4cb]
mov byte [ebp - 0xb], 0
je 0x523418
mov byte [ebp - 0xb], 1
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x523431
mov dl, byte [ebp - 0x4c9]
cmp byte [ebp - 0xd1c], dl
je 0x523431
mov byte [ebp - 0xb], 1
movzx edx, word [ebp - 0x8f8]
lea edi, [edx - 8]
cmp edi, 0x18
ja case.0x523447.9
movzx edx, byte [edi + 0x523e90]
jmp dword [edx*4 + 0x523e7c]
mov byte [ebp + 0x1f], 0
jmp case.0x523447.9
mov byte [ebp + 0x1f], 1
jmp case.0x523447.9
mov byte [ebp + 0x1f], 2
jmp case.0x523447.9
mov byte [ebp + 0x1f], 3
mov edx, dword [ebp - 0x8e0]
or edx, dword [ebp - 0x8e4]
or edx, dword [ebp - 0x8e8]
or edx, dword [ebp - 0x8ec]
cmp dword [ebp + 0x3c], 0
mov dword [ebp - 0xa0], edx
jne 0x5234c1
cmp edi, 0x18
ja case.0x523494.1
movzx edi, byte [edi + 0x523ec0]
jmp dword [edi*4 + 0x523eac]
and dword [ebp + 0x40], 0xffff
jmp case.0x523494.1
and dword [ebp + 0x40], 0xffffff
jmp case.0x523494.1
and dword [ebp + 0x40], 0xff
cmp word [ebp - 0x8f8], 8
je 0x5234c1
and dword [ebp + 0x40], edx
movzx edx, word [ebp - 0x4d0]
add edx, 0xfffffff8
cmp edx, 0x18
ja case.0x5234d7.9
movzx edx, byte [edx + 0x523ef0]
jmp dword [edx*4 + 0x523edc]
mov byte [ebp - 9], 0
jmp case.0x5234d7.9
mov byte [ebp - 9], 1
jmp case.0x5234d7.9
mov byte [ebp - 9], 2
jmp case.0x5234d7.9
mov byte [ebp - 9], 3
movzx edx, word [ebp - 0xd20]
add edx, 0xfffffff8
cmp edx, 0x18
ja case.0x52350a.9
movzx edx, byte [edx + 0x523f20]
jmp dword [edx*4 + 0x523f0c]
mov byte [ebp + 0x2b], 0
jmp case.0x52350a.9
mov byte [ebp + 0x2b], 1
jmp case.0x52350a.9
mov byte [ebp + 0x2b], 2
jmp case.0x52350a.9
mov byte [ebp + 0x2b], 3
cmp byte [ebp - 0xb], 1
jne 0x523794
mov dl, byte [ebp - 0x8f3]
mov bl, byte [ebp - 0x8f2]
sub cl, byte [ebp - 0x4cc]
sub dl, byte [ebp - 0x4cb]
sub bl, byte [ebp - 0x4ca]
test eax, eax
mov al, byte [ebp - 0xd1c]
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], dl
mov byte [ebp - 0xa], bl
jne 0x523568
mov al, byte [ebp - 0x8f1]
sub al, byte [ebp - 0x4c9]
mov edi, 1
shl edi, cl
mov byte [ebp + 0x13], al
mov cl, dl
mov eax, 1
shl eax, cl
movzx ecx, bl
mov edx, 1
shl edx, cl
movzx ecx, byte [ebp + 0x13]
mov ebx, 1
shl ebx, cl
cmp dword [ebp + 0x44], 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], ebx
jne 0x52363f
movzx eax, byte [ebp - 0x8f0]
movzx ecx, byte [ebp - 0x8ef]
movzx edx, byte [ebp - 0x8ee]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x58], edx
xor eax, eax
mov edx, dword [eax + 0x6d1b00]
mov ecx, dword [ebp - 0x3c]
mov ebx, edi
imul ebx, edx
shr ebx, 4
shl ebx, cl
mov ecx, dword [ebp - 0x40]
mov dword [ebp + eax - 0xd60], ebx
mov ebx, dword [ebp - 0x28]
imul ebx, edx
shr ebx, 4
shl ebx, cl
mov ecx, dword [ebp - 0x58]
mov dword [ebp + eax - 0xde0], ebx
mov ebx, dword [ebp - 0x10]
imul ebx, edx
shr ebx, 4
shl ebx, cl
cmp dword [ebp - 0x38], 0
mov cl, byte [ebp - 0xd18]
mov dword [ebp + eax - 0xda0], ebx
jne 0x52361f
mov cl, byte [ebp - 0x8ed]
mov ebx, dword [ebp - 0x20]
imul ebx, edx
shr ebx, 4
shl ebx, cl
add eax, 4
cmp eax, 0x40
mov dword [ebp + eax - 0xe24], ebx
jl 0x5235c9
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
movzx ebx, byte [ebp - 0x8f0]
add edi, 0xffffffff
mov ecx, ebx
shl edi, cl
add eax, 0xffffffff
add edx, 0xffffffff
mov dword [ebp - 0x60], edi
movzx edi, byte [ebp - 0x8ef]
mov ecx, edi
shl eax, cl
movzx ecx, byte [ebp - 0x8ee]
shl edx, cl
mov cl, byte [ebp - 0xd18]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x38]
test edx, edx
jne 0x523683
mov cl, byte [ebp - 0x8ed]
mov eax, dword [ebp - 0x20]
add eax, 0xffffffff
shl eax, cl
mov ecx, ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x4b8]
or eax, dword [ebp - 0x4bc]
or eax, dword [ebp - 0x4c0]
or eax, dword [ebp - 0x4c4]
not eax
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8ec]
shr eax, cl
mov ecx, edi
xor edi, edi
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x8e8]
shr eax, cl
movzx ecx, byte [ebp - 0x8ee]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x8e4]
shr eax, cl
cmp edx, edi
mov dword [ebp - 0x9c], eax
je 0x5236f7
mov eax, dword [ebp - 0xd14]
mov cl, byte [ebp - 0xd18]
jmp 0x523703
mov eax, dword [ebp - 0x8e0]
mov cl, byte [ebp - 0x8ed]
shr eax, cl
movzx ecx, byte [ebp - 0x4cc]
sub ecx, dword [ebp - 0x8f4]
mov dword [ebp - 0x68], eax
mov eax, 1
shl eax, cl
movzx ecx, byte [ebp - 0x4cb]
sub ecx, dword [ebp - 0x8f3]
sub eax, 1
mov dword [ebp - 0x94], eax
mov eax, 1
shl eax, cl
movzx ecx, byte [ebp - 0x4ca]
sub ecx, dword [ebp - 0x8f2]
sub eax, 1
mov dword [ebp - 0xa8], eax
mov eax, 1
shl eax, cl
sub eax, 1
cmp edx, edi
mov dword [ebp - 0x84], eax
je 0x52376b
mov al, byte [ebp - 0xd1c]
jmp 0x523772
movzx eax, byte [ebp - 0x8f1]
movzx ecx, byte [ebp - 0x4c9]
sub ecx, eax
mov eax, 1
shl eax, cl
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x48], edi
sub eax, 1
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x44], edi
cmp dword [ebp + 0x3c], 0
je 0x52382e
mov eax, dword [ebp + 0x40]
mov ecx, eax
push 0xff
and ecx, 0xff
push ecx
movzx edx, ah
movzx eax, byte [ebp + 0x42]
push edx
push eax
lea ecx, [ebp - 0x8f8]
push ecx
call fcn.0051d8d0
add esp, 0x14
cmp word [ebp - 0x8f8], 8
jne 0x5237f4
movzx edx, byte [ebp + eax*4 - 0x8d6]
movzx ecx, byte [ebp + eax*4 - 0x8d7]
mov dword [ebp - 0x6c], edx
movzx edx, byte [ebp + eax*4 - 0x8d8]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x70], edx
jmp 0x52382e
movzx ecx, byte [ebp - 0x8f0]
mov edx, eax
and edx, dword [ebp - 0x8ec]
shr edx, cl
movzx ecx, byte [ebp - 0x8ef]
mov dword [ebp - 0x6c], edx
mov edx, eax
and edx, dword [ebp - 0x8e8]
and eax, dword [ebp - 0x8e4]
shr edx, cl
movzx ecx, byte [ebp - 0x8ee]
shr eax, cl
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x70], eax
cmp dword [ebp + 0x38], 0
movzx ecx, word [ebp - 0x4ce]
jne 0x523904
mov eax, dword [ebp + 0xc]
mov edx, ecx
imul edx, esi
sub eax, edx
movzx edx, word [ebp - 0x8f6]
mov edi, edx
imul edi, esi
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18]
sub eax, edi
mov dword [ebp - 0x40], eax
movzx eax, word [ebp - 0xd1e]
mov edi, eax
imul edi, esi
mov esi, dword [ebp + 0x24]
sub esi, edi
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp + 0x30]
imul esi, dword [ebp + 0xc]
mov edi, ecx
imul edi, dword [ebp + 0x2c]
add edi, dword [ebp + 8]
add esi, edi
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x38], esi
mov esi, dword [ecx]
mov ecx, dword [ecx + 4]
imul eax, esi
mov edi, edx
mov edx, ecx
imul ecx, dword [ebp + 0x24]
imul edi, esi
imul edx, dword [ebp + 0x18]
add edi, dword [ebp + 0x14]
add ecx, dword [ebp + 0x20]
add edx, edi
add eax, ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x10], 0
jle 0x523e38
cmp dword [ebp - 8], 0
mov dword [ebp - 0x28], 0
jle 0x523e14
movzx eax, byte [ebp + 0x1f]
mov edx, dword [ebp + 0x34]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x38]
mov esi, dword [ebp - 0x98]
cmp esi, 3
ja case.default.0x5238fd
jmp dword [esi*4 + 0x523f3c]
movzx edx, word [ebp - 0x8f6]
mov eax, ecx
imul eax, esi
add eax, dword [ebp + 0xc]
mov edi, edx
imul edi, esi
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18]
sub eax, edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x40], eax
movzx eax, word [ebp - 0xd1e]
mov ebx, eax
imul ebx, esi
sub edi, ebx
cmp dword [ebp + 0x38], 1
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x3c], edi
jne 0x523877
mov edi, dword [ebp + 0x2c]
lea edi, [edi + esi - 1]
mov esi, dword [ebp + 0x30]
imul edi, ecx
imul esi, dword [ebp + 0xc]
add edi, dword [ebp + 8]
add esi, edi
neg ecx
jmp 0x523889
movzx edx, word [ecx]
jmp 0x523982
movzx edx, byte [ecx + 2]
movzx esi, word [ecx]
shl edx, 0x10
or edx, esi
jmp 0x523982
mov edx, dword [ecx]
jmp 0x523982
movzx edx, byte [ecx]
mov edx, dword [ebp + edx*4 - 0x8d8]
mov dword [ebp + 0x34], edx
cmp dword [ebp + 0x50], 0
je 0x5239a7
cmp byte [ebp + 0x1f], 3
je 0x52399e
mov esi, edx
and esi, dword [ebp - 0xa0]
cmp esi, dword [ebp + 0x40]
jmp 0x5239a1
cmp edx, dword [ebp + 0x40]
je 0x523dec
cmp dword [ebp - 0x38], 1
jne case.default.0x5239b6
movzx eax, byte [ebp + 0x2b]
cmp eax, 3
ja case.default.0x5239b6
jmp dword [eax*4 + 0x523f4c]
mov eax, dword [ebp - 0x34]
movzx esi, word [eax]
mov dword [ebp - 0x54], esi
jmp 0x5239fb
mov eax, dword [ebp - 0x34]
movzx esi, byte [eax + 2]
movzx ecx, word [eax]
shl esi, 0x10
or esi, ecx
mov dword [ebp - 0x54], esi
jmp 0x5239fb
mov eax, dword [ebp - 0x34]
mov esi, dword [eax]
mov dword [ebp - 0x54], esi
jmp 0x5239fb
mov ecx, dword [ebp - 0x34]
movzx eax, byte [ecx]
mov esi, dword [ebp + eax*4 - 0xd00]
mov dword [ebp - 0x54], esi
jmp 0x5239fb
mov esi, dword [ebp - 0x54]
movzx ecx, byte [ebp - 0x8f0]
mov ebx, edx
and ebx, dword [ebp - 0x8ec]
mov eax, edx
and eax, dword [ebp - 0x8e8]
shr ebx, cl
movzx ecx, byte [ebp - 0x8ef]
shr eax, cl
movzx ecx, byte [ebp - 0x8ee]
mov edi, edx
and edi, dword [ebp - 0x8e4]
mov dword [ebp - 0x1c], ebx
shr edi, cl
cmp byte [ebp - 0x4c9], 0
mov dword [ebp - 0x14], eax
je 0x523a66
cmp dword [ebp + 0x3c], 1
jne 0x523a66
cmp ebx, dword [ebp - 0x6c]
jne 0x523a56
cmp eax, dword [ebp - 0x7c]
jne 0x523a56
cmp edi, dword [ebp - 0x70]
jne 0x523a56
xor esi, esi
jmp 0x523ab9
mov esi, dword [ebp - 0x4b8]
mov cl, byte [ebp - 0x4c5]
shr esi, cl
jmp 0x523ab9
cmp dword [ebp - 0x38], 1
jne 0x523a9a
movzx ecx, byte [ebp - 0xd18]
and esi, dword [ebp - 0xd14]
shr esi, cl
mov cl, byte [ebp + 0x13]
test cl, cl
je 0x523ab1
jns 0x523aaf
movzx ecx, cl
not ecx
add ecx, 1
mov eax, esi
shl eax, cl
mov dword [ebp - 0x20], eax
mov ecx, eax
jmp 0x523b30
cmp byte [ebp - 0x8f1], 0
jne 0x523af8
mov esi, dword [ebp - 0x4b8]
mov cl, byte [ebp - 0x4c5]
shr esi, cl
cmp dword [ebp + 0x4c], 0
je 0x523ab9
mov esi, ebx
mov cl, byte [ebp - 0x16]
test cl, cl
je 0x523b4f
jns 0x523b4a
movzx ecx, cl
not ecx
add ecx, 1
mov eax, ebx
shl eax, cl
xor edx, edx
mov ecx, eax
mov eax, ebx
imul eax, dword [ebp - 0x94]
div dword [ebp - 0x90]
mov edx, dword [ebp + 0x34]
add ecx, eax
mov eax, dword [ebp - 0x14]
mov ebx, ecx
mov dword [ebp - 0x1c], ecx
jmp 0x523b4f
cmp dword [ebp - 0x4b8], 0
jne 0x523b05
xor esi, esi
jmp 0x523ab1
movzx ecx, byte [ebp - 0x8ed]
mov esi, edx
and esi, dword [ebp - 0x8e0]
shr esi, cl
mov cl, byte [ebp + 0x13]
test cl, cl
je 0x523ab1
jns 0x523aaf
movzx ecx, cl
not ecx
add ecx, 1
mov eax, esi
shl eax, cl
mov dword [ebp - 0x20], eax
mov ecx, eax
mov eax, esi
imul eax, dword [ebp - 0x78]
xor edx, edx
div dword [ebp - 0x68]
mov edx, dword [ebp + 0x34]
add ecx, eax
mov eax, dword [ebp - 0x14]
mov esi, ecx
jmp 0x523ab1
shr ebx, cl
mov dword [ebp - 0x1c], ebx
mov cl, byte [ebp - 0x15]
test cl, cl
je 0x523b8b
jns 0x523b86
mov eax, dword [ebp - 0x14]
mov ebx, eax
imul eax, dword [ebp - 0xa8]
xor edx, edx
div dword [ebp - 0xa4]
mov edx, dword [ebp + 0x34]
movzx ecx, cl
not ecx
add ecx, 1
shl ebx, cl
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
jmp 0x523b8b
shr eax, cl
mov dword [ebp - 0x14], eax
mov cl, byte [ebp - 0xa]
test cl, cl
je 0x523bc1
jns 0x523bbf
movzx ecx, cl
not ecx
add ecx, 1
mov eax, edi
shl eax, cl
xor edx, edx
mov ecx, eax
mov eax, edi
imul eax, dword [ebp - 0x84]
div dword [ebp - 0x9c]
mov edx, dword [ebp + 0x34]
add ecx, eax
mov eax, dword [ebp - 0x14]
mov edi, ecx
jmp 0x523bc1
shr edi, cl
cmp dword [ebp + 0x48], 0
je 0x523bcd
xor ebx, ebx
xor edi, edi
xor eax, eax
movzx ecx, byte [ebp - 0x4c5]
mov dword [ebp - 0x20], ecx
movzx ecx, byte [ebp - 0x4c6]
shl edi, cl
movzx ecx, byte [ebp - 0x4c7]
shl eax, cl
movzx ecx, byte [ebp - 0x4c8]
shl ebx, cl
mov ecx, dword [ebp - 0x20]
or edi, eax
shl esi, cl
or edi, ebx
or edi, esi
cmp byte [ebp - 0xb], 0
mov ebx, edi
je 0x523da4
and edi, dword [ebp - 0x4b8]
mov ecx, ebx
and ecx, dword [ebp - 0x4c0]
mov eax, ebx
and eax, dword [ebp - 0x4c4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x44]
mov esi, ebx
and esi, dword [ebp - 0x4bc]
sub ecx, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x88], esi
je 0x523cd7
sub ecx, 1
jne 0x523d61
mov eax, edx
and eax, dword [ebp - 0x60]
mov ecx, edx
add dword [ebp - 0x48], eax
and ecx, dword [ebp - 0x5c]
mov eax, edx
and eax, dword [ebp - 0x30]
add dword [ebp - 0x4c], ecx
add dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
mov ecx, edx
and ecx, dword [ebp - 0x24]
add dword [ebp - 0x44], ecx
cmp dword [ebp - 0x60], eax
movzx ecx, byte [ebp - 0x4c8]
sbb eax, eax
neg eax
shl eax, cl
mov ecx, dword [ebp - 0x4c]
add dword [ebp - 0x14], eax
cmp dword [ebp - 0x5c], ecx
movzx ecx, byte [ebp - 0x4c7]
sbb eax, eax
neg eax
shl eax, cl
mov ecx, dword [ebp - 0x50]
add dword [ebp - 0x1c], eax
cmp dword [ebp - 0x30], ecx
movzx ecx, byte [ebp - 0x4c6]
sbb eax, eax
neg eax
shl eax, cl
mov ecx, dword [ebp - 0x44]
add esi, eax
cmp dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x20]
sbb eax, eax
neg eax
shl eax, cl
mov ecx, dword [ebp - 0x60]
and dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x30]
and dword [ebp - 0x50], ecx
add edi, eax
mov eax, dword [ebp - 0x5c]
and dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x24]
and dword [ebp - 0x44], eax
jmp 0x523d5e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
and ecx, 3
and eax, 3
lea eax, [eax + ecx*4]
add eax, eax
add eax, eax
mov ecx, edx
and ecx, dword [ebp - 0x60]
cmp dword [ebp + eax - 0xd60], ecx
movzx ecx, byte [ebp - 0x4c8]
sbb esi, esi
neg esi
shl esi, cl
mov ecx, edx
and ecx, dword [ebp - 0x5c]
add dword [ebp - 0x14], esi
cmp dword [ebp + eax - 0xde0], ecx
movzx ecx, byte [ebp - 0x4c7]
sbb esi, esi
neg esi
shl esi, cl
mov ecx, edx
and ecx, dword [ebp - 0x30]
add dword [ebp - 0x1c], esi
cmp dword [ebp + eax - 0xda0], ecx
sbb ecx, ecx
neg ecx
mov esi, ecx
movzx ecx, byte [ebp - 0x4c6]
shl esi, cl
mov ecx, esi
mov esi, dword [ebp - 0x88]
add esi, ecx
mov ecx, edx
and ecx, dword [ebp - 0x24]
cmp dword [ebp + eax - 0xe20], ecx
mov ecx, dword [ebp - 0x20]
sbb eax, eax
neg eax
shl eax, cl
add edi, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x4c4]
cmp eax, ecx
jbe 0x523d6e
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x4c0]
cmp eax, ecx
jbe 0x523d7d
mov eax, ecx
mov ecx, dword [ebp - 0x4bc]
cmp esi, ecx
jbe 0x523d89
mov esi, ecx
mov ecx, dword [ebp - 0x4b8]
cmp edi, ecx
jbe 0x523d95
mov edi, ecx
and ebx, dword [ebp - 0x8c]
or ebx, edi
or ebx, esi
or ebx, eax
or ebx, dword [ebp - 0x14]
movzx eax, byte [ebp - 9]
cmp eax, 3
ja case.default.0x523dad
jmp dword [eax*4 + 0x523f5c]
mov ecx, dword [ebp - 0x4b4]
mov eax, dword [ebp + 0x38]
or ecx, ebx
mov word [eax], cx
jmp 0x523de9
mov eax, dword [ebp + 0x38]
mov word [eax], bx
shr ebx, 0x10
mov byte [eax + 2], bl
jmp 0x523de9
or ebx, dword [ebp - 0x4b4]
mov eax, dword [ebp + 0x38]
mov dword [eax], ebx
jmp 0x523de9
mov eax, dword [ebp + 0x38]
mov byte [eax], bl
jmp 0x523de9
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
movzx edi, word [ebp - 0xd1e]
add eax, dword [ebp - 0x74]
add ecx, dword [ebp - 0x80]
add dword [ebp - 0x34], edi
add esi, 1
cmp esi, dword [ebp - 8]
mov dword [ebp - 0x28], esi
mov dword [ebp + 0x38], eax
mov dword [ebp - 0x2c], ecx
jl 0x5238ee
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x10]
add dword [ebp + 0x38], edx
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
add dword [ebp - 0x2c], ecx
add dword [ebp - 0x34], edx
add eax, 1
cmp eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
jl 0x5238ca
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret