Function at 0x1001f950
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x10588520]
xor eax, ebp
mov dword [esp + 0x88], eax
mov dword [esp + 0x38], edx
cmp ecx, edx
je 0x10020512
mov edi, dword [ebp + 0xc]
mov eax, edi
or eax, ecx
js 0x100204fe
test edi, edi
je 0x1001f9a0
mov eax, 0x7fffffff
xor edx, edx
div edi
cmp eax, ecx
jl 0x100204fe
mov ebx, dword [ebp + 0x10]
mov eax, edi
imul eax, ecx
mov dword [esp + 0x24], eax
or eax, ebx
js 0x100204fe
test ebx, ebx
je 0x1001f9cb
mov eax, 0x7fffffff
xor edx, edx
div ebx
cmp eax, dword [esp + 0x24]
jl 0x100204fe
mov eax, dword [esp + 0x24]
imul eax, ebx
push eax
call fcn.1037f2d2
add esp, 4
test eax, eax
je 0x100204fe
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
test ebx, ebx
jle 0x1002052a
mov edx, dword [ebp + 0xc]
lea eax, [edx - 1]
mov esi, edx
and esi, 0xfffffff8
mov dword [esp], eax
sub eax, esi
mov dword [esp + 0x34], eax
mov edi, edx
and edi, 3
mov eax, edx
and eax, 7
mov dword [esp + 0x50], eax
mov ecx, edx
mov eax, dword [esp + 0x38]
imul ecx, eax
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*8]
add eax, 0xfffffff6
mov dword [esp + 0x3c], eax
pcmpeqd xmm0, xmm0
pxor xmm1, xmm1
movdqa xmm2, xmmword [str.MMMM]
movdqa xmm3, xmmword [0x103985d0]
movdqa xmm4, xmmword [0x10398570]
lea eax, [edx - 2]
mov dword [esp + 0xc], eax
lea eax, [esi + esi]
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], esi
lea eax, [esi + esi*2]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + 0x17]
lea edx, [edi + edi]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x14], edi
lea edx, [edi + edi*2]
mov dword [esp + 0x48], edx
mov dword [esp + 0x2c], 0
mov esi, eax
mov edi, dword [esp + 0x1c]
jmp 0x1001facc
mov edx, dword [esp + 0x2c]
inc edx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
add ecx, eax
mov edi, dword [esp + 4]
add edi, dword [esp + 0x24]
mov esi, dword [esp + 8]
add esi, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], edx
cmp edx, eax
je 0x1002052a
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0x40], ecx
cmp dword [esp + 0x3c], 0x19
ja case.0x1001fafe.3
mov ecx, dword [esp + 0x2c]
imul ecx, dword [ebp + 0xc]
mov edi, ecx
imul edi, dword [esp + 0x38]
add edi, dword [esp + 0x20]
imul ecx, dword [ebp + 8]
add ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
jmp dword [eax*4 + 0x10398744]
cmp dword [esp], 0
js case.0x1001fafe.3
mov edx, dword [ebp + 0xc]
cmp edx, 8
jae 0x1001fd95
mov eax, dword [esp]
jmp 0x1001fdd2
cmp dword [esp], 0
js case.0x1001fafe.3
mov eax, dword [ebp + 0xc]
test al, 3
je 0x100202bb
xor edi, edi
mov edx, dword [esp]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 8]
nop word cs:[eax + eax]
movzx eax, byte [ebx + edi]
mov byte [ecx + 2], al
mov byte [ecx + 1], al
mov byte [ecx], al
add ecx, 3
inc edi
cmp esi, edi
jne 0x1001fb50
mov eax, edx
sub eax, edi
add edi, ebx
cmp edx, 3
jb case.0x1001fafe.3
jmp 0x100202c9
cmp dword [esp], 0
js case.0x1001fafe.3
mov eax, dword [ebp + 0xc]
test al, 3
je 0x10020315
xor edi, edi
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 8]
mov edx, dword [esp + 4]
nop dword [eax + eax]
movzx eax, byte [ebx + edi]
mov byte [edx + edi*4 + 2], al
mov byte [edx + edi*4 + 1], al
mov byte [edx + edi*4], al
mov byte [edx + edi*4 + 3], 0xff
add ecx, 4
inc edi
cmp esi, edi
jne 0x1001fba0
mov edx, dword [esp]
mov eax, edx
sub eax, edi
add edi, ebx
cmp edx, 3
jb case.0x1001fafe.3
jmp 0x10020323
cmp dword [esp], 0
js case.0x1001fafe.3
mov esi, dword [esp + 0x50]
test esi, esi
je 0x10020396
xor ecx, ecx
mov edx, dword [esp]
mov ebx, dword [esp + 4]
nop word cs:[eax + eax]
movzx eax, byte [edi]
mov byte [ebx + ecx], al
add edi, 2
inc ecx
cmp esi, ecx
jne 0x1001fc00
mov eax, edx
sub eax, ecx
add ecx, ebx
cmp edx, 7
jb case.0x1001fafe.3
jmp 0x100203a4
cmp dword [esp], 0
js case.0x1001fafe.3
mov eax, dword [ebp + 0xc]
test al, 3
je 0x10020406
xor ecx, ecx
mov eax, dword [esp]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 4]
nop word cs:[eax + eax]
movzx edx, byte [edi]
mov byte [esi + ecx + 2], dl
mov byte [esi + ecx + 1], dl
mov byte [esi + ecx], dl
add edi, 2
dec eax
add ecx, 3
cmp ebx, ecx
jne 0x1001fc50
add ecx, esi
mov edx, dword [esp]
cmp edx, 3
jb case.0x1001fafe.3
jmp 0x10020414
cmp dword [esp], 0
js case.0x1001fafe.3
cmp dword [esp + 0x14], 0
je 0x10020465
xor edi, edi
mov eax, dword [esp]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 4]
nop
mov edx, dword [esp + 8]
movzx edx, word [edx + edi]
movd xmm5, edx
punpcklbw xmm5, xmm1
pshuflw xmm5, xmm5, 0x40
packuswb xmm5, xmm5
movd dword [esi + edi*2], xmm5
add ecx, 4
dec eax
add edi, 2
cmp ebx, edi
jne 0x1001fca0
add edi, dword [esp + 8]
mov edx, dword [esp]
cmp edx, 3
jb case.0x1001fafe.3
jmp 0x10020473
cmp dword [esp], 0
js case.0x1001fafe.3
mov eax, dword [ebp + 0xc]
test al, 1
jne 0x1001fdf7
mov edx, dword [esp]
mov eax, edx
jmp 0x1001fe26
cmp dword [esp], 0
js case.0x1001fafe.3
cmp dword [ebp + 0xc], 8
jae 0x1001fe9d
mov eax, dword [esp]
jmp 0x10020035
cmp dword [esp], 0
js case.0x1001fafe.3
mov eax, dword [ebp + 0xc]
test al, 1
jne 0x10020078
mov edx, dword [esp]
mov eax, edx
jmp 0x1002009c
cmp dword [esp], 0
js case.0x1001fafe.3
mov eax, dword [ebp + 0xc]
test al, 1
jne 0x100200f3
mov edx, dword [esp]
mov eax, edx
jmp 0x10020122
cmp dword [esp], 0
js case.0x1001fafe.3
mov eax, dword [ebp + 0xc]
test al, 1
jne 0x10020192
mov edx, dword [esp]
mov eax, edx
jmp 0x100201ca
cmp dword [esp], 0
js case.0x1001fafe.3
mov eax, dword [ebp + 0xc]
test al, 1
jne 0x10020254
mov edx, dword [esp]
mov eax, edx
jmp 0x10020274
add ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
add edi, esi
xor eax, eax
mov ebx, dword [esp + 8]
mov edx, dword [esp + 4]
nop dword [eax]
movq xmm5, qword [ebx + eax]
punpcklbw xmm5, xmm0
movdqu xmmword [edx + eax*2], xmm5
add eax, 8
cmp esi, eax
jne 0x1001fdb0
mov eax, dword [esp + 0x34]
cmp esi, dword [ebp + 0xc]
je case.0x1001fafe.3
inc eax
xor edx, edx
nop word cs:[eax + eax]
movzx ebx, byte [edi + edx]
mov byte [ecx + edx*2], bl
mov byte [ecx + edx*2 + 1], 0xff
dec eax
inc edx
test eax, eax
jg 0x1001fde0
jmp case.0x1001fafe.3
movzx eax, byte [edi + 2]
lea edx, [eax + eax*8]
lea edx, [edx + edx*2]
add eax, eax
add eax, edx
movzx edx, byte [edi + 1]
imul edx, edx, 0x96
add eax, edx
movzx edx, byte [edi]
imul edx, edx, 0x4d
add eax, edx
mov byte [ecx], ah
add edi, 3
inc ecx
mov eax, dword [esp + 0xc]
mov edx, dword [esp]
test edx, edx
je case.0x1001fafe.3
add eax, 2
add edi, 5
nop word cs:[eax + eax]
movzx edx, byte [edi - 3]
lea esi, [edx + edx*8]
lea esi, [esi + esi*2]
add edx, edx
add edx, esi
movzx esi, byte [edi - 4]
imul esi, esi, 0x96
add edx, esi
movzx esi, byte [edi - 5]
imul esi, esi, 0x4d
add edx, esi
mov byte [ecx], dh
movzx edx, byte [edi]
lea esi, [edx + edx*8]
lea esi, [esi + esi*2]
add edx, edx
add edx, esi
movzx esi, byte [edi - 1]
imul esi, esi, 0x96
add edx, esi
movzx esi, byte [edi - 2]
imul esi, esi, 0x4d
add edx, esi
mov byte [ecx + 1], dh
add ecx, 2
add eax, 0xfffffffe
add edi, 6
cmp eax, 1
jg 0x1001fe40
jmp case.0x1001fafe.3
add ecx, dword [esp + 0x30]
add edi, dword [esp + 0x44]
xor eax, eax
mov edx, dword [esp + 0x40]
nop dword [eax + eax]
mov dword [esp + 0x5c], eax
movzx ebx, byte [edx - 0x15]
movzx esi, byte [edx - 0xf]
movzx eax, byte [edx - 9]
mov dword [esp + 0x10], eax
movzx eax, byte [edx - 3]
mov dword [esp + 0x28], eax
movzx eax, byte [edx - 0xc]
shl eax, 8
or eax, esi
movzx esi, byte [edx - 0x12]
shl esi, 8
or esi, ebx
movd xmm7, esi
pinsrw xmm7, eax, 1
movzx eax, byte [edx]
shl eax, 8
add eax, dword [esp + 0x28]
movzx esi, byte [edx - 6]
shl esi, 8
add esi, dword [esp + 0x10]
movd xmm6, esi
pinsrw xmm6, eax, 1
movzx eax, byte [edx - 0x16]
movzx ebx, byte [edx - 0x10]
movzx esi, byte [edx - 0xa]
mov dword [esp + 0x28], esi
movzx esi, byte [edx - 4]
mov dword [esp + 0x58], esi
movzx esi, byte [edx - 0xd]
shl esi, 8
or esi, ebx
mov dword [esp + 0x10], esi
movzx ebx, byte [edx - 0x13]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx - 1]
shl eax, 8
add eax, dword [esp + 0x58]
movzx esi, byte [edx - 7]
shl esi, 8
add esi, dword [esp + 0x28]
movd xmm5, esi
punpcklbw xmm6, xmm1
punpcklbw xmm7, xmm1
pinsrw xmm5, eax, 1
punpcklbw xmm5, xmm1
punpcklwd xmm5, xmm6
movd xmm6, ebx
pinsrw xmm6, word [esp + 0x10], 1
punpcklbw xmm6, xmm1
punpcklwd xmm6, xmm7
movzx eax, byte [edx - 0x17]
movzx esi, byte [edx - 0x11]
movzx ebx, byte [edx - 0xe]
shl ebx, 8
or ebx, esi
movzx esi, byte [edx - 0x14]
shl esi, 8
or esi, eax
movzx eax, byte [edx - 0xb]
mov dword [esp + 0x10], eax
movd xmm7, esi
movzx eax, byte [edx - 5]
pinsrw xmm7, ebx, 1
movzx esi, byte [edx - 2]
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x5c]
movzx ebx, byte [edx - 8]
shl ebx, 8
add ebx, dword [esp + 0x10]
punpcklbw xmm7, xmm1
punpcklwd xmm7, xmm1
pmaddwd xmm7, xmm2
pmaddwd xmm6, xmm3
paddd xmm6, xmm7
movd xmm7, ebx
pinsrw xmm7, esi, 1
punpcklbw xmm7, xmm1
punpcklwd xmm7, xmm1
pmaddwd xmm7, xmm2
pmaddwd xmm5, xmm3
paddd xmm5, xmm7
psrld xmm6, 8
psrld xmm5, 8
pand xmm5, xmm4
pand xmm6, xmm4
packuswb xmm6, xmm5
packuswb xmm6, xmm6
punpcklbw xmm6, xmm0
mov esi, dword [esp + 4]
movdqu xmmword [esi + eax*2], xmm6
add eax, 8
add edx, 0x18
cmp dword [esp + 0x18], eax
jne 0x1001feb0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
cmp edx, dword [ebp + 0xc]
je case.0x1001fafe.3
inc eax
add edi, 2
nop dword [eax]
movzx edx, byte [edi]
lea esi, [edx + edx*8]
lea esi, [esi + esi*2]
add edx, edx
add edx, esi
movzx esi, byte [edi - 1]
imul esi, esi, 0x96
add edx, esi
movzx esi, byte [edi - 2]
imul esi, esi, 0x4d
add edx, esi
mov byte [ecx], dh
mov byte [ecx + 1], 0xff
add ecx, 2
dec eax
add edi, 3
test eax, eax
jg 0x10020040
jmp case.0x1001fafe.3
movzx eax, byte [edi]
mov byte [ecx], al
movzx eax, byte [edi + 1]
mov byte [ecx + 1], al
movzx eax, byte [edi + 2]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0xff
add edi, 3
add ecx, 4
mov eax, dword [esp + 0xc]
mov edx, dword [esp]
test edx, edx
je case.0x1001fafe.3
add eax, 2
nop word [eax + eax]
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 1]
mov byte [ecx + 1], dl
movzx edx, byte [edi + 2]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0xff
movzx edx, byte [edi + 3]
mov byte [ecx + 4], dl
movzx edx, byte [edi + 4]
mov byte [ecx + 5], dl
movzx edx, byte [edi + 5]
mov byte [ecx + 6], dl
mov byte [ecx + 7], 0xff
add edi, 6
add ecx, 8
add eax, 0xfffffffe
cmp eax, 1
jg 0x100200b0
jmp case.0x1001fafe.3
movzx eax, byte [edi + 2]
lea edx, [eax + eax*8]
lea edx, [edx + edx*2]
add eax, eax
add eax, edx
movzx edx, byte [edi + 1]
imul edx, edx, 0x96
add eax, edx
movzx edx, byte [edi]
imul edx, edx, 0x4d
add eax, edx
mov byte [ecx], ah
add edi, 4
inc ecx
mov eax, dword [esp + 0xc]
mov edx, dword [esp]
test edx, edx
je case.0x1001fafe.3
add eax, 2
xor edx, edx
nop
movzx ebx, byte [edi + edx*4 + 2]
lea esi, [ebx + ebx*8]
lea esi, [esi + esi*2]
add ebx, ebx
add ebx, esi
movzx esi, byte [edi + edx*4 + 1]
imul esi, esi, 0x96
add ebx, esi
movzx esi, byte [edi + edx*4]
imul esi, esi, 0x4d
add ebx, esi
mov byte [ecx + edx], bh
movzx ebx, byte [edi + edx*4 + 6]
lea esi, [ebx + ebx*8]
lea esi, [esi + esi*2]
add ebx, ebx
add ebx, esi
movzx esi, byte [edi + edx*4 + 5]
imul esi, esi, 0x96
add ebx, esi
movzx esi, byte [edi + edx*4 + 4]
imul esi, esi, 0x4d
add ebx, esi
mov byte [ecx + edx + 1], bh
add eax, 0xfffffffe
add edx, 2
cmp eax, 1
jg 0x10020130
jmp case.0x1001fafe.3
movzx eax, byte [edi + 2]
lea edx, [eax + eax*8]
lea edx, [edx + edx*2]
add eax, eax
add eax, edx
movzx edx, byte [edi + 1]
imul edx, edx, 0x96
add eax, edx
movzx edx, byte [edi]
imul edx, edx, 0x4d
add eax, edx
mov byte [ecx], ah
movzx eax, byte [edi + 3]
mov byte [ecx + 1], al
add edi, 4
add ecx, 2
mov eax, dword [esp + 0xc]
mov edx, dword [esp]
test edx, edx
je case.0x1001fafe.3
add eax, 2
xor edx, edx
nop word [eax + eax]
movzx ebx, byte [edi + edx*2 + 2]
lea esi, [ebx + ebx*8]
lea esi, [esi + esi*2]
add ebx, ebx
add ebx, esi
movzx esi, byte [edi + edx*2 + 1]
imul esi, esi, 0x96
add ebx, esi
movzx esi, byte [edi + edx*2]
imul esi, esi, 0x4d
add ebx, esi
mov byte [ecx + edx], bh
movzx ebx, byte [edi + edx*2 + 3]
mov byte [ecx + edx + 1], bl
movzx ebx, byte [edi + edx*2 + 6]
lea esi, [ebx + ebx*8]
lea esi, [esi + esi*2]
add ebx, ebx
add ebx, esi
movzx esi, byte [edi + edx*2 + 5]
imul esi, esi, 0x96
add ebx, esi
movzx esi, byte [edi + edx*2 + 4]
imul esi, esi, 0x4d
add ebx, esi
mov byte [ecx + edx + 2], bh
movzx ebx, byte [edi + edx*2 + 7]
mov byte [ecx + edx + 3], bl
add eax, 0xfffffffe
add edx, 4
cmp eax, 1
jg 0x100201e0
jmp case.0x1001fafe.3
movzx eax, byte [edi]
mov byte [ecx], al
movzx eax, byte [edi + 1]
mov byte [ecx + 1], al
movzx eax, byte [edi + 2]
mov byte [ecx + 2], al
add edi, 4
add ecx, 3
mov eax, dword [esp + 0xc]
mov edx, dword [esp]
test edx, edx
je case.0x1001fafe.3
add eax, 2
nop
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 1]
mov byte [ecx + 1], dl
movzx edx, byte [edi + 2]
mov byte [ecx + 2], dl
movzx edx, byte [edi + 4]
mov byte [ecx + 3], dl
movzx edx, byte [edi + 5]
mov byte [ecx + 4], dl
movzx edx, byte [edi + 6]
mov byte [ecx + 5], dl
add edi, 8
add ecx, 6
add eax, 0xfffffffe
cmp eax, 1
jg 0x10020280
jmp case.0x1001fafe.3
mov edx, dword [esp]
mov eax, edx
cmp edx, 3
jb case.0x1001fafe.3
add eax, 4
add ecx, 0xb
nop
movzx edx, byte [edi]
mov byte [ecx - 9], dl
mov byte [ecx - 0xa], dl
mov byte [ecx - 0xb], dl
movzx edx, byte [edi + 1]
mov byte [ecx - 6], dl
mov byte [ecx - 7], dl
mov byte [ecx - 8], dl
movzx edx, byte [edi + 2]
mov byte [ecx - 3], dl
mov byte [ecx - 4], dl
mov byte [ecx - 5], dl
movzx edx, byte [edi + 3]
mov byte [ecx], dl
mov byte [ecx - 1], dl
mov byte [ecx - 2], dl
add edi, 4
add eax, 0xfffffffc
add ecx, 0xc
cmp eax, 3
jg 0x100202d0
jmp case.0x1001fafe.3
mov edx, dword [esp]
mov eax, edx
cmp edx, 3
jb case.0x1001fafe.3
add eax, 4
xor edx, edx
nop dword [eax + eax]
movzx ebx, byte [edi + edx]
mov byte [ecx + edx*4 + 2], bl
mov byte [ecx + edx*4 + 1], bl
mov byte [ecx + edx*4], bl
mov byte [ecx + edx*4 + 3], 0xff
movzx ebx, byte [edi + edx + 1]
mov byte [ecx + edx*4 + 6], bl
mov byte [ecx + edx*4 + 5], bl
mov byte [ecx + edx*4 + 4], bl
mov byte [ecx + edx*4 + 7], 0xff
movzx ebx, byte [edi + edx + 2]
mov byte [ecx + edx*4 + 0xa], bl
mov byte [ecx + edx*4 + 9], bl
mov byte [ecx + edx*4 + 8], bl
mov byte [ecx + edx*4 + 0xb], 0xff
movzx ebx, byte [edi + edx + 3]
mov byte [ecx + edx*4 + 0xe], bl
mov byte [ecx + edx*4 + 0xd], bl
mov byte [ecx + edx*4 + 0xc], bl
mov byte [ecx + edx*4 + 0xf], 0xff
add eax, 0xfffffffc
add edx, 4
cmp eax, 3
jg 0x10020330
jmp case.0x1001fafe.3
mov edx, dword [esp]
mov eax, edx
cmp edx, 7
jb case.0x1001fafe.3
add eax, 8
xor edx, edx
nop dword [eax]
movzx ebx, byte [edi + edx*2]
mov byte [ecx + edx], bl
movzx ebx, byte [edi + edx*2 + 2]
mov byte [ecx + edx + 1], bl
movzx ebx, byte [edi + edx*2 + 4]
mov byte [ecx + edx + 2], bl
movzx ebx, byte [edi + edx*2 + 6]
mov byte [ecx + edx + 3], bl
movzx ebx, byte [edi + edx*2 + 8]
mov byte [ecx + edx + 4], bl
movzx ebx, byte [edi + edx*2 + 0xa]
mov byte [ecx + edx + 5], bl
movzx ebx, byte [edi + edx*2 + 0xc]
mov byte [ecx + edx + 6], bl
movzx ebx, byte [edi + edx*2 + 0xe]
mov byte [ecx + edx + 7], bl
add eax, 0xfffffff8
add edx, 8
cmp eax, 7
jg 0x100203b0
jmp case.0x1001fafe.3
mov edx, dword [esp]
mov eax, edx
cmp edx, 3
jb case.0x1001fafe.3
add eax, 4
add ecx, 0xb
nop word [eax + eax]
movzx edx, byte [edi]
mov byte [ecx - 9], dl
mov byte [ecx - 0xa], dl
mov byte [ecx - 0xb], dl
movzx edx, byte [edi + 2]
mov byte [ecx - 6], dl
mov byte [ecx - 7], dl
mov byte [ecx - 8], dl
movzx edx, byte [edi + 4]
mov byte [ecx - 3], dl
mov byte [ecx - 4], dl
mov byte [ecx - 5], dl
movzx edx, byte [edi + 6]
mov byte [ecx], dl
mov byte [ecx - 1], dl
mov byte [ecx - 2], dl
add edi, 8
add eax, 0xfffffffc
add ecx, 0xc
cmp eax, 3
jg 0x10020420
jmp case.0x1001fafe.3
mov edx, dword [esp]
mov eax, edx
cmp edx, 3
jb case.0x1001fafe.3
add eax, 4
xor edx, edx
nop dword [eax + eax]
movzx esi, word [edi + edx]
movd xmm5, esi
punpcklbw xmm5, xmm1
pshuflw xmm5, xmm5, 0x40
packuswb xmm5, xmm5
movd dword [ecx + edx*2], xmm5
movzx esi, word [edi + edx + 2]
movd xmm5, esi
punpcklbw xmm5, xmm1
pshuflw xmm5, xmm5, 0x40
packuswb xmm5, xmm5
movd dword [ecx + edx*2 + 4], xmm5
movzx esi, word [edi + edx + 4]
movd xmm5, esi
punpcklbw xmm5, xmm1
pshuflw xmm5, xmm5, 0x40
packuswb xmm5, xmm5
movd dword [ecx + edx*2 + 8], xmm5
movzx esi, word [edi + edx + 6]
movd xmm5, esi
punpcklbw xmm5, xmm1
pshuflw xmm5, xmm5, 0x40
packuswb xmm5, xmm5
movd dword [ecx + edx*2 + 0xc], xmm5
add eax, 0xfffffffc
add edx, 8
cmp eax, 3
jg 0x10020480
jmp case.0x1001fafe.3
push esi
call fcn.1037ddf5
add esp, 4
lea eax, [esp + 0x60]
mov dword [0x1058e718], eax
xor esi, esi
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.101ac85a
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x20]
call fcn.1037ddf5
add esp, 4
mov esi, dword [esp + 0x1c]
jmp 0x10020512