Function at 0x483fa0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x87c
mov eax, dword [0x58bb30]
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
ja 0x484252
push ebx
push edi
xor edi, edi
lea ebx, [ecx + 0xf4]
push esi
mov ecx, ebx
call fcn.004ba040
test al, al
je 0x484088
mov ecx, dword [esp + 0x8a4]
lea eax, [ebx + 0x10]
cmp dword [eax + 0x30], ecx
jne 0x484088
mov edx, dword [esp + 0x10]
mov esi, 0xc
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x484084
add eax, 4
add edx, 4
sub esi, 4
jae 0x484034
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.004ba3a0
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 0x48419d
mov esi, dword [esp + 0x1c]
inc edi
add ebx, 0x84
cmp edi, 4
jb 0x484010
push 0x800
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x28]
call fcn.004c0df0
lea edx, [esp + 0x88]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4840b8
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.004846e0
push 0x800
lea eax, [esp + 0x8c]
push eax
call fcn.004ba540
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 0x484144
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.004ba3a0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4841b2
mov ecx, 8
lea esi, [esp + 0x68]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
test ebp, ebp
je 0x48421b
xor eax, eax
mov esi, 1
mov dword [ebp], eax
xor edi, edi
mov dword [ebp + 4], eax
lea edx, [eax + 3]
jmp 0x4841d0
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 0x4841d0
push 0x20
lea eax, [esp + 0x2c]
push eax
call fcn.004ba540
mov eax, dword [esp + 0x18]
pop edi
pop ebx
test eax, eax
je 0x484246
mov ecx, dword [esp + 0xc]
push eax
push 0x100
lea eax, [esp + 0x48]
add ecx, 0x30c
push eax
push dword [esp + 0x894]
call fcn.004b6c40
push 0x20
lea eax, [esp + 0x44]
push eax
call fcn.004ba540
mov ecx, dword [esp + 0x880]
pop esi
pop ebp
xor ecx, esp
call fcn.0052f708
add esp, 0x87c
ret 0x20