Function at 0x45fbd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x280
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x27c], eax
mov eax, dword [esp + 0x28c]
mov edx, ecx
mov ecx, dword [esp + 0x288]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x290]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x294]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x29c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x298]
mov dword [esp + 8], edx
mov dword [esp], ecx
push ebx
mov ebx, dword [esp + 0x2a4]
mov dword [esp + 0x10], ebx
cmp eax, 0x18
ja 0x45fec5
push ebp
push esi
push edi
xor edi, edi
lea ebp, [edx + 0x4b4]
jmp 0x45fc50
cmp dword [ebp + 0x134], eax
lea esi, [ebp + 0x102]
jne 0x45fce9
push ecx
mov ecx, ebp
call fcn.0048b970
test al, al
je 0x45fcde
mov ecx, dword [esp + 0x14]
mov edx, 0xc
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x45fcde
add esi, 4
add ecx, 4
sub edx, 4
jae 0x45fc77
push 0
push 0
push 0x20
lea ebx, [ebp + 0x112]
push ebx
call fcn.0048bb10
push 0
push 1
push 0x20
mov ecx, 8
lea edi, [esp + 0x58]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.0048bb10
mov ebx, dword [esp + 0x1c]
lea esi, [ebp + 0x138]
mov ecx, 8
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x158]
mov ecx, 8
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
jmp 0x45fe10
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2a8]
inc edi
add ebp, 0x178
cmp edi, 4
jb 0x45fc50
push 0x200
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x28]
call fcn.004917a0
lea edx, [esp + 0x8c]
lea ecx, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x45fd20
mov edi, dword [esp + 0x2a8]
sub edx, ecx
mov ebp, dword [esp + 0x14]
mov ecx, edi
mov eax, 1
shl eax, cl
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x58]
push eax
push 0x10
push ebp
push edx
lea eax, [esp + 0xa8]
push eax
call fcn.00460200
push 0x200
lea eax, [esp + 0x90]
push eax
call fcn.0048bcb0
mov esi, dword [esp + 0x18]
push 0
push 1
push 0x20
mov ecx, dword [esi + 0xa94]
lea edx, [esi + 0x4b4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x178
add edx, eax
lea eax, [ecx + 1]
mov dword [esi + 0xa94], eax
mov ecx, 0x40
mov esi, dword [esp + 0x1c]
mov dword [edx + 0x134], edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
movsw word es:[edi], word [esi]
mov eax, dword [ebp]
lea esi, [esp + 0x58]
mov dword [edx + 0x102], eax
mov eax, dword [ebp + 4]
mov dword [edx + 0x106], eax
mov eax, dword [ebp + 8]
mov dword [edx + 0x10a], eax
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x10e], eax
lea eax, [edx + 0x112]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [edx + 0x138]
mov ecx, 8
lea esi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
lea edi, [edx + 0x158]
mov ecx, 8
lea esi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0048bb10
mov eax, dword [esp + 0x24]
test eax, eax
je 0x45fe25
mov ecx, 8
lea esi, [esp + 0x6c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0x45fe8d
xor eax, eax
mov edx, 1
mov dword [ebx], eax
xor ebp, ebp
mov dword [ebx + 4], eax
lea esi, [eax + 3]
lea edi, [eax + 2]
lea ecx, [ecx]
mov al, byte [esp + edx + 0x2b]
mov ecx, ebp
and ecx, 7
add ebp, 4
xor byte [ecx + ebx], al
mov ecx, edx
mov al, byte [esp + edx + 0x2c]
and ecx, 7
add edx, 4
xor byte [ecx + ebx], al
mov ecx, edi
mov al, byte [esp + edi + 0x2c]
and ecx, 7
add edi, 4
xor byte [ecx + ebx], al
mov ecx, esi
mov al, byte [esp + esi + 0x2c]
and ecx, 7
add esi, 4
xor byte [ecx + ebx], al
cmp edx, 0x21
jb 0x45fe40
push 0x20
lea eax, [esp + 0x30]
push eax
call fcn.0048bcb0
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
test eax, eax
je 0x45feb9
mov ecx, dword [esp + 0xc]
push eax
push 0x100
lea eax, [esp + 0x48]
add ecx, 0xa9c
push eax
push dword [esp + 0x294]
call fcn.004888e0
push 0x20
lea eax, [esp + 0x44]
push eax
call fcn.0048bcb0
mov ecx, dword [esp + 0x280]
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x280
ret 0x20