Function at 0x4901f0
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 0x490219
mov esi, 0xc004f100
jmp 0x4903f8
cmp dword [edi + 4], ecx
je 0x49020f
mov esi, dword [ebp + 0xc]
lea eax, [esi + 1]
cmp eax, esi
ja 0x490232
mov esi, 0x80070216
jmp 0x4903f8
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 0x490250
mov esi, 0x8007000e
jmp 0x4903cf
mov dword [ebp - 0x18], 0x10000
lea eax, [ebp - 0x18]
mov dword [ecx + 4], eax
mov eax, esi
shl eax, 3
push eax
push dword [ebp + 0x10]
lea ebx, [esi + 1]
mov eax, ebx
sub eax, esi
lea eax, [ecx + eax*8]
push eax
mov dword [ecx], 4
call sub.MSVCR100.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.00490401
mov ebx, dword [ebp - 0xc]
mov esi, eax
test esi, esi
js 0x4903c6
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push dword [edi + 4]
push 0x8009
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4902cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048ee11
mov esi, eax
jmp 0x4903c6
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
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 0x4902b8
push esi
push dword [ebp + 0x10]
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4902b8
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 0x4902b8
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x490334
mov esi, 0x8007000e
jmp 0x4903c6
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push 2
push dword [ebp - 4]
call esi
test eax, eax
jne 0x490356
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048ee11
mov esi, eax
jmp 0x4903bf
mov eax, dword [0x4f2f54]
test eax, eax
jne 0x490366
mov esi, 0x800701e7
jmp 0x4903bf
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 0x4903bf
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x490387
mov esi, 0xc004f101
jmp 0x4903bf
cmp ecx, 0x10
jbe 0x4903a1
mov eax, dword [ebp - 8]
cmp dword [eax], ecx
jne 0x4903a1
cmp dword [eax + 4], 2
jne 0x4903a1
mov ecx, dword [ebp + 0xc]
cmp dword [eax + 8], ecx
je 0x4903a8
mov esi, 0x8007000d
jmp 0x4903bf
push ecx
add eax, 0xc
push edi
push eax
call sub.MSVCR100.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4903bf
mov esi, 0xc004f027
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 0x4903de
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x4903e9
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
je 0x4903f8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc