Function at 0x41be50
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42431e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movss dword [ebp - 0x4c], xmm3
movss dword [ebp - 0x50], xmm2
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 1
mov eax, dword [ebx + 0xc]
mov ecx, eax
mov edi, dword [ebx + 8]
sub ecx, edi
mov esi, dword [sym.imp.mfc120u.dll_Ordinal_1508]
mov dword [ebp - 0x34], eax
mov eax, 0x2aaaaaab
imul ecx
mov dword [ebp - 0x38], edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x41beda
cmp dword [ebx + 0x18], 0
sete byte [ebp - 0x2d]
jmp 0x41c1bf
xor eax, eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
cmp edi, eax
je 0x41c17d
lea ebx, [ebx]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push edi
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.0040d500
mov byte [ebp - 4], 2
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x3c], eax
cmp eax, 1
ja 0x41bf3e
mov byte [ebp - 4], 1
test esi, esi
je 0x41c154
push esi
jmp 0x41c132
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
xor esi, esi
xorps xmm0, xmm0
movss dword [ebp - 0x24], xmm0
cmp eax, edx
je 0x41bf60
add ecx, dword [eax]
add esi, dword [eax + 4]
add eax, 0xc
cmp eax, edx
jne 0x41bf54
xor edx, edx
mov eax, ecx
div dword [ebp - 0x3c]
xor edx, edx
mov dword [ebp - 0x2c], eax
mov eax, esi
div dword [ebp - 0x3c]
mov edx, eax
mov eax, dword [ebp - 0x20]
mov esi, eax
mov dword [ebp - 0x28], edx
cmp eax, dword [ebp - 0x1c]
je 0x41c018
movss xmm0, dword [ebp - 0x50]
divss xmm0, dword [0x4270a8]
mov edi, dword [ebp - 0x2c]
cvtps2pd xmm0, xmm0
movapd xmm1, xmm0
mulsd xmm1, qword [0x427080]
mulsd xmm1, xmm0
movsd qword [ebp - 0x40], xmm1
lea esp, [esp]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
sub eax, edi
sub ecx, edx
movd xmm1, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm0
mulsd xmm1, xmm1
addsd xmm0, xmm1
call sub.MSVCR120.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm0
xorps xmm0, xmmword [0x427150]
cvtss2sd xmm0, xmm0
divsd xmm0, qword [ebp - 0x40]
call sub.MSVCR120.dll__libm_sse2_exp_precise
mov edx, dword [ebp - 0x28]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esi + 8]
add esi, 0xc
addss xmm0, dword [ebp - 0x24]
movss dword [ebp - 0x24], xmm0
cmp esi, dword [ebp - 0x1c]
jne 0x41bfb0
mov edi, dword [ebp - 0x38]
comiss xmm0, dword [ebp - 0x4c]
jbe 0x41c126
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x2c]
mov eax, dword [esi + 4]
cmp ecx, eax
jae 0x41c087
mov edx, dword [esi]
cmp edx, ecx
ja 0x41c087
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esi + 4]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x3c], eax
cmp ecx, dword [esi + 8]
jne 0x41c05d
push ecx
mov ecx, esi
call fcn.0041fad0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [esi + 4]
lea edx, [eax + eax*2]
mov eax, dword [esi]
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x41c0b0
mov eax, dword [eax + edx*4]
mov dword [ecx], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + edx*4 + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + edx*4 + 8]
mov dword [ecx + 8], eax
jmp 0x41c0b0
cmp eax, dword [esi + 8]
jne 0x41c099
push ecx
mov ecx, esi
call fcn.0041fad0
movss xmm0, dword [ebp - 0x24]
mov eax, dword [esi + 4]
test eax, eax
je 0x41c0b0
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], ecx
movss dword [eax + 8], xmm0
add dword [esi + 4], 0xc
cmp dword [ebx + 0x18], 1
mov dword [ebp - 0x44], 1
jne 0x41c18f
mov eax, dword [ebx + 0x28]
xor esi, esi
sub eax, dword [ebx + 0x24]
sar eax, 3
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x41c126
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
sub ecx, dword [edx + esi*8]
sub eax, dword [edx + esi*8 + 4]
imul ecx, ecx
imul eax, eax
add ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
call sub.MSVCR120.dll__libm_sse2_sqrt_precise
mov eax, dword [ebx + 0x30]
xorps xmm1, xmm1
cvtsd2ss xmm0, xmm0
cvtss2sd xmm1, xmm0
movss xmm0, dword [eax + esi*4]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x427080]
comisd xmm0, xmm1
ja 0x41c189
inc esi
cmp esi, dword [ebp - 0x3c]
jb 0x41c0d7
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41c154
push eax
mov esi, dword [sym.imp.mfc120u.dll_Ordinal_1508]
call esi
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
jmp 0x41c15a
mov esi, dword [sym.imp.mfc120u.dll_Ordinal_1508]
add edi, 0xc
mov dword [ebp - 0x38], edi
cmp edi, dword [ebp - 0x34]
jne 0x41bef0
mov eax, dword [ebp - 0x44]
test eax, eax
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
jne 0x41c27a
mov dword [ebp - 0x34], eax
cmp dword [ebx + 0x18], 0
jne 0x41c1b1
mov byte [ebp - 0x2d], 1
jmp 0x41c1bf
mov byte [ebp - 0x2d], 1
jmp 0x41c193
mov byte [ebp - 0x2d], 0
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.mfc120u.dll_Ordinal_1508]
test eax, eax
je 0x41c1a6
push eax
call esi
add esp, 4
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x34], eax
jmp 0x41c1c5
cmp dword [ebx + 0x18], 1
jne 0x41c27a
mov byte [ebp - 0x2d], 0
mov esi, dword [sym.imp.mfc120u.dll_Ordinal_1508]
test edi, edi
je 0x41c21e
cmp edi, dword [ebp - 0x34]
je 0x41c1fb
mov edi, edi
mov eax, dword [edi]
test eax, eax
je 0x41c1f0
push eax
call esi
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
add edi, 0xc
cmp edi, dword [ebp - 0x34]
jne 0x41c1d0
mov edi, dword [ebx + 8]
mov esi, dword [sym.imp.mfc120u.dll_Ordinal_1508]
push edi
call esi
add esp, 4
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
jmp 0x41c224
mov esi, dword [sym.imp.mfc120u.dll_Ordinal_1508]
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x41c246
push eax
call esi
add esp, 4
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x41c268
push eax
call esi
add esp, 4
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov edx, dword [ebx + 0x24]
test edx, edx
je 0x41c275
push edx
call esi
add esp, 4
mov al, byte [ebp - 0x2d]
jmp 0x41c2aa
test edi, edi
je 0x41c2a2
push eax
push edi
call fcn.0040d330
push dword [ebx + 8]
call esi
add esp, 4
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
lea ecx, [ebx + 0x24]
call fcn.0040cce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004213bb
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x40