Function at 0x101c7970
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x328
call fcn.101d14f0
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp - 0xc], eax
push ebx
mov dword [ebp - 0x248], 0x40
mov dword [ebp - 0x260], 0x28
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x1c0], 8
mov byte [ebp - 0x249], 1
mov dword [ebp - 0x264], 0
cmp dword [ebp + 0x20], 0x100000
sbb eax, eax
neg eax
jne 0x101c79d5
xor eax, eax
jmp 0x101c8556
push 0x1020177c
mov ecx, dword [ebp + 8]
push ecx
call fcn.10046310
add esp, 8
test eax, eax
je 0x101c7a38
lea edx, [ebp - 0xe8]
push edx
call fcn.101359b0
add esp, 4
test eax, eax
jg 0x101c7a04
xor eax, eax
jmp 0x101c8556
mov dword [ebp - 0x290], 0x101c8570
mov dword [ebp - 0x268], 0x10135630
mov dword [ebp - 0x130], 0x10
mov dword [ebp - 0x260], 0x30
mov byte [ebp - 0x249], 0
jmp 0x101c7c0a
push str.SHA1
mov eax, dword [ebp + 8]
push eax
call fcn.10046310
add esp, 8
test eax, eax
je 0x101c7a8a
lea ecx, [ebp - 0xe8]
push ecx
call fcn.100e6090
add esp, 4
test eax, eax
jg 0x101c7a67
xor eax, eax
jmp 0x101c8556
mov dword [ebp - 0x290], 0x101c86f0
mov dword [ebp - 0x268], 0x100e5ca0
mov dword [ebp - 0x130], 0x14
jmp 0x101c7c0a
push str.SHA2_224
mov edx, dword [ebp + 8]
push edx
call fcn.10046310
add esp, 8
test eax, eax
je 0x101c7adc
lea eax, [ebp - 0xe8]
push eax
call fcn.100e89d0
add esp, 4
test eax, eax
jg 0x101c7ab9
xor eax, eax
jmp 0x101c8556
mov dword [ebp - 0x290], 0x101c8940
mov dword [ebp - 0x268], 0x100e8cb0
mov dword [ebp - 0x130], 0x1c
jmp 0x101c7c0a
push str.SHA2_256
mov ecx, dword [ebp + 8]
push ecx
call fcn.10046310
add esp, 8
test eax, eax
je 0x101c7b2e
lea edx, [ebp - 0xe8]
push edx
call fcn.100e8a50
add esp, 4
test eax, eax
jg 0x101c7b0b
xor eax, eax
jmp 0x101c8556
mov dword [ebp - 0x290], 0x101c8940
mov dword [ebp - 0x268], 0x100e8cb0
mov dword [ebp - 0x130], 0x20
jmp 0x101c7c0a
push str.SHA2_384
mov eax, dword [ebp + 8]
push eax
call fcn.10046310
add esp, 8
test eax, eax
je 0x101c7b91
lea ecx, [ebp - 0xe8]
push ecx
call fcn.100ebc60
add esp, 4
test eax, eax
jg 0x101c7b5d
xor eax, eax
jmp 0x101c8556
mov dword [ebp - 0x290], 0x101c8a00
mov dword [ebp - 0x268], 0x100ec720
mov dword [ebp - 0x130], 0x30
mov dword [ebp - 0x248], 0x80
mov dword [ebp - 0x1c0], 0x10
jmp 0x101c7c0a
push str.SHA2_512
mov edx, dword [ebp + 8]
push edx
call fcn.10046310
add esp, 8
test eax, eax
je 0x101c7bf4
lea eax, [ebp - 0xe8]
push eax
call fcn.100ebd30
add esp, 4
test eax, eax
jg 0x101c7bc0
xor eax, eax
jmp 0x101c8556
mov dword [ebp - 0x290], 0x101c8a00
mov dword [ebp - 0x268], 0x100ec720
mov dword [ebp - 0x130], 0x40
mov dword [ebp - 0x248], 0x80
mov dword [ebp - 0x1c0], 0x10
jmp 0x101c7c0a
cmp dword [ebp + 0x10], 0
je 0x101c7c03
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
xor eax, eax
jmp 0x101c8556
mov edx, 0x10
cmp edx, dword [ebp - 0x1c0]
sbb eax, eax
add eax, 1
je 0x101c7c40
mov ecx, 0x80
cmp ecx, dword [ebp - 0x248]
sbb edx, edx
add edx, 1
je 0x101c7c40
mov eax, 0x40
cmp eax, dword [ebp - 0x130]
sbb ecx, ecx
add ecx, 1
jne 0x101c7c47
xor eax, eax
jmp 0x101c8556
mov dword [ebp - 0x25c], 0xd
movsx edx, byte [ebp + 0x2c]
test edx, edx
je 0x101c7c6c
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp + 0x28]
lea edx, [ecx + eax + 0xb]
mov dword [ebp - 0x25c], edx
movsx eax, byte [ebp + 0x2c]
test eax, eax
je 0x101c7c80
mov dword [ebp - 0x328], 2
jmp 0x101c7ca4
mov ecx, dword [ebp - 0x248]
mov edx, dword [ebp - 0x130]
lea eax, [edx + ecx + 0xff]
xor edx, edx
div dword [ebp - 0x248]
add eax, 1
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp + 0x20]
add ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x258], ecx
mov edx, dword [ebp - 0x258]
sub edx, dword [ebp - 0x130]
sub edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 1]
mov eax, dword [ebp - 0x248]
lea eax, [edx + eax - 1]
xor edx, edx
div dword [ebp - 0x248]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x26c], 0
mov ecx, dword [ebp + 0x1c]
add ecx, dword [ebp - 0x25c]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp - 0x248]
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp - 0x248]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c0]
xor edx, edx
div dword [ebp - 0x248]
mov dword [ebp - 0x288], eax
movsx edx, byte [ebp + 0x2c]
neg edx
sbb edx, edx
neg edx
add edx, dword [ebp - 0x1bc]
cmp dword [ebp - 0x254], edx
jbe 0x101c7d8c
mov eax, dword [ebp - 0x254]
sub eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x248]
imul ecx, dword [ebp - 0x274]
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp - 4]
shl edx, 3
mov dword [ebp - 0x250], edx
movsx eax, byte [ebp + 0x2c]
test eax, eax
jne 0x101c7e5e
mov ecx, dword [ebp - 0x248]
mov edx, dword [ebp - 0x250]
lea eax, [edx + ecx*8]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x248]
push ecx
push 0
lea edx, [ebp - 0x240]
push edx
call fcn.101d19d0
add esp, 0xc
mov eax, 0x80
cmp eax, dword [ebp + 0x28]
sbb ecx, ecx
add ecx, 1
jne 0x101c7de7
xor eax, eax
jmp 0x101c8556
mov edx, dword [ebp + 0x28]
push edx
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [ebp - 0x240]
push ecx
call fcn.101d1c90
add esp, 0xc
mov dword [ebp - 0x134], 0
jmp 0x101c7e19
mov edx, dword [ebp - 0x134]
add edx, 1
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
cmp eax, dword [ebp - 0x248]
jae 0x101c7e47
mov ecx, dword [ebp - 0x134]
movzx edx, byte [ebp + ecx - 0x240]
xor edx, 0x36
mov eax, dword [ebp - 0x134]
mov byte [ebp + eax - 0x240], dl
jmp 0x101c7e0a
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0xe8]
push edx
call dword [ebp - 0x268]
add esp, 8
movsx eax, byte [ebp - 0x249]
test eax, eax
je 0x101c7edb
mov ecx, dword [ebp - 0x1c0]
sub ecx, 4
push ecx
push 0
lea edx, [ebp - 0x284]
push edx
call fcn.101d19d0
add esp, 0xc
mov eax, dword [ebp - 0x250]
shr eax, 0x18
mov ecx, dword [ebp - 0x1c0]
mov byte [ebp + ecx - 0x288], al
mov edx, dword [ebp - 0x250]
shr edx, 0x10
mov eax, dword [ebp - 0x1c0]
mov byte [ebp + eax - 0x287], dl
mov ecx, dword [ebp - 0x250]
shr ecx, 8
mov edx, dword [ebp - 0x1c0]
mov byte [ebp + edx - 0x286], cl
mov eax, dword [ebp - 0x1c0]
mov cl, byte [ebp - 0x250]
mov byte [ebp + eax - 0x285], cl
jmp 0x101c7f48
mov edx, dword [ebp - 0x1c0]
push edx
push 0
lea eax, [ebp - 0x284]
push eax
call fcn.101d19d0
add esp, 0xc
mov ecx, dword [ebp - 0x250]
shr ecx, 0x18
mov edx, dword [ebp - 0x1c0]
mov byte [ebp + edx - 0x289], cl
mov eax, dword [ebp - 0x250]
shr eax, 0x10
mov ecx, dword [ebp - 0x1c0]
mov byte [ebp + ecx - 0x28a], al
mov edx, dword [ebp - 0x250]
shr edx, 8
mov eax, dword [ebp - 0x1c0]
mov byte [ebp + eax - 0x28b], dl
mov ecx, dword [ebp - 0x1c0]
mov dl, byte [ebp - 0x250]
mov byte [ebp + ecx - 0x28c], dl
cmp dword [ebp - 0x26c], 0
jbe 0x101c80fd
movsx eax, byte [ebp + 0x2c]
test eax, eax
je 0x101c805c
mov ecx, dword [ebp - 0x25c]
cmp ecx, dword [ebp - 0x248]
ja 0x101c7f76
xor eax, eax
jmp 0x101c8556
mov edx, dword [ebp - 0x25c]
sub edx, dword [ebp - 0x248]
mov dword [ebp - 0x298], edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0xe8]
push ecx
call dword [ebp - 0x268]
add esp, 8
mov edx, dword [ebp - 0x298]
push edx
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x248]
push eax
lea ecx, [ebp - 0x1b8]
push ecx
call fcn.101d1c90
add esp, 0xc
mov edx, dword [ebp - 0x248]
sub edx, dword [ebp - 0x298]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x298]
lea edx, [ebp + ecx - 0x1b8]
push edx
call fcn.101d1c90
add esp, 0xc
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0xe8]
push ecx
call dword [ebp - 0x268]
add esp, 8
mov dword [ebp - 0x134], 1
jmp 0x101c8015
mov edx, dword [ebp - 0x134]
add edx, 1
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x26c]
xor edx, edx
div dword [ebp - 0x248]
sub eax, 1
cmp dword [ebp - 0x134], eax
jae 0x101c8057
mov eax, dword [ebp - 0x248]
imul eax, dword [ebp - 0x134]
add eax, dword [ebp + 0x18]
sub eax, dword [ebp - 0x298]
push eax
lea ecx, [ebp - 0xe8]
push ecx
call dword [ebp - 0x268]
add esp, 8
jmp 0x101c8006
jmp 0x101c80fd
push 0xd
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x1b8]
push eax
call fcn.101d1c90
add esp, 0xc
mov ecx, dword [ebp - 0x248]
sub ecx, 0xd
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x1ab]
push eax
call fcn.101d1c90
add esp, 0xc
lea ecx, [ebp - 0x1b8]
push ecx
lea edx, [ebp - 0xe8]
push edx
call dword [ebp - 0x268]
add esp, 8
mov dword [ebp - 0x134], 1
jmp 0x101c80c0
mov eax, dword [ebp - 0x134]
add eax, 1
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x26c]
xor edx, edx
div dword [ebp - 0x248]
cmp dword [ebp - 0x134], eax
jae 0x101c80fd
mov ecx, dword [ebp - 0x248]
imul ecx, dword [ebp - 0x134]
mov edx, dword [ebp + 0x18]
lea eax, [edx + ecx - 0xd]
push eax
lea ecx, [ebp - 0xe8]
push ecx
call dword [ebp - 0x268]
add esp, 8
jmp 0x101c80b1
push 0x40
push 0
lea edx, [ebp - 0x128]
push edx
call fcn.101d19d0
add esp, 0xc
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x134], eax
jmp 0x101c812d
mov ecx, dword [ebp - 0x134]
add ecx, 1
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x274]
add edx, dword [ebp - 0x1bc]
cmp dword [ebp - 0x134], edx
ja 0x101c83b2
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.1013f280
add esp, 8
mov byte [ebp - 0x29a], al
mov edx, dword [ebp - 0x288]
push edx
mov eax, dword [ebp - 0x134]
push eax
call fcn.1013f280
add esp, 8
mov byte [ebp - 0x299], al
mov dword [ebp - 0x294], 0
jmp 0x101c8198
mov ecx, dword [ebp - 0x294]
add ecx, 1
mov dword [ebp - 0x294], ecx
mov edx, dword [ebp - 0x294]
cmp edx, dword [ebp - 0x248]
jae 0x101c8320
mov byte [ebp - 0x322], 0
mov eax, dword [ebp - 0x26c]
cmp eax, dword [ebp - 0x25c]
jae 0x101c81d2
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x26c]
mov dl, byte [ecx]
mov byte [ebp - 0x322], dl
jmp 0x101c81fb
mov eax, dword [ebp + 0x20]
add eax, dword [ebp - 0x25c]
cmp dword [ebp - 0x26c], eax
jae 0x101c81fb
mov ecx, dword [ebp - 0x26c]
sub ecx, dword [ebp - 0x25c]
mov edx, dword [ebp + 0x18]
mov al, byte [edx + ecx]
mov byte [ebp - 0x322], al
mov ecx, dword [ebp - 0x26c]
add ecx, 1
mov dword [ebp - 0x26c], ecx
movzx ebx, byte [ebp - 0x29a]
mov edx, dword [ebp - 0x28c]
push edx
mov eax, dword [ebp - 0x294]
push eax
call fcn.101d06e0
add esp, 8
movzx ecx, al
and ebx, ecx
mov byte [ebp - 0x321], bl
movzx ebx, byte [ebp - 0x29a]
mov edx, dword [ebp - 0x28c]
add edx, 1
push edx
mov eax, dword [ebp - 0x294]
push eax
call fcn.101d06e0
add esp, 8
movzx ecx, al
and ebx, ecx
mov byte [ebp - 0x323], bl
movzx edx, byte [ebp - 0x322]
push edx
push 0x80
movzx eax, byte [ebp - 0x321]
push eax
call fcn.101636f0
add esp, 0xc
mov byte [ebp - 0x322], al
movzx ecx, byte [ebp - 0x322]
movzx edx, byte [ebp - 0x323]
not edx
and ecx, edx
mov byte [ebp - 0x322], cl
movzx eax, byte [ebp - 0x299]
not eax
movzx ecx, byte [ebp - 0x29a]
or eax, ecx
movzx edx, byte [ebp - 0x322]
and edx, eax
mov byte [ebp - 0x322], dl
mov eax, dword [ebp - 0x248]
sub eax, dword [ebp - 0x1c0]
cmp dword [ebp - 0x294], eax
jb 0x101c8308
movzx ecx, byte [ebp - 0x322]
push ecx
mov edx, dword [ebp - 0x248]
sub edx, dword [ebp - 0x1c0]
mov eax, dword [ebp - 0x294]
sub eax, edx
movzx ecx, byte [ebp + eax - 0x284]
push ecx
movzx edx, byte [ebp - 0x299]
push edx
call fcn.101636f0
add esp, 0xc
mov byte [ebp - 0x322], al
mov eax, dword [ebp - 0x294]
mov cl, byte [ebp - 0x322]
mov byte [ebp + eax - 0x320], cl
jmp 0x101c8189
lea edx, [ebp - 0x320]
push edx
lea eax, [ebp - 0xe8]
push eax
call dword [ebp - 0x268]
add esp, 8
lea ecx, [ebp - 0x320]
push ecx
lea edx, [ebp - 0xe8]
push edx
call dword [ebp - 0x290]
add esp, 8
mov dword [ebp - 0x294], 0
jmp 0x101c8369
mov eax, dword [ebp - 0x294]
add eax, 1
mov dword [ebp - 0x294], eax
mov ecx, dword [ebp - 0x294]
cmp ecx, dword [ebp - 0x130]
jae 0x101c83ad
mov edx, dword [ebp - 0x294]
movzx eax, byte [ebp + edx - 0x320]
movzx ecx, byte [ebp - 0x299]
and eax, ecx
mov edx, dword [ebp - 0x294]
movzx ecx, byte [ebp + edx - 0x128]
or ecx, eax
mov edx, dword [ebp - 0x294]
mov byte [ebp + edx - 0x128], cl
jmp 0x101c835a
jmp 0x101c811e
call fcn.100432b0
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
jne 0x101c83cb
jmp 0x101c8541
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.10043930
add esp, 0xc
test eax, eax
jg 0x101c83e9
jmp 0x101c8541
movsx edx, byte [ebp + 0x2c]
test edx, edx
je 0x101c8470
mov eax, dword [ebp - 0x260]
push eax
push 0x5c
lea ecx, [ebp - 0x240]
push ecx
call fcn.101d19d0
add esp, 0xc
mov edx, dword [ebp + 0x28]
push edx
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.10043950
add esp, 0xc
test eax, eax
jle 0x101c8466
mov edx, dword [ebp - 0x260]
push edx
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.10043950
add esp, 0xc
test eax, eax
jle 0x101c8466
mov edx, dword [ebp - 0x130]
push edx
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.10043950
add esp, 0xc
test eax, eax
jg 0x101c846b
jmp 0x101c8541
jmp 0x101c84fd
mov dword [ebp - 0x134], 0
jmp 0x101c848b
mov edx, dword [ebp - 0x134]
add edx, 1
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
cmp eax, dword [ebp - 0x248]
jae 0x101c84b9
mov ecx, dword [ebp - 0x134]
movzx edx, byte [ebp + ecx - 0x240]
xor edx, 0x6a
mov eax, dword [ebp - 0x134]
mov byte [ebp + eax - 0x240], dl
jmp 0x101c847c
mov ecx, dword [ebp - 0x248]
push ecx
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x270]
push eax
call fcn.10043950
add esp, 0xc
test eax, eax
jle 0x101c84fb
mov ecx, dword [ebp - 0x130]
push ecx
lea edx, [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x270]
push eax
call fcn.10043950
add esp, 0xc
test eax, eax
jg 0x101c84fd
jmp 0x101c8541
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x270]
push eax
call fcn.10043ae0
add esp, 0xc
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
je 0x101c8537
cmp dword [ebp + 0x10], 0
je 0x101c8537
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x244]
mov dword [ecx], edx
mov dword [ebp - 0x264], 1
mov eax, dword [ebp - 0x270]
push eax
call fcn.100432d0
add esp, 4
mov eax, dword [ebp - 0x264]
pop ebx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.101d14d7
mov esp, ebp
pop ebp
ret