Function at 0x46fdf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4b900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov ebx, ecx
push edi
mov dword [ebp - 0x40], eax
xor esi, esi
nop dword [eax]
mov ecx, dword [ebx + 0x70]
xorps xmm0, xmm0
movzx eax, al
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 7
movzx eax, word [ecx + eax*2 + 0x294]
shl eax, 6
add eax, dword [ecx + 0x84]
mov dword [ebp - 0x48], eax
lea eax, [esi + 7]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x68]
dec eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x6c]
dec eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x46fe9f
cmp dword [ebx + 0x58], 0
je 0x46fe85
mov eax, dword [ebx + 0x5c]
jmp 0x46fe87
xor eax, eax
push 0
push 0
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x48]
lea ecx, [ebx + 0x58]
call fcn.00448bb0
mov eax, dword [ebp - 0x40]
add esi, 8
inc eax
mov dword [ebp - 0x40], eax
cmp esi, 0x800
jl 0x46fe10
xor eax, eax
lea edi, [ebx + 0x74]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], edi
mov esi, dword [edi + 4]
sub esi, dword [edi]
sar esi, 2
shl al, 6
mov byte [ebp - 0x39], al
test esi, esi
jle 0x46ff0c
movzx ecx, al
mov eax, ecx
and ecx, 0x3f
shr eax, 6
lea eax, [eax + eax*2]
mov eax, dword [ebx + eax*4 + 0x74]
lea eax, [eax + ecx*4]
push eax
lea eax, [ebp - 0x39]
push eax
lea ecx, [ebx + 0x28]
call fcn.004749e0
mov al, byte [ebp - 0x39]
lea ecx, [eax + 1]
xor cl, al
and cl, 0x3f
xor al, cl
mov byte [ebp - 0x39], al
sub esi, 1
jne 0x46fed2
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
add edi, 0xc
inc eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
cmp eax, 4
jb 0x46fec0
lea eax, [ebx + 0x1ba]
mov dword [ebp - 0x48], 4
lea ecx, [eax + 0x10]
cmp ecx, eax
mov dword [ebp - 0x50], ecx
sbb eax, eax
and eax, 0xfffffff0
add eax, 0x10
mov dword [ebp - 0x44], eax
nop
push ecx
mov ecx, ebx
call fcn.00470070
lea eax, [ebx + 0x1ba]
mov dword [ebp - 0x18], 0x8000800
xor cl, cl
mov dword [ebp - 0x14], 0x800
lea edx, [eax + 0x10]
mov byte [ebp - 0x39], cl
xor edi, edi
mov dword [ebp - 0x10], 0x10100808
mov dword [ebp - 0xc], 0
mov esi, eax
mov word [ebp - 8], 0
cmp eax, edx
ja 0x46ffc4
mov al, byte [esi]
cmp al, 0x90
jae 0x46ffb4
movzx eax, al
add eax, 0x1ca
add eax, ebx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x18]
push eax
movzx eax, cl
push ecx
add eax, 0x43
mov ecx, ebx
push eax
call fcn.0046fc90
mov cl, byte [ebp - 0x39]
inc cl
mov byte [ebp - 0x39], cl
inc edi
inc esi
cmp edi, dword [ebp - 0x44]
jne 0x46ff80
mov edx, dword [ebp - 0x50]
lea eax, [ebx + 0x1ba]
xor cl, cl
xor edi, edi
mov byte [ebp - 0x39], cl
mov esi, eax
cmp eax, edx
ja 0x47000c
mov al, byte [esi]
cmp al, 0x90
jae 0x470005
movzx eax, al
add eax, 0x1cc
add eax, ebx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x18]
push eax
movzx eax, cl
push ecx
add eax, 0x63
mov ecx, ebx
push eax
call fcn.0046fc90
mov cl, byte [ebp - 0x39]
inc cl
mov byte [ebp - 0x39], cl
inc edi
inc esi
cmp edi, dword [ebp - 0x44]
jne 0x46ffd1
lea eax, [ebx + 0xa4]
mov ecx, 0x2b
xor edi, edi
mov dword [ebp - 0x40], eax
mov esi, 0x4a23a4
mov dword [ebp - 0x4c], ecx
cmp edi, 0x2b
jae 0x470042
push eax
lea eax, [esi - 0xc]
push eax
push esi
lea eax, [esi - 6]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.0046fc90
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x4c]
add eax, 6
inc edi
add esi, 0x12
mov dword [ebp - 0x40], eax
sub ecx, 1
mov dword [ebp - 0x4c], ecx
jne 0x470024
sub dword [ebp - 0x48], 1
jne 0x46ff40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047e577
mov esp, ebp
pop ebp
ret