Function at 0x4b0210
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 0x631fcd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x6ad650
call fcn.00409430
mov eax, dword [0x6ad654]
lea ecx, [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], esi
mov eax, dword [0x6ad668]
test al, 1
je 0x4b027f
lea edi, [esi + 2]
jmp 0x4b0470
mov edi, dword [ebx + 8]
mov dword [ebp - 0x18], 0
test al, 2
jne 0x4b02da
mov eax, dword [edi + 0xc]
xor edx, edx
xor eax, dword [edi + 4]
xor eax, dword [edi]
xor eax, dword [edi + 8]
div dword [0x6ad660]
mov eax, dword [0x6ad664]
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4b02da
mov edx, dword [edi]
mov eax, dword [edi + 4]
cmp dword [ecx + 4], edx
jne 0x4b02d4
cmp dword [ecx + 8], eax
jne 0x4b02d4
mov eax, dword [ecx + 0xc]
cmp eax, dword [edi + 8]
jne 0x4b02d1
mov eax, dword [ecx + 0x10]
cmp eax, dword [edi + 0xc]
je 0x4b0308
mov eax, dword [edi + 4]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4b02b7
mov edx, dword [0x6ad65c]
mov eax, dword [0x6ad658]
cmp edx, eax
jb 0x4b040c
mov edi, 2
lea ecx, [eax + eax]
cmp eax, edi
cmovb ecx, edi
cmp ecx, edx
jae 0x4b0312
mov edi, 3
jmp 0x4b0470
mov edi, 1
jmp 0x4b0470
push dword [0x6ad668]
mov eax, dword [0x6ad650]
push 0x6ad650
push ecx
mov ecx, 0x6ad650
mov eax, dword [eax + 8]
call eax
mov edi, eax
test edi, edi
je 0x4b042b
mov al, byte [edi + 0x18]
not al
test al, 1
je 0x4b042b
mov edx, dword [0x6ad664]
test edx, edx
je 0x4b03d4
xor esi, esi
mov dword [ebp - 0x18], esi
cmp dword [0x6ad660], esi
jbe 0x4b03d4
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov ecx, dword [eax + edx]
test ecx, ecx
je 0x4b03aa
nop
mov esi, dword [ecx]
xor edx, edx
dec dword [0x6ad65c]
mov eax, dword [ecx + 0x10]
xor eax, dword [ecx + 0xc]
xor eax, dword [ecx + 8]
xor eax, dword [ecx + 4]
div dword [edi + 0x10]
mov eax, dword [edi + 0x14]
lea edx, [eax + edx*4]
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], ecx
mov ecx, esi
inc dword [edi + 0xc]
test esi, esi
jne 0x4b0370
mov edx, dword [0x6ad664]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
inc esi
add eax, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
mov dword [ecx + edx], 0
add ecx, 4
mov dword [ebp - 0x20], ecx
cmp esi, dword [0x6ad660]
jae 0x4b03d4
mov edx, dword [0x6ad664]
jmp 0x4b0367
mov eax, dword [0x6ad650]
mov ecx, 0x6ad650
push edi
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0xc]
mov edi, dword [ebx + 8]
xor edx, edx
mov eax, dword [edi + 0xc]
xor eax, dword [edi + 4]
xor eax, dword [edi]
xor eax, dword [edi + 8]
div dword [0x6ad660]
mov eax, dword [0x6ad664]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
push ecx
mov ecx, dword [0x6ad654]
push 0x6ad654
call fcn.004b2210
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4b0435
lea edi, [eax + 2]
jmp 0x4b0470
mov esi, dword [ebp - 0x14]
mov edi, 2
jmp 0x4b0470
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x10], ecx
mov eax, dword [eax]
mov dword [esi + 0x14], eax
xor esi, esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
inc dword [0x6ad65c]
xor edi, edi
mov dword [ebp - 0x14], esi
test esi, esi
je 0x4b0482
push ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004abf50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc