Function at 0x622c2b00
Capabilities:
Authenticate hmac

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x218
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x1f0], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x1ec], eax
test byte [0x622d8018], 8
jne 0x622c2d50
mov dword [esp + 8], 0x26384993
mov dword [esp + 4], ebx
mov dword [esp], 0x622d8080
call sym._is_valid_handle
test eax, eax
jne 0x622c2b80
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0x80090001
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
lea eax, [ebp - 0x1d8]
mov dword [esp + 8], 0x85938417
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov dword [esp], 0x622d8080
call sym._lookup_handle
test eax, eax
je 0x622c2e00
mov eax, dword [ebp - 0x1ec]
test eax, eax
je 0x622c2e20
mov eax, edi
and eax, 0xe000
cmp eax, 0x4000
je 0x622c2d98
cmp eax, 0x6000
jne 0x622c2de0
lea eax, [ebp - 0x1dc]
mov ecx, dword [ebp - 0x1f0]
mov edx, edi
mov dword [esp], eax
mov eax, ebx
call sym._new_key
mov ebx, dword [ebp - 0x1ec]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x622c2ded
lea eax, [ebp - 0x1d4]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xe8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1d8]
mov dword [esp + 8], 2
mov dword [esp + 4], esi
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1d4], 0x68
mov dword [esp], eax
call sym.rsaenh.dll_CPGetHashParam
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [ebp - 0x1dc]
sub esp, 0x18
cmp edi, 0x660e
je 0x622c2f40
mov ebx, dword [ecx + 0x20]
mov edx, ecx
mov dword [ebp - 0x1f4], ebx
cmp ebx, eax
ja 0x622c2f57
test byte [ebp - 0x1f0], 4
je 0x622c2c90
cmp edi, 0x6602
je 0x622c3168
cmp edi, 0x6801
je 0x622c3168
mov eax, dword [ebp - 0x1f4]
mov ecx, 0x40
lea edi, [edx + 0x334]
mov dword [ebp - 0x1ec], edi
cmp eax, 0x40
cmovbe ecx, eax
cmp ecx, 4
jae 0x622c3130
test ecx, ecx
je 0x622c2cd0
movzx eax, byte [ebp - 0xe8]
mov byte [edx + 0x334], al
test cl, 2
jne 0x622c31be
lea ebx, [edx + 0x374]
mov dword [edx + 0x30], 0
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x1ec]
mov dword [edx + 0x38c], ecx
mov ecx, dword [ebx + 4]
mov dword [edx + 0x390], ecx
mov ecx, dword [ebx + 8]
mov dword [edx + 0x394], ecx
mov ecx, dword [ebx + 0xc]
mov dword [edx + 0x398], ecx
mov ecx, dword [ebx + 0x10]
mov dword [edx + 0x39c], ecx
mov ecx, dword [ebx + 0x14]
mov dword [edx + 0x3a0], ecx
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x20]
mov dword [esp + 8], eax
lea eax, [edx + 0x34]
mov dword [esp + 4], eax
mov eax, dword [edx + 0xc]
mov dword [esp], eax
call sym._setup_key_impl
mov eax, 1
jmp 0x622c2b68
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x1f0]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str._hProv_08Ix__Algid_d__hBaseData_08Ix__dwFlags_08lx_phKey_p__n
mov dword [esp + 8], str.RSAENH_CPDeriveKey
mov dword [esp + 4], 0x622d8018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x622c2b3e
lea eax, [ebp - 0x150]
mov dword [esp + 8], 0x73620457
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1d8]
mov eax, dword [eax + 0x10]
mov dword [esp], 0x622d8080
mov dword [esp + 4], eax
call sym._lookup_handle
test eax, eax
je 0x622c3050
cmp edi, 0x4c03
je 0x622c2fb8
cmp edi, 0x4c07
je 0x622c2e38
nop
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80090008
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0x80090002
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
xor eax, eax
jmp 0x622c2b68
mov eax, dword [ebp - 0x150]
mov edx, dword [eax + 0x3a8]
test edx, edx
je 0x622c3154
mov eax, dword [eax + 0x3ac]
test eax, eax
je 0x622c3154
mov edi, dword [ebp - 0x1f0]
shl eax, 0x10
movzx ecx, di
or ecx, eax
lea eax, [ebp - 0x1dc]
mov dword [esp], eax
mov eax, ebx
call sym._new_key
mov ebx, dword [ebp - 0x1ec]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x622c2ded
mov ebx, dword [ebp - 0x150]
mov esi, dword [ebp - 0x1d8]
mov ecx, dword [ebx + 0x3c0]
mov eax, dword [ebx + 0x3ac]
add esi, 0x24
shr ecx, 3
shr eax, 3
and edi, 0x400
lea edx, [ecx + ecx]
mov dword [ebp - 0x1f0], edx
mov edx, dword [ebp - 0x1dc]
lea ecx, [edx + 0x334]
mov dword [ebp - 0x1ec], ecx
je 0x622c3176
mov ecx, dword [ebp - 0x1f0]
mov dword [esp + 8], eax
mov dword [ebp - 0x1f4], edx
add ecx, eax
mov eax, dword [ebp - 0x1ec]
add ecx, esi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
mov ecx, dword [ebx + 0x3c0]
mov edx, dword [ebp - 0x1f4]
mov ebx, dword [ebx + 0x3ac]
mov eax, dword [edx + 0x2c]
shr ecx, 3
shr ebx, 3
add ecx, ebx
lea ecx, [eax + ecx*2]
lea ebx, [edx + 0x374]
add ecx, esi
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov dword [ebp - 0x1f0], edx
call sym._memcpy
mov edx, dword [ebp - 0x1f0]
jmp 0x622c2cd6
mov ebx, dword [ecx + 0x20]
mov edx, eax
and edx, 0xfffffffb
mov dword [ebp - 0x1f4], ebx
cmp edx, 0x10
jne 0x622c2c5c
mov edi, dword [ebp - 0x1d8]
mov ecx, 0x1a
lea esi, [edi + 0x24]
mov dword [ebp - 0x1ec], edi
lea edi, [ebp - 0x150]
rep movsd dword es:[edi], dword [esi]
jmp 0x622c2fa2
movzx edx, byte [ebp + ecx - 0xe8]
mov esi, edx
xor edx, 0x5c
xor esi, 0x36
mov ebx, esi
mov byte [ebp + ecx - 0x1d0], bl
mov byte [ebp + ecx - 0x190], dl
inc ecx
cmp ecx, 0x40
je 0x622c3068
cmp eax, ecx
ja 0x622c2f78
mov byte [ebp + ecx - 0x1d0], 0x36
mov edx, 0x5c
jmp 0x622c2f91
mov eax, dword [ebp - 0x150]
mov edi, dword [ebp - 0x1f0]
mov edx, 0x4c03
mov ecx, dword [eax + 0x3c0]
movzx eax, di
shl ecx, 0x10
or ecx, eax
lea eax, [ebp - 0x1dc]
mov dword [esp], eax
mov eax, ebx
call sym._new_key
mov ebx, dword [ebp - 0x1ec]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x622c2ded
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 0x3c0]
mov eax, dword [ebp - 0x1d8]
shr ecx, 3
add eax, 0x24
and edi, 0x400
lea edx, [eax + ecx]
mov dword [esp + 8], ecx
cmovne eax, edx
mov edx, dword [ebp - 0x1dc]
lea edi, [edx + 0x334]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [ebp - 0x1f0], edx
mov dword [ebp - 0x1ec], edi
call sym._memcpy
mov edx, dword [ebp - 0x1f0]
jmp 0x622c2cd0
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0x80090020
jmp 0x622c2b68
mov eax, dword [ebp - 0x1ec]
lea edi, [ebp - 0xe8]
call sym._init_hash
mov eax, dword [ebp - 0x1d8]
mov ecx, 0x40
lea edx, [ebp - 0x1d0]
call sym._update_hash
mov eax, dword [ebp - 0x1d8]
call sym._finalize_hash
mov esi, dword [ebp - 0x1d8]
mov edx, dword [esi + 0x18]
lea eax, [esi + 0x24]
mov dword [esp + 4], eax
lea eax, [ebp - 0xe8]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memcpy
mov eax, esi
lea esi, [ebp - 0x150]
call sym._init_hash
mov eax, dword [ebp - 0x1d8]
mov ecx, 0x40
lea edx, [ebp - 0x190]
call sym._update_hash
mov eax, dword [ebp - 0x1d8]
call sym._finalize_hash
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0x18]
add edx, 0x24
mov dword [esp + 4], edx
lea ecx, [edi + eax]
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [ebp - 0x1ec], edx
call sym._memcpy
mov edx, dword [ebp - 0x1ec]
mov ecx, 0x1a
mov edi, edx
mov edx, dword [ebp - 0x1dc]
rep movsd dword es:[edi], dword [esi]
jmp 0x622c2c90
mov eax, dword [ebp + ecx - 0xec]
mov edi, dword [ebp - 0x1ec]
mov dword [edi + ecx - 4], eax
dec ecx
lea eax, [ebp - 0xe8]
shr ecx, 2
mov esi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x622c2cd0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80090009
xor eax, eax
jmp 0x622c2b68
mov edi, dword [ecx + 0x28]
add dword [ebp - 0x1f4], edi
jmp 0x622c2c90
mov ecx, dword [ebp - 0x1f0]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f4], edx
add ecx, esi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
mov ecx, dword [ebx + 0x3c0]
mov ebx, dword [ebx + 0x3ac]
mov edx, dword [ebp - 0x1f4]
shr ecx, 3
shr ebx, 3
add ecx, ebx
mov eax, dword [edx + 0x2c]
add ecx, ecx
jmp 0x622c2f17
movzx eax, word [ebp + ecx - 0xea]
mov edi, dword [ebp - 0x1ec]
mov word [edi + ecx - 2], ax
jmp 0x622c2cd0