Function at 0x10085480
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x98
call fcn.10092490
mov eax, dword [0x10117d48]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 0x14], 0
je 0x100854c1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [eax]
je 0x100854c1
cmp dword [ebp + 0xc], 0
je 0x100854ba
cmp dword [ebp + 0x10], 0
jge 0x100854c1
xor eax, eax
jmp 0x1008574c
cmp dword [ebp + 0x14], 0
je 0x100854d8
mov dword [ebp - 8], 1
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [edx], eax
jmp 0x100854f1
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x100854ea
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp + 0x14], eax
jmp 0x100854f1
xor eax, eax
jmp 0x1008574c
cmp dword [ebp + 0xc], 0
je 0x10085623
mov dword [ebp - 8], 1
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.1004e8d0
add esp, 4
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0x80
jg 0x1008552c
mov dword [ebp - 0x98], 0
jmp 0x1008554a
push str.j____int_sizeof_ctx__key_
push 0x6a
push str..cryptohmachmac.c
call fcn.10036e10
add esp, 0xc
mov dword [ebp - 0x98], 1
mov edx, dword [ebp - 0x94]
cmp edx, dword [ebp + 0x10]
jge 0x100855bd
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.10059100
add esp, 0xc
test eax, eax
jne 0x10085575
jmp 0x1008574a
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.10059370
add esp, 0xc
test eax, eax
jne 0x10085595
jmp 0x1008574a
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.10059390
add esp, 0xc
test eax, eax
jne 0x100855bb
jmp 0x1008574a
jmp 0x100855f3
cmp dword [ebp + 0x10], 0
jl 0x100855cc
cmp dword [ebp + 0x10], 0x80
jle 0x100855d3
xor eax, eax
jmp 0x1008574c
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.100924c0
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 0x10085623
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.10092830
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x10085727
mov dword [ebp - 4], 0
jmp 0x1008563f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x80
jge 0x10085661
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x50]
xor edx, 0x36
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x90], dl
jmp 0x10085636
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.10059100
add esp, 0xc
test eax, eax
jne 0x10085681
jmp 0x1008574a
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.1004e8d0
add esp, 4
push eax
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
call fcn.10059370
add esp, 0xc
test eax, eax
jne 0x100856ad
jmp 0x1008574a
mov dword [ebp - 4], 0
jmp 0x100856bf
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x80
jge 0x100856e1
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx + 0x50]
xor eax, 0x5c
mov ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x90], al
jmp 0x100856b6
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.10059100
add esp, 0xc
test eax, eax
jne 0x100856fe
jmp 0x1008574a
mov edx, dword [ebp + 0x14]
push edx
call fcn.1004e8d0
add esp, 4
push eax
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x34
push ecx
call fcn.10059370
add esp, 0xc
test eax, eax
jne 0x10085727
jmp 0x1008574a
mov edx, dword [ebp + 8]
add edx, 0x1c
push edx
mov eax, dword [ebp + 8]
add eax, 4
push eax
call fcn.10059480
add esp, 8
test eax, eax
jne 0x10085743
jmp 0x1008574a
mov eax, 1
jmp 0x1008574c
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1008efb4
mov esp, ebp
pop ebp
ret