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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x636b1c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x40], ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x28], esi
test ebx, ebx
je 0x4699ec
mov ecx, dword [ebx]
test ecx, ecx
je 0x4699ec
cmp dword [ebx + 8], 0
je 0x4699ec
movzx eax, byte [ecx + 9]
push edi
mov edi, dword [ebp + 0x10]
cmp edi, eax
jbe 0x469860
push ebx
call fcn.00469b20
mov esi, eax
add esp, 4
test esi, esi
jne 0x4699cb
push edi
push dword [ebp - 0x28]
push ebx
call fcn.00469b60
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4699cb
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.00469500
mov esi, eax
add esp, 8
test esi, esi
jne 0x4699cb
mov ecx, dword [ebx]
lea esi, [ebp - 0x24]
movzx edi, byte [ecx + 8]
mov edx, dword [ebx + 8]
movzx eax, byte [ecx + 9]
push eax
push 0x36
push edx
lea ecx, [eax + edx]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x38], ecx
call sub.MSVCR120.dll_memset
mov eax, dword [ebx]
movzx eax, byte [eax + 9]
push eax
push 0x5c
push dword [ebp - 0x38]
call sub.MSVCR120.dll_memset
xor ecx, ecx
add esp, 0x18
mov dword [ebp - 0x34], ecx
test edi, edi
je 0x469977
mov edx, dword [ebp - 0x38]
cmp edi, 0x10
jb 0x46994d
mov dword [ebp - 0x34], ecx
lea eax, [edx - 1]
lea ecx, [esi - 1]
add eax, edi
add ecx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], ecx
cmp edx, ecx
mov ecx, 0
ja 0x4698ca
cmp eax, esi
jae 0x46994d
mov eax, dword [ebp - 0x2c]
lea ebx, [eax - 1]
add ebx, edi
mov dword [ebp - 0x30], ebx
cmp edx, ebx
mov ebx, dword [ebp - 0x40]
ja 0x4698e1
cmp dword [ebp - 0x28], eax
jae 0x469950
cmp eax, dword [ebp - 0x3c]
ja 0x4698eb
cmp dword [ebp - 0x30], esi
jae 0x469950
mov ecx, dword [ebp - 0x2c]
mov eax, edi
and eax, 0xf
mov dword [ebp - 0x28], edi
sub dword [ebp - 0x28], eax
sub ecx, esi
mov eax, edx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x34]
sub eax, esi
mov dword [ebp - 0x3c], eax
mov edx, esi
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x3c]
movdqu xmm0, xmmword [edx]
add ecx, 0x10
lea edx, [edx + 0x10]
movdqu xmm1, xmmword [eax + edx - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax + edx - 0x10], xmm1
movdqu xmm1, xmmword [ebx + edx - 0x10]
movdqu xmm0, xmmword [edx - 0x10]
pxor xmm1, xmm0
movdqu xmmword [ebx + edx - 0x10], xmm1
cmp ecx, dword [ebp - 0x28]
jb 0x469910
mov ebx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x2c]
cmp ecx, edi
jae 0x469977
sub eax, esi
add ecx, esi
sub edx, esi
mov dword [ebp - 0x30], eax
sub edi, dword [ebp - 0x34]
mov esi, eax
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
xor byte [ecx + esi - 1], al
movzx eax, byte [ecx - 1]
xor byte [ecx + edx - 1], al
dec edi
jne 0x469962
mov eax, dword [ebx]
test eax, eax
je 0x4699c6
mov eax, dword [eax + 4]
sub eax, 3
je 0x46998b
dec eax
jne 0x4699c6
push eax
jmp 0x46998d
push 1
push dword [ebx + 4]
call fcn.004693b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4699cb
mov eax, dword [ebx]
movzx ecx, byte [eax + 9]
test eax, eax
je 0x4699c6
mov eax, dword [eax + 4]
sub eax, 3
je 0x4699b3
dec eax
jne 0x4699c6
push ecx
push dword [ebp - 0x2c]
push dword [ebx + 4]
call fcn.00469450
add esp, 0xc
mov esi, eax
jmp 0x4699cb
mov esi, 0xffffaf00
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0046b4d0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004743e6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffaf00
pop esi
xor ecx, ebp
pop ebx
call fcn.004743e6
mov esp, ebp
pop ebp
ret