Function at 0x40bba9
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 0xffffffffffffffff
push 0x4427b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1078
call fcn.00416960
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1064], 0
mov dword [ebp - 0x1060], 0xffffffff
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x105c], 0x14
mov byte [ebp - 0x58], 0
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x57]
rep stosd dword es:[edi], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
call fcn.0040c670
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1060], eax
cmp dword [ebp - 0x1060], 0xffffffff
jne 0x40bc67
push 0x40c5b0
mov eax, dword [ebp + 8]
push eax
push 0xe55a38
push 0xe5c9d8
call fcn.0040d540
add esp, 8
push eax
call fcn.0040d850
add esp, 8
mov ecx, eax
call fcn.0040c6a0
xor al, al
jmp 0x40be7a
push 0xf0000000
push 1
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40bcb2
mov edx, dword [ebp - 0x1060]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40c5b0
push 0xe55a48
push 0xe5c9d8
call fcn.0040d540
add esp, 8
mov ecx, eax
call fcn.0040c6a0
xor al, al
jmp 0x40be7a
lea eax, [ebp - 0x1064]
push eax
push 0
push 0
push 0x8004
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40bd0e
mov edx, dword [ebp - 0x1060]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x40c5b0
push 0xe55a5c
push 0xe5c9d8
call fcn.0040d540
add esp, 8
mov ecx, eax
call fcn.0040c6a0
xor al, al
jmp 0x40be7a
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x1000
lea edx, [ebp - 0x1058]
push edx
mov eax, dword [ebp - 0x1060]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40bd7a
cmp dword [ebp - 0x14], 0
jbe 0x40bd7a
push 0
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1058]
push edx
mov eax, dword [ebp - 0x1064]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40bd78
push 0x40c5b0
push 0xe55a70
push 0xe5c9d8
call fcn.0040d540
add esp, 8
mov ecx, eax
call fcn.0040c6a0
jmp 0x40be42
jmp 0x40bd0e
push 0
lea ecx, [ebp - 0x105c]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 2
mov eax, dword [ebp - 0x1064]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40be42
mov dword [ebp - 0x1068], 0
jmp 0x40bdb9
mov ecx, dword [ebp - 0x1068]
add ecx, 1
mov dword [ebp - 0x1068], ecx
mov edx, dword [ebp - 0x1068]
cmp edx, dword [ebp - 0x105c]
jae 0x40bdee
mov eax, dword [ebp - 0x1068]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x2c]
push ecx
push 0xe55a80
mov edx, dword [ebp - 0x1068]
lea eax, [ebp + edx*2 - 0x58]
push eax
call fcn.00416902
add esp, 0xc
jmp 0x40bdaa
lea ecx, [ebp - 0x107c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x1078]
call fcn.0040c600
mov dword [ebp - 0x1080], eax
mov eax, dword [ebp - 0x1080]
mov dword [ebp - 0x1084], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1084]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040c650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1078]
call fcn.0040c630
mov byte [ebp - 0x10], 1
mov edx, dword [ebp - 0x1060]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1064], 0
je 0x40be65
mov eax, dword [ebp - 0x1064]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x18], 0
je 0x40be77
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret