Function at 0x59cb10
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x338
call fcn.006db7b0
mov eax, dword [0x7eba44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov dword [ebp - 0x2b4], 0x40
mov dword [ebp - 0x2ec], 0x28
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2bc], 8
mov byte [ebp - 0x2c9], 1
mov dword [ebp - 0x2f0], 0
cmp dword [ebp + 0x20], 0x100000
jae 0x59cb76
mov dword [ebp - 0x304], 1
jmp 0x59cb80
mov dword [ebp - 0x304], 0
cmp dword [ebp - 0x304], 0
jne 0x59cb90
xor eax, eax
jmp 0x59d77d
push 0x732018
mov eax, dword [ebp + 8]
push eax
call fcn.005334b0
add esp, 8
test eax, eax
je 0x59cbf3
lea ecx, [ebp - 0x2ac]
push ecx
call fcn.005a44c0
add esp, 4
test eax, eax
jg 0x59cbbf
xor eax, eax
jmp 0x59d77d
mov dword [ebp - 0x2e8], 0x59d790
mov dword [ebp - 0x2c8], 0x5a4510
mov dword [ebp - 0x2d0], 0x10
mov dword [ebp - 0x2ec], 0x30
mov byte [ebp - 0x2c9], 0
jmp 0x59cdc5
push str.SHA1
mov edx, dword [ebp + 8]
push edx
call fcn.005334b0
add esp, 8
test eax, eax
je 0x59cc45
lea eax, [ebp - 0x2ac]
push eax
call fcn.005ec4d0
add esp, 4
test eax, eax
jg 0x59cc22
xor eax, eax
jmp 0x59d77d
mov dword [ebp - 0x2e8], 0x59d910
mov dword [ebp - 0x2c8], 0x5ec520
mov dword [ebp - 0x2d0], 0x14
jmp 0x59cdc5
push str.SHA2_224
mov ecx, dword [ebp + 8]
push ecx
call fcn.005334b0
add esp, 8
test eax, eax
je 0x59cc97
lea edx, [ebp - 0x2ac]
push edx
call fcn.005ec840
add esp, 4
test eax, eax
jg 0x59cc74
xor eax, eax
jmp 0x59d77d
mov dword [ebp - 0x2e8], 0x59db60
mov dword [ebp - 0x2c8], 0x5ecd80
mov dword [ebp - 0x2d0], 0x1c
jmp 0x59cdc5
push str.SHA2_256
mov eax, dword [ebp + 8]
push eax
call fcn.005334b0
add esp, 8
test eax, eax
je 0x59cce9
lea ecx, [ebp - 0x2ac]
push ecx
call fcn.005eccc0
add esp, 4
test eax, eax
jg 0x59ccc6
xor eax, eax
jmp 0x59d77d
mov dword [ebp - 0x2e8], 0x59db60
mov dword [ebp - 0x2c8], 0x5ecd80
mov dword [ebp - 0x2d0], 0x20
jmp 0x59cdc5
push str.SHA2_384
mov edx, dword [ebp + 8]
push edx
call fcn.005334b0
add esp, 8
test eax, eax
je 0x59cd4c
lea eax, [ebp - 0x2ac]
push eax
call fcn.005ecf60
add esp, 4
test eax, eax
jg 0x59cd18
xor eax, eax
jmp 0x59d77d
mov dword [ebp - 0x2e8], 0x59dc20
mov dword [ebp - 0x2c8], 0x5ed950
mov dword [ebp - 0x2d0], 0x30
mov dword [ebp - 0x2b4], 0x80
mov dword [ebp - 0x2bc], 0x10
jmp 0x59cdc5
push str.SHA2_512
mov ecx, dword [ebp + 8]
push ecx
call fcn.005334b0
add esp, 8
test eax, eax
je 0x59cdaf
lea edx, [ebp - 0x2ac]
push edx
call fcn.005ed830
add esp, 4
test eax, eax
jg 0x59cd7b
xor eax, eax
jmp 0x59d77d
mov dword [ebp - 0x2e8], 0x59dc20
mov dword [ebp - 0x2c8], 0x5ed950
mov dword [ebp - 0x2d0], 0x40
mov dword [ebp - 0x2b4], 0x80
mov dword [ebp - 0x2bc], 0x10
jmp 0x59cdc5
cmp dword [ebp + 0x10], 0
je 0x59cdbe
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
xor eax, eax
jmp 0x59d77d
cmp dword [ebp - 0x2bc], 0x10
ja 0x59cdda
mov dword [ebp - 0x308], 1
jmp 0x59cde4
mov dword [ebp - 0x308], 0
cmp dword [ebp - 0x308], 0
je 0x59ce40
cmp dword [ebp - 0x2b4], 0x80
ja 0x59ce05
mov dword [ebp - 0x30c], 1
jmp 0x59ce0f
mov dword [ebp - 0x30c], 0
cmp dword [ebp - 0x30c], 0
je 0x59ce40
cmp dword [ebp - 0x2d0], 0x40
ja 0x59ce2d
mov dword [ebp - 0x310], 1
jmp 0x59ce37
mov dword [ebp - 0x310], 0
cmp dword [ebp - 0x310], 0
jne 0x59ce47
xor eax, eax
jmp 0x59d77d
mov dword [ebp - 0x2e0], 0xd
movsx ecx, byte [ebp + 0x2c]
test ecx, ecx
je 0x59ce6c
mov edx, dword [ebp - 0x2ec]
mov eax, dword [ebp + 0x28]
lea ecx, [eax + edx + 0xb]
mov dword [ebp - 0x2e0], ecx
movsx edx, byte [ebp + 0x2c]
test edx, edx
je 0x59ce80
mov dword [ebp - 0x314], 2
jmp 0x59cea4
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2d0]
lea eax, [ecx + eax + 0xff]
xor edx, edx
div dword [ebp - 0x2b4]
add eax, 1
mov dword [ebp - 0x314], eax
mov edx, dword [ebp - 0x314]
mov dword [ebp - 0x300], edx
mov eax, dword [ebp + 0x20]
add eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x338], eax
mov ecx, dword [ebp - 0x338]
sub ecx, dword [ebp - 0x2d0]
sub ecx, 1
mov dword [ebp - 0x328], ecx
mov edx, dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x328]
lea ecx, [eax + edx + 1]
mov edx, dword [ebp - 0x2b4]
lea eax, [ecx + edx - 1]
xor edx, edx
div dword [ebp - 0x2b4]
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2d8], 0
mov eax, dword [ebp + 0x1c]
add eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x2fc]
xor edx, edx
div dword [ebp - 0x2b4]
mov dword [ebp - 0x324], edx
mov eax, dword [ebp - 0x2fc]
xor edx, edx
div dword [ebp - 0x2b4]
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x2fc]
add eax, dword [ebp - 0x2bc]
xor edx, edx
div dword [ebp - 0x2b4]
mov dword [ebp - 0x330], eax
movsx ecx, byte [ebp + 0x2c]
test ecx, ecx
je 0x59cf75
mov dword [ebp - 0x318], 1
jmp 0x59cf7f
mov dword [ebp - 0x318], 0
mov edx, dword [ebp - 0x300]
add edx, dword [ebp - 0x318]
cmp dword [ebp - 0x31c], edx
jbe 0x59cfb8
mov eax, dword [ebp - 0x31c]
sub eax, dword [ebp - 0x300]
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2b4]
imul ecx, dword [ebp - 0x2f4]
mov dword [ebp - 0x2d8], ecx
mov edx, dword [ebp - 0x2fc]
shl edx, 3
mov dword [ebp - 0x2d4], edx
movsx eax, byte [ebp + 0x2c]
test eax, eax
jne 0x59d0a6
mov ecx, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x2d4]
lea eax, [edx + ecx*8]
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2b4]
push ecx
push 0
lea edx, [ebp - 0x94]
push edx
call fcn.006dca70
add esp, 0xc
cmp dword [ebp + 0x28], 0x80
ja 0x59d015
mov dword [ebp - 0x320], 1
jmp 0x59d01f
mov dword [ebp - 0x320], 0
cmp dword [ebp - 0x320], 0
jne 0x59d02f
xor eax, eax
jmp 0x59d77d
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
lea edx, [ebp - 0x94]
push edx
call fcn.006dccc0
add esp, 0xc
mov dword [ebp - 0x2b8], 0
jmp 0x59d061
mov eax, dword [ebp - 0x2b8]
add eax, 1
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2b8]
cmp ecx, dword [ebp - 0x2b4]
jae 0x59d08f
mov edx, dword [ebp - 0x2b8]
movzx eax, byte [ebp + edx - 0x94]
xor eax, 0x36
mov ecx, dword [ebp - 0x2b8]
mov byte [ebp + ecx - 0x94], al
jmp 0x59d052
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x2ac]
push eax
call dword [ebp - 0x2c8]
add esp, 8
movsx ecx, byte [ebp - 0x2c9]
test ecx, ecx
je 0x59d114
mov edx, dword [ebp - 0x2bc]
sub edx, 4
push edx
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.006dca70
add esp, 0xc
mov ecx, dword [ebp - 0x2d4]
shr ecx, 0x18
mov edx, dword [ebp - 0x2bc]
mov byte [ebp + edx - 0x18], cl
mov eax, dword [ebp - 0x2d4]
shr eax, 0x10
mov ecx, dword [ebp - 0x2bc]
mov byte [ebp + ecx - 0x17], al
mov edx, dword [ebp - 0x2d4]
shr edx, 8
mov eax, dword [ebp - 0x2bc]
mov byte [ebp + eax - 0x16], dl
mov ecx, dword [ebp - 0x2bc]
mov dl, byte [ebp - 0x2d4]
mov byte [ebp + ecx - 0x15], dl
jmp 0x59d172
mov eax, dword [ebp - 0x2bc]
push eax
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.006dca70
add esp, 0xc
mov edx, dword [ebp - 0x2d4]
shr edx, 0x18
mov eax, dword [ebp - 0x2bc]
mov byte [ebp + eax - 0x19], dl
mov ecx, dword [ebp - 0x2d4]
shr ecx, 0x10
mov edx, dword [ebp - 0x2bc]
mov byte [ebp + edx - 0x1a], cl
mov eax, dword [ebp - 0x2d4]
shr eax, 8
mov ecx, dword [ebp - 0x2bc]
mov byte [ebp + ecx - 0x1b], al
mov edx, dword [ebp - 0x2bc]
mov al, byte [ebp - 0x2d4]
mov byte [ebp + edx - 0x1c], al
cmp dword [ebp - 0x2d8], 0
jbe 0x59d327
movsx ecx, byte [ebp + 0x2c]
test ecx, ecx
je 0x59d286
mov edx, dword [ebp - 0x2e0]
cmp edx, dword [ebp - 0x2b4]
ja 0x59d1a0
xor eax, eax
jmp 0x59d77d
mov eax, dword [ebp - 0x2e0]
sub eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2f8], eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x2ac]
push edx
call dword [ebp - 0x2c8]
add esp, 8
mov eax, dword [ebp - 0x2f8]
push eax
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x2b4]
push ecx
lea edx, [ebp - 0x154]
push edx
call fcn.006dccc0
add esp, 0xc
mov eax, dword [ebp - 0x2b4]
sub eax, dword [ebp - 0x2f8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x2f8]
lea eax, [ebp + edx - 0x154]
push eax
call fcn.006dccc0
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 - 0x2b8], 1
jmp 0x59d23f
mov eax, dword [ebp - 0x2b8]
add eax, 1
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp - 0x2d8]
xor edx, edx
div dword [ebp - 0x2b4]
sub eax, 1
cmp dword [ebp - 0x2b8], eax
jae 0x59d281
mov ecx, dword [ebp - 0x2b4]
imul ecx, dword [ebp - 0x2b8]
add ecx, dword [ebp + 0x18]
sub ecx, dword [ebp - 0x2f8]
push ecx
lea edx, [ebp - 0x2ac]
push edx
call dword [ebp - 0x2c8]
add esp, 8
jmp 0x59d230
jmp 0x59d327
push 0xd
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x154]
push ecx
call fcn.006dccc0
add esp, 0xc
mov edx, dword [ebp - 0x2b4]
sub edx, 0xd
push edx
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x147]
push ecx
call fcn.006dccc0
add esp, 0xc
lea edx, [ebp - 0x154]
push edx
lea eax, [ebp - 0x2ac]
push eax
call dword [ebp - 0x2c8]
add esp, 8
mov dword [ebp - 0x2b8], 1
jmp 0x59d2ea
mov ecx, dword [ebp - 0x2b8]
add ecx, 1
mov dword [ebp - 0x2b8], ecx
mov eax, dword [ebp - 0x2d8]
xor edx, edx
div dword [ebp - 0x2b4]
cmp dword [ebp - 0x2b8], eax
jae 0x59d327
mov edx, dword [ebp - 0x2b4]
imul edx, dword [ebp - 0x2b8]
mov eax, dword [ebp + 0x18]
lea ecx, [eax + edx - 0xd]
push ecx
lea edx, [ebp - 0x2ac]
push edx
call dword [ebp - 0x2c8]
add esp, 8
jmp 0x59d2db
push 0x40
push 0
lea eax, [ebp - 0xd4]
push eax
call fcn.006dca70
add esp, 0xc
mov ecx, dword [ebp - 0x2f4]
mov dword [ebp - 0x2b8], ecx
jmp 0x59d357
mov edx, dword [ebp - 0x2b8]
add edx, 1
mov dword [ebp - 0x2b8], edx
mov eax, dword [ebp - 0x2f4]
add eax, dword [ebp - 0x300]
cmp dword [ebp - 0x2b8], eax
ja 0x59d5d9
mov ecx, dword [ebp - 0x32c]
push ecx
mov edx, dword [ebp - 0x2b8]
push edx
call fcn.00538fb0
add esp, 8
mov byte [ebp - 0x2bd], al
mov eax, dword [ebp - 0x330]
push eax
mov ecx, dword [ebp - 0x2b8]
push ecx
call fcn.00538fb0
add esp, 8
mov byte [ebp - 0x2be], al
mov dword [ebp - 0x2c4], 0
jmp 0x59d3c2
mov edx, dword [ebp - 0x2c4]
add edx, 1
mov dword [ebp - 0x2c4], edx
mov eax, dword [ebp - 0x2c4]
cmp eax, dword [ebp - 0x2b4]
jae 0x59d547
mov byte [ebp - 0x2ad], 0
mov ecx, dword [ebp - 0x2d8]
cmp ecx, dword [ebp - 0x2e0]
jae 0x59d3fc
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x2d8]
mov al, byte [edx]
mov byte [ebp - 0x2ad], al
jmp 0x59d425
mov ecx, dword [ebp + 0x20]
add ecx, dword [ebp - 0x2e0]
cmp dword [ebp - 0x2d8], ecx
jae 0x59d425
mov edx, dword [ebp - 0x2d8]
sub edx, dword [ebp - 0x2e0]
mov eax, dword [ebp + 0x18]
mov cl, byte [eax + edx]
mov byte [ebp - 0x2ad], cl
mov edx, dword [ebp - 0x2d8]
add edx, 1
mov dword [ebp - 0x2d8], edx
movzx ebx, byte [ebp - 0x2bd]
mov eax, dword [ebp - 0x324]
push eax
mov ecx, dword [ebp - 0x2c4]
push ecx
call fcn.0059ca80
add esp, 8
movzx edx, al
and ebx, edx
mov byte [ebp - 0x2e1], bl
movzx ebx, byte [ebp - 0x2bd]
mov eax, dword [ebp - 0x324]
add eax, 1
push eax
mov ecx, dword [ebp - 0x2c4]
push ecx
call fcn.0059ca80
add esp, 8
movzx edx, al
and ebx, edx
mov byte [ebp - 0x2e2], bl
movzx eax, byte [ebp - 0x2ad]
push eax
push 0x80
movzx ecx, byte [ebp - 0x2e1]
push ecx
call fcn.0059caf0
add esp, 0xc
mov byte [ebp - 0x2ad], al
movzx edx, byte [ebp - 0x2ad]
movzx eax, byte [ebp - 0x2e2]
not eax
and edx, eax
mov byte [ebp - 0x2ad], dl
movzx ecx, byte [ebp - 0x2be]
not ecx
movzx edx, byte [ebp - 0x2bd]
or ecx, edx
movzx eax, byte [ebp - 0x2ad]
and eax, ecx
mov byte [ebp - 0x2ad], al
mov ecx, dword [ebp - 0x2b4]
sub ecx, dword [ebp - 0x2bc]
cmp dword [ebp - 0x2c4], ecx
jb 0x59d52f
movzx edx, byte [ebp - 0x2ad]
push edx
mov eax, dword [ebp - 0x2b4]
sub eax, dword [ebp - 0x2bc]
mov ecx, dword [ebp - 0x2c4]
sub ecx, eax
movzx edx, byte [ebp + ecx - 0x14]
push edx
movzx eax, byte [ebp - 0x2be]
push eax
call fcn.0059caf0
add esp, 0xc
mov byte [ebp - 0x2ad], al
mov ecx, dword [ebp - 0x2c4]
mov dl, byte [ebp - 0x2ad]
mov byte [ebp + ecx - 0x1d4], dl
jmp 0x59d3b3
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [ebp - 0x2ac]
push ecx
call dword [ebp - 0x2c8]
add esp, 8
lea edx, [ebp - 0x1d4]
push edx
lea eax, [ebp - 0x2ac]
push eax
call dword [ebp - 0x2e8]
add esp, 8
mov dword [ebp - 0x2c4], 0
jmp 0x59d590
mov ecx, dword [ebp - 0x2c4]
add ecx, 1
mov dword [ebp - 0x2c4], ecx
mov edx, dword [ebp - 0x2c4]
cmp edx, dword [ebp - 0x2d0]
jae 0x59d5d4
mov eax, dword [ebp - 0x2c4]
movzx ecx, byte [ebp + eax - 0x1d4]
movzx edx, byte [ebp - 0x2be]
and ecx, edx
mov eax, dword [ebp - 0x2c4]
movzx edx, byte [ebp + eax - 0xd4]
or edx, ecx
mov eax, dword [ebp - 0x2c4]
mov byte [ebp + eax - 0xd4], dl
jmp 0x59d581
jmp 0x59d348
call fcn.00531310
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0
jne 0x59d5f2
jmp 0x59d768
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.00530990
add esp, 0xc
test eax, eax
jg 0x59d610
jmp 0x59d768
movsx eax, byte [ebp + 0x2c]
test eax, eax
je 0x59d697
mov ecx, dword [ebp - 0x2ec]
push ecx
push 0x5c
lea edx, [ebp - 0x94]
push edx
call fcn.006dca70
add esp, 0xc
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.005309d0
add esp, 0xc
test eax, eax
jle 0x59d68d
mov eax, dword [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.005309d0
add esp, 0xc
test eax, eax
jle 0x59d68d
mov eax, dword [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0xd4]
push ecx
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.005309d0
add esp, 0xc
test eax, eax
jg 0x59d692
jmp 0x59d768
jmp 0x59d724
mov dword [ebp - 0x2b8], 0
jmp 0x59d6b2
mov eax, dword [ebp - 0x2b8]
add eax, 1
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2b8]
cmp ecx, dword [ebp - 0x2b4]
jae 0x59d6e0
mov edx, dword [ebp - 0x2b8]
movzx eax, byte [ebp + edx - 0x94]
xor eax, 0x6a
mov ecx, dword [ebp - 0x2b8]
mov byte [ebp + ecx - 0x94], al
jmp 0x59d6a3
mov edx, dword [ebp - 0x2b4]
push edx
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x2dc]
push ecx
call fcn.005309d0
add esp, 0xc
test eax, eax
jle 0x59d722
mov edx, dword [ebp - 0x2d0]
push edx
lea eax, [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0x2dc]
push ecx
call fcn.005309d0
add esp, 0xc
test eax, eax
jg 0x59d724
jmp 0x59d768
lea edx, [ebp - 0x334]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x2dc]
push ecx
call fcn.00530520
add esp, 0xc
mov dword [ebp - 0x2f0], eax
cmp dword [ebp - 0x2f0], 0
je 0x59d75e
cmp dword [ebp + 0x10], 0
je 0x59d75e
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x334]
mov dword [edx], eax
mov dword [ebp - 0x2f0], 1
mov ecx, dword [ebp - 0x2dc]
push ecx
call fcn.00531240
add esp, 4
mov eax, dword [ebp - 0x2f0]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006dbabd
mov esp, ebp
pop ebp
ret