Function at 0x52a980
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x94
call fcn.005bd220
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x8c], 0
cmp dword [ebp + 0x14], 0
je 0x52a9c4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [eax]
je 0x52a9c4
cmp dword [ebp + 0xc], 0
je 0x52a9bd
cmp dword [ebp + 0x10], 0
jge 0x52a9c4
xor eax, eax
jmp 0x52ac7c
cmp dword [ebp + 0x14], 0
je 0x52a9de
mov dword [ebp - 0x8c], 1
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [edx], eax
jmp 0x52a9f7
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x52a9f0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp + 0x14], eax
jmp 0x52a9f7
xor eax, eax
jmp 0x52ac7c
cmp dword [ebp + 0xc], 0
je 0x52ab2c
mov dword [ebp - 0x8c], 1
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004ce830
add esp, 4
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x80
jg 0x52aa35
mov dword [ebp - 0x94], 0
jmp 0x52aa53
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004c8ed0
add esp, 0xc
mov dword [ebp - 0x94], 1
mov edx, dword [ebp - 0x90]
cmp edx, dword [ebp + 0x10]
jge 0x52aac6
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.004b07c0
add esp, 0xc
test eax, eax
jne 0x52aa7e
jmp 0x52ac7a
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.004b0a30
add esp, 0xc
test eax, eax
jne 0x52aa9e
jmp 0x52ac7a
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.004b06d0
add esp, 0xc
test eax, eax
jne 0x52aac4
jmp 0x52ac7a
jmp 0x52aafc
cmp dword [ebp + 0x10], 0
jl 0x52aad5
cmp dword [ebp + 0x10], 0x80
jle 0x52aadc
xor eax, eax
jmp 0x52ac7c
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.005d7410
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 0x52ab2c
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.005d7990
add esp, 0xc
cmp dword [ebp - 0x8c], 0
je 0x52ac57
mov dword [ebp - 0x88], 0
jmp 0x52ab54
mov eax, dword [ebp - 0x88]
add eax, 1
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0x80
jge 0x52ab7f
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 0x52ab45
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.004b07c0
add esp, 0xc
test eax, eax
jne 0x52ab9f
jmp 0x52ac7a
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004ce830
add esp, 4
push eax
lea edx, [ebp - 0x84]
push edx
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
call fcn.004b0a30
add esp, 0xc
test eax, eax
jne 0x52abcb
jmp 0x52ac7a
mov dword [ebp - 0x88], 0
jmp 0x52abe6
mov ecx, dword [ebp - 0x88]
add ecx, 1
mov dword [ebp - 0x88], ecx
cmp dword [ebp - 0x88], 0x80
jge 0x52ac11
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 0x52abd7
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.004b07c0
add esp, 0xc
test eax, eax
jne 0x52ac2e
jmp 0x52ac7a
mov edx, dword [ebp + 0x14]
push edx
call fcn.004ce830
add esp, 4
push eax
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x34
push ecx
call fcn.004b0a30
add esp, 0xc
test eax, eax
jne 0x52ac57
jmp 0x52ac7a
mov edx, dword [ebp + 8]
add edx, 0x1c
push edx
mov eax, dword [ebp + 8]
add eax, 4
push eax
call fcn.004b0b60
add esp, 8
test eax, eax
jne 0x52ac73
jmp 0x52ac7a
mov eax, 1
jmp 0x52ac7c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret