Function at 0x5a8470
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x34c
call fcn.005bd220
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov dword [ebp - 0x2b8], 0x40
mov dword [ebp - 0x2f8], 0x28
mov dword [ebp - 0x2bc], 8
mov byte [ebp - 0x2c9], 1
cmp dword [ebp + 0x20], 0x100000
jae 0x5a84c2
mov dword [ebp - 0x330], 0
jmp 0x5a84e3
push 0x680550
push 0x1c7
push 0x680524
call fcn.004c8ed0
add esp, 0xc
mov dword [ebp - 0x330], 1
mov eax, dword [ebp + 8]
push eax
call fcn.004b52f0
add esp, 4
push eax
call fcn.004ce1b0
add esp, 4
mov dword [ebp - 0x2e4], eax
cmp dword [ebp - 0x2e4], 0x2a0
jg 0x5a8535
cmp dword [ebp - 0x2e4], 0x2a0
je 0x5a8632
cmp dword [ebp - 0x2e4], 4
je 0x5a856a
cmp dword [ebp - 0x2e4], 0x40
je 0x5a85b8
jmp 0x5a870b
cmp dword [ebp - 0x2e4], 0x2a1
je 0x5a866f
cmp dword [ebp - 0x2e4], 0x2a2
je 0x5a86bd
cmp dword [ebp - 0x2e4], 0x2a3
je 0x5a85f5
jmp 0x5a870b
lea ecx, [ebp - 0x2ac]
push ecx
call fcn.004c4f70
add esp, 4
test eax, eax
jg 0x5a8584
xor eax, eax
jmp 0x5a90e8
mov dword [ebp - 0x2e8], 0x5a9440
mov dword [ebp - 0x2c8], 0x4bf840
mov dword [ebp - 0x2d0], 0x10
mov dword [ebp - 0x2f8], 0x30
mov byte [ebp - 0x2c9], 0
jmp 0x5a8738
lea edx, [ebp - 0x2ac]
push edx
call fcn.004cfd50
add esp, 4
test eax, eax
jg 0x5a85d2
xor eax, eax
jmp 0x5a90e8
mov dword [ebp - 0x2e8], 0x5a95c0
mov dword [ebp - 0x2c8], 0x4cfda0
mov dword [ebp - 0x2d0], 0x14
jmp 0x5a8738
lea eax, [ebp - 0x2ac]
push eax
call fcn.004c15d0
add esp, 4
test eax, eax
jg 0x5a860f
xor eax, eax
jmp 0x5a90e8
mov dword [ebp - 0x2e8], 0x5a9810
mov dword [ebp - 0x2c8], 0x4c1af0
mov dword [ebp - 0x2d0], 0x1c
jmp 0x5a8738
lea ecx, [ebp - 0x2ac]
push ecx
call fcn.004c1a30
add esp, 4
test eax, eax
jg 0x5a864c
xor eax, eax
jmp 0x5a90e8
mov dword [ebp - 0x2e8], 0x5a9810
mov dword [ebp - 0x2c8], 0x4c1af0
mov dword [ebp - 0x2d0], 0x20
jmp 0x5a8738
lea edx, [ebp - 0x2ac]
push edx
call fcn.004d27d0
add esp, 4
test eax, eax
jg 0x5a8689
xor eax, eax
jmp 0x5a90e8
mov dword [ebp - 0x2e8], 0x5a98d0
mov dword [ebp - 0x2c8], 0x4d2ec0
mov dword [ebp - 0x2d0], 0x30
mov dword [ebp - 0x2b8], 0x80
mov dword [ebp - 0x2bc], 0x10
jmp 0x5a8738
lea eax, [ebp - 0x2ac]
push eax
call fcn.004d2da0
add esp, 4
test eax, eax
jg 0x5a86d7
xor eax, eax
jmp 0x5a90e8
mov dword [ebp - 0x2e8], 0x5a98d0
mov dword [ebp - 0x2c8], 0x4d2ec0
mov dword [ebp - 0x2d0], 0x40
mov dword [ebp - 0x2b8], 0x80
mov dword [ebp - 0x2bc], 0x10
jmp 0x5a8738
push 0x644014
push 0x209
push 0x680524
call fcn.004c8ed0
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x5a8731
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
xor eax, eax
jmp 0x5a90e8
cmp dword [ebp - 0x2bc], 0x10
ja 0x5a874d
mov dword [ebp - 0x334], 0
jmp 0x5a876e
push 0x680580
push 0x20f
push 0x680524
call fcn.004c8ed0
add esp, 0xc
mov dword [ebp - 0x334], 1
cmp dword [ebp - 0x2b8], 0x80
ja 0x5a8786
mov dword [ebp - 0x310], 0
jmp 0x5a87a7
push 0x6805ac
push 0x210
push 0x680524
call fcn.004c8ed0
add esp, 0xc
mov dword [ebp - 0x310], 1
cmp dword [ebp - 0x2d0], 0x40
ja 0x5a87bc
mov dword [ebp - 0x314], 0
jmp 0x5a87dd
push 0x680534
push 0x211
push 0x680524
call fcn.004c8ed0
add esp, 0xc
mov dword [ebp - 0x314], 1
mov dword [ebp - 0x2dc], 0xd
movsx edx, byte [ebp + 0x2c]
test edx, edx
je 0x5a8802
mov eax, dword [ebp - 0x2f8]
mov ecx, dword [ebp + 0x28]
lea edx, [ecx + eax + 0xb]
mov dword [ebp - 0x2dc], edx
movsx eax, byte [ebp + 0x2c]
test eax, eax
je 0x5a8816
mov dword [ebp - 0x300], 2
jmp 0x5a8820
mov dword [ebp - 0x300], 6
mov ecx, dword [ebp - 0x300]
mov dword [ebp - 0x2fc], ecx
mov edx, dword [ebp + 0x20]
add edx, dword [ebp - 0x2dc]
mov dword [ebp - 0x318], edx
mov eax, dword [ebp - 0x318]
sub eax, dword [ebp - 0x2d0]
sub eax, 1
mov dword [ebp - 0x31c], eax
mov ecx, dword [ebp - 0x2bc]
mov edx, dword [ebp - 0x31c]
lea eax, [edx + ecx + 1]
mov ecx, dword [ebp - 0x2b8]
lea eax, [eax + ecx - 1]
xor edx, edx
div dword [ebp - 0x2b8]
mov dword [ebp - 0x308], eax
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2d8], 0
mov edx, dword [ebp + 0x1c]
add edx, dword [ebp - 0x2dc]
sub edx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2ec], edx
mov eax, dword [ebp - 0x2ec]
xor edx, edx
div dword [ebp - 0x2b8]
mov dword [ebp - 0x30c], edx
mov eax, dword [ebp - 0x2ec]
xor edx, edx
div dword [ebp - 0x2b8]
mov dword [ebp - 0x320], eax
mov eax, dword [ebp - 0x2ec]
add eax, dword [ebp - 0x2bc]
xor edx, edx
div dword [ebp - 0x2b8]
mov dword [ebp - 0x324], eax
movsx eax, byte [ebp + 0x2c]
test eax, eax
je 0x5a88f7
mov dword [ebp - 0x304], 1
jmp 0x5a8901
mov dword [ebp - 0x304], 0
mov ecx, dword [ebp - 0x2fc]
add ecx, dword [ebp - 0x304]
cmp dword [ebp - 0x308], ecx
jbe 0x5a893a
mov edx, dword [ebp - 0x308]
sub edx, dword [ebp - 0x2fc]
mov dword [ebp - 0x2f4], edx
mov eax, dword [ebp - 0x2b8]
imul eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x2d8], eax
mov ecx, dword [ebp - 0x2ec]
shl ecx, 3
mov dword [ebp - 0x2d4], ecx
movsx edx, byte [ebp + 0x2c]
test edx, edx
jne 0x5a8a2f
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2d4]
lea edx, [ecx + eax*8]
mov dword [ebp - 0x2d4], edx
mov eax, dword [ebp - 0x2b8]
push eax
push 0
lea ecx, [ebp - 0xd4]
push ecx
call fcn.005d7990
add esp, 0xc
cmp dword [ebp + 0x28], 0x80
ja 0x5a8997
mov dword [ebp - 0x32c], 0
jmp 0x5a89b8
push 0x6805d4
push 0x271
push 0x680524
call fcn.004c8ed0
add esp, 0xc
mov dword [ebp - 0x32c], 1
mov edx, dword [ebp + 0x28]
push edx
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [ebp - 0xd4]
push ecx
call fcn.005d7410
add esp, 0xc
mov dword [ebp - 0x2b4], 0
jmp 0x5a89ea
mov edx, dword [ebp - 0x2b4]
add edx, 1
mov dword [ebp - 0x2b4], edx
mov eax, dword [ebp - 0x2b4]
cmp eax, dword [ebp - 0x2b8]
jae 0x5a8a18
mov ecx, dword [ebp - 0x2b4]
movzx edx, byte [ebp + ecx - 0xd4]
xor edx, 0x36
mov eax, dword [ebp - 0x2b4]
mov byte [ebp + eax - 0xd4], dl
jmp 0x5a89db
lea ecx, [ebp - 0xd4]
push ecx
lea edx, [ebp - 0x2ac]
push edx
call dword [ebp - 0x2c8]
add esp, 8
movsx eax, byte [ebp - 0x2c9]
test eax, eax
je 0x5a8a9d
mov ecx, dword [ebp - 0x2bc]
sub ecx, 4
push ecx
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.005d7990
add esp, 0xc
mov eax, dword [ebp - 0x2d4]
shr eax, 0x18
mov ecx, dword [ebp - 0x2bc]
mov byte [ebp + ecx - 0x18], al
mov edx, dword [ebp - 0x2d4]
shr edx, 0x10
mov eax, dword [ebp - 0x2bc]
mov byte [ebp + eax - 0x17], dl
mov ecx, dword [ebp - 0x2d4]
shr ecx, 8
mov edx, dword [ebp - 0x2bc]
mov byte [ebp + edx - 0x16], cl
mov eax, dword [ebp - 0x2bc]
mov cl, byte [ebp - 0x2d4]
mov byte [ebp + eax - 0x15], cl
jmp 0x5a8afb
mov edx, dword [ebp - 0x2bc]
push edx
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.005d7990
add esp, 0xc
mov ecx, dword [ebp - 0x2d4]
shr ecx, 0x18
mov edx, dword [ebp - 0x2bc]
mov byte [ebp + edx - 0x19], cl
mov eax, dword [ebp - 0x2d4]
shr eax, 0x10
mov ecx, dword [ebp - 0x2bc]
mov byte [ebp + ecx - 0x1a], al
mov edx, dword [ebp - 0x2d4]
shr edx, 8
mov eax, dword [ebp - 0x2bc]
mov byte [ebp + eax - 0x1b], dl
mov ecx, dword [ebp - 0x2bc]
mov dl, byte [ebp - 0x2d4]
mov byte [ebp + ecx - 0x1c], dl
cmp dword [ebp - 0x2d8], 0
jbe 0x5a8cb0
movsx eax, byte [ebp + 0x2c]
test eax, eax
je 0x5a8c0f
mov ecx, dword [ebp - 0x2dc]
cmp ecx, dword [ebp - 0x2b8]
ja 0x5a8b29
xor eax, eax
jmp 0x5a90e8
mov edx, dword [ebp - 0x2dc]
sub edx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2f0], edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x2ac]
push ecx
call dword [ebp - 0x2c8]
add esp, 8
mov edx, dword [ebp - 0x2f0]
push edx
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x154]
push ecx
call fcn.005d7410
add esp, 0xc
mov edx, dword [ebp - 0x2b8]
sub edx, dword [ebp - 0x2f0]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x2f0]
lea edx, [ebp + ecx - 0x154]
push edx
call fcn.005d7410
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x2ac]
push ecx
call dword [ebp - 0x2c8]
add esp, 8
mov dword [ebp - 0x2b4], 1
jmp 0x5a8bc8
mov edx, dword [ebp - 0x2b4]
add edx, 1
mov dword [ebp - 0x2b4], edx
mov eax, dword [ebp - 0x2d8]
xor edx, edx
div dword [ebp - 0x2b8]
sub eax, 1
cmp dword [ebp - 0x2b4], eax
jae 0x5a8c0a
mov eax, dword [ebp - 0x2b8]
imul eax, dword [ebp - 0x2b4]
add eax, dword [ebp + 0x18]
sub eax, dword [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x2ac]
push ecx
call dword [ebp - 0x2c8]
add esp, 8
jmp 0x5a8bb9
jmp 0x5a8cb0
push 0xd
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x154]
push eax
call fcn.005d7410
add esp, 0xc
mov ecx, dword [ebp - 0x2b8]
sub ecx, 0xd
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x147]
push eax
call fcn.005d7410
add esp, 0xc
lea ecx, [ebp - 0x154]
push ecx
lea edx, [ebp - 0x2ac]
push edx
call dword [ebp - 0x2c8]
add esp, 8
mov dword [ebp - 0x2b4], 1
jmp 0x5a8c73
mov eax, dword [ebp - 0x2b4]
add eax, 1
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 0x2d8]
xor edx, edx
div dword [ebp - 0x2b8]
cmp dword [ebp - 0x2b4], eax
jae 0x5a8cb0
mov ecx, dword [ebp - 0x2b8]
imul ecx, dword [ebp - 0x2b4]
mov edx, dword [ebp + 0x18]
lea eax, [edx + ecx - 0xd]
push eax
lea ecx, [ebp - 0x2ac]
push ecx
call dword [ebp - 0x2c8]
add esp, 8
jmp 0x5a8c64
push 0x40
push 0
lea edx, [ebp - 0x54]
push edx
call fcn.005d7990
add esp, 0xc
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x2b4], eax
jmp 0x5a8cdd