Function at 0x40a0ce
Capabilities:
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
cmp dword [edi], ecx
jne 0x40a0f7
mov esi, 0xc004f100
jmp 0x40a2d7
cmp dword [edi + 4], ecx
je 0x40a0ed
mov esi, dword [ebp + 0xc]
lea eax, [esi + 1]
cmp eax, esi
ja 0x40a110
mov esi, 0x80070216
jmp 0x40a2d7
shl eax, 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x40a12e
mov esi, 0x8007000e
jmp 0x40a2ae
mov dword [ebp - 0x18], 0x10000
lea eax, [ebp - 0x18]
mov dword [ecx + 4], eax
lea ebx, [esi + 1]
mov eax, esi
mov dword [ecx], 4
shl eax, 3
push eax
push dword [ebp + 0x10]
mov eax, ebx
sub eax, esi
lea eax, [ecx + eax*8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call fcn.00409f4b
mov ebx, dword [ebp - 0xc]
mov esi, eax
test esi, esi
js 0x40a2a5
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [edi + 4]
push 0x8009
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40a1a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409953
mov esi, eax
jmp 0x40a2a5
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
push 5
push dword [ebp - 4]
mov dword [ebp - 0x2c], 0x8004
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x40a196
push esi
push dword [ebp + 0x10]
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40a196
push esi
lea eax, [ebp + 0xc]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 2
push dword [ebp - 4]
call esi
test eax, eax
je 0x40a196
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x40a212
mov esi, 0x8007000e
jmp 0x40a2a5
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push 2
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40a234
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409953
mov esi, eax
jmp 0x40a29e
mov eax, dword [0x41c394]
test eax, eax
jne 0x40a244
mov esi, 0x800701e7
jmp 0x40a29e
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 8]
call eax
mov esi, eax
test esi, esi
js 0x40a29e
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x40a265
mov esi, 0xc004f101
jmp 0x40a29e
cmp ecx, 0x10
ja 0x40a271
mov esi, 0x8007000d
jmp 0x40a29e
mov eax, dword [ebp - 8]
cmp dword [eax], ecx
jne 0x40a26a
cmp dword [eax + 4], 2
jne 0x40a26a
mov ecx, dword [ebp + 0xc]
cmp dword [eax + 8], ecx
jne 0x40a26a
push ecx
add eax, 0xc
push edi
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
mov ecx, 0xc004f027
test eax, eax
cmovne esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 0
je 0x40a2bd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x40a2c8
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
je 0x40a2d7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc