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

Disassembly:
sub esp, 0x198
mov eax, dword [0x51eed4]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, dword [esp + 0x19c]
push ebp
push esi
mov esi, ecx
cmp esi, 0x40
push edi
mov edi, edx
mov dword [esp + 0xc], eax
jle 0x414919
lea ecx, [esp + 0xc8]
push ecx
call fcn.004e8dc0
lea edx, [esp + 0xcc]
push edx
push esi
push edi
call fcn.004e8e00
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x14c]
push ecx
call fcn.004e8eb0
lea edx, [esp + 0xe0]
mov ecx, 0x5c
add esp, 0x18
lea edi, [esp + 0x138]
mov esi, 0x14
mov ebp, ecx
mov eax, edx
jmp 0x414900
mov byte [eax], 0
inc eax
sub ebp, 1
jne 0x414900
lea esp, [esp]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x414910
lea edx, [esp + 0x6c]
push edx
call fcn.004e8dc0
add esp, 4
xor eax, eax
test esi, esi
jle 0x414954
mov ebp, edi
lea ecx, [esp + 0x160]
sub ebp, ecx
jmp 0x414940
lea ecx, [esp + eax + 0x160]
mov dl, byte [ecx + ebp]
xor dl, 0x36
inc eax
cmp eax, esi
mov byte [ecx], dl
jl 0x414940
cmp esi, 0x40
jge 0x414973
mov ecx, 0x40
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x164]
push 0x36
push eax
call fcn.004bfe20
add esp, 0xc
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x164]
push 0x40
push eax
call fcn.004e8e00
mov edx, dword [esp + 0x1b8]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x78]
push ecx
push edx
push eax
call fcn.004e8e00
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x168]
push edx
call fcn.004e8eb0
lea eax, [esp + 0x30]
push eax
call fcn.004e8dc0
add esp, 0x24
xor eax, eax
test esi, esi
jle 0x4149e4
lea ecx, [esp + 0x160]
sub edi, ecx
nop
lea ecx, [esp + eax + 0x160]
mov dl, byte [edi + ecx]
xor dl, 0x5c
inc eax
cmp eax, esi
mov byte [ecx], dl
jl 0x4149d0
cmp esi, 0x40
jge 0x414a03
mov ecx, 0x40
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x164]
push 0x5c
push eax
call fcn.004bfe20
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x164]
push 0x40
push eax
call fcn.004e8e00
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x15c]
push 0x14
push edx
call fcn.004e8e00
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x140]
push ecx
call fcn.004e8eb0
mov edx, dword [esp + 0x144]
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x14c]
mov dword [ebx], edx
mov edx, dword [esp + 0x150]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x154]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
lea edx, [esp + 0x8c]
mov ecx, 0x5c
mov dword [ebx + 0x10], eax
add esp, 0x20
mov esi, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x414a81
lea ebx, [ebx]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x414a90
lea edx, [esp + 0x10]
mov ecx, 0x5c
mov esi, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x414aa6
nop
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x414ab0
lea edx, [esp + 0x14c]
mov ecx, 0x14
mov esi, ecx
mov eax, edx
lea esp, [esp]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x414ad0
lea esp, [esp]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x414ae0
lea edx, [esp + 0x124]
mov ecx, 0x14
mov esi, ecx
mov eax, edx
lea esp, [esp]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x414b00
lea esp, [esp]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x414b10
lea edx, [esp + 0x160]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
lea esp, [esp]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x414b30
lea esp, [esp]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x414b40
lea edx, [esp + 0x138]
mov ecx, 0x14
mov esi, ecx
mov eax, edx
lea esp, [esp]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x414b60
pop edi
pop esi
pop ebp
lea esp, [esp]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x414b70
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004be1d6
add esp, 0x198
ret