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

Disassembly:
sub esp, 0x308
mov eax, dword [0x51eed4]
xor eax, esp
mov dword [esp + 0x300], eax
mov eax, dword [esp + 0x310]
push ebp
push esi
mov esi, ecx
cmp esi, 0x40
push edi
mov edi, edx
mov dword [esp + 0xc], eax
jle 0x4152e9
lea ecx, [esp + 0x160]
push ecx
call fcn.004e7ab0
lea edx, [esp + 0x164]
push edx
lea eax, [esi*8]
push eax
push edi
call fcn.004e7b30
lea ecx, [esp + 0x298]
push ecx
lea edx, [esp + 0x174]
push edx
call fcn.004e7cf0
lea edx, [esp + 0x178]
mov ecx, 0xa8
add esp, 0x18
lea edi, [esp + 0x288]
mov esi, 0x40
mov ebp, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub ebp, 1
jne 0x4152d2
jmp 0x4152e0
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x4152e0
lea eax, [esp + 0xb8]
push eax
call fcn.004e7ab0
add esp, 4
xor eax, eax
test esi, esi
jle 0x415324
mov ebp, edi
lea ecx, [esp + 0x208]
sub ebp, ecx
lea ebx, [ebx]
lea ecx, [esp + eax + 0x208]
mov dl, byte [ecx + ebp]
xor dl, 0x36
inc eax
cmp eax, esi
mov byte [ecx], dl
jl 0x415310
cmp esi, 0x40
jge 0x415343
mov ecx, 0x40
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x20c]
push 0x36
push eax
call fcn.004bfe20
add esp, 0xc
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x20c]
push 0x200
push eax
call fcn.004e7b30
mov edx, dword [esp + 0x324]
lea ecx, [esp + 0xc4]
push ecx
lea eax, [edx*8]
push eax
push ebx
call fcn.004e7b30
lea ecx, [esp + 0x260]
push ecx
lea edx, [esp + 0xd4]
push edx
call fcn.004e7cf0
lea eax, [esp + 0x30]
push eax
call fcn.004e7ab0
add esp, 0x24
xor eax, eax
test esi, esi
jle 0x4153c4
lea ecx, [esp + 0x208]
sub edi, ecx
jmp 0x4153b0
lea ecx, [esp + eax + 0x208]
mov dl, byte [edi + ecx]
xor dl, 0x5c
inc eax
cmp eax, esi
mov byte [ecx], dl
jl 0x4153b0
cmp esi, 0x40
jge 0x4153e3
mov ecx, 0x40
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x20c]
push 0x5c
push eax
call fcn.004bfe20
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20c]
push 0x200
push eax
call fcn.004e7b30
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x258]
push 0x200
push edx
call fcn.004e7b30
lea eax, [esp + 0x2e0]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.004e7cf0
mov eax, dword [esp + 0x2c]
push 0x40
lea edx, [esp + 0x2ec]
push edx
push eax
call fcn.004c0830
lea edx, [esp + 0xe4]
mov ecx, 0xa8
add esp, 0x2c
mov esi, ecx
mov eax, edx
lea ebx, [ebx]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x415450
lea esp, [esp]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x415460
lea edx, [esp + 0x10]
mov ecx, 0xa8
mov esi, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x415476
nop
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x415480
lea edx, [esp + 0x2c8]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
lea esp, [esp]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x4154a0
lea esp, [esp]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x4154b0
lea edx, [esp + 0x248]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
lea esp, [esp]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x4154d0
lea esp, [esp]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x4154e0
lea edx, [esp + 0x208]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
lea esp, [esp]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x415500
lea esp, [esp]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x415510
lea edx, [esp + 0x288]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
lea esp, [esp]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x415530
lea esp, [esp]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x415540
mov ecx, dword [esp + 0x30c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004be1d6
add esp, 0x308
ret