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

Disassembly:
push 0x320
mov eax, 0x5e9012
call fcn.0059ca8d
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x19c]
call fcn.004b0c41
xor ebx, ebx
lea ecx, [ebp - 0x200]
mov dword [ebp - 4], ebx
call fcn.004b0c41
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 1
call fcn.004b0c41
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 2
call fcn.004b0c41
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 3
call fcn.004b0c41
mov byte [ebp - 4], 4
cmp esi, ebx
je 0x4e2c69
cmp dword [esi + 0x34], ebx
je 0x4e2c69
cmp dword [esi + 4], ebx
je 0x4e2c69
lea ecx, [ebp - 0x19c]
call fcn.004b0fa6
push dword [esi + 0x34]
lea eax, [esi + 0x20]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004b0fd5
push dword [ebp + 0x10]
lea ecx, [ebp - 0x19c]
push edi
call fcn.004b0fd5
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004b10b9
lea ecx, [ebp - 0x19c]
call fcn.004b0fa6
push 0x14
pop ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004b0fd5
movzx eax, byte [esi + 1]
push eax
push dword [esi + 4]
lea ecx, [ebp - 0x19c]
call fcn.004b0fd5
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004b10b9
push 0x40
lea eax, [ebp - 0x78]
push 0x36
push eax
call fcn.0059cb30
push 0x40
lea eax, [ebp - 0xb8]
push 0x5c
push eax
call fcn.0059cb30
add esp, 0x18
xor eax, eax
mov cl, byte [ebp + eax - 0x38]
xor byte [ebp + eax - 0x78], cl
xor byte [ebp + eax - 0xb8], cl
inc eax
cmp eax, ebx
jl 0x4e2aba
push 0x80
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.0059cb30
movzx eax, byte [esi + 1]
push eax
push dword [esi + 4]
lea eax, [ebp - 0x138]
push eax
call fcn.0059d730
add esp, 0x18
lea ecx, [ebp - 0x19c]
call fcn.004b0fa6
push 0x40
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004b0fd5
push 0x60
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x1fc]
push eax
call fcn.0059d730
add esp, 0xc
push ebx
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004b0fd5
push 0x60
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.0059d730
movzx eax, byte [esi + 1]
add esp, 0xc
push eax
push dword [esi + 4]
lea ecx, [ebp - 0x19c]
call fcn.004b0fd5
mov edi, 0x67c1e8
push edi
lea ecx, [ebp - 0x19c]
call fcn.004b10b9
lea ecx, [ebp - 0x19c]
call fcn.004b0fa6
push 0x40
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004b0fd5
push 0x60
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0059d730
push 0x60
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x2c4]
push eax
call fcn.0059d730
add esp, 0x18
push ebx
push edi
lea ecx, [ebp - 0x19c]
call fcn.004b0fd5
push edi
lea ecx, [ebp - 0x19c]
call fcn.004b10b9
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x32c]
call fcn.004b10b9
push ebx
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x264]
call fcn.004b0fd5
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x264]
call fcn.004b10b9
push ebx
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x200]
call fcn.004b0fd5
movzx eax, byte [esi + 1]
push eax
push dword [esi + 4]
lea ecx, [ebp - 0x200]
call fcn.004b0fd5
mov esi, 0x67c1fc
push esi
lea ecx, [ebp - 0x200]
call fcn.004b10b9
push ebx
push esi
lea ecx, [ebp - 0x2c8]
call fcn.004b0fd5
push esi
lea ecx, [ebp - 0x2c8]
call fcn.004b10b9
jmp 0x4e2c7a
push 0x28
push ebx
mov edi, 0x67c1e8
push edi
call fcn.0059cb30
add esp, 0xc
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 3
call fcn.004b0c4a
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 2
call fcn.004b0c4a
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 1
call fcn.004b0c4a
lea ecx, [ebp - 0x200]
mov byte [ebp - 4], 0
call fcn.004b0c4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x19c]
call fcn.004b0c4a
mov eax, edi
call fcn.0059cb10
ret 0xc