Function at 0x52cf80
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa8
call fcn.004c03f0
mov eax, dword [0x6f33d4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x14], 0
je 0x52cfcb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [eax]
je 0x52cfcb
cmp dword [ebp + 0xc], 0
je 0x52cfc4
cmp dword [ebp + 0x10], 0
jge 0x52cfcb
xor eax, eax
jmp 0x52d264
cmp dword [ebp + 0x14], 0
je 0x52cfe2
mov dword [ebp - 8], 1
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [edx], eax
jmp 0x52cffb
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x52cff4
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp + 0x14], eax
jmp 0x52cffb
xor eax, eax
jmp 0x52d264
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.005134e0
add esp, 4
and eax, 2
je 0x52d013
xor eax, eax
jmp 0x52d264
cmp dword [ebp + 0xc], 0
je 0x52d121
mov dword [ebp - 8], 1
mov edx, dword [ebp + 0x14]
push edx
call fcn.00513230
add esp, 4
mov dword [ebp - 0xa8], eax
xor eax, eax
cmp dword [ebp - 0xa8], 0x90
setle al
test eax, eax
jne 0x52d050
xor eax, eax
jmp 0x52d264
mov ecx, dword [ebp - 0xa8]
cmp ecx, dword [ebp + 0x10]
jge 0x52d0bb
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call fcn.00506d70
add esp, 0xc
test eax, eax
je 0x52d0b2
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.00506fe0
add esp, 0xc
test eax, eax
je 0x52d0b2
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ecx
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call fcn.00507050
add esp, 0xc
test eax, eax
jne 0x52d0b9
xor eax, eax
jmp 0x52d264
jmp 0x52d0f1
cmp dword [ebp + 0x10], 0
jl 0x52d0ca
cmp dword [ebp + 0x10], 0x90
jle 0x52d0d1
xor eax, eax
jmp 0x52d264
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
call fcn.004bd990
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0x90
je 0x52d121
mov edx, dword [ebp + 8]
mov eax, 0x90
sub eax, dword [edx + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x14]
push ecx
call fcn.004bee40
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x52d21e
mov dword [ebp - 4], 0
jmp 0x52d13d
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x90
jge 0x52d15f
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x14]
xor ecx, 0x36
mov edx, dword [ebp - 4]
mov byte [ebp + edx - 0xa0], cl
jmp 0x52d134
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call fcn.00506d70
add esp, 0xc
test eax, eax
je 0x52d1a1
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00513230
add esp, 4
push eax
lea edx, [ebp - 0xa0]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call fcn.00506fe0
add esp, 0xc
test eax, eax
jne 0x52d1a6
jmp 0x52d244
mov dword [ebp - 4], 0
jmp 0x52d1b8
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x90
jge 0x52d1da
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x14]
xor ecx, 0x5c
mov edx, dword [ebp - 4]
mov byte [ebp + edx - 0xa0], cl
jmp 0x52d1af
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call fcn.00506d70
add esp, 0xc
test eax, eax
je 0x52d21c
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00513230
add esp, 4
push eax
lea edx, [ebp - 0xa0]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.00506fe0
add esp, 0xc
test eax, eax
jne 0x52d21e
jmp 0x52d244
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call fcn.00507210
add esp, 8
test eax, eax
jne 0x52d23a
jmp 0x52d244
mov dword [ebp - 0xa4], 1
cmp dword [ebp - 8], 0
je 0x52d25e
push 0x90
lea eax, [ebp - 0xa0]
push eax
call fcn.0051c1a0
add esp, 8
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004bec6d
mov esp, ebp
pop ebp
ret