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

Disassembly:
sub esp, 0x300
mov eax, dword [0x4c437c]
xor eax, esp
mov dword [esp + 0x2fc], eax
mov eax, dword [esp + 0x314]
push ebx
mov ebx, dword [esp + 0x310]
push ebp
push esi
mov esi, dword [esp + 0x314]
cmp esi, 0x40
push edi
mov edi, dword [esp + 0x314]
mov dword [esp + 0x10], eax
jle 0x453219
lea ecx, [esp + 0x164]
push ecx
call fcn.004652a0
lea edx, [esp + 0x168]
push edx
lea eax, [esi*8]
push eax
push edi
call fcn.00465310
lea ecx, [esp + 0x29c]
push ecx
lea edx, [esp + 0x178]
push edx
call fcn.00466c40
lea edx, [esp + 0x17c]
mov ecx, 0xa8
add esp, 0x18
lea edi, [esp + 0x28c]
mov esi, 0x40
mov ebp, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub ebp, 1
jne 0x453204
lea ecx, [ecx]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x453210
lea eax, [esp + 0xbc]
push eax
call fcn.004652a0
add esp, 4
xor eax, eax
test esi, esi
jle 0x453254
mov ebp, edi
lea ecx, [esp + 0x20c]
sub ebp, ecx
lea ebx, [ebx]
lea ecx, [esp + eax + 0x20c]
mov dl, byte [ecx + ebp]
xor dl, 0x36
inc eax
cmp eax, esi
mov byte [ecx], dl
jl 0x453240
cmp esi, 0x40
jge 0x453273
mov ecx, 0x40
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x210]
push 0x36
push eax
call fcn.00469be0
add esp, 0xc
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x210]
push 0x200
push eax
call fcn.00465310
mov edx, dword [esp + 0x32c]
lea ecx, [esp + 0xc8]
push ecx
lea eax, [edx*8]
push eax
push ebx
call fcn.00465310
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0xd8]
push edx
call fcn.00466c40
lea eax, [esp + 0x34]
push eax
call fcn.004652a0
add esp, 0x24
xor eax, eax
test esi, esi
jle 0x4532f4
lea ecx, [esp + 0x20c]
sub edi, ecx
jmp 0x4532e0
lea ecx, [esp + eax + 0x20c]
mov dl, byte [edi + ecx]
xor dl, 0x5c
inc eax
cmp eax, esi
mov byte [ecx], dl
jl 0x4532e0
cmp esi, 0x40
jge 0x453313
mov ecx, 0x40
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x210]
push 0x5c
push eax
call fcn.00469be0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x210]
push 0x200
push eax
call fcn.00465310
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x25c]
push 0x200
push edx
call fcn.00465310
lea eax, [esp + 0x2e4]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00466c40
mov eax, dword [esp + 0x348]
add esp, 0x20
cmp eax, 0x40
jle 0x453367
mov eax, 0x40
test eax, eax
jle 0x453381
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2d0]
push edx
push eax
call fcn.00469d40
add esp, 0xc
lea edx, [esp + 0xbc]
mov ecx, 0xa8
mov esi, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x453391
lea ebx, [ebx]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x4533a0
lea edx, [esp + 0x14]
mov ecx, 0xa8
mov esi, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x4533b6
nop
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x4533c0
lea edx, [esp + 0x2cc]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
lea esp, [esp]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x4533e0
lea esp, [esp]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x4533f0
lea edx, [esp + 0x24c]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
lea esp, [esp]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x453410
lea esp, [esp]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x453420
lea edx, [esp + 0x20c]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
lea esp, [esp]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x453440
lea esp, [esp]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x453450
lea edx, [esp + 0x28c]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
lea esp, [esp]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x453470
pop edi
pop esi
pop ebp
pop ebx
lea ecx, [ecx]
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x453480
mov ecx, dword [esp + 0x2fc]
xor ecx, esp
call fcn.0046a1be
add esp, 0x300
ret