Function at 0x45f050
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x4b2740]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, dword [ebx + 8]
xorps xmm0, xmm0
mov edx, dword [0x4b31e4]
movups xmmword [ebp - 0x68], xmm0
mov eax, dword [ecx + 0x168]
mov dword [ebp - 0x7c], eax
movzx eax, word [ecx + 0x1dc]
mov esi, eax
mov dword [ebp - 0xa8], eax
movzx eax, word [ecx + 0x1e0]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xd8], esi
mov esi, eax
mov eax, dword [ecx + 0x40]
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x38], xmm0
lea eax, [eax*2 + 0x23]
mov dword [ebp - 0xd4], esi
sar eax, 3
xor esi, esi
and eax, 0xfffffffc
mov dword [ebp - 0x88], ecx
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x6c], esi
movd xmm0, eax
lea edi, [eax + eax*4]
pshufd xmm0, xmm0, 0
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x98], eax
movaps xmmword [ebp - 0xd0], xmm0
cmp edi, dword [edx + 0x6024]
jle 0x45f167
push edi
call fcn.00414de0
mov edx, dword [ebp - 0x80]
add esp, 4
mov dword [ebp - 0x70], eax
mov ecx, dword [edx + 0x6028]
test ecx, ecx
je 0x45f15b
push dword [edx + 0x6020]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x80]
push dword [eax + 0x6028]
call fcn.00414e70
mov eax, dword [ebp - 0x70]
add esp, 0x10
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x6028], eax
mov dword [edx + 0x6024], edi
push edi
push 0
push dword [edx + 0x6028]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x80]
add esp, 0xc
cmp dword [0x4b4670], 2
mov edi, dword [eax + 0x6028]
jl 0x45f1cc
movaps xmm1, xmmword [0x4a7070]
pmulld xmm1, xmmword [ebp - 0xd0]
movd xmm0, edi
pshufd xmm0, xmm0, 0
paddd xmm1, xmm0
movd dword [ebp - 0x54], xmm1
psrldq xmm1, 4
movd dword [ebp - 0x3c], xmm1
psrldq xmm1, 4
movd dword [ebp - 0x24], xmm1
psrldq xmm1, 4
movd dword [ebp - 0xc], xmm1
jmp 0x45f1ea
xor ecx, ecx
lea edx, [ebp - 0x54]
lea esi, [ecx + 4]
lea eax, [edi + ecx]
add ecx, dword [ebp - 0x98]
mov dword [edx], eax
lea edx, [edx + 0x18]
sub esi, 1
jne 0x45f1d4
mov eax, dword [ebp - 0x80]
mov eax, dword [eax + 0x6028]
mov ecx, dword [ebp - 0x98]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x90], eax
cmp dword [ecx + 0x40], eax
jle 0x45fa6c
xor edi, edi
mov dword [ebp - 0x94], edi
nop dword [eax + eax]
mov ecx, eax
mov edx, 1
and ecx, 0x1f
shl edx, cl
mov ecx, eax
mov eax, dword [ebp - 0x88]
sar ecx, 5
mov eax, dword [eax + 0x30]
test dword [eax + ecx*4], edx
je 0x45f491
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x10]
xor eax, eax
add edi, dword [ebp - 0x94]
cmp word [ebp - 0xa8], ax
mov dword [ebp - 0xa4], edi
setg al
inc eax
xor edx, edx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x8c], edx
test edx, edx
jne 0x45f27d
movzx eax, word [edi + 0x5e]
jmp 0x45f281
movzx eax, word [edi + 0x60]
mov ecx, dword [ebp - 0x7c]
movzx eax, ax
mov dword [ebp - 0xa0], eax
mov ecx, dword [ecx + 0x10]
lea eax, [eax + eax*2]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x84], eax
mov eax, dword [ecx + eax*8]
mov ecx, eax
mov dword [ebp - 0x70], eax
test eax, eax
jle 0x45f2fe
mov edi, dword [ebp - 0x84]
lea esi, [eax + eax*4]
mov eax, dword [ebp - 0x74]
mov edx, dword [eax + edi*8 + 8]
mov eax, ecx
mov edi, dword [ebp - 0xa4]
cmp dword [edx + esi*8 - 0xc], 0
mov edx, dword [ebp - 0x8c]
jne 0x45f2fe
mov edi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x74]
mov edx, dword [eax + edi*8 + 8]
mov eax, ecx
mov edi, dword [ebp - 0xa4]
cmp dword [edx + esi*8 - 8], 0
mov edx, dword [ebp - 0x8c]
jne 0x45f2fe
mov esi, dword [ebp - 0x74]
lea ecx, [eax - 1]
mov eax, dword [ebp - 0x84]
mov dword [esi + eax*8], ecx
cmp ecx, 1
jne 0x45f46c
test dword [edi], 0x100
mov esi, dword [ebp - 0xa8]
jne 0x45f345
test si, si
jg 0x45f326
movss xmm0, dword [edi + 0x44]
maxss xmm0, dword [edi + 0x48]
jmp 0x45f33b
test edx, edx
jne 0x45f336
movss xmm0, dword [edi + 0x40]
maxss xmm0, dword [edi + 0x48]
jmp 0x45f33b
movss xmm0, dword [edi + 0x44]
comiss xmm0, dword [edi + 0x28]
ja 0x45f46c
cmp word [ebp - 0xac], 0
jle 0x45f368
mov eax, dword [ebp - 0x88]
movsx eax, word [eax + 0x1e0]
cmp dword [ebp - 0x90], eax
jge 0x45f368
xor ecx, ecx
jmp 0x45f36d
mov ecx, 1
test si, si
jle 0x45f37a
test edx, edx
jne 0x45f37a
xor eax, eax
jmp 0x45f37f
mov eax, 2
add eax, ecx
mov dword [ebp - 0xb4], eax
lea esi, [eax + eax*2]
mov ecx, dword [ebp + esi*8 - 0x58]
lea eax, [ebp + esi*8 - 0x64]
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x70], eax
test ecx, ecx
jne 0x45f3bf
mov dword [ebp + esi*8 - 0x68], 0x7f7fffff
mov dword [eax], 0x7f7fffff
mov dword [ebp + esi*8 - 0x60], 0xff7fffff
mov dword [ebp + esi*8 - 0x5c], 0xff7fffff
jmp 0x45f3c2
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xa0]
mov ecx, eax
mov edx, dword [ebp + esi*8 - 0x54]
and eax, 0x1f
shr ecx, 5
mov dword [ebp - 0xa0], eax
mov edi, dword [ebp - 0xa0]
mov eax, dword [edx + ecx*4]
bts eax, edi
mov edi, dword [ebp - 0xa4]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x74]
inc eax
mov dword [ebp + esi*8 - 0x58], eax
mov eax, dword [ebp - 0x84]
movss xmm0, dword [ebp + esi*8 - 0x68]
mov eax, dword [ecx + eax*8 + 8]
movss xmm4, dword [eax]
comiss xmm0, xmm4
movss xmm1, dword [eax + 4]
movss xmm2, dword [eax + 8]
movss xmm3, dword [eax + 0xc]
jbe 0x45f42b
movss dword [ebp + esi*8 - 0x68], xmm4
mov eax, dword [ebp - 0x70]
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x45f43b
movss dword [eax], xmm1
comiss xmm2, dword [ebp + esi*8 - 0x60]
jbe 0x45f448
movss dword [ebp + esi*8 - 0x60], xmm2
comiss xmm3, dword [ebp + esi*8 - 0x5c]
jbe 0x45f455
movss dword [ebp + esi*8 - 0x5c], xmm3
mov esi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0xb4]
bts esi, eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x6c], esi
jmp 0x45f46f
mov esi, dword [ebp - 0x6c]
inc edx
mov dword [ebp - 0x8c], edx
cmp edx, dword [ebp - 0x9c]
jl 0x45f273
mov eax, 0xffff
mov word [edi + 0x5c], ax
mov edi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
add edi, 0x70
mov ecx, dword [ebp - 0x88]
inc eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], edi
cmp eax, dword [ecx + 0x40]
jl 0x45f220
test esi, esi
je 0x45fa6c
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x80]
mov edi, dword [eax + 4]
mov ecx, dword [edx + 0x4d28]
sub edi, 2
cmp edi, ecx
jle 0x45f556
test ecx, ecx
je 0x45f4ea
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x80]
sar eax, 1
add eax, ecx
jmp 0x45f4ef
mov eax, 8
cmp eax, edi
mov esi, edi
cmovg esi, eax
cmp esi, ecx
jle 0x45f556
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.00414de0
mov ecx, dword [ebp - 0x80]
add esp, 4
mov dword [ebp - 0x9c], eax
mov edx, dword [ecx + 0x4d2c]
test edx, edx
je 0x45f547
mov ecx, dword [ecx + 0x4d24]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x80]
push dword [eax + 0x4d2c]
call fcn.00414e70
mov eax, dword [ebp - 0x9c]
add esp, 0x10
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x4d2c], eax
mov dword [edx + 0x4d28], esi
mov ecx, dword [ebp - 0x7c]
mov dword [edx + 0x4d24], edi
mov edi, dword [edx + 0x4d2c]
mov edx, 2
mov dword [ebp - 0x84], edi
mov esi, dword [ecx + 4]
dec esi
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x9c], esi
cmp esi, edx
jl 0x45f5e1
mov eax, edx
mov edi, edx
or eax, 0x1f
and edi, 0x1f
mov ecx, esi
and ecx, 0x1f
cmp esi, eax
mov esi, edx
mov eax, 0x1f
cmovg ecx, eax
xor edx, edx
inc ecx
sar esi, 5
bts edx, ecx
xor eax, eax
cmp ecx, 0x20
cmovae eax, edx
xor ecx, ecx
xor edx, eax
bts ecx, edi
dec edx
xor eax, eax
cmp edi, 0x20
mov edi, dword [ebp - 0x78]
cmovae eax, ecx
xor ecx, eax
neg ecx
and edx, ecx
or dword [edi + esi*4], edx
mov edx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x9c]
add edx, 0x20
and edx, 0xffffffe0
mov dword [ebp - 0x70], edx
cmp edx, esi
jle 0x45f581
jmp 0x45f5e4
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x88]
movups xmm2, xmmword [0x4a7770]
movzx edx, word [eax + 0x1e8]
mov ecx, edx
and edx, 0x1f
shr ecx, 5
mov eax, dword [edi + ecx*4]
btr eax, edx
mov dword [edi + ecx*4], eax
xor eax, eax
cmp word [ebp - 0xa8], ax
mov ecx, dword [ebp - 0x7c]
setg al
add eax, 2
mov esi, dword [ecx + 4]
sub esi, eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x6c], esi
xor edi, edi
movups xmm0, xmmword [eax + 0x134]
movups xmmword [ebp - 0xd0], xmm0
movss xmm1, dword [ebp - 0xc4]
movss xmm3, dword [ebp - 0xc8]
movss xmm4, dword [ebp - 0xcc]
movss xmm7, dword [ebp - 0xd0]
movss dword [ebp - 0x70], xmm1
movss dword [ebp - 0xa4], xmm3
movss dword [ebp - 0xa0], xmm4
mov dword [ebp - 0x8c], edi
lea eax, [edi + edi*2]
shl eax, 3
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp + eax - 0x58]
mov dword [ebp - 0x94], ecx
test ecx, ecx
je 0x45f976
movups xmm0, xmmword [ebp + eax - 0x68]
mov edx, edi
movups xmmword [ebp - 0xd0], xmm0
and edx, 1
je 0x45f6b6
cmp word [ebp - 0xd4], 0
jle 0x45f6b6
movss xmm6, dword [ebp - 0xd0]
jmp 0x45f6c1
movaps xmm6, xmm7
minss xmm6, dword [ebp - 0xd0]
mov ecx, edi
and ecx, 2
je 0x45f6dc
cmp word [ebp - 0xa8], 0
jle 0x45f6dc
movss xmm5, dword [ebp - 0xcc]
jmp 0x45f6e7
movaps xmm5, xmm4
minss xmm5, dword [ebp - 0xcc]
test edx, edx
je 0x45f6f8
movaps xmm4, xmm3
maxss xmm4, dword [ebp - 0xc8]
jmp 0x45f700
movss xmm4, dword [ebp - 0xc8]
test ecx, ecx
je 0x45f720
mov ecx, dword [ebp - 0x88]
test dword [ecx + 4], 0x20000
jne 0x45f720
movaps xmm3, xmm1
maxss xmm3, dword [ebp - 0xc4]
jmp 0x45f728
movss xmm3, dword [ebp - 0xc4]
sub esi, dword [ebp + eax - 0x58]
xor ecx, ecx
mov dword [ebp - 0x6c], esi
mov esi, dword [ebp - 0x98]
sar esi, 2
mov dword [ebp - 0x90], esi
test esi, esi
jle 0x45f8a0
cmp esi, 2
jb 0x45f888
mov edi, dword [ebp + eax - 0x54]
lea eax, [esi - 1]
mov edx, dword [ebp - 0x78]
add edx, 0xfffffffc
lea eax, [edi + eax*4]
lea edx, [edx + esi*4]
cmp dword [ebp - 0x78], eax
ja 0x45f771
cmp edx, edi
jae 0x45f885
cmp esi, 0x10
jb 0x45f844
mov eax, esi
and eax, 0x8000000f
jns 0x45f788
dec eax
or eax, 0xfffffff0
inc eax
mov edx, esi
mov esi, 0x20
sub edx, eax
mov eax, 0xfffffff0
sub eax, dword [ebp - 0x78]
mov dword [ebp - 0x9c], eax
mov eax, 0x10
sub eax, dword [ebp - 0x78]
mov dword [ebp - 0xb0], edx
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0xb4], eax
add edx, esi
mov eax, 0xffffffe0
sub eax, dword [ebp - 0x78]
mov dword [ebp - 0xac], eax
movups xmm0, xmmword [edx - 0x20]
add eax, edx
lea esi, [esi + 0x40]
add ecx, 0x10
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0x9c]
add eax, edx
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0xb4]
movups xmm0, xmmword [edx - 0x10]
add eax, edx
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [edx - 0x10], xmm1
movups xmm1, xmmword [esi + edi - 0x40]
movups xmm0, xmmword [edx]
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [edx], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0xac]
movups xmm0, xmmword [edx + 0x10]
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [edx + 0x10], xmm1
add edx, 0x40
cmp ecx, dword [ebp - 0xb0]
jl 0x45f7c6
mov esi, dword [ebp - 0x90]
mov eax, esi
and al, 0xf
cmp al, 2
jb 0x45f87c
mov eax, dword [ebp - 0x74]
mov edi, dword [ebp + eax - 0x54]
mov eax, esi
and eax, 0x80000001
jns 0x45f859
dec eax
or eax, 0xfffffffe
inc eax
mov edx, esi
sub edx, eax
mov eax, dword [ebp - 0x78]
movq xmm1, qword [edi + ecx*4]
movq xmm0, qword [eax + ecx*4]
andnps xmm1, xmm2
andps xmm1, xmm0
movq qword [eax + ecx*4], xmm1
add ecx, 2
cmp ecx, edx
jl 0x45f860
mov eax, dword [ebp - 0x74]
cmp ecx, esi
jge 0x45f8a0
jmp 0x45f888
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp + eax - 0x54]
mov edi, dword [ebp - 0x78]
nop
mov eax, dword [edx + ecx*4]
not eax
and dword [edi + ecx*4], eax
inc ecx
cmp ecx, esi
jl 0x45f890
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x7c]
xor edx, edx
cmp dword [ecx + 4], edx
jle 0x45f956
mov dword [ebp - 0x90], edx
nop dword [eax]
nop dword [eax + eax]
cmp dword [ebp - 0x94], 0
je 0x45f956
mov eax, dword [ebp + eax - 0x54]
mov esi, edx
sar esi, 5
mov ecx, edx
and ecx, 0x1f
mov edi, dword [eax + esi*4]
mov eax, 1
shl eax, cl
test edi, eax
je 0x45f93f
btr edi, ecx
dec dword [ebp - 0x94]
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp + ecx - 0x54]
mov dword [eax + esi*4], edi
mov eax, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x84]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x90]
mov eax, dword [ecx + 8]
movss dword [eax], xmm6
movss dword [eax + 4], xmm5
movss dword [eax + 8], xmm4
movss dword [eax + 0xc], xmm3
mov eax, esi
movups xmm0, xmmword [ecx]
add esi, 0x18
mov dword [ebp - 0x84], esi
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0x7c]
inc edx
add dword [ebp - 0x90], 0x18
mov eax, dword [ebp - 0x74]
cmp edx, dword [ecx + 4]
jl 0x45f8c0
movss xmm1, dword [ebp - 0x70]
movss xmm3, dword [ebp - 0xa4]
movss xmm4, dword [ebp - 0xa0]
mov edi, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x6c]
jmp 0x45f979
mov ecx, dword [ebp - 0x7c]
cmp edi, 1
jne 0x45f9ca
cmp word [ebp - 0xd8], 0
jle 0x45f9ca
mov eax, dword [ebp - 0x88]
mov esi, dword [ebp - 0x84]
mov edx, esi
add esi, 0x18
inc edi
mov dword [ebp - 0x84], esi
movzx eax, word [eax + 0x1e8]
mov esi, dword [ebp - 0x6c]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x10]
movups xmm0, xmmword [eax + ecx*8]
movups xmmword [edx], xmm0
movq xmm0, qword [eax + ecx*8 + 0x10]
movq qword [edx + 0x10], xmm0
jmp 0x45f66e
inc edi
mov dword [ebp - 0x8c], edi
cmp edi, 4
jl 0x45f674
mov eax, dword [ecx + 4]
xor esi, esi
test eax, eax
jle 0x45fa49
mov edi, dword [ebp - 0x84]
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x98], esi
test edx, edx
je 0x45fa49
mov ecx, esi
mov edx, 1
and ecx, 0x1f
mov eax, esi
shl edx, cl
mov ecx, dword [ebp - 0x78]
sar eax, 5
test dword [ecx + eax*4], edx
mov edx, dword [ebp - 0x6c]
je 0x45fa37
mov eax, dword [ebp - 0x7c]
mov ecx, edi
add edi, 0x18
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x98]
dec edx
mov dword [ebp - 0x6c], edx
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [ebp - 0x7c]
inc esi
add dword [ebp - 0x98], 0x18
mov eax, dword [ecx + 4]
cmp esi, eax
jl 0x45f9f2
lea eax, [eax + eax*2]
lea eax, [eax*8 - 0x30]
push eax
mov eax, dword [ebp - 0x80]
push dword [eax + 0x4d2c]
mov eax, dword [ecx + 0x10]
add eax, 0x30
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048cd9a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret