Function at 0x406ece
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x10], 0
jne 0x406f0a
mov word [ebp + 0xc], 1
cmp word [ebp + 0xc], 1
jne 0x406f21
mov dword [ebp - 4], 0x8003
jmp 0x406ff3
cmp word [ebp + 0xc], 2
jne 0x406f38
mov dword [ebp - 4], 0x8001
jmp 0x406ff3
cmp word [ebp + 0xc], 3
jne 0x406f4f
mov dword [ebp - 4], 0x8002
jmp 0x406ff3
cmp word [ebp + 0xc], 4
jne 0x406f66
mov dword [ebp - 4], 0x8004
jmp 0x406ff3
cmp word [ebp + 0xc], 5
jne 0x406f7d
mov dword [ebp - 4], 0x800c
jmp 0x406ff3
cmp word [ebp + 0xc], 6
jne 0x406f94
mov dword [ebp - 4], 0x800d
jmp 0x406ff3
cmp word [ebp + 0xc], 7
jne 0x406fab
mov dword [ebp - 4], 0x800e
jmp 0x406ff3
cmp word [ebp + 0xc], 0
jne 0x406fc2
mov dword [ebp - 4], 0x8003
jmp 0x406ff3
cmp word [ebp + 0xc], 7
jg 0x406fdc
cmp word [ebp + 0xc], 0
jl 0x406fdc
xor eax, eax
jmp 0x406fe1
mov eax, 1
test eax, eax
je 0x406ff3
mov eax, 0x43f39b
jmp 0x40722c
mov dword [ebp - 0x18], esp
push 0xf0000000
push 0x18
push 0x43f39b
push 0x43f39b
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40702a
push 6
call fcn.004224de
add esp, 4
push 0x80000005
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40703f
mov eax, 0x43f455
push eax
push 1
mov ebx, 0x194
call fcn.004249b0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x40706c
add eax, 8
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40708c
push 6
call fcn.004224de
add esp, 4
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4070bf
push 6
call fcn.004224de
add esp, 4
push 0x80000005
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4070d4
mov eax, 0x43f455
push eax
push 1
mov ebx, 0x194
call fcn.004249b0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x407101
add eax, 8
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x407121
push 6
call fcn.004224de
add esp, 4
mov dword [ebp - 0x18], esp
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x407156
push 6
call fcn.004224de
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x1bc
call fcn.004249c0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407189
push ebx
call fcn.004224cc
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4071a3
add eax, 8
push eax
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4071c8
push 6
call fcn.004224de
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4071ea
push 6
call fcn.004224de
add esp, 4
mov dword [ebp - 0x18], esp
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x407211
push 6
call fcn.004224de
add esp, 4
push 1
push 1
lea eax, [ebp - 0x14]
push eax
call fcn.00407244
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x40722c
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40723d
push ebx
call fcn.004224cc
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc