Function at 0x4029ba
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 word [ebp + 0xc], 1
jne 0x4029fd
mov dword [ebp - 4], 0x8003
jmp 0x402acf
cmp word [ebp + 0xc], 2
jne 0x402a14
mov dword [ebp - 4], 0x8001
jmp 0x402acf
cmp word [ebp + 0xc], 3
jne 0x402a2b
mov dword [ebp - 4], 0x8002
jmp 0x402acf
cmp word [ebp + 0xc], 4
jne 0x402a42
mov dword [ebp - 4], 0x8004
jmp 0x402acf
cmp word [ebp + 0xc], 5
jne 0x402a59
mov dword [ebp - 4], 0x800c
jmp 0x402acf
cmp word [ebp + 0xc], 6
jne 0x402a70
mov dword [ebp - 4], 0x800d
jmp 0x402acf
cmp word [ebp + 0xc], 7
jne 0x402a87
mov dword [ebp - 4], 0x800e
jmp 0x402acf
cmp word [ebp + 0xc], 0
jne 0x402a9e
mov dword [ebp - 4], 0x8003
jmp 0x402acf
cmp word [ebp + 0xc], 7
jg 0x402ab8
cmp word [ebp + 0xc], 0
jl 0x402ab8
xor eax, eax
jmp 0x402abd
mov eax, 1
test eax, eax
je 0x402acf
mov eax, 0x42d2e6
jmp 0x402d08
mov dword [ebp - 0x18], esp
push 0xf0000000
push 0x18
push 0x42d2e6
push 0x42d2e6
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x402b06
push 6
call fcn.0040e095
add esp, 4
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402b1b
mov eax, 0x42d35a
push eax
push 1
mov ebx, 0x194
call fcn.0040f410
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 0x402b48
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 0x402b68
push 6
call fcn.0040e095
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 0x402b9b
push 6
call fcn.0040e095
add esp, 4
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402bb0
mov eax, 0x42d35a
push eax
push 1
mov ebx, 0x194
call fcn.0040f410
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 0x402bdd
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 0x402bfd
push 6
call fcn.0040e095
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 0x402c32
push 6
call fcn.0040e095
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x1bc
call fcn.0040f420
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402c65
push ebx
call fcn.0040e08f
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 0x402c7f
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 0x402ca4
push 6
call fcn.0040e095
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 0x402cc6
push 6
call fcn.0040e095
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 0x402ced
push 6
call fcn.0040e095
add esp, 4
push 1
push 1
lea eax, [ebp - 0x14]
push eax
call fcn.00402d20
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x402d08
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402d19
push ebx
call fcn.0040e08f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc