Function at 0x52aec0
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x94
call fcn.005bd7a0
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x8c], 0
cmp dword [ebp + 0x14], 0
je 0x52af04
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [eax]
je 0x52af04
cmp dword [ebp + 0xc], 0
je 0x52aefd
cmp dword [ebp + 0x10], 0
jge 0x52af04
xor eax, eax
jmp 0x52b1bc
cmp dword [ebp + 0x14], 0
je 0x52af1e
mov dword [ebp - 0x8c], 1
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [edx], eax
jmp 0x52af37
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x52af30
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp + 0x14], eax
jmp 0x52af37
xor eax, eax
jmp 0x52b1bc
cmp dword [ebp + 0xc], 0
je 0x52b06c
mov dword [ebp - 0x8c], 1
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004e85d0
add esp, 4
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x80
jg 0x52af75
mov dword [ebp - 0x94], 0
jmp 0x52af93
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004c93f0
add esp, 0xc
mov dword [ebp - 0x94], 1
mov edx, dword [ebp - 0x90]
cmp edx, dword [ebp + 0x10]
jge 0x52b006
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
add edx, 4
push edx
call fcn.004b0d40
add esp, 0xc
test eax, eax
jne 0x52afbe
jmp 0x52b1ba
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
add edx, 4
push edx
call fcn.004b0fb0
add esp, 0xc
test eax, eax
jne 0x52afde
jmp 0x52b1ba
mov eax, dword [ebp + 8]
add eax, 0x4c
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x50
push ecx
mov edx, dword [ebp + 8]
add edx, 4
push edx
call fcn.004b0c50
add esp, 0xc
test eax, eax
jne 0x52b004
jmp 0x52b1ba
jmp 0x52b03c
cmp dword [ebp + 0x10], 0
jl 0x52b015
cmp dword [ebp + 0x10], 0x80
jle 0x52b01c
xor eax, eax
jmp 0x52b1bc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x50
push edx
call fcn.005d78a0
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x4c], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x4c], 0x80
je 0x52b06c
mov eax, dword [ebp + 8]
mov ecx, 0x80
sub ecx, dword [eax + 0x4c]
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x4c]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x50]
push edx
call fcn.005d7e20
add esp, 0xc
cmp dword [ebp - 0x8c], 0
je 0x52b197
mov dword [ebp - 0x88], 0
jmp 0x52b094
mov eax, dword [ebp - 0x88]
add eax, 1
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0x80
jge 0x52b0bf
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x88]
movzx edx, byte [ecx + 0x50]
xor edx, 0x36
mov eax, dword [ebp - 0x88]
mov byte [ebp + eax - 0x84], dl
jmp 0x52b085
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
call fcn.004b0d40
add esp, 0xc
test eax, eax
jne 0x52b0df
jmp 0x52b1ba
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004e85d0
add esp, 4
push eax
lea edx, [ebp - 0x84]
push edx
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
call fcn.004b0fb0
add esp, 0xc
test eax, eax
jne 0x52b10b
jmp 0x52b1ba
mov dword [ebp - 0x88], 0
jmp 0x52b126
mov ecx, dword [ebp - 0x88]
add ecx, 1
mov dword [ebp - 0x88], ecx
cmp dword [ebp - 0x88], 0x80
jge 0x52b151
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x88]
movzx eax, byte [edx + 0x50]
xor eax, 0x5c
mov ecx, dword [ebp - 0x88]
mov byte [ebp + ecx - 0x84], al
jmp 0x52b117
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x34
push ecx
call fcn.004b0d40
add esp, 0xc
test eax, eax
jne 0x52b16e
jmp 0x52b1ba
mov edx, dword [ebp + 0x14]
push edx
call fcn.004e85d0
add esp, 4
push eax
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x34
push ecx
call fcn.004b0fb0
add esp, 0xc
test eax, eax
jne 0x52b197
jmp 0x52b1ba
mov edx, dword [ebp + 8]
add edx, 0x1c
push edx
mov eax, dword [ebp + 8]
add eax, 4
push eax
call fcn.004b10e0
add esp, 8
test eax, eax
jne 0x52b1b3
jmp 0x52b1ba
mov eax, 1
jmp 0x52b1bc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bd4a0
mov esp, ebp
pop ebp
ret