Function at 0x4a7114
Capabilities:
Authenticate hmac
Encode data using xor
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00404664
xor eax, eax
push ebp
push 0x4a733d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xf8]
xor ecx, ecx
mov edx, 0x40
call fcn.00402dac
mov eax, dword [ebp - 0xc]
call fcn.00404474
cmp eax, 0x40
jle 0x4a717b
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.004a58f4
lea edx, [ebp - 0xf8]
mov eax, dword [ebp + 8]
mov ecx, 0x10
call fcn.004029a4
jmp 0x4a7198
mov eax, dword [ebp - 0xc]
call fcn.00404474
push eax
lea eax, [ebp - 0xc]
call fcn.004046cc
lea edx, [ebp - 0xf8]
pop ecx
call fcn.004029a4
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov al, byte [ebp + eax - 0xf8]
xor al, 0x36
mov edx, dword [ebp - 0x20]
mov byte [ebp + edx - 0x138], al
mov eax, dword [ebp - 0x20]
mov al, byte [ebp + eax - 0xf8]
xor al, 0x5c
mov edx, dword [ebp - 0x20]
mov byte [ebp + edx - 0x188], al
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x40
jne 0x4a719d
mov dword [ebp - 0x2c], 0x67452301
mov dword [ebp - 0x30], 0xefcdab89
mov dword [ebp - 0x34], 0x98badcfe
mov dword [ebp - 0x38], 0x10325476
mov eax, dword [ebp - 8]
add eax, 0x40
shl eax, 3
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0xb8]
xor ecx, ecx
mov edx, 0x80
call fcn.00402dac
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
and eax, 0x3f
mov dword [ebp - 0x1c], eax
mov eax, 0x38
sub eax, dword [ebp - 0x1c]
test eax, eax
jg 0x4a7238
mov eax, 0x78
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
jmp 0x4a7243
mov eax, 0x38
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp + eax - 0xb8], 0x80
lea edx, [ebp - 0xb8]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
call fcn.004029a4
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x1c]
lea eax, [ebp + eax - 0xb8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
cmp dword [ebp - 0x20], 0
jne 0x4a728e
lea eax, [ebp - 0x138]
mov dword [ebp - 0x28], eax
jmp 0x4a72c0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
ja 0x4a72a4
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
sub eax, 0x40
mov dword [ebp - 0x28], eax
jmp 0x4a72c0
mov eax, dword [ebp - 8]
add eax, 0x40
cmp eax, dword [ebp - 0x20]
jb 0x4a72ba
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x28], eax
jmp 0x4a72c0
lea eax, [ebp - 0x78]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.004a4860
add dword [ebp - 0x20], 0x40
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x24]
add eax, 0x48
cmp eax, dword [ebp - 0x20]
jne 0x4a727d
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0x2c]
mov dword [eax], edx
lea eax, [ebp - 0x144]
mov edx, dword [ebp - 0x30]
mov dword [eax], edx
lea eax, [ebp - 0x140]
mov edx, dword [ebp - 0x34]
mov dword [eax], edx
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 0x38]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x188]
mov edx, 0x50
call fcn.004a5920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7344
lea eax, [ebp - 0xc]
call fcn.004041b4
ret