Function at 0x4a0ef0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x29c], ebx
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x4a0f4f
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x298], 1
push ecx
push ebx
push eax
call fcn.004b2070
push 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0xa3c401f2
push eax
mov ecx, edi
mov dword [ebp - 0x24], 0x9fca047
mov dword [ebp - 0x20], 0xadc0a239
mov dword [ebp - 0x1c], 0x58cbca1e
mov dword [ebp - 0x18], 0xd164fa69
mov dword [ebp - 0x14], 0x7a645905
mov dword [ebp - 0x10], 0x72a0fb9b
mov dword [ebp - 0xc], 0xd0b650d
call fcn.004b42f0
mov ecx, edi
call fcn.00409ee0
mov ecx, edi
mov dword [ebp - 0x18], eax
call fcn.00409ee0
xor eax, dword [ebp - 0x20]
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.00409ee0
xor dword [ebp - 0x10], eax
mov ecx, edi
call fcn.00409ee0
mov esi, dword [ebp - 0x1c]
mov ecx, edi
add esi, eax
call fcn.00409ee0
xor eax, esi
mov dword [ebp - 0x28], 0xaa38a1b5
mov dword [ebp - 0xc], eax
mov ecx, ebx
xor eax, 0xaa38a1b5
add eax, ebx
imul ecx, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push 4
push eax
xor ecx, dword [ebp - 0x298]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x298]
mov dword [ebp - 0x1c], ecx
mov ecx, edi
call fcn.004b42f0
lea ecx, [ebx - 8]
mov eax, 0x10
and ecx, 0xf
sub eax, ecx
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebx + 8]
add eax, ecx
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 0x2b0], eax
lea ebx, [eax + 0x10]
push ebx
mov dword [ebp - 0x294], ebx
call fcn.004d9a7e
add esp, 4
mov dword [ebp - 0x2b4], eax
add eax, 8
mov ecx, edi
mov dword [ebp - 0x2ac], eax
mov esi, eax
call fcn.00409ee0
mov dword [esi], eax
mov eax, dword [ebp - 0x29c]
mov ecx, eax
push eax
push dword [ebp - 0x2a8]
xor ecx, 0x22af931b
mov dword [esi + 4], ecx
add esi, 8
push esi
call fcn.004d6950
add esp, 0xc
add esi, dword [ebp - 0x29c]
cmp dword [ebp - 0x2a0], 0
jbe 0x4a11a1
mov ebx, dword [ebp - 0x2a0]
mov eax, dword [edi + 0x9c0]
cmp eax, 0x270
jl 0x4a115e
cmp eax, 0x271
jne 0x4a10b6
push 0x1571
mov ecx, edi
call fcn.004b4290
xor eax, eax
nop dword [eax + eax]
mov edx, dword [edi + eax*4 + 4]
xor edx, dword [edi + eax*4]
and edx, 0x7fffffff
xor edx, dword [edi + eax*4]
mov ecx, edx
shr edx, 1
and ecx, 1
mov ecx, dword [ecx*4 + 0x503e54]
xor ecx, dword [edi + eax*4 + 0x634]
xor ecx, edx
mov dword [edi + eax*4], ecx
inc eax
cmp eax, 0xe3
jl 0x4a10c0
mov edx, dword [edi + eax*4 + 4]
xor edx, dword [edi + eax*4]
and edx, 0x7fffffff
xor edx, dword [edi + eax*4]
mov ecx, edx
shr edx, 1
and ecx, 1
mov ecx, dword [ecx*4 + 0x503e54]
xor ecx, dword [edi + eax*4 - 0x38c]
xor ecx, edx
mov dword [edi + eax*4], ecx
inc eax
cmp eax, 0x26f
jl 0x4a10f2
mov eax, dword [edi + 0x9bc]
mov ecx, dword [edi]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x503e54]
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi + 0x9bc], eax
xor eax, eax
mov dword [edi + 0x9c0], 0
mov edx, dword [edi + eax*4]
inc eax
mov dword [edi + 0x9c0], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov ecx, edx
and ecx, 0xffffdf8c
shl ecx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor al, cl
mov byte [esi], al
inc esi
sub ebx, 1
jne 0x4a1092
mov ebx, dword [ebp - 0x294]
mov eax, dword [ebp - 0x290]
mov ecx, dword [ebp - 0x2ac]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x294], eax
test ecx, ecx
je 0x4a120e
lea edx, [ebp - 0x84]
mov dword [ebp - 0x70], 0
push edx
push dword [ebp - 0x2b0]
mov dword [ebp - 0x74], 0
push ecx
mov ecx, eax
mov dword [ebp - 0x84], 0x67452301
mov dword [ebp - 0x80], 0xefcdab89
mov dword [ebp - 0x7c], 0x98badcfe
mov dword [ebp - 0x78], 0x10325476
call fcn.004b2200
mov ecx, dword [ebp - 0x294]
lea eax, [ebp - 0x84]
push eax
call fcn.004b2580
mov eax, dword [ebp - 0x7c]
mov dword [esi], eax
mov eax, dword [ebp - 0x78]
mov dword [esi + 4], eax
mov esi, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x80]
push ebx
mov dword [esi], eax
mov eax, dword [ebp - 0x84]
mov dword [esi + 4], eax
call fcn.004d9a7e
mov ecx, dword [ebp - 0x2a4]
add esp, 4
mov dword [ecx], eax
mov eax, dword [ebp - 0x2b8]
mov dword [eax], ebx
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x28c]
push eax
mov eax, dword [ebp - 0x290]
mov ecx, dword [eax + 0x24]
call fcn.004b48f0
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0x814759b1
mov dword [ebp - 0xa4], 0x9fca047
mov ecx, dword [eax + 0x24]
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0xa0], 0
mov edx, dword [eax]
test edx, edx
je 0x4a12fb
mov eax, dword [ebp - 0x8c]
cmp eax, 0xa
je 0x4a12b3
cmp eax, 0xc
je 0x4a12b3
cmp eax, 0xe
jne 0x4a12fb
test bl, 0xf
jne 0x4a12fb
shr ebx, 4
sub eax, 0xa
je 0x4a12ec
sub eax, 2
je 0x4a12db
sub eax, 2
jne 0x4a12fb
push ebx
push edx
push esi
lea eax, [ebp - 0x28c]
push eax
call fcn.004b6710
jmp 0x4a12fb
push ebx
push edx
push esi
lea eax, [ebp - 0x28c]
push eax
call fcn.004b7580
jmp 0x4a12fb
push ebx
push edx
push esi
lea eax, [ebp - 0x28c]
push eax
call fcn.004b8200
push 0x204
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.004d6ed0
add esp, 0xc
mov ecx, edi
call fcn.00409ee0
mov ecx, edi
mov dword [ebp - 0x28], eax
call fcn.00409ee0
mov ecx, edi
mov dword [ebp - 0x24], eax
call fcn.00409ee0
mov ecx, edi
mov dword [ebp - 0x20], eax
call fcn.00409ee0
push esi
mov dword [ebp - 0x1c], eax
call fcn.004d9a63
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x14