Function at 0x529170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ecx]
push esi
push edi
mov dword [ebp - 0x34], ecx
mov eax, dword [eax + 0x7c]
call eax
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x20], eax
call fcn.00532d60
movsd xmm4, qword [ebp + 0x10]
movsd xmm5, qword [ebp + 0x20]
movsd xmm2, qword [ebp + 8]
movsd xmm3, qword [ebp + 0x18]
cvttsd2si edx, xmm4
mov dword [ebp - 4], eax
cvttsd2si edi, xmm5
mov dword [ebp - 0x18], edx
cvttsd2si esi, xmm2
mov dword [ebp - 0x38], edi
cvttsd2si eax, xmm3
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], eax
cmp edx, edi
jle 0x5291ed
mov ecx, edx
mov eax, esi
mov esi, dword [ebp - 0x28]
mov edx, edi
movaps xmm0, xmm2
mov dword [ebp - 0x1c], esi
movaps xmm1, xmm4
mov dword [ebp - 0x18], edx
mov edi, ecx
mov dword [ebp - 0x28], eax
movaps xmm2, xmm3
mov dword [ebp - 0x38], edi
movaps xmm4, xmm5
movaps xmm3, xmm0
movaps xmm5, xmm1
subsd xmm3, xmm2
mov ecx, eax
subsd xmm5, xmm4
sub edi, edx
sub ecx, esi
mov dword [ebp - 8], edi
movsd qword [ebp + 0x18], xmm3
movsd qword [ebp + 0x20], xmm5
jns 0x529216
xorps xmm3, xmmword [0x5d99f0]
movsd qword [ebp + 0x18], xmm3
mov eax, ecx
movd xmm0, edx
sar eax, 0x1f
and eax, 0xfffffffe
inc eax
mov dword [ebp - 0x24], eax
mov eax, esi
sub eax, dword [ebp - 0x28]
test ecx, ecx
cvtdq2pd xmm0, xmm0
cmovns eax, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax + 0xc]
subsd xmm4, xmm0
mov eax, dword [ebp - 0x34]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0x3c], ecx
mov eax, dword [eax + 0x20]
mov dword [ebp + 0x14], eax
andps xmm4, xmmword [0x5dad60]
subsd xmm2, xmm0
imul eax, edx
andps xmm2, xmmword [0x5dad60]
add eax, esi
mulsd xmm2, xmm4
cmp ecx, 0xff
mov ecx, dword [ebp - 0x20]
mulsd xmm2, qword [0x5e6630]
lea esi, [ecx + eax*4]
movaps xmm0, xmm2
je 0x5298be
mov dword [ebp + 0xc], esi
call fcn.0059c3d0
mov ecx, eax
mov esi, dword [esi]
shr ecx, 8
not cl
mov dword [ebp - 0xc], eax
movzx eax, cl
mov ecx, dword [ebp - 0x3c]
inc ecx
mov dword [ebp - 0x2c], esi
imul eax, ecx
sar eax, 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov ecx, eax
and ecx, 0xff0000
mov dword [ebp - 0x14], ecx
movzx ecx, al
and eax, 0xff00
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 0x30], edi
jl 0x529572
movsd xmm1, qword [ebp + 0x20]
divsd xmm1, qword [ebp + 0x18]
movsd xmm0, qword [0x5e6630]
mulsd xmm0, xmm1
call fcn.0059c3d0
mov dword [ebp - 0x1c], eax
mov ecx, 0xff
shr esi, 0x18
mov eax, 0x80808081
sub ecx, esi
imul ecx, dword [ebp - 0x3c]
imul ecx
imul eax, dword [ebp - 0x3c], 0xff
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
add ecx, esi
idiv ecx
mov dword [ebp + 0x1c], ecx
mov edx, 0x100
mov ecx, dword [ebp - 0x10]
mov esi, eax
mov eax, dword [ebp - 0x2c]
sub edx, esi
imul ecx, esi
movzx edi, al
imul edi, edx
add edi, ecx
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 0xff00
imul ecx, edx
and edi, 0xff00
imul eax, esi
add ecx, eax
mov eax, dword [ebp - 0x14]
and ecx, 0xff0000
imul eax, esi
or edi, ecx
mov ecx, dword [ebp - 0x2c]
and ecx, 0xff0000
imul ecx, edx
add ecx, eax
mov eax, dword [ebp + 0x1c]
and ecx, 0xff0000ff
shl eax, 0x18
or edi, ecx
mov ecx, dword [ebp + 0xc]
shr edi, 8
or edi, eax
mov eax, dword [ebp - 0x30]
add eax, 0xffffffff
mov dword [ecx], edi
mov dword [ebp + 0x24], eax
je 0x529804
mov eax, dword [ebp + 0x14]
lea edx, [eax*4]
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x1c], edx
lea esi, [eax*4]
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
cmp eax, 0x10000
jb 0x5293d2
movzx eax, ax
add ecx, edx
inc dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x28]
add ecx, esi
shr eax, 8
mov dword [ebp - 0x30], eax
not al
mov dword [ebp + 0xc], ecx
mov esi, dword [ecx]
mov ecx, 0xff
mov edi, dword [edx + 0xc]
movzx eax, al
inc edi
imul edi, eax
mov eax, 0x80808081
shr esi, 0x18
sub ecx, esi
sar edi, 8
imul ecx, edi
imul ecx
imul eax, edi, 0xff
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
add ecx, esi
idiv ecx
mov dword [ebp - 0x3c], ecx
mov edx, 0x100
mov ecx, dword [ebp + 0xc]
mov esi, eax
sub edx, esi
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x10]
movzx edi, al
imul ecx, esi
imul edi, edx
add edi, ecx
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 0xff00
imul eax, esi
and edi, 0xff00
imul ecx, edx
add ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 0xff0000
or edi, ecx
mov ecx, dword [eax]
mov eax, dword [ebp - 0x14]
and ecx, 0xff0000
imul eax, esi
imul ecx, edx
add ecx, eax
mov eax, dword [ebp - 0x3c]
and ecx, 0xff0000ff
shl eax, 0x18
or edi, ecx
mov ecx, dword [ebp + 0xc]
shr edi, 8
or edi, eax
mov eax, dword [ebp - 0x34]
mov dword [ecx], edi
mov eax, dword [eax + 0x24]
dec eax
cmp dword [ebp - 0x18], eax
jge 0x52955d
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax + ecx]
mov ecx, 0xff
mov eax, dword [ebp + 0x28]
shr esi, 0x18
sub ecx, esi
mov edi, dword [eax + 0xc]
mov eax, dword [ebp - 0x30]
inc edi
movzx eax, al
imul edi, eax
mov eax, 0x80808081
sar edi, 8
imul ecx, edi
imul ecx
imul eax, edi, 0xff
mov edi, dword [ebp + 0x1c]
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
add ecx, esi
idiv ecx
mov dword [ebp - 0x30], ecx
mov edx, 0x100
mov ecx, dword [ebp + 0xc]
mov esi, eax
sub edx, esi
mov dword [ebp - 0x3c], esi
mov eax, dword [edi + ecx]
mov ecx, dword [ebp - 0x10]
imul ecx, esi
movzx edi, al
imul edi, edx
add edi, ecx
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 0xff00
imul ecx, edx
and edi, 0xff00
imul eax, esi
mov esi, dword [ebp + 0x1c]
add ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 0xff0000
or edi, ecx
mov ecx, dword [esi + eax]
mov eax, dword [ebp - 0x14]
and ecx, 0xff0000
imul eax, dword [ebp - 0x3c]
imul ecx, edx
mov edx, esi
add ecx, eax
mov eax, dword [ebp - 0x30]
and ecx, 0xff0000ff
shl eax, 0x18
or edi, ecx
mov ecx, dword [ebp + 0xc]
shr edi, 8
or edi, eax
mov dword [edx + ecx], edi
jmp 0x529560
mov edx, dword [ebp + 0x1c]
sub dword [ebp + 0x24], 1
mov esi, dword [ebp - 0x2c]
jne 0x5293b7
jmp 0x529804
movsd xmm0, qword [ebp + 0x18]
divsd xmm0, qword [ebp + 0x20]
mulsd xmm0, qword [0x5e6630]
call fcn.0059c3d0
mov dword [ebp + 0x24], eax
mov ecx, 0xff
shr esi, 0x18
mov eax, 0x80808081
sub ecx, esi
imul ecx, dword [ebp - 0x3c]
imul ecx
imul eax, dword [ebp - 0x3c], 0xff
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
add ecx, esi
idiv ecx
mov dword [ebp + 0x1c], ecx
mov edx, 0x100
mov ecx, dword [ebp - 0x10]
mov esi, eax
mov eax, dword [ebp - 0x2c]
sub edx, esi
imul ecx, esi
movzx edi, al
imul edi, edx
add edi, ecx
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 0xff00
imul ecx, edx
and edi, 0xff00
imul eax, esi
add ecx, eax
mov eax, dword [ebp - 0x14]
and ecx, 0xff0000
imul eax, esi
or edi, ecx
mov ecx, dword [ebp - 0x2c]
and ecx, 0xff0000
imul ecx, edx
add ecx, eax
mov eax, dword [ebp + 0x1c]
and ecx, 0xff0000ff
shl eax, 0x18
or edi, ecx
mov ecx, dword [ebp + 0xc]
shr edi, 8
or edi, eax
sub dword [ebp - 8], 1
mov dword [ecx], edi
je 0x529804
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x24]
lea edi, [eax*4]
dec eax
lea esi, [edx*4]
mov dword [ebp - 0x18], edi
mov dword [ebp + 0x1c], esi
mov dword [ebp - 0x30], eax
nop dword [eax + eax]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x24]
mov dword [ebp - 0xc], eax
cmp eax, 0x10000
jb 0x52966b
movzx eax, ax
add ecx, esi
add dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], eax
mov esi, dword [ecx + edi]
add ecx, edi
mov edx, dword [ebp + 0x28]
shr eax, 8
mov dword [ebp - 0x2c], eax
not al
mov dword [ebp + 0xc], ecx
mov ecx, 0xff
mov edi, dword [edx + 0xc]
movzx eax, al
inc edi
imul edi, eax
mov eax, 0x80808081
shr esi, 0x18
sub ecx, esi
sar edi, 8
imul ecx, edi
imul ecx
imul eax, edi, 0xff
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
add ecx, esi
idiv ecx
mov dword [ebp - 0x3c], ecx
mov edx, 0x100
mov ecx, dword [ebp + 0xc]
mov esi, eax
sub edx, esi
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x10]
imul ecx, esi
movzx edi, al
imul edi, edx
add edi, ecx
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 0xff00
imul ecx, edx
and edi, 0xff00
imul eax, esi
add ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 0xff0000
or edi, ecx
mov ecx, dword [eax]
mov eax, dword [ebp - 0x14]
and ecx, 0xff0000
imul eax, esi
imul ecx, edx
add ecx, eax
mov eax, dword [ebp - 0x3c]
and ecx, 0xff0000ff
shl eax, 0x18
or edi, ecx
mov ecx, dword [ebp + 0xc]
shr edi, 8
or edi, eax
mov eax, dword [ebp - 0x30]
mov dword [ecx], edi
cmp dword [ebp - 0x1c], eax
jge 0x5297f1
mov eax, dword [ebp + 0x28]
mov edi, dword [eax + 0xc]
mov eax, dword [ebp - 0x2c]
inc edi
movzx eax, al
imul edi, eax
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax + ecx]
mov ecx, 0xff
sar edi, 8
mov eax, 0x80808081
shr esi, 0x18
sub ecx, esi
imul ecx, edi
imul ecx
imul eax, edi, 0xff
mov edi, dword [ebp + 0x1c]
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
add ecx, esi
idiv ecx
mov dword [ebp - 0x2c], ecx
mov edx, 0x100
mov ecx, dword [ebp + 0xc]
mov esi, eax
sub edx, esi
mov dword [ebp - 0x3c], esi
mov eax, dword [edi + ecx]
mov ecx, dword [ebp - 0x10]
imul ecx, esi
movzx edi, al
imul edi, edx
add edi, ecx
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 0xff00
imul ecx, edx
and edi, 0xff00
imul eax, esi
mov esi, dword [ebp + 0x1c]
add ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 0xff0000
or edi, ecx
mov ecx, dword [esi + eax]
mov eax, dword [ebp - 0x14]
and ecx, 0xff0000
imul eax, dword [ebp - 0x3c]
imul ecx, edx
add ecx, eax
mov eax, dword [ebp - 0x2c]
and ecx, 0xff0000ff
shl eax, 0x18
or edi, ecx
mov ecx, dword [ebp + 0xc]
shr edi, 8
or edi, eax
mov dword [esi + ecx], edi
jmp 0x5297f4
mov esi, dword [ebp + 0x1c]
sub dword [ebp - 8], 1
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x18]
jne 0x529650
mov eax, dword [ebp - 0xc]
mov edi, 0xff
mov ecx, dword [ebp + 0x14]
imul ecx, dword [ebp - 0x38]
shr eax, 8
not al
movzx esi, al
mov eax, dword [ebp + 0x28]
add ecx, dword [ebp - 0x28]
mov dword [ebp + 0x14], ecx
mov eax, dword [eax + 0xc]
inc eax
imul esi, eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + ecx*4]
mov eax, 0x80808081
sar esi, 8
shr ecx, 0x18
sub edi, ecx
imul edi, esi
imul edi
imul eax, esi, 0xff
mov esi, dword [ebp - 0x20]
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
cdq
add edi, ecx
idiv edi
mov dword [ebp + 0x1c], edi
mov edi, 0x100
mov ecx, eax
mov eax, dword [ebp + 0x14]
sub edi, ecx
mov dword [ebp + 0x28], edi
mov edx, dword [esi + eax*4]
mov eax, dword [ebp - 0x10]
imul eax, ecx
movzx esi, dl
imul esi, edi
add esi, eax
mov eax, edx
and eax, 0xff00
and esi, 0xff00
imul eax, edi
and edx, 0xff0000
mov edi, dword [ebp - 4]
imul edx, dword [ebp + 0x28]
imul edi, ecx
add eax, edi
and eax, 0xff0000
or esi, eax
mov eax, dword [ebp - 0x14]
imul eax, ecx
add edx, eax
and edx, 0xff0000ff
or esi, edx
jmp 0x529ea7
mov dword [ebp + 0x28], esi
call fcn.0059c3d0
mov esi, dword [esi]
mov ecx, eax
shr ecx, 8
not cl
mov dword [ebp + 0xc], eax
movzx eax, cl
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov ecx, eax
and ecx, 0xff0000
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], ecx
movzx ecx, al
and eax, 0xff00
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 0x30], edi
jl 0x529b81
movsd xmm1, qword [ebp + 0x20]
divsd xmm1, qword [ebp + 0x18]
movsd xmm0, qword [0x5e6630]
mulsd xmm0, xmm1
call fcn.0059c3d0
mov dword [ebp - 0x1c], eax
mov ecx, 0xff
shr esi, 0x18
mov eax, 0x80808081
sub ecx, esi
imul ecx, dword [ebp - 0x3c]
imul ecx
imul eax, dword [ebp - 0x3c], 0xff
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
add ecx, esi
idiv ecx
mov dword [ebp + 0x1c], ecx
mov edx, 0x100
mov ecx, dword [ebp - 0x14]
mov esi, eax
mov eax, dword [ebp - 0x2c]
sub edx, esi
mov edi, eax
imul ecx, esi
and edi, 0xff0000
imul edi, edx
add edi, ecx
movzx ecx, al
mov eax, dword [ebp - 0x10]
and edi, 0xff0000ff
imul ecx, edx
imul eax, esi
add ecx, eax
mov eax, dword [ebp - 4]
and ecx, 0xff00
imul eax, esi
or edi, ecx
mov ecx, dword [ebp - 0x2c]
and ecx, 0xff00
imul ecx, edx
add ecx, eax
mov eax, dword [ebp + 0x1c]
and ecx, 0xff0000
shl eax, 0x18
or edi, ecx
mov ecx, dword [ebp + 0x28]
shr edi, 8
or edi, eax
mov eax, dword [ebp - 0x30]
add eax, 0xffffffff
mov dword [ecx], edi
mov dword [ebp + 0x24], eax
je 0x529dfa
mov eax, dword [ebp + 0x14]
lea edx, [eax*4]
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x1c], edx
lea esi, [eax*4]
mov dword [ebp - 0x2c], esi
nop
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], eax
cmp eax, 0x10000
jb 0x5299fb
movzx eax, ax
add ecx, edx
inc dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
add ecx, esi
shr eax, 8
mov dword [ebp + 0x28], ecx
mov dword [ebp - 0x30], eax
not al
movzx edi, al
mov eax, 0x80808081
mov esi, dword [ecx]
mov ecx, 0xff
shr esi, 0x18
sub ecx, esi
imul ecx, edi
imul ecx
imul eax, edi, 0xff
mov edi, dword [ebp + 0x28]
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
add ecx, esi
idiv ecx
mov dword [ebp - 0x3c], ecx
mov edx, 0x100
mov ecx, dword [ebp - 0x14]
mov esi, eax
mov eax, dword [edi]
sub edx, esi
mov edi, eax
imul ecx, esi
and edi, 0xff0000
imul edi, edx
add edi, ecx
movzx ecx, al
mov eax, dword [ebp - 0x10]
and edi, 0xff0000ff
imul eax, esi
imul ecx, edx
add ecx, eax
mov eax, dword [ebp + 0x28]
and ecx, 0xff00
or edi, ecx
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
and ecx, 0xff00
imul eax, esi
imul ecx, edx
add ecx, eax
mov eax, dword [ebp - 0x3c]
and ecx, 0xff0000
shl eax, 0x18
or edi, ecx
mov ecx, dword [ebp + 0x28]
shr edi, 8
or edi, eax
mov eax, dword [ebp - 0x34]
mov dword [ecx], edi
mov eax, dword [eax + 0x24]
dec eax
cmp dword [ebp - 0x18], eax
jge 0x529b6c
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax + ecx]
mov eax, 0x80808081
mov ecx, dword [ebp - 0x30]
movzx edi, cl
mov ecx, 0xff
shr esi, 0x18
sub ecx, esi
imul ecx, edi
imul ecx
imul eax, edi, 0xff
mov edi, dword [ebp + 0x28]
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
add ecx, esi
idiv ecx
mov dword [ebp - 0x30], ecx
mov edx, 0x100
mov ecx, dword [ebp + 0x1c]
mov esi, eax
sub edx, esi
mov dword [ebp - 0x3c], esi
mov eax, dword [ecx + edi]
mov edi, eax
mov ecx, dword [ebp - 0x14]
and edi, 0xff0000
imul ecx, esi
imul edi, edx
add edi, ecx
movzx ecx, al
mov eax, dword [ebp - 0x10]
and edi, 0xff0000ff
imul ecx, edx
imul eax, esi
mov esi, dword [ebp + 0x1c]
add ecx, eax
mov eax, dword [ebp + 0x28]
and ecx, 0xff00
or edi, ecx
mov ecx, dword [esi + eax]
mov eax, dword [ebp - 4]
and ecx, 0xff00
imul eax, dword [ebp - 0x3c]
imul ecx, edx
mov edx, esi
add ecx, eax
mov eax, dword [ebp - 0x30]
and ecx, 0xff0000
shl eax, 0x18
or edi, ecx
mov ecx, dword [ebp + 0x28]
shr edi, 8
or edi, eax
mov dword [edx + ecx], edi
jmp 0x529b6f
mov edx, dword [ebp + 0x1c]
sub dword [ebp + 0x24], 1
mov esi, dword [ebp - 0x2c]
jne 0x5299e0
jmp 0x529dfa
movsd xmm0, qword [ebp + 0x18]
divsd xmm0, qword [ebp + 0x20]
mulsd xmm0, qword [0x5e6630]
call fcn.0059c3d0
mov dword [ebp + 0x24], eax
mov ecx, 0xff
shr esi, 0x18
mov eax, 0x80808081
sub ecx, esi
imul ecx, dword [ebp - 0x3c]
imul ecx
imul eax, dword [ebp - 0x3c], 0xff
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
add ecx, esi
idiv ecx
mov dword [ebp + 0x1c], ecx
mov edx, 0x100
mov ecx, dword [ebp - 0x14]
mov esi, eax
mov eax, dword [ebp - 0x2c]
sub edx, esi
imul ecx, esi
mov edi, eax
and edi, 0xff0000
imul edi, edx
add edi, ecx
movzx ecx, al
mov eax, dword [ebp - 0x10]
and edi, 0xff0000ff
imul ecx, edx
imul eax, esi
add ecx, eax
mov eax, dword [ebp - 4]
and ecx, 0xff00
imul eax, esi
or edi, ecx
mov ecx, dword [ebp - 0x2c]
and ecx, 0xff00
imul ecx, edx
add ecx, eax
mov eax, dword [ebp + 0x1c]
and ecx, 0xff0000
shl eax, 0x18
or edi, ecx
mov ecx, dword [ebp + 0x28]
shr edi, 8
or edi, eax
sub dword [ebp - 8], 1
mov dword [ecx], edi
je 0x529dfa
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x24]
lea edi, [eax*4]
dec eax
lea esi, [edx*4]
mov dword [ebp - 0x18], edi
mov dword [ebp + 0x1c], esi
mov dword [ebp - 0x30], eax
nop word [eax + eax]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x24]
mov dword [ebp + 0xc], eax
cmp eax, 0x10000
jb 0x529c7b
movzx eax, ax
add ecx, esi
add dword [ebp - 0x1c], edx
mov dword [ebp + 0xc], eax
mov esi, dword [ecx + edi]
add ecx, edi
mov dword [ebp + 0x28], ecx
mov ecx, 0xff
shr eax, 8
mov dword [ebp - 0x2c], eax
not al
movzx edi, al
mov eax, 0x80808081
shr esi, 0x18
sub ecx, esi
imul ecx, edi
imul ecx
imul eax, edi, 0xff
mov edi, dword [ebp + 0x28]
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
add ecx, esi
idiv ecx
mov dword [ebp - 0x3c], ecx
mov edx, 0x100
mov ecx, dword [ebp - 0x14]
mov esi, eax
mov eax, dword [edi]
sub edx, esi
mov edi, eax
imul ecx, esi
and edi, 0xff0000
imul edi, edx
add edi, ecx
movzx ecx, al
mov eax, dword [ebp - 0x10]
and edi, 0xff0000ff
imul ecx, edx
imul eax, esi
add ecx, eax
mov eax, dword [ebp + 0x28]
and ecx, 0xff00
or edi, ecx
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
and ecx, 0xff00
imul eax, esi
imul ecx, edx
add ecx, eax
mov eax, dword [ebp - 0x3c]
and ecx, 0xff0000
shl eax, 0x18
or edi, ecx
mov ecx, dword [ebp + 0x28]
shr edi, 8
or edi, eax
mov eax, dword [ebp - 0x30]
mov dword [ecx], edi
cmp dword [ebp - 0x1c], eax
jge 0x529de7
mov eax, dword [ebp - 0x2c]
movzx edi, al
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax + ecx]
mov ecx, 0xff
shr esi, 0x18
mov eax, 0x80808081
sub ecx, esi
imul ecx, edi
imul ecx
imul eax, edi, 0xff
mov edi, dword [ebp + 0x28]
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
add ecx, esi
idiv ecx
mov dword [ebp - 0x2c], ecx
mov edx, 0x100
mov ecx, dword [ebp + 0x1c]
mov esi, eax
sub edx, esi
mov dword [ebp - 0x3c], esi
mov eax, dword [ecx + edi]
mov edi, eax
mov ecx, dword [ebp - 0x14]
and edi, 0xff0000
imul ecx, esi
imul edi, edx
add edi, ecx
movzx ecx, al
mov eax, dword [ebp - 0x10]
and edi, 0xff0000ff
imul ecx, edx
imul eax, esi
mov esi, dword [ebp + 0x1c]
add ecx, eax
mov eax, dword [ebp + 0x28]
and ecx, 0xff00
or edi, ecx
mov ecx, dword [esi + eax]
mov eax, dword [ebp - 4]
and ecx, 0xff00
imul eax, dword [ebp - 0x3c]
imul ecx, edx
add ecx, eax
mov eax, dword [ebp - 0x2c]
and ecx, 0xff0000
shl eax, 0x18
or edi, ecx
mov ecx, dword [ebp + 0x28]
shr edi, 8
or edi, eax
mov dword [esi + ecx], edi
jmp 0x529dea
mov esi, dword [ebp + 0x1c]
sub dword [ebp - 8], 1
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x18]
jne 0x529c60
mov ecx, dword [ebp + 0x14]
mov edi, 0xff
imul ecx, dword [ebp - 0x38]
mov eax, dword [ebp + 0xc]
shr eax, 8
not al
movzx esi, al
add ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + ecx*4]
mov eax, 0x80808081
shr ecx, 0x18
sub edi, ecx
imul edi, esi
imul edi
imul eax, esi, 0xff
mov esi, dword [ebp + 0x14]
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
cdq
add edi, ecx
mov ecx, 0x100
idiv edi
mov dword [ebp + 0x1c], edi
mov edi, dword [ebp - 0x20]
mov edx, eax
sub ecx, edx
mov dword [ebp + 0x28], ecx
mov eax, dword [edi + esi*4]
mov esi, eax
and esi, 0xff0000
imul esi, ecx
mov ecx, edx
imul ecx, dword [ebp - 0x14]
add esi, ecx
movzx ecx, al
imul ecx, dword [ebp + 0x28]
mov eax, edx
imul eax, dword [ebp - 0x10]
and esi, 0xff0000ff
imul edx, dword [ebp - 4]
add ecx, eax
and ecx, 0xff00
or esi, ecx
mov ecx, dword [ebp + 0x14]
mov eax, dword [edi + ecx*4]
and eax, 0xff00
imul eax, dword [ebp + 0x28]
add eax, edx
and eax, 0xff0000
or esi, eax
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
shl edi, 0x18
shr esi, 8
or esi, edi
mov dword [ecx + eax*4], esi
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx]
call dword [eax + 0x64]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x24