Function at 0x4a7fb0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53689d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x860
push esi
push edi
mov eax, edx
mov dword [ebp - 0x24], ecx
xor edx, edx
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x2c], edx
xor edi, edi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x34], ecx
mov esi, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebx + 0x18]
mov ecx, eax
push esi
push dword [ebx + 0xc]
call fcn.004a7d30
mov eax, dword [0x564f94]
add esp, 0x10
push edi
push edi
push edi
push edi
push esi
call eax
mov edx, eax
mov dword [ebp - 0x30], edx
test edx, edx
jne 0x4a8049
lea esi, [edi + 1]
jmp 0x4a823f
cmp byte [ebx + 0xc], 0
mov eax, 0x80803000
mov ecx, dword [0x564f9c]
mov esi, 0x80000000
push 0
cmove eax, esi
push eax
push 0
push 0
push dword [ebp - 0x24]
push edx
call ecx
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x4a807e
lea esi, [eax + 2]
jmp 0x4a8236
mov eax, dword [0x564f80]
lea edx, [ebp - 0x18]
push edx
push 0x800
lea edx, [ebp - 0x870]
push edx
push ecx
call eax
test eax, eax
je 0x4a8127
nop
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x4a811a
xor esi, esi
test eax, eax
je 0x4a80f1
mov ecx, dword [ebp - 0x20]
nop dword [eax + eax]
lea eax, [ebp - 0x870]
add eax, esi
cmp edi, ecx
je 0x4a80d6
mov al, byte [eax]
mov byte [edi], al
inc edi
mov dword [ebp - 0x38], edi
jmp 0x4a80eb
push eax
push edi
lea ecx, [ebp - 0x3c]
call fcn.00402ea0
mov eax, dword [ebp - 0x34]
mov ecx, eax
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x4a80c0
mov eax, dword [0x564f80]
lea ecx, [ebp - 0x18]
push ecx
push 0x800
lea ecx, [ebp - 0x870]
push ecx
push dword [ebp - 0x24]
call eax
test eax, eax
jne 0x4a80a0
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], esi
jmp 0x4a812b
mov esi, dword [ebp - 0x3c]
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], esi
jmp 0x4a812e
xor esi, esi
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x4a8144
xor edx, edx
mov dword [ebp - 0x28], 5
cmp ecx, eax
cmovne edx, dword [ebp - 0x28]
mov dword [ebp - 0x28], edx
xorps xmm0, xmm0
mov word [ebp - 0x6d], 0xd2d8
movups xmmword [ebp - 0x6b], xmm0
mov dword [ebp - 0x5b], 0
xor ecx, ecx
mov word [ebp - 0x57], 0
mov byte [ebp - 0x55], 0
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x6d], al
inc ecx
cmp ecx, 2
jb 0x4a8164
mov dword [0x565598], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x6d]
mov byte [ebp - 0x6b], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x40], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a8196
sub ecx, edx
lea eax, [ebp - 0x6d]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.00402c40
cmp dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push eax
push dword [ebx + 0x10]
call fcn.0050ad80
mov ecx, dword [ebp - 0x40]
add esp, 8
mov dword [ebp - 0x14], eax
cmp ecx, 0x10
jb 0x4a81fd
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a81f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a8284
push ecx
push edx
call fcn.00504f31
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
test eax, eax
je 0x4a822a
push eax
sub edi, esi
push edi
push 1
push esi
call fcn.00512b86
push dword [ebp - 0x14]
call fcn.0050e798
add esp, 0x14
push dword [ebp - 0x24]
call dword [0x564f7c]
mov esi, dword [ebp - 0x28]
push dword [ebp - 0x30]
call dword [0x564f7c]
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x4a826f
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x4a8265
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a8289
push ecx
push edx
call fcn.00504f31
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0050a1d0
call fcn.0050a1d0
int3