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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x5c], edi
test edi, edi
je 0x4143e4
mov eax, dword [edi]
test eax, eax
je 0x4143e4
cmp dword [edi + 8], 0
je 0x4143e4
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [eax + 0xc]
jbe 0x414216
push dword [edi + 4]
mov eax, dword [eax + 0x10]
call eax
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4143bf
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 ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4143bf
mov eax, dword [edi]
lea ecx, [ebp - 0x44]
push ecx
push dword [edi + 4]
mov eax, dword [eax + 0x18]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4143bf
mov eax, dword [edi]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov esi, dword [eax + 8]
mov ebx, dword [edi + 8]
mov ecx, dword [eax + 0xc]
push ecx
push 0x36
push ebx
lea eax, [ecx + ebx]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x50], eax
call fcn.004459f0
mov eax, dword [edi]
push dword [eax + 0xc]
push 0x5c
push dword [ebp - 0x50]
call fcn.004459f0
add esp, 0x18
xor eax, eax
test esi, esi
je 0x414397
cmp esi, 8
jb 0x41436b
mov ecx, dword [ebp - 0x50]
lea edx, [ecx - 1]
add edx, esi
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 0x48]
lea ebx, [edx - 1]
add ebx, esi
cmp ecx, ebx
mov ebx, dword [ebp - 0x54]
ja 0x414279
cmp dword [ebp - 0x58], edx
jae 0x41436e
lea edi, [ebx - 1]
add edi, esi
cmp ecx, edi
mov edi, dword [ebp - 0x5c]
ja 0x41428e
cmp dword [ebp - 0x58], ebx
jae 0x41436e
lea ecx, [edx - 1]
add ecx, esi
cmp ebx, ecx
ja 0x4142a4
lea ecx, [ebx - 1]
add ecx, esi
cmp ecx, edx
jae 0x41436e
cmp esi, 0x10
jb 0x414306
mov edi, esi
mov ecx, esi
and edi, 0xf
sub ecx, edi
mov dword [ebp - 0x4c], edi
mov edi, edx
mov dword [ebp - 0x64], ecx
sub edi, ebx
mov ecx, ebx
mov ebx, dword [ebp - 0x60]
mov dword [ebp - 0x58], edi
mov edi, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
nop word [eax + eax]
movups xmm2, xmmword [edx + ecx]
add eax, 0x10
lea ecx, [ecx + 0x10]
movups xmm0, xmmword [ecx - 0x10]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
movups xmm0, xmmword [ebx + ecx - 0x10]
xorps xmm2, xmm0
movups xmmword [ebx + ecx - 0x10], xmm2
cmp eax, dword [ebp - 0x64]
jb 0x4142d0
cmp dword [ebp - 0x4c], 8
mov ebx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
jb 0x414365
mov edi, dword [ebp - 0x5c]
sub edx, ebx
mov dword [ebp - 0x4c], edx
mov ecx, esi
mov edx, dword [ebp - 0x50]
and ecx, 0xfffffff8
sub edx, ebx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], edx
lea ecx, [eax + ebx]
mov edx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x64]
nop word [eax + eax]
movq xmm2, qword [edx + ecx]
lea ecx, [ecx + 8]
movq xmm0, qword [ecx - 8]
movaps xmm1, xmm2
xorps xmm1, xmm0
add eax, 8
movq qword [ecx - 8], xmm1
movq xmm0, qword [ecx + ebx - 8]
xorps xmm2, xmm0
movq qword [ecx + ebx - 8], xmm2
cmp eax, dword [ebp - 0x60]
jb 0x414330
mov ebx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
cmp eax, esi
jae 0x414397
jmp 0x41436e
mov edx, dword [ebp - 0x48]
sub ebx, edx
lea ecx, [edx + eax]
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x50]
sub ebx, edx
mov edx, dword [ebp - 0x4c]
sub esi, eax
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
xor byte [ecx + edx - 1], al
movzx eax, byte [ecx - 1]
xor byte [ebx + ecx - 1], al
sub esi, 1
jne 0x414380
mov eax, dword [edi]
push dword [edi + 4]
mov eax, dword [eax + 0x10]
call eax
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4143bf
mov eax, dword [edi]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push dword [ebp - 0x54]
push dword [edi + 4]
call eax
add esp, 0xc
mov ebx, eax
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
mov eax, dword [fcn.004459f0]
call eax
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444a17
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffaf00
xor ecx, ebp
pop edi
call fcn.00444a17
mov esp, ebp
pop ebp
ret