Function at 0x484770
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x87c
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x878], eax
cmp dword [esp + 0x894], 0x18
mov eax, dword [esp + 0x888]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88c]
push ebp
mov ebp, dword [esp + 0x8a0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x894]
push esi
mov esi, dword [esp + 0x88c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8a0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
jbe 0x484804
test eax, eax
je 0x4847ef
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
test ebp, ebp
je 0x484a48
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
jmp 0x484a48
push ebx
push edi
xor edi, edi
lea ebx, [ecx + 0xf4]
mov edi, edi
push esi
mov ecx, ebx
call fcn.004baa80
test al, al
je 0x484888
mov ecx, dword [esp + 0x8a4]
lea eax, [ebx + 0x10]
cmp dword [eax + 0x30], ecx
jne 0x484888
mov edx, dword [esp + 0x10]
mov esi, 0xc
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x484884
add eax, 4
add edx, 4
sub esi, 4
jae 0x484834
push 0
push 0
push 0x20
lea eax, [esp + 0x54]
mov ecx, 8
lea esi, [ebx + 0x20]
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004badf0
lea esi, [ebx + 0x44]
mov ecx, 8
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x64]
mov ecx, 8
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
jmp 0x48499d
mov esi, dword [esp + 0x1c]
inc edi
add ebx, 0x84
cmp edi, 4
jb 0x484810
push 0x800
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x28]
call fcn.004c1830
lea edx, [esp + 0x88]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4848b8
mov edi, dword [esp + 0x8a4]
sub edx, ecx
mov ecx, edi
mov eax, 1
shl eax, cl
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x54]
push eax
push 0x10
push dword [esp + 0x24]
lea eax, [esp + 0xa0]
push edx
push eax
call fcn.00484ee0
push 0x800
lea eax, [esp + 0x8c]
push eax
call fcn.004baf90
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x304]
lea ebx, [edx + 0xf4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x84
add ebx, eax
lea eax, [ecx + 1]
mov dword [edx + 0x304], eax
mov dword [ebx + 0x40], edi
cmp ebx, esi
je 0x484944
push dword [esp + 0x18]
mov ecx, ebx
push dword [esi + 4]
push dword [esi]
call fcn.00404d10
mov al, byte [esi + 0xc]
lea esi, [esp + 0x48]
mov ecx, dword [esp + 0x10]
mov byte [ebx + 0xc], al
push 0
push 1
mov eax, dword [ecx]
mov dword [ebx + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [ecx + 0xc]
mov ecx, 8
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x20]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x44]
mov ecx, 8
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
push 0x20
lea edi, [ebx + 0x64]
mov ecx, 8
lea esi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004badf0
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4849b0
mov ecx, 8
lea esi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
test ebp, ebp
je 0x484a11
xor eax, eax
mov esi, 1
mov dword [ebp], eax
xor edi, edi
mov dword [ebp + 4], eax
lea edx, [eax + 3]
mov al, byte [esp + esi + 0x27]
mov ecx, edi
and ecx, 7
add edi, 4
xor byte [ecx + ebp], al
mov ecx, esi
mov al, byte [esp + esi + 0x28]
and ecx, 7
add esi, 4
xor byte [ecx + ebp], al
lea ecx, [edx - 1]
mov al, byte [esp + edx + 0x27]
and ecx, 7
xor byte [ecx + ebp], al
mov ecx, edx
mov al, byte [esp + edx + 0x28]
and ecx, 7
add edx, 4
xor byte [ecx + ebp], al
cmp esi, 0x21
jb 0x4849c6
push 0x20
lea eax, [esp + 0x2c]
push eax
call fcn.004baf90
mov eax, dword [esp + 0x18]
pop edi
pop ebx
test eax, eax
je 0x484a3c
mov ecx, dword [esp + 0xc]
push eax
push 0x100
lea eax, [esp + 0x48]
add ecx, 0x30c
push eax
push dword [esp + 0x894]
call fcn.004b7670
push 0x20
lea eax, [esp + 0x44]
push eax
call fcn.004baf90
mov ecx, dword [esp + 0x880]
pop esi
pop ebp
xor ecx, esp
call fcn.00530218
add esp, 0x87c
ret 0x20