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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5b706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x5c], edi
test edi, edi
je 0x47332d
mov eax, dword [edi]
test eax, eax
je 0x47332d
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x47332d
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [eax + 0xc]
jbe 0x4731ca
push dword [edi + 4]
mov eax, dword [eax + 0x10]
call eax
mov edx, eax
add esp, 4
test edx, edx
jne 0x473300
mov eax, dword [edi]
mov ecx, dword [ebp - 0x48]
push esi
push ecx
push dword [edi + 4]
mov eax, dword [eax + 0x14]
call eax
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x473300
mov eax, dword [edi]
lea ecx, [ebp - 0x44]
push ecx
push dword [edi + 4]
mov eax, dword [eax + 0x18]
call eax
mov edx, eax
add esp, 8
test edx, edx
jne 0x473300
mov eax, dword [edi]
lea ecx, [ebp - 0x44]
mov ebx, dword [edi + 8]
mov dword [ebp - 0x48], ecx
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
push eax
push 0x36
push ebx
lea ecx, [eax + ebx]
mov dword [ebp - 0x4c], ecx
call fcn.00525340
mov eax, dword [edi]
push dword [eax + 0xc]
push 0x5c
push dword [ebp - 0x4c]
call fcn.00525340
xor ecx, ecx
add esp, 0x18
mov dword [ebp - 0x58], ecx
test esi, esi
je 0x4732da
cmp esi, 0x10
jb 0x4732a2
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x58], ecx
lea eax, [edx - 1]
add eax, esi
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
lea ecx, [eax - 1]
add ecx, esi
mov dword [ebp - 0x60], ecx
cmp edx, ecx
mov ecx, 0
ja 0x47322b
cmp dword [ebp - 0x54], eax
jae 0x4732a5
lea edi, [ebx - 1]
add edi, esi
mov dword [ebp - 0x50], edi
cmp edx, edi
mov edi, dword [ebp - 0x5c]
ja 0x47323f
cmp dword [ebp - 0x54], ebx
jae 0x4732a5
cmp ebx, dword [ebp - 0x60]
ja 0x473249
cmp dword [ebp - 0x50], eax
jae 0x4732a5
mov ecx, dword [ebp - 0x48]
mov eax, esi
sub ecx, ebx
and eax, 0xfffffff0
mov dword [ebp - 0x50], ecx
mov ecx, edx
mov edi, dword [ebp - 0x50]
sub ecx, ebx
mov dword [ebp - 0x60], ecx
xor ecx, ecx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
mov eax, ebx
nop word [eax + eax]
movups xmm2, xmmword [edi + eax]
add ecx, 0x10
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x10]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmm0, xmmword [edx + eax - 0x10]
movups xmmword [eax - 0x10], xmm1
pxor xmm2, xmm0
movups xmmword [edx + eax - 0x10], xmm2
cmp ecx, dword [ebp - 0x54]
jb 0x473270
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x48]
cmp ecx, esi
jae 0x4732da
mov edx, ebx
add ecx, eax
sub edx, eax
mov dword [ebp - 0x50], edx
mov edx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
sub edx, eax
sub esi, dword [ebp - 0x58]
nop dword [eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
xor byte [edi + ecx - 1], al
movzx eax, byte [ecx - 1]
xor byte [edx + ecx - 1], al
sub esi, 1
jne 0x4732c0
mov edi, dword [ebp - 0x5c]
mov eax, dword [edi]
push dword [edi + 4]
mov eax, dword [eax + 0x10]
call eax
mov edx, eax
add esp, 4
test edx, edx
jne 0x473300
mov eax, dword [edi]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push ebx
push dword [edi + 4]
call eax
add esp, 0xc
mov edx, eax
mov eax, 0x40
lea ecx, [ebp - 0x44]
pop esi
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x473310
pop edi
mov eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffaf00
pop edi
xor ecx, ebp
pop ebx
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret