Function at 0x79216850
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebx, dword [ebp + 0x14]
test byte [0x7922a138], 8
jne 0x79216a40
mov ecx, dword [ebp + 0xc]
test ecx, ecx
sete dl
test ebx, ebx
setne al
or dl, al
jne 0x79216a20
mov edx, dword [ebp + 8]
test edx, edx
je 0x79216a20
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0x13
jbe 0x79216a92
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], 0x14
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x79216a0a
call sym._GetProcessHeap_0
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapAlloc_12
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x79216af0
mov eax, dword [str.Microsoft_Base_Cryptographic_Provider_v1.0]
lea edi, [ebp - 0x64]
mov esi, 0x7922a0e2
mov ecx, 0x15
mov dword [ebp - 0x66], eax
mov eax, dword [0x7922a132]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x66]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], eax
lea eax, [ebp - 0x74]
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextW]
sub esp, 0x14
test eax, eax
je 0x79216ac0
lea eax, [ebp - 0x70]
mov dword [esp + 0xc], 0
lea esi, [ebp - 0x6c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8004
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptCreateHash]
mov edi, dword [sym.imp.advapi32.dll_CryptHashData]
sub esp, 0x14
test eax, eax
jne 0x79216996
jmp 0x79216b34
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x70]
test eax, eax
je 0x79216b03
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edx
call edi
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x1000
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov edx, eax
test eax, eax
jne 0x79216970
mov dword [ebp - 0x7c], edx
call sym._GetProcessHeap_0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
mov eax, dword [ebp - 0x70]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x74]
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
mov edx, dword [ebp - 0x7c]
sub esp, 8
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp], 0x57
call sym._SetLastError_4
xor edx, edx
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], str._p__p__p__x_n
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0xe0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.CryptCATAdminCalcHashFromFileHandle
mov dword [esp + 0x18], eax
mov dword [esp + 8], 0x7922b851
mov dword [esp + 4], 0x7922a138
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x7921686c
mov dword [eax], 0x14
mov dword [esp], 0x7a
call sym._SetLastError_4
mov edx, 1
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
call sym._GetProcessHeap_0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
xor edx, edx
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp], 0xe
call sym._SetLastError_4
xor edx, edx
sub esp, 4
jmp 0x79216ade
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 2
mov dword [esp + 8], eax
call dword [sym.imp.advapi32.dll_CryptGetHashParam]
sub esp, 0x14
mov edx, eax
jmp 0x792169c2
call sym._GetProcessHeap_0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
mov eax, dword [ebp - 0x74]
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
xor edx, edx
sub esp, 8
jmp 0x79216ade