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

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x5eef00]
xor eax, esp
mov dword [esp + 0x19c], eax
mov eax, dword [esp + 0x1a4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1b8]
test esi, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c4]
mov dword [esp + 0x2c], eax
mov ebx, 1
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0x20
mov dword [esp + 0x24], 0xffffffff
je 0x4cc4cb
test eax, eax
je 0x4cc4cb
mov ebp, dword [esp + 0x1bc]
test ebp, ebp
je 0x4cc4cb
cmp dword [esp + 0x1c0], 0
je 0x4cc4cb
lea eax, [ebp + 4]
push edi
push eax
mov dword [esp + 0x24], eax
call fcn.004772c0
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
jne 0x4cc185
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x19c]
xor ecx, esp
call fcn.004b2f95
add esp, 0x1a0
ret
push ebp
push esi
push edi
call fcn.004b42c0
add esp, 0xc
cmp dword [esp + 0x1cc], 0
jbe 0x4cc49e
lea ecx, [edi + ebp + 1]
lea edx, [edi + ebp + 2]
lea eax, [edi + ebp + 3]
mov ebp, dword [esp + 0x1b8]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], eax
lea ecx, [ecx]
mov edx, dword [esp + 0x1c0]
mov ecx, ebx
shr ecx, 0x18
mov byte [edi + edx], cl
mov ecx, dword [esp + 0x34]
mov eax, ebx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, ebx
shr edx, 8
push 0x20
mov byte [eax], dl
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x130]
push edx
push ebp
mov byte [ecx], bl
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push edi
call fcn.004cbed0
add esp, 0x18
test eax, eax
jne 0x4cc4ac
mov eax, 1
cmp dword [esp + 0x1c4], eax
mov ecx, 8
lea esi, [esp + 0x12c]
lea edi, [esp + 0xac]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
jbe 0x4cc451
lea esp, [esp]
lea edx, [esp + 0x12c]
test edx, edx
je 0x4cc4a8
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x4cc25f
test ebp, ebp
ja 0x4cc4a8
lea eax, [esp + 0xcc]
test eax, eax
je 0x4cc4a8
cmp ebp, 0x40
jbe 0x4cc2da
lea ecx, [esp + 0x3c]
push ecx
call fcn.004ce110
push ebp
lea edx, [esp + 0x44]
push esi
push edx
call fcn.004ce170
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.004ce230
add esp, 0x18
xor eax, eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
jmp 0x4cc308
push 0x40
lea edx, [esp + 0xf0]
push 0
push edx
call fcn.004b3a80
add esp, 0xc
test esi, esi
je 0x4cc308
test ebp, ebp
jbe 0x4cc308
push ebp
lea eax, [esp + 0xf0]
push esi
push eax
call fcn.004b42c0
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0xec]
xor cl, 0x36
mov byte [esp + eax + 0x14c], cl
add eax, 1
cmp eax, 0x40
jb 0x4cc310
lea edx, [esp + 0x3c]
push edx
call fcn.004ce110
push 0x40
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.004ce170
push 0x20
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004ce170
lea ecx, [esp + 0x1a8]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.004ce230
add esp, 0x24
xor eax, eax
mov cl, byte [esp + eax + 0xec]
xor cl, 0x5c
mov byte [esp + eax + 0x14c], cl
add eax, 1
cmp eax, 0x40
jb 0x4cc372
lea edx, [esp + 0x3c]
push edx
call fcn.004ce110
push 0x40
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.004ce170
push 0x20
lea edx, [esp + 0x1a0]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004ce170
lea ecx, [esp + 0xe8]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.004ce230
add esp, 0x24
xor eax, eax
jmp 0x4cc3e0
movzx ecx, byte [esp + eax + 0xcc]
movzx edx, byte [esp + eax + 0xcd]
xor byte [esp + eax + 0xac], cl
xor byte [esp + eax + 0xad], dl
movzx ecx, byte [esp + eax + 0xce]
movzx edx, byte [esp + eax + 0xcf]
xor byte [esp + eax + 0xae], cl
xor byte [esp + eax + 0xaf], dl
add eax, 4
cmp eax, 0x20
jb 0x4cc3e0
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x1c4]
mov ecx, 8
lea esi, [esp + 0xcc]
lea edi, [esp + 0x12c]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
jb 0x4cc240
mov eax, dword [esp + 0x1cc]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
sub eax, esi
cmp eax, edi
jae 0x4cc46c
mov dword [esp + 0x10], eax
mov edi, eax
mov ecx, dword [esp + 0x30]
push edi
lea eax, [esp + 0xb0]
push eax
add ecx, esi
push ecx
call fcn.004b42c0
add esi, edi
mov edi, dword [esp + 0x20]
add esp, 0xc
add ebx, 1
cmp esi, dword [esp + 0x1cc]
mov dword [esp + 0x1c], esi
jb 0x4cc1c0
mov dword [esp + 0x28], 0
jmp 0x4cc4ac
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push edx
push 0
push edi
call fcn.004b3a80
push edi
call fcn.00477540
mov eax, dword [esp + 0x38]
add esp, 0x10
jmp 0x4cc16c
mov ecx, dword [esp + 0x1a8]
pop esi
pop ebp
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.004b2f95
add esp, 0x1a0
ret