Function at 0x4fd980
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x6c
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x2c], edx
cmp edi, 0xffffffff
je 0x4fe626
mov ebp, dword [ecx + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edi
lea edx, [ebp + 1]
mov dword [esp + 0x3c], ebp
mov eax, edx
mov esi, edx
shr eax, 3
and esi, 0xfffffff8
sub esi, eax
cmp ebp, 8
cmovb esi, ebp
mov eax, esi
shr eax, 1
cmp edi, eax
jae 0x4fda33
mov ebx, dword [ecx]
mov ecx, edx
xor eax, eax
mov dword [esp + 0x64], esi
shr ecx, 4
test dl, 0xf
setne al
add eax, ecx
je 0x4fda06
movdqa xmm0, xmmword [0x501350]
mov ecx, ebx
nop word cs:[eax + eax]
nop
pxor xmm1, xmm1
dec eax
pcmpgtb xmm1, xmmword [ecx]
por xmm1, xmm0
movdqa xmmword [ecx], xmm1
lea ecx, [ecx + 0x10]
jne 0x4fd9f0
cmp edx, 0x10
jae 0x4fda59
lea eax, [ebx + 0x10]
push edx
push ebx
push eax
mov esi, edx
call fcn.004ef180
add esp, 0xc
test esi, esi
jne 0x4fda6d
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
jmp 0x4fe619
cmp edi, esi
mov dword [esp + 0x24], edx
cmova esi, edi
cmp esi, 7
jae 0x4fe3b5
xor eax, eax
cmp esi, 3
setae al
lea esi, [eax*4 + 4]
jmp 0x4fe3f4
movq xmm0, qword [ebx]
movq xmm1, qword [ebx + 8]
movq qword [ebx + edx + 8], xmm1
movq qword [ebx + edx], xmm0
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
movd xmm0, dword [0x501360]
mov dword [esp + 0x44], ebx
mov ecx, eax
xor eax, 0x6e657261
xor ecx, 0x70736575
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], ecx
mov ecx, esi
xor esi, 0x6c796765
xor ecx, 0x736f6d65
mov dword [esp + 0x58], esi
mov dword [esp + 0x50], ecx
mov ecx, edx
xor edx, 0x79746573
xor ecx, 0x6e646f6d
mov dword [esp + 0x5c], edx
xor edx, edx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x88]
mov edi, ecx
xor ecx, 0x74656462
xor edi, 0x646f7261
mov dword [esp + 0x60], ecx
xor ecx, ecx
mov dword [esp + 0x48], edi
jmp 0x4fdb10
mov edx, dword [esp + 0x38]
shr ecx, 0x19
lea eax, [edx - 0x10]
mov byte [ebx + edx], cl
and eax, ebp
mov byte [ebx + eax + 0x10], cl
xor ecx, ecx
cmp edx, ebp
lea edx, [edx + 1]
je 0x4fda1f
cmp cl, byte [ebx + edx]
jno 0x4fdb05
mov eax, edx
mov dword [esp + 0x38], edx
shl eax, 5
sub ebx, eax
lea eax, [ebx - 0x20]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x40], eax
nop dword [eax + eax]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov ecx, dword [eax - 0x1c]
mov ebp, dword [eax - 0x18]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x2c]
mov ebx, ebp
and ebx, 0xfffffff8
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], ecx
mov ecx, 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x58]
je 0x4fdcab
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], ebx
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov dword [esp], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
nop word cs:[eax + eax]
nop
mov dword [esp + 4], esi
mov ecx, dword [esp]
mov esi, dword [esp + 0x24]
mov esi, dword [esi + ecx + 4]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x24]
xor ebx, dword [esp + 0xc]
mov ecx, dword [esi + ecx]
mov esi, dword [esp + 0x14]
xor ebp, ecx
add dword [esp + 4], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
adc edi, edx
add esi, ebp
mov dword [esp + 8], edi
adc ecx, ebx
mov edi, eax
shld eax, edx, 0xd
shld edx, edi, 0xd
mov dword [esp + 0x14], ecx
mov ecx, ebp
mov edi, dword [esp + 4]
shld ebp, ebx, 0x10
shrd ecx, ebx, 0x10
mov ebx, dword [esp + 0x14]
xor edx, dword [esp + 8]
xor ebp, esi
xor eax, edi
xor ecx, ebx
add esi, eax
mov dword [esp + 0x10], esi
mov esi, ebx
adc esi, edx
mov dword [esp + 0x14], esi
mov esi, dword [esp + 8]
add esi, ebp
mov dword [esp + 8], esi
mov esi, eax
adc edi, ecx
shld esi, edx, 0x11
shld edx, eax, 0x11
mov dword [esp + 0x20], esi
mov esi, ebp
shrd ebp, ecx, 0xb
xor edx, dword [esp + 0x14]
shld esi, ecx, 0x15
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov ebx, ebp
mov ebp, esi
mov esi, dword [esp + 8]
xor ebx, edi
xor edi, dword [esp + 0xc]
xor eax, ecx
mov ecx, dword [esp]
xor ebp, esi
xor esi, dword [esp + 0x1c]
add ecx, 8
cmp ecx, dword [esp + 0x28]
mov dword [esp], ecx
jb 0x4fdbc0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp], ebx
dec eax
and eax, 0xfffffff8
add eax, 8
mov ecx, eax
mov eax, dword [esp + 0x10]
mov ebx, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 8], edi
mov dword [esp + 0x18], ecx
and ebx, 7
cmp ebx, 4
jb 0x4fdce0
mov eax, dword [esp + 0x24]
xor edi, edi
mov eax, dword [eax + ecx]
mov dword [esp + 0x1c], eax
mov eax, 4
jmp 0x4fdcec
mov dword [esp + 0x1c], 0
xor edi, edi
xor eax, eax
mov ecx, eax
mov dword [esp + 0x28], edx
mov dword [esp + 4], esi
or ecx, 1
cmp ecx, ebx
jae 0x4fdd34
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add ecx, eax
movzx esi, word [edx + ecx]
mov edx, ebx
lea ecx, [eax*8]
xor ebx, ebx
shld ebx, esi, cl
shl esi, cl
test cl, 0x20
mov ecx, 0
cmovne ebx, esi
cmovne esi, ecx
or eax, 2
or dword [esp + 0x1c], esi
or edi, ebx
mov ebx, edx
cmp eax, ebx
jae 0x4fdd80
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
add edx, eax
shl eax, 3
movzx esi, byte [esi + edx]
mov edx, ebx
xor ebx, ebx
mov ecx, eax
shld ebx, esi, cl
shl esi, cl
test al, 0x20
mov eax, 0
mov ecx, ebp
cmovne ebx, esi
cmovne esi, eax
mov eax, dword [esp + 0x1c]
inc ecx
or edi, ebx
mov ebx, edx
mov dword [esp + 0x18], ecx
mov edx, edi
or eax, esi
jmp 0x4fdd93
inc ebp
test ebx, ebx
je 0x4fdea7
mov eax, dword [esp + 0x1c]
mov edx, edi
mov dword [esp + 0x18], ebp
lea ecx, [ebx*8]
xor ebp, ebp
mov esi, 0xff
mov edi, 0xff
shld ebp, esi, cl
shl edi, cl
test cl, 0x20
mov esi, 0
mov ecx, ebp
cmovne ecx, edi
cmovne edi, esi
or ecx, edx
or edi, eax
cmp ebx, 7
jne 0x4fde90
mov eax, dword [esp]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0x28]
mov dword [esp], edi
xor eax, ecx
mov ecx, dword [esp + 0x20]
xor ebx, edi
mov edi, dword [esp + 0x10]
add dword [esp + 4], ecx
mov edx, ecx
adc ebp, esi
add dword [esp + 0x14], ebx
adc edi, eax
shld edx, esi, 0xd
shld esi, ecx, 0xd
mov ecx, ebx
shrd ebx, eax, 0x10
shld ecx, eax, 0x10
xor edx, dword [esp + 4]
mov eax, edi
xor ebx, edi
mov edi, dword [esp + 0x14]
xor esi, ebp
xor ecx, edi
add edi, edx
mov dword [esp + 8], edi
mov edi, edx
mov edx, dword [esp + 4]
adc eax, esi
add ebp, ecx
mov dword [esp + 0x10], eax
mov eax, edi
adc edx, ebx
shrd edi, esi, 0xf
shld eax, esi, 0x11
mov esi, ecx
shrd ecx, ebx, 0xb
shld esi, ebx, 0x15
mov ebx, edx
xor ecx, edx
xor edi, dword [esp + 0x10]
xor ebx, dword [esp + 0xc]
xor esi, ebp
xor ebp, dword [esp]
mov dword [esp], ecx
mov ecx, dword [esp + 0x10]
mov edx, edi
xor edi, edi
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 4], ebp
mov ecx, dword [esp]
mov ebp, dword [esp + 0x18]
xor eax, ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x20], eax
mov eax, esi
xor esi, esi
jmp 0x4fdec0
mov esi, ecx
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
jmp 0x4fdec0
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
xor esi, esi
mov edi, 0xff
nop dword [eax]
shl ebp, 0x18
xor eax, edi
mov dword [esp], edi
mov edi, dword [esp + 0x10]
or ebp, esi
movd xmm4, dword [esp]
mov dword [esp + 0x18], ebp
xor ecx, ebp
mov ebp, dword [esp + 0x20]
mov esi, ecx
movd xmm3, dword [esp + 0x18]
add dword [esp + 4], ebp
punpckldq xmm4, xmm3
adc ebx, edx
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x14]
add ebx, eax
adc edi, ecx
mov ecx, ebp
shld ecx, edx, 0xd
shld edx, ebp, 0xd
mov ebp, eax
shrd eax, esi, 0x10
shld ebp, esi, 0x10
mov esi, dword [esp + 8]
xor ecx, dword [esp + 4]
xor eax, edi
xor ebp, ebx
xor edx, esi
add ebx, ecx
adc edi, edx
add esi, ebp
mov dword [esp + 8], esi
mov esi, ecx
adc dword [esp + 4], eax
shrd ecx, edx, 0xf
movd xmm3, edi
shld esi, edx, 0x11
movd xmm5, dword [esp + 4]
movd xmm6, dword [esp + 8]
mov dword [esp + 0x10], esi
mov esi, ebp
shrd ebp, eax, 0xb
shld esi, eax, 0x15
movd xmm1, ebp
mov ebp, dword [esp + 0x3c]
movd xmm2, esi
punpckldq xmm2, xmm1
punpckldq xmm6, xmm5
punpcklqdq xmm4, xmm2
movd xmm2, dword [esp + 0x10]
pshufd xmm1, xmm6, 0x44
movd xmm6, ecx
pxor xmm1, xmm4
movd xmm4, ebx
mov ebx, dword [esp + 0x44]
movdqa xmm5, xmm4
punpckldq xmm5, xmm3
punpckldq xmm3, xmm4
punpckldq xmm2, xmm6
punpcklqdq xmm5, xmm0
punpcklqdq xmm2, xmm3
pxor xmm2, xmm5
movdqa xmm5, xmm1
movdqa xmm3, xmm2
movdqa xmm4, xmm2
psrlq xmm5, 0x30
psllq xmm2, 0xd
paddq xmm3, xmm1
psllq xmm1, 0x10
psrlq xmm4, 0x33
movsd xmm1, xmm2
movsd xmm5, xmm4
pshufd xmm2, xmm3, 0x1e
orpd xmm1, xmm5
xorpd xmm1, xmm3
movapd xmm3, xmm1
movapd xmm4, xmm1
paddq xmm2, xmm1
psrlq xmm3, 0x2f
psrlq xmm4, 0x2b
movsd xmm4, xmm3
movdqa xmm3, xmm1
psllq xmm1, 0x15
psllq xmm3, 0x11
movsd xmm1, xmm3
orpd xmm1, xmm4
xorpd xmm1, xmm2
pshufd xmm2, xmm2, 0x1e
movapd xmm3, xmm1
movapd xmm4, xmm1
paddq xmm2, xmm1
psrlq xmm3, 0x33
psrlq xmm4, 0x30
movsd xmm4, xmm3
movdqa xmm3, xmm1
psllq xmm1, 0x10
psllq xmm3, 0xd
movsd xmm1, xmm3
orpd xmm1, xmm4
xorpd xmm1, xmm2
pshufd xmm2, xmm2, 0x1e
movapd xmm3, xmm1
movapd xmm4, xmm1
paddq xmm2, xmm1
psrlq xmm3, 0x2f
psrlq xmm4, 0x2b
movsd xmm4, xmm3
movdqa xmm3, xmm1
psllq xmm1, 0x15
psllq xmm3, 0x11
movsd xmm1, xmm3
orpd xmm1, xmm4
xorpd xmm1, xmm2
pshufd xmm2, xmm2, 0x1e
movapd xmm3, xmm1
movapd xmm4, xmm1
paddq xmm2, xmm1
psrlq xmm3, 0x33
psrlq xmm4, 0x30
movsd xmm4, xmm3
movdqa xmm3, xmm1
psllq xmm1, 0x10
psllq xmm3, 0xd
movsd xmm1, xmm3
orpd xmm1, xmm4
xorpd xmm1, xmm2
movapd xmm3, xmm1
movapd xmm4, xmm1
pshufd xmm5, xmm1, 0x44
psrlq xmm3, 0x2f
psrlq xmm4, 0x2b
paddq xmm5, xmm2
movsd xmm4, xmm3
movdqa xmm3, xmm1
psllq xmm1, 0x15
psllq xmm3, 0x11
movsd xmm1, xmm3
orpd xmm1, xmm4
pshufd xmm3, xmm1, 0xee
pxor xmm3, xmm1
pshufd xmm1, xmm5, 0xee
movd eax, xmm1
pshufd xmm1, xmm5, 0xff
movd ecx, xmm3
movd edx, xmm1
xor edx, eax
mov eax, ebp
xor ecx, edx
and eax, ecx
movdqu xmm1, xmmword [ebx + eax]
mov esi, eax
pmovmskb edx, xmm1
test edx, edx
jne 0x4fe144
mov edi, 0x10
mov esi, eax
nop dword [eax]
add esi, edi
add edi, 0x10
and esi, ebp
movdqu xmm1, xmmword [ebx + esi]
pmovmskb edx, xmm1
test edx, edx
je 0x4fe130
tzcnt edx, edx
add edx, esi
and edx, ebp
cmp byte [ebx + edx], 0
js 0x4fe15e
movdqa xmm1, xmmword [ebx]
pmovmskb edx, xmm1
tzcnt edx, edx
mov esi, dword [esp + 0x38]
mov edi, edx
sub edi, eax
sub esi, eax
xor edi, esi
and edi, ebp
cmp edi, 0x10
jb 0x4fdaf0
mov eax, edx
mov edi, ebx
lea esi, [edx - 0x10]
shr ecx, 0x19
shl eax, 5
and esi, ebp
neg eax
lea eax, [ebx + eax - 0x20]
movzx ebx, byte [ebx + edx]
mov byte [edi + edx], cl
mov byte [edi + esi + 0x10], cl
cmp bl, 0xff
je 0x4fe370
mov esi, dword [esp + 0x40]
movzx edx, byte [eax]
movzx ecx, byte [esi]
mov byte [esi], dl
mov byte [eax], cl
movzx ecx, byte [esi + 1]
movzx edx, byte [eax + 1]
mov byte [esi + 1], dl
mov byte [eax + 1], cl
movzx ecx, byte [esi + 2]
movzx edx, byte [eax + 2]
mov byte [esi + 2], dl
mov byte [eax + 2], cl
movzx ecx, byte [esi + 3]
movzx edx, byte [eax + 3]
mov byte [esi + 3], dl
mov byte [eax + 3], cl
movzx ecx, byte [esi + 4]
movzx edx, byte [eax + 4]
mov byte [esi + 4], dl
mov byte [eax + 4], cl
movzx ecx, byte [esi + 5]
movzx edx, byte [eax + 5]
mov byte [esi + 5], dl
mov byte [eax + 5], cl
movzx ecx, byte [esi + 6]
movzx edx, byte [eax + 6]
mov byte [esi + 6], dl
mov byte [eax + 6], cl
movzx ecx, byte [esi + 7]
movzx edx, byte [eax + 7]
mov byte [esi + 7], dl
mov byte [eax + 7], cl
movzx ecx, byte [esi + 8]
movzx edx, byte [eax + 8]
mov byte [esi + 8], dl
mov byte [eax + 8], cl
movzx ecx, byte [esi + 9]
movzx edx, byte [eax + 9]
mov byte [esi + 9], dl
mov byte [eax + 9], cl
movzx ecx, byte [esi + 0xa]
movzx edx, byte [eax + 0xa]
mov byte [esi + 0xa], dl
mov byte [eax + 0xa], cl
movzx ecx, byte [esi + 0xb]
movzx edx, byte [eax + 0xb]
mov byte [esi + 0xb], dl
mov byte [eax + 0xb], cl
movzx ecx, byte [esi + 0xc]
movzx edx, byte [eax + 0xc]
mov byte [esi + 0xc], dl
mov byte [eax + 0xc], cl
movzx ecx, byte [esi + 0xd]
movzx edx, byte [eax + 0xd]
mov byte [esi + 0xd], dl
mov byte [eax + 0xd], cl
movzx ecx, byte [esi + 0xe]
movzx edx, byte [eax + 0xe]
mov byte [esi + 0xe], dl
mov byte [eax + 0xe], cl
movzx ecx, byte [esi + 0xf]
movzx edx, byte [eax + 0xf]
mov byte [esi + 0xf], dl
mov byte [eax + 0xf], cl
movzx ecx, byte [esi + 0x10]
movzx edx, byte [eax + 0x10]
mov byte [esi + 0x10], dl
mov byte [eax + 0x10], cl
movzx ecx, byte [esi + 0x11]
movzx edx, byte [eax + 0x11]
mov byte [esi + 0x11], dl
mov byte [eax + 0x11], cl
movzx ecx, byte [esi + 0x12]
movzx edx, byte [eax + 0x12]
mov byte [esi + 0x12], dl
mov byte [eax + 0x12], cl
movzx ecx, byte [esi + 0x13]
movzx edx, byte [eax + 0x13]
mov byte [esi + 0x13], dl
mov byte [eax + 0x13], cl
movzx ecx, byte [esi + 0x14]
movzx edx, byte [eax + 0x14]
mov byte [esi + 0x14], dl
mov byte [eax + 0x14], cl
movzx ecx, byte [esi + 0x15]
movzx edx, byte [eax + 0x15]
mov byte [esi + 0x15], dl
mov byte [eax + 0x15], cl
movzx ecx, byte [esi + 0x16]
movzx edx, byte [eax + 0x16]
mov byte [esi + 0x16], dl
mov byte [eax + 0x16], cl
movzx ecx, byte [esi + 0x17]
movzx edx, byte [eax + 0x17]
mov byte [esi + 0x17], dl
mov byte [eax + 0x17], cl
movzx ecx, byte [esi + 0x18]
movzx edx, byte [eax + 0x18]
mov byte [esi + 0x18], dl
mov byte [eax + 0x18], cl
movzx ecx, byte [esi + 0x19]
movzx edx, byte [eax + 0x19]
mov byte [esi + 0x19], dl
mov byte [eax + 0x19], cl
movzx ecx, byte [esi + 0x1a]
movzx edx, byte [eax + 0x1a]
mov byte [esi + 0x1a], dl
mov byte [eax + 0x1a], cl
movzx ecx, byte [esi + 0x1b]
movzx edx, byte [eax + 0x1b]
mov byte [esi + 0x1b], dl
mov byte [eax + 0x1b], cl
movzx ecx, byte [esi + 0x1c]
movzx edx, byte [eax + 0x1c]
mov byte [esi + 0x1c], dl
mov byte [eax + 0x1c], cl
movzx ecx, byte [esi + 0x1d]
movzx edx, byte [eax + 0x1d]
mov byte [esi + 0x1d], dl
mov byte [eax + 0x1d], cl
movzx ecx, byte [esi + 0x1e]
movzx edx, byte [eax + 0x1e]
mov byte [esi + 0x1e], dl
mov byte [eax + 0x1e], cl
movzx ecx, byte [esi + 0x1f]
movzx edx, byte [eax + 0x1f]
mov byte [esi + 0x1f], dl
mov byte [eax + 0x1f], cl
jmp 0x4fdb30
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
lea ecx, [edx - 0x10]
mov byte [ebx + edx], 0xff
and ecx, ebp
mov byte [ebx + ecx + 0x10], 0xff
movsd xmm1, qword [esi + 0x18]
movsd qword [eax + 0x18], xmm1
movsd xmm1, qword [esi + 0x10]
movsd qword [eax + 0x10], xmm1
movq xmm1, qword [esi]
movsd xmm2, qword [esi + 8]
movsd qword [eax + 8], xmm2
movq qword [eax], xmm1
jmp 0x4fdb03
cmp esi, 0x1ffffffe
ja 0x4fe626
lea ecx, [esi*8 + 8]
mov edx, 0x24924925
mov esi, 0xffffffff
mov eax, ecx
mul edx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 2
dec ecx
bsr ecx, ecx
not ecx
shr esi, cl
cmp esi, 0x7fffffe
ja 0x4fe626
inc esi
mov edi, esi
lea ebp, [esi + 0x10]
shl edi, 5
mov edx, edi
add edx, ebp
jb 0x4fe626
cmp edx, 0x7ffffff1
jae 0x4fe626
movzx eax, byte [0x6019e5]
add edx, 0x10
xor ecx, ecx
call fcn.00499510
test eax, eax
je 0x4fe626
mov ecx, eax
mov edx, esi
lea ebx, [esi - 1]
and ecx, 0xfffffff0
and edx, 0xfffffff8
mov dword [esp + 4], ebx
mov dword [ecx + 0xc], eax
mov eax, esi
shr eax, 3
sub edx, eax
cmp esi, 9
lea eax, [ecx + edi + 0x10]
cmovb edx, ebx
mov dword [esp + 0x1c], edx
push ebp
push 0xff
mov dword [esp + 8], eax
push eax
call fcn.004f0d80
add esp, 0xc
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x30], 0
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
je 0x4fe5dd
mov ebp, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
xor edi, edi
movdqa xmm0, xmmword [ebp]
lea eax, [ebp - 0x20]
mov dword [esp + 0x20], eax
pmovmskb esi, xmm0
not esi
jmp 0x4fe507
mov eax, dword [esp + 0x14]
lea ecx, [edx - 0x10]
and ecx, dword [esp + 4]
shr eax, 0x19
mov byte [ebx + edx], al
mov byte [ebx + ecx + 0x10], al
mov ecx, dword [esp + 0xc]
lea eax, [esi - 1]
shl edx, 5
and eax, esi
mov esi, ebx
sub esi, edx
neg edx
sub ecx, dword [esp + 0x10]
movsd xmm0, qword [ecx - 0x20]
movq xmm1, qword [ecx - 0x18]
movsd qword [ebx + edx - 0x20], xmm0
movsd xmm0, qword [ecx - 8]
movsd qword [esi - 8], xmm0
movq xmm0, qword [ecx - 0x10]
mov ecx, dword [esp + 8]
movq qword [esi - 0x18], xmm1
movq qword [esi - 0x10], xmm0
mov esi, eax
mov eax, dword [esp + 0x34]
dec ecx
test ecx, ecx
je 0x4fe5dd
test si, si
mov dword [esp + 8], ecx
jne 0x4fe529
movdqa xmm0, xmmword [ebp + 0x10]
add ebp, 0x10
add edi, 0x10
pmovmskb esi, xmm0
cmp esi, 0xffff
je 0x4fe510
not esi
mov eax, dword [esp + 0x20]
tzcnt ecx, esi
mov edx, dword [esp + 0x80]
add ecx, edi
shl ecx, 5
mov dword [esp + 0x10], ecx
sub eax, ecx
mov ecx, dword [esp + 0x2c]
push dword [eax + 8]
push dword [eax + 4]
push dword [esp + 0x90]
push dword [esp + 0x90]
call fcn.00403cb0
add esp, 0x10
mov ecx, dword [esp + 4]
mov ebx, dword [esp]
mov dword [esp + 0x14], eax
and ecx, eax
movdqu xmm0, xmmword [ebx + ecx]
pmovmskb edx, xmm0
test edx, edx
je 0x4fe590
mov eax, dword [esp + 4]
jmp 0x4fe5ba
mov eax, dword [esp + 4]
mov ebx, 0x10
nop dword [eax]
mov edx, dword [esp]
add ecx, ebx
add ebx, 0x10
and ecx, eax
movdqu xmm0, xmmword [edx + ecx]
pmovmskb edx, xmm0
test edx, edx
je 0x4fe5a0
mov ebx, dword [esp]
tzcnt edx, edx
add edx, ecx
and edx, eax
cmp byte [ebx + edx], 0
js 0x4fe4a0
movdqa xmm0, xmmword [ebx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x4fe4a0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp]
mov esi, dword [esp + 4]
sub ecx, dword [esp + 0x30]
mov dword [eax], edx
mov dword [eax + 4], esi
cmp dword [esp + 0x3c], 0
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x24]
je 0x4fe619
mov ecx, dword [esp + 0xc]
shl eax, 5
sub ecx, eax
push dword [ecx - 4]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, 0x80000001
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
ud2