Function at 0x4d4620
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x50
mov eax, dword [0x8815d0]
xor eax, esp
mov dword [esp + 0x4c], eax
push edi
mov edi, ecx
mov dword [esp + 0x4c], edi
cmp dword [edi + 0xc44], 1
jb 0x4d4e07
mov ecx, dword [edi + 0xc48]
lea edx, [edi + 0xc40]
mov eax, dword [edx]
push esi
mov dword [esp + 0x2c], ecx
xor esi, esi
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], esi
test ecx, ecx
je 0x4d4deb
lea eax, [edi + 0x1c]
mov dword [esp + 0xc], eax
add eax, 0x200
mov dword [esp + 0x18], eax
nop
mov eax, ecx
mov edx, 0x80
mov ecx, dword [edi + 0x18]
sub eax, esi
sub edx, ecx
mov dword [esp + 0x24], ecx
cmp edx, eax
cmova edx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x60]
lea eax, [eax + esi*4]
lea esi, [edx*4]
mov dword [esp + 0x30], esi
test edx, edx
je 0x4d46c8
push esi
push eax
push ecx
call fcn.004347f0
mov eax, dword [edi + 0x18]
add esp, 0xc
jmp 0x4d46cc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x24], 0
cmp dword [ecx], 0
jbe 0x4d48de
mov edx, dword [esp + 0x50]
mov eax, dword [edx + 0x428]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x41c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
lea ecx, [ecx + eax*4]
add ecx, 0x10
mov dword [esp + 0x38], ecx
nop dword [eax]
lea eax, [esi + ecx]
mov esi, ecx
mov dword [esp + 0x4c], eax
lea edi, [edi + 8]
lea edi, [edx + edi*4]
cmp ecx, eax
je 0x4d477f
mov edx, dword [esp + 0x44]
xorps xmm3, xmm3
sub edx, edi
nop dword [eax]
movaps xmm2, xmm3
mov eax, edi
mov ecx, 0x20
nop word [eax + eax]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [edx + eax]
add eax, 0x10
mulps xmm1, xmm0
addps xmm2, xmm1
sub ecx, 1
jne 0x4d4740
movaps xmm1, xmm2
add edi, 4
shufps xmm1, xmm2, 0x1b
sub edx, 4
addps xmm1, xmm2
movaps xmm0, xmm1
movhlps xmm0, xmm1
addps xmm0, xmm1
movss dword [esi], xmm0
add esi, 4
cmp esi, dword [esp + 0x4c]
jne 0x4d4730
mov edx, dword [esp + 0x50]
mov eax, dword [edx + 0x18]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x34], 0
lea ecx, [ecx + eax*4]
mov dword [esp + 0x14], esi
lea edx, [edi + ecx]
mov dword [esp + 0x20], 0
shr edi, 2
mov dword [esp + 0x4c], edx
mov edx, esi
cmp ecx, dword [esp + 0x4c]
cmova edi, dword [esp + 0x34]
mov dword [esp + 0x34], edi
cmp dword [esp + 0x34], 0
mov edi, dword [esp + 0x50]
mov edi, dword [edi + 0x18]
je 0x4d4877
mov edi, dword [esp + 0x50]
mov eax, dword [edi + 0x18]
mov edi, dword [esp + 0x34]
cmp edi, 0x10
jb 0x4d4875
mov eax, esi
lea esi, [edi - 1]
lea esi, [eax + esi*4]
mov dword [esp + 0x10], esi
cmp eax, esi
mov esi, eax
ja 0x4d4801
mov eax, dword [esp + 0x50]
mov edi, dword [eax + 0x18]
mov eax, edi
jmp 0x4d4877
lea eax, [edi - 1]
lea eax, [ecx + eax*4]
cmp dword [esp + 0x38], eax
ja 0x4d481e
mov edi, dword [esp + 0x50]
mov eax, dword [edi + 0x18]
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x10], ecx
jae 0x4d4875
mov eax, dword [esp + 0x20]
and edi, 0xfffffff0
movups xmm0, xmmword [edx]
add eax, 0x10
movups xmm1, xmmword [ecx]
addps xmm1, xmm0
movups xmmword [esi], xmm1
movups xmm0, xmmword [edx + 0x10]
movups xmm1, xmmword [ecx + 0x10]
addps xmm1, xmm0
movups xmmword [esi + 0x10], xmm1
movups xmm0, xmmword [edx + 0x20]
movups xmm1, xmmword [ecx + 0x20]
addps xmm1, xmm0
movups xmmword [esi + 0x20], xmm1
movups xmm1, xmmword [ecx + 0x30]
add ecx, 0x40
movups xmm0, xmmword [edx + 0x30]
add edx, 0x40
addps xmm1, xmm0
movups xmmword [esi + 0x30], xmm1
add esi, 0x40
cmp eax, edi
jne 0x4d4825
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x18]
mov edi, eax
cmp ecx, dword [esp + 0x4c]
je 0x4d48a3
mov eax, dword [esp + 0x4c]
sub esi, edx
movss xmm0, dword [ecx]
add ecx, 4
addss xmm0, dword [edx]
movss dword [edx + esi], xmm0
add edx, 4
cmp ecx, eax
jne 0x4d4883
mov edx, dword [esp + 0x50]
mov eax, dword [edx + 0x18]
mov edi, eax
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
inc esi
add dword [esp + 0x44], 0x200
add ecx, 0x10a0
add dword [esp + 0x40], 0x400
cmp esi, dword [edx]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
jb 0x4d4710
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov edi, dword [esp + 0x50]
add dword [esp + 0x28], ecx
mov dword [edi + 0x18], eax
cmp eax, 0x80
jb 0x4d4ddd
push 0x200
push dword [esp + 0x1c]
lea eax, [edi + 0x1c]
mov dword [edi + 0x18], 0
push eax
call fcn.004347f0
mov edx, dword [esp + 0x18]
lea esi, [edi + 0x440]
mov ecx, esi
mov dword [esp + 0x4c], esi
add esp, 0xc
mov edi, 0x7f
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [ecx + 4], 0
add ecx, 8
nop dword [eax]
mov eax, dword [edx + 4]
lea edx, [edx + 4]
mov dword [ecx], eax
mov dword [ecx + 4], 0
add ecx, 8
sub edi, 1
jne 0x4d4940
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x50]
cmp ecx, edx
je 0x4d4987
add ecx, 4
nop word [eax + eax]
mov dword [ecx - 4], 0
mov dword [ecx], 0
add ecx, 8
lea eax, [ecx - 4]
cmp eax, edx
jne 0x4d4970
push ecx
lea eax, [esi + 0x800]
mov dword [esp], 0xbf800000
push eax
push esi
mov dword [esp + 0x2c], eax
call fcn.004e1330
imul ecx, dword [esp + 0x54], 0x408
mov eax, dword [edi + 0xc4c]
push 0x408
push esi
add eax, ecx
mov dword [esp + 0x30], ecx
push eax
call fcn.004347f0
imul eax, dword [edi + 0xc44], 0x408
add esp, 0x18
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], 0
add eax, dword [edi + 0xc4c]
cmp dword [ecx], 0
mov dword [esp + 0x4c], eax
jbe 0x4d4db8
mov dword [esp + 0x44], 0
mov edi, dword [esp + 0x40]
xorps xmm0, xmm0
movss dword [esi], xmm0
add edi, 8
movss dword [esi + 4], xmm0
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x48]
mov edi, esi
mov edx, dword [ecx + 0xc4c]
add edx, dword [esp + 0x1c]
cmp esi, dword [ecx + 0xc44]
jae 0x4d4aa5
nop word [eax + eax]
mov ecx, dword [esp + 0x40]
mov esi, 0x81
nop dword [eax]
movss xmm5, dword [edx]
movss xmm3, dword [edx + 4]
add edx, 8
movss xmm4, dword [eax]
movss xmm2, dword [eax + 4]
movaps xmm1, xmm4
movaps xmm0, xmm2
mulss xmm1, xmm5
add eax, 8
mulss xmm4, xmm3
mulss xmm0, xmm3
mulss xmm2, xmm5
subss xmm1, xmm0
addss xmm4, xmm2
addss xmm1, dword [ecx]
addss xmm4, dword [ecx + 4]
movss dword [ecx], xmm1
movss dword [ecx + 4], xmm4
add ecx, 8
sub esi, 1
jne 0x4d4a40
mov ecx, dword [esp + 0x50]
inc edi
mov dword [esp + 0x4c], eax
cmp edi, dword [ecx + 0xc44]
jb 0x4d4a30
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x50]
mov edx, dword [edi + 0xc4c]
test esi, esi
je 0x4d4b26
mov edi, esi
nop word [eax + eax]
mov ecx, dword [esp + 0x40]
mov esi, 0x81
nop dword [eax]
movss xmm4, dword [eax]
movss xmm2, dword [eax + 4]
movaps xmm1, xmm4
mulss xmm1, dword [edx]
movaps xmm0, xmm2
add eax, 8
mulss xmm4, dword [edx + 4]
mulss xmm0, dword [edx + 4]
mulss xmm2, dword [edx]
add edx, 8
subss xmm1, xmm0
addss xmm4, xmm2
addss xmm1, dword [ecx]
addss xmm4, dword [ecx + 4]
movss dword [ecx], xmm1
movss dword [ecx + 4], xmm4
add ecx, 8
sub esi, 1
jne 0x4d4ad0
mov dword [esp + 0x4c], eax
sub edi, 1
jne 0x4d4ac0
mov edi, dword [esp + 0x50]
movss xmm2, dword [0x511aa0]
lea eax, [edi + 0x854]
lea ecx, [edi + 0x834]
mov edx, 0xf
nop
movss xmm1, dword [ecx + 8]
lea eax, [eax + 0x40]
movss xmm0, dword [ecx + 4]
xorps xmm1, xmm2
movss dword [eax - 0x48], xmm1
lea ecx, [ecx - 0x40]
movss dword [eax - 0x4c], xmm0
movss xmm1, dword [ecx + 0x40]
movss xmm0, dword [ecx + 0x3c]
xorps xmm1, xmm2
movss dword [eax - 0x40], xmm1
movss dword [eax - 0x44], xmm0
movss xmm1, dword [ecx + 0x38]
movss xmm0, dword [ecx + 0x34]
xorps xmm1, xmm2
movss dword [eax - 0x38], xmm1
movss dword [eax - 0x3c], xmm0
movss xmm1, dword [ecx + 0x30]
movss xmm0, dword [ecx + 0x2c]
xorps xmm1, xmm2
movss dword [eax - 0x30], xmm1
movss dword [eax - 0x34], xmm0
movss xmm1, dword [ecx + 0x28]
movss xmm0, dword [ecx + 0x24]
xorps xmm1, xmm2
movss dword [eax - 0x28], xmm1
movss dword [eax - 0x2c], xmm0
movss xmm1, dword [ecx + 0x20]
movss xmm0, dword [ecx + 0x1c]
xorps xmm1, xmm2
movss dword [eax - 0x20], xmm1
movss dword [eax - 0x24], xmm0
movss xmm1, dword [ecx + 0x18]
movss xmm0, dword [ecx + 0x14]
xorps xmm1, xmm2
movss dword [eax - 0x18], xmm1
movss dword [eax - 0x1c], xmm0
movss xmm1, dword [ecx + 0x10]
movss xmm0, dword [ecx + 0xc]
xorps xmm1, xmm2
movss dword [eax - 0x14], xmm0
movss dword [eax - 0x10], xmm1
sub edx, 1
jne 0x4d4b40
lea eax, [edi + 0xc08]
mov edx, 7
lea ecx, [edi + 0x478]
nop dword [eax + eax]
movss xmm1, dword [ecx + 4]
lea eax, [eax + 8]
movss xmm0, dword [ecx]
xorps xmm1, xmm2
sub ecx, 8
movss dword [eax - 8], xmm0
movss dword [eax - 4], xmm1
sub edx, 1
jne 0x4d4c20
push ecx
mov dword [esp], 0x3f800000
lea eax, [edi + 0x440]
push dword [esp + 0x24]
push eax
call fcn.004e1330
mov eax, dword [edi + 0x428]
lea ecx, [edi + 0x448]
mov esi, dword [esp + 0x50]
add eax, 0x204
movss xmm1, dword [0x5c02bc]
add esp, 0xc
add eax, esi
mov edx, 0x10
movss xmm0, dword [eax - 4]
addss xmm0, dword [ecx - 8]
mulss xmm0, xmm1
movss dword [eax - 0x204], xmm0
movss xmm0, dword [ecx]
addss xmm0, dword [eax]
mulss xmm0, xmm1
movss dword [eax - 0x200], xmm0
movss xmm0, dword [eax + 4]
addss xmm0, dword [ecx + 8]
mulss xmm0, xmm1
movss dword [eax - 0x1fc], xmm0
movss xmm0, dword [eax + 8]
addss xmm0, dword [ecx + 0x10]
mulss xmm0, xmm1
movss dword [eax - 0x1f8], xmm0
movss xmm0, dword [eax + 0xc]
addss xmm0, dword [ecx + 0x18]
mulss xmm0, xmm1
movss dword [eax - 0x1f4], xmm0
movss xmm0, dword [eax + 0x10]
addss xmm0, dword [ecx + 0x20]
mulss xmm0, xmm1
movss dword [eax - 0x1f0], xmm0
movss xmm0, dword [eax + 0x14]
addss xmm0, dword [ecx + 0x28]
mulss xmm0, xmm1
movss dword [eax - 0x1ec], xmm0
movss xmm0, dword [eax + 0x18]
addss xmm0, dword [ecx + 0x30]
add ecx, 0x40
mulss xmm0, xmm1
movss dword [eax - 0x1e8], xmm0
add eax, 0x20
sub edx, 1
jne 0x4d4c80
mov edx, dword [edi + 0x428]
lea ecx, [edi + 0x848]
add esi, 0x204
add edx, esi
mov esi, 0x10
mov eax, dword [ecx - 8]
lea edx, [edx + 0x20]
mov dword [edx - 0x24], eax
lea ecx, [ecx + 0x40]
mov eax, dword [ecx - 0x40]
mov dword [edx - 0x20], eax
mov eax, dword [ecx - 0x38]
mov dword [edx - 0x1c], eax
mov eax, dword [ecx - 0x30]
mov dword [edx - 0x18], eax
mov eax, dword [ecx - 0x28]
mov dword [edx - 0x14], eax
mov eax, dword [ecx - 0x20]
mov dword [edx - 0x10], eax
mov eax, dword [ecx - 0x18]
mov dword [edx - 0xc], eax
mov eax, dword [ecx - 0x10]
mov dword [edx - 8], eax
sub esi, 1
jne 0x4d4d56
mov eax, dword [esp + 0x30]
lea esi, [edi + 0x440]
mov ecx, dword [esp + 0x2c]
inc eax
add dword [esp + 0x44], 0x400
mov dword [esp + 0x30], eax
cmp eax, dword [ecx]
mov eax, dword [esp + 0x4c]
jb 0x4d49f4
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4d4dc6
mov eax, dword [edi + 0xc44]
mov esi, dword [esp + 0x28]
dec eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
cmp esi, ecx
jb 0x4d4680
jmp 0x4d4de1
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
lea edx, [edi + 0xc40]
push ecx
push dword [esp + 0x70]
mov ecx, dword [edi + 0xc54]
push dword [esp + 0x70]
mov dword [edx], eax
add ecx, edi
mov eax, dword [edi + 0xc50]
call eax
pop esi
mov ecx, dword [esp + 0x50]
pop edi
xor ecx, esp
call fcn.00432bfc
add esp, 0x50
ret 0x14