Function at 0x481850
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5080e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x54], ebx
push edi
test ebx, ebx
je 0x481a0b
mov ecx, dword [ebx]
test ecx, ecx
je 0x481a0b
mov edi, dword [ebx + 8]
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x481a0b
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [ecx + 0xc]
jbe 0x4818ce
push dword [ebx + 4]
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [ebx]
push esi
push dword [ebp - 0x48]
push dword [ebx + 4]
mov eax, dword [eax + 0x14]
call eax
mov eax, dword [ebx]
lea ecx, [ebp - 0x44]
push ecx
push dword [ebx + 4]
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [ebx]
lea eax, [ebp - 0x44]
mov edi, dword [ebx + 8]
add esp, 0x18
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edi
mov esi, dword [ecx + 8]
mov dword [ebp + 8], esi
mov eax, dword [ecx + 0xc]
push eax
push 0x36
push edi
lea ebx, [eax + edi]
mov dword [ebp - 0x5c], ebx
call fcn.004bc0b0
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
push dword [eax + 0xc]
push 0x5c
push ebx
call fcn.004bc0b0
add esp, 0x18
xor edx, edx
test esi, esi
je 0x4819c7
mov eax, dword [ebp - 0x48]
cmp esi, 0x10
jb 0x48199e
lea edi, [eax - 1]
lea ecx, [ebx - 1]
add edi, esi
add ecx, esi
cmp ebx, edi
mov edi, dword [ebp - 0x4c]
ja 0x481922
cmp ecx, eax
jae 0x48199e
lea eax, [edi - 1]
add eax, esi
cmp ebx, eax
mov eax, dword [ebp - 0x48]
ja 0x481932
cmp ecx, edi
jae 0x48199e
lea ecx, [eax - 1]
add ecx, esi
cmp edi, ecx
ja 0x481944
lea ecx, [edi - 1]
add ecx, esi
cmp ecx, eax
jae 0x48199e
mov ecx, esi
mov eax, edi
mov esi, dword [ebp - 0x48]
and ecx, 0xfffffff0
sub esi, edi
mov dword [ebp - 0x58], esi
mov esi, ebx
mov ebx, dword [ebp - 0x58]
sub esi, edi
mov dword [ebp - 0x50], esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x50]
movups xmm2, xmmword [ebx + eax]
add edx, 0x10
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x10]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmm0, xmmword [edi + eax - 0x10]
movups xmmword [eax - 0x10], xmm1
pxor xmm2, xmm0
movups xmmword [edi + eax - 0x10], xmm2
cmp edx, ecx
jb 0x481963
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], edx
cmp edx, esi
jae 0x4819c7
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edi
lea ecx, [eax + edx]
sub dword [ebp - 0x4c], eax
sub ebx, eax
sub esi, edx
mov edx, dword [ebp - 0x4c]
nop
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
xor byte [edx + ecx - 1], al
movzx eax, byte [ecx - 1]
xor byte [ebx + ecx - 1], al
sub esi, 1
jne 0x4819b0
mov eax, 0x40
lea ecx, [ebp - 0x44]
pop esi
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x4819d0
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebx]
push dword [ebx + 4]
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebx]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push edi
push dword [ebx + 4]
call eax
add esp, 0x10
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b992a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffaf00
pop edi
xor ecx, ebp
pop ebx
call fcn.004b992a
mov esp, ebp
pop ebp
ret