Function at 0x4c97bc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x68]
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 - 0x58]
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
cmp dword [ebp + 0x1c], 0
je 0x4cac83
mov dl, 7
mov eax, dword [ebp + 0x1c]
call fcn.0042943c
lea eax, [ebp - 0x68]
mov dl, 1
call fcn.004fb054
push eax
lea eax, [ebp - 0x58]
mov dl, 1
call fcn.004fb054
pop edx
call fcn.0042a5f0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
sub edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x14]
call fcn.0042a5f0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
sub edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x14]
call fcn.0042a5f0
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x4cac83
lea eax, [ebp - 0x68]
mov dl, 1
call fcn.004fb040
push eax
lea eax, [ebp - 0x58]
mov dl, 1
call fcn.004fb040
pop edx
call fcn.0042a5f0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
sub edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x18]
call fcn.0042a5f0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
call fcn.0042a5f0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x4cac83
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x58]
jle 0x4c98dd
cmp dword [ebp - 0x58], 0
jge 0x4c9911
mov eax, dword [ebp - 0x58]
neg eax
add dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x58]
neg eax
sub dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
call fcn.0042a5f0
dec eax
mov dword [ebp - 0x18], eax
jmp 0x4c9911
cmp dword [ebp - 0x68], 0
jge 0x4c9911
mov eax, dword [ebp - 0x68]
neg eax
add dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x68]
neg eax
sub dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
sub edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x18]
call fcn.0042a5f0
dec eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x54]
jle 0x4c994f
cmp dword [ebp - 0x54], 0
jge 0x4c9983
mov eax, dword [ebp - 0x54]
neg eax
add dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x54]
neg eax
sub dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
sub edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x14]
call fcn.0042a5f0
dec eax
mov dword [ebp - 0x14], eax
jmp 0x4c9983
cmp dword [ebp - 0x64], 0
jge 0x4c9983
mov eax, dword [ebp - 0x64]
neg eax
add dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x64]
neg eax
sub dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
sub edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x14]
call fcn.0042a5f0
dec eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
sub edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x18]
call fcn.0042a5f0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
call fcn.0042a5f0
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 0x1fffffff
je 0x4ca558
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov al, byte [ebp - 0x1c]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fld dword [0x4cac8c]
call fcn.00402d70
fstp qword [ebp - 0x30]
wait
xor eax, eax
mov al, byte [ebp - 0x1b]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fld dword [0x4cac8c]
call fcn.00402d70
fstp qword [ebp - 0x38]
wait
xor eax, eax
mov al, byte [ebp - 0x1a]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fld dword [0x4cac8c]
call fcn.00402d70
fstp qword [ebp - 0x40]
wait
cmp dword [ebp + 0xc], 0
je 0x4c9e8e
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x20], 0
jne 0x4c9c13
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x4ca2de
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0042859c
mov esi, eax
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0042859c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4c9c02
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp - 0x58]
add ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x68]
add edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x22], al
xor eax, eax
mov al, byte [ebp - 0x1e]
xor edx, edx
mov dl, byte [ebp - 0x1f]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x20]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x21], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x30]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x38]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x40]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4], al
inc dword [ebp - 0xc]
dec dword [ebp - 0x48]
jne 0x4c9a79
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x4c9a42
jmp 0x4ca2de
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x4ca2de
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0042859c
mov esi, eax
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0042859c
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4c9e7d
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x4c9de2
xor eax, eax
mov al, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x22], al
xor eax, eax
mov al, byte [ebp - 0x1e]
xor edx, edx
mov dl, byte [ebp - 0x1f]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x20]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x21], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x30]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x30]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x30]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4], al
jmp 0x4c9e72
cmp byte [ebp + 0x14], 0
je 0x4c9e72
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
cmp eax, edx
jle 0x4c9e74
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x4c9e7d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x10]
test eax, eax
jl 0x4c9e7d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x4c9e74
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.0042842c
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
call fcn.00423f28
mov dword [ebp - 0x1c], eax
mov al, byte [ebp - 0x1c]
mov byte [esi + ebx*4 + 2], al
mov al, byte [ebp - 0x1b]
mov byte [esi + ebx*4 + 1], al
mov al, byte [ebp - 0x1a]
mov byte [esi + ebx*4], al
inc ebx
inc edi
dec dword [ebp - 0x48]
jne 0x4c9c5f
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x4c9c29
jmp 0x4ca2de
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x20], 0
jne 0x4ca06b
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x4ca2de
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0042859c
mov esi, eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x64]
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0042859c
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4ca05a
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, byte [ebp - 0x1e]
xor edx, edx
mov dl, byte [ebp - 0x1f]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x20]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x30]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x38]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x40]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4], al
inc ebx
inc edi
dec dword [ebp - 0x48]
jne 0x4c9eef
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x4c9eb1
jmp 0x4ca2de
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x4ca2de
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0042859c
mov esi, eax
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0042859c
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4ca2d2
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, byte [ebp - 0x1e]
xor edx, edx
mov dl, byte [ebp - 0x1f]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x20]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x21], al
cmp dword [ebp - 0x20], 0xff00ff
je 0x4ca230
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x30]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x38]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 3]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x40]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4], al
jmp 0x4ca2c4
cmp byte [ebp + 0x14], 0
je 0x4ca2c4
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
cmp eax, edx
jle 0x4ca2c6
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x4ca2d2
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x10]
test eax, eax
jl 0x4ca2d2
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x4ca2c6
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.0042842c
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x58]
add edx, dword [ebp - 0xc]
call fcn.00423f28
mov dword [ebp - 0x1c], eax
mov al, byte [ebp - 0x1c]
mov byte [esi + ebx*4 + 2], al
mov al, byte [ebp - 0x1b]
mov byte [esi + ebx*4 + 1], al
mov al, byte [ebp - 0x1a]
mov byte [esi + ebx*4], al
inc ebx
inc edi
inc dword [ebp - 0xc]
dec dword [ebp - 0x48]
jne 0x4ca0be
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x4ca081
cmp byte [ebp + 8], 0
je 0x4cac83
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x4c]
dec eax
push eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x4ca304
adc eax, 0
dec eax
pop edx
call fcn.0042a5f0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x4ca31d
adc eax, 0
push eax
mov eax, 0xff
pop edx
mov ecx, edx
cdq
idiv ecx
mov byte [ebp - 0x19], al
mov byte [ebp - 0x1c], 0xff
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x4cac83
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0042859c
mov esi, eax
mov edx, dword [ebp - 0x5c]
sub edx, dword [ebp - 0x10]
dec edx
mov eax, dword [ebp + 0x1c]
call fcn.0042859c
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4ca541
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x4ca536
cmp dword [ebp + 0xc], 0
jne 0x4ca3b8
xor eax, eax
mov al, byte [ebp - 0x1d]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
imul edx
cdq
idiv dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ebp - 0x1c]
imul edx
shr eax, 0xa
mov byte [ebp - 0x22], al
jmp 0x4ca3e8
xor eax, eax
mov al, byte [ebp - 0x1d]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
imul edx
cdq
idiv dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ebp - 0x1c]
imul edx
shr eax, 0xa
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x22], al
xor eax, eax
mov al, byte [ebp - 0x1e]
xor edx, edx
mov dl, byte [ebp - 0x1f]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 0x20]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebp - 0x21], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x30]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 2]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 2]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x38]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 1]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4 + 1]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x40]
call fcn.00402b60
push edx
push eax
push 0
push 0xff
call fcn.0042a5f8
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405218
push edx
push eax
xor eax, eax
mov al, byte [esi + ebx*4]
shl eax, 8
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
shrd eax, edx, 8
shr edx, 8
and al, 0xff
mov byte [esi + ebx*4], al
inc ebx
inc edi
dec dword [ebp - 0x48]
jne 0x4ca37c
mov al, byte [ebp - 0x19]
sub byte [ebp - 0x1c], al
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x4ca345
jmp 0x4cac83
cmp dword [ebp + 0xc], 0
je 0x4ca825
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x20], 0
jne 0x4ca683
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x4caaf2
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0042859c
mov esi, eax
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0042859c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4ca672
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp - 0x58]
add ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x68]
add edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x22], al
xor edx, edx
mov dl, byte [ebp - 0x1e]
mov al, byte [esi + ebx*4 + 2]
xor ecx, ecx
mov cl, al
sub edx, ecx
xor ecx, ecx
mov cl, byte [ebp - 0x22]
imul edx, ecx
and eax, 0xff
shl eax, 8
add edx, eax
shr edx, 8
and dl, 0xff
mov byte [esi + ebx*4 + 2], dl
xor edx, edx
mov dl, byte [ebp - 0x1f]
mov al, byte [esi + ebx*4 + 1]
xor ecx, ecx
mov cl, al
sub edx, ecx
xor ecx, ecx
mov cl, byte [ebp - 0x22]
imul edx, ecx
and eax, 0xff
shl eax, 8
add edx, eax
shr edx, 8
and dl, 0xff
mov byte [esi + ebx*4 + 1], dl
xor eax, eax
mov al, byte [ebp - 0x20]
xor edx, edx
mov dl, byte [esi + ebx*4]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x22]
imul edx
xor edx, edx
mov dl, byte [esi + ebx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4], al
inc dword [ebp - 0xc]
dec dword [ebp - 0x48]
jne 0x4ca5bc
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x4ca585
jmp 0x4caaf2
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x4caaf2
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0042859c
mov esi, eax
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0042859c
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4ca814
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x4ca779
xor eax, eax
mov al, byte [ebp - 0x1d]
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x22], al
xor eax, eax
mov al, byte [ebp - 0x1e]
xor edx, edx
mov dl, byte [esi + ebx*4 + 2]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x22]
imul edx
xor edx, edx
mov dl, byte [esi + ebx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
xor eax, eax
mov al, byte [ebp - 0x1f]
xor edx, edx
mov dl, byte [esi + ebx*4 + 1]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x22]
imul edx
xor edx, edx
mov dl, byte [esi + ebx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
xor eax, eax
mov al, byte [ebp - 0x20]
xor edx, edx
mov dl, byte [esi + ebx*4]
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x22]
imul edx
xor edx, edx
mov dl, byte [esi + ebx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4], al
jmp 0x4ca809
cmp byte [ebp + 0x14], 0
je 0x4ca809
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
cmp eax, edx
jle 0x4ca80b
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x4ca814
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x10]
test eax, eax
jl 0x4ca814
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x4ca80b
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.0042842c
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
call fcn.00423f28
mov dword [ebp - 0x1c], eax
mov al, byte [ebp - 0x1c]
mov byte [esi + ebx*4 + 2], al
mov al, byte [ebp - 0x1b]
mov byte [esi + ebx*4 + 1], al
mov al, byte [ebp - 0x1a]
mov byte [esi + ebx*4], al
inc ebx
inc edi
dec dword [ebp - 0x48]
jne 0x4ca6cf
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x4ca699
jmp 0x4caaf2
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x20], 0
jne 0x4ca938
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x4caaf2
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0042859c
mov esi, eax
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0042859c
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4ca927
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 2]
xor edx, edx
mov dl, byte [esi + ebx*4 + 2]
sub eax, edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi*4 + 3]
imul edx
xor edx, edx
mov dl, byte [esi + ebx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 1]
xor edx, edx
mov dl, byte [esi + ebx*4 + 1]
sub eax, edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi*4 + 3]
imul edx
xor edx, edx
mov dl, byte [esi + ebx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4]
xor edx, edx
mov dl, byte [esi + ebx*4]
sub eax, edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi*4 + 3]
imul edx
xor edx, edx
mov dl, byte [esi + ebx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4], al
mov eax, dword [ebp - 8]
xor edx, edx
mov dl, byte [eax + edi*4 + 3]
xor eax, eax
mov al, byte [esi + ebx*4 + 3]
call fcn.0042a6b4
mov byte [esi + ebx*4 + 3], al
inc ebx
inc edi
dec dword [ebp - 0x48]
jne 0x4ca87e
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x4ca848
jmp 0x4caaf2
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x4caaf2
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0042859c
mov esi, eax
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
call fcn.0042859c
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4caae6
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x4caa44
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 2]
xor edx, edx
mov dl, byte [esi + ebx*4 + 2]
sub eax, edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi*4 + 3]
imul edx
xor edx, edx
mov dl, byte [esi + ebx*4 + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 2], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4 + 1]
xor edx, edx
mov dl, byte [esi + ebx*4 + 1]
sub eax, edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi*4 + 3]
imul edx
xor edx, edx
mov dl, byte [esi + ebx*4 + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4 + 1], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi*4]
xor edx, edx
mov dl, byte [esi + ebx*4]
sub eax, edx
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi*4 + 3]
imul edx
xor edx, edx
mov dl, byte [esi + ebx*4]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [esi + ebx*4], al
mov eax, dword [ebp - 8]
xor edx, edx
mov dl, byte [eax + edi*4 + 3]
xor eax, eax
mov al, byte [esi + ebx*4 + 3]
call fcn.0042a6b4
mov byte [esi + ebx*4 + 3], al
jmp 0x4caad8
cmp byte [ebp + 0x14], 0
je 0x4caad8
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 8]
add edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x10]
cmp eax, edx
jle 0x4caada
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, ebx
cmp eax, edx
jle 0x4caae6
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x10]
test eax, eax
jl 0x4caae6
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
add eax, ebx
test eax, eax
jl 0x4caada
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
call fcn.0042842c
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 4]
add edx, dword [ebp - 0x58]
add edx, dword [ebp - 0xc]
call fcn.00423f28
mov dword [ebp - 0x1c], eax
mov al, byte [ebp - 0x1c]
mov byte [esi + ebx*4 + 2], al
mov al, byte [ebp - 0x1b]
mov byte [esi + ebx*4 + 1], al
mov al, byte [ebp - 0x1a]
mov byte [esi + ebx*4], al
inc ebx
inc edi
inc dword [ebp - 0xc]
dec dword [ebp - 0x48]
jne 0x4ca98b
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x4ca94e
cmp byte [ebp + 8], 0
je 0x4cac83
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x4c]
dec eax
push eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x4cab18
adc eax, 0
dec eax
pop edx
call fcn.0042a5f0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, 0xff
pop edx
mov ecx, edx
cdq
idiv ecx
mov byte [ebp - 0x19], al
mov byte [ebp - 0x1c], 0xff
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x4cac83
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0042859c
mov esi, eax
mov edx, dword [ebp - 0x5c]
sub edx, dword [ebp - 0x10]
dec edx
mov eax, dword [ebp + 0x1c]
call fcn.0042859c
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4cac71
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xff00ff
je 0x4cac66
cmp dword [ebp + 0xc], 0
jne 0x4cabc5
xor eax, eax
mov al, byte [ebp - 0x1d]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
imul edx
cdq
idiv dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ebp - 0x1c]
imul edx
shr eax, 0xa
mov byte [ebp - 0x22], al
jmp 0x4cabf5
xor eax, eax
mov al, byte [ebp - 0x1d]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
imul edx
cdq
idiv dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ebp - 0x1c]
imul edx
shr eax, 0xa
mov edx, 0x64
sub edx, dword [ebp + 0xc]
imul edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [ebp - 0x22], al
xor edx, edx
mov dl, byte [ebp - 0x1e]
xor ecx, ecx
mov cl, byte [esi + ebx*4 + 2]
sub edx, ecx
xor eax, eax
mov al, byte [ebp - 0x22]
imul edx, eax
xor ecx, ecx
mov cl, byte [esi + ebx*4 + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [esi + ebx*4 + 2], dl
xor edx, edx
mov dl, byte [ebp - 0x1f]
xor ecx, ecx
mov cl, byte [esi + ebx*4 + 1]
sub edx, ecx
imul edx, eax
xor ecx, ecx
mov cl, byte [esi + ebx*4 + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [esi + ebx*4 + 1], dl
xor edx, edx
mov dl, byte [ebp - 0x20]
xor ecx, ecx
mov cl, byte [esi + ebx*4]
sub edx, ecx
imul edx, eax
xor eax, eax
mov al, byte [esi + ebx*4]
shl eax, 8
add edx, eax
shr edx, 8
and dl, 0xff
mov byte [esi + ebx*4], dl
inc ebx
inc edi
dec dword [ebp - 0x48]
jne 0x4cab89
mov al, byte [ebp - 0x19]
sub byte [ebp - 0x1c], al
inc dword [ebp - 0x10]
dec dword [ebp - 0x44]
jne 0x4cab52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18