Function at 0x4f1f40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
fild dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 8]
fsqrt
mov eax, esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
fdivr qword [0x5d6138]
imul eax, eax, 0x32
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
fstp qword [esp + 0x20]
jne 0x4f1f81
call dword [0x5d25f4]
imul eax, eax, 0x1e240
push eax
call sym.vidcap60.exe__SfRand_Create_4
cmp esi, ebx
mov ecx, eax
jle 0x4f214e
mov edi, dword [ebp + 0xc]
mov esi, dword [ecx + 4]
mov edx, dword [ecx + esi*4 + 0x104]
mov eax, dword [ecx]
xor dword [ecx + eax*4 + 0x104], edx
mov edx, dword [ecx + eax*4 + 0x104]
movzx eax, byte [ecx + eax + 8]
and edx, 0xffff
mov dword [ecx], eax
movzx eax, byte [ecx + esi + 8]
mov dword [esp + 0x18], edx
mov dword [ecx + 4], eax
mov dword [esp + 0x14], 0
fild dword [esp + 0x18]
fmul qword [0x5eb930]
fstp qword [edi]
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [ecx + esi*4 + 0x104]
xor dword [ecx + eax*4 + 0x104], edx
mov edx, dword [ecx + eax*4 + 0x104]
movzx eax, byte [ecx + eax + 8]
and edx, 0xffff
mov dword [esp + 0x18], edx
mov dword [ecx], eax
movzx eax, byte [ecx + esi + 8]
fild dword [esp + 0x18]
xor edx, edx
test ebx, ebx
fmul qword [0x5eb930]
mov dword [ecx + 4], eax
fstp qword [edi + 8]
jle 0x4f2064
mov esi, dword [ebp + 0xc]
fld qword [edi + 8]
mov eax, edx
imul eax, eax, 0x158
fsub qword [eax + esi + 8]
fld qword [edi]
fsub qword [eax + esi]
fld st(0)
fmul st(1)
add eax, esi
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fcomp qword [esp + 0x20]
fnstsw ax
fstp st(0)
test ah, 0x41
fstp st(0)
jp 0x4f205f
mov edx, ebx
mov dword [esp + 0x14], 1
inc edx
cmp edx, ebx
jl 0x4f2021
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
inc eax
cmp edx, eax
mov dword [esp + 0x10], eax
jle 0x4f2092
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4f2084
inc ebx
add edi, 0x158
cmp ebx, dword [ebp + 8]
jl 0x4f1f94
jmp 0x4f214e
cmp ebx, dword [ebp + 8]
jge 0x4f214e
mov eax, dword [ebp + 0xc]
mov edx, ebx
imul edx, edx, 0x158
add edx, eax
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [esp + 0x14], eax
add ebx, eax
mov edi, dword [ecx + 4]
mov esi, dword [ecx + edi*4 + 0x104]
mov eax, dword [ecx]
xor dword [ecx + eax*4 + 0x104], esi
mov esi, dword [ecx + eax*4 + 0x104]
movzx eax, byte [ecx + eax + 8]
mov dword [ecx], eax
movzx eax, byte [ecx + edi + 8]
and esi, 0xffff
mov dword [esp + 0x1c], esi
mov dword [ecx + 4], eax
add edx, 0x158
fild dword [esp + 0x1c]
fmul qword [0x5eb930]
fstp qword [edx - 0x158]
mov edi, dword [ecx + 4]
mov eax, dword [ecx]
mov esi, dword [ecx + edi*4 + 0x104]
xor dword [ecx + eax*4 + 0x104], esi
mov esi, dword [ecx + eax*4 + 0x104]
movzx eax, byte [ecx + eax + 8]
and esi, 0xffff
mov dword [esp + 0x1c], esi
mov dword [ecx], eax
movzx eax, byte [ecx + edi + 8]
fild dword [esp + 0x1c]
mov dword [ecx + 4], eax
fmul qword [0x5eb930]
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
fstp qword [edx - 0x150]
jne 0x4f20b3
push ecx
call sym.vidcap60.exe__SfRand_Free_4
mov ecx, dword [ebp + 8]
pop edi
dec ecx
xor eax, eax
cmp ebx, ecx
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0xc