Function at 0x40cfd3
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
sub esp, 0x440
push ebx
push esi
push edi
mov esi, str.0123456789abcdef
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
push ebx
movsd dword es:[edi], dword [esi]
push 0x8000000
push 3
movsd dword es:[edi], dword [esi]
push ebx
push 1
movsd dword es:[edi], dword [esi]
push SysReAllocStringLen
push dword [ebp + 8]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x18], esi
jne 0x40d036
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [ebp + 8]
push str.Error_opening_file__s_nError:__d_n
call fcn.00412b6f
add esp, 0xc
jmp 0x40d0a1
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40d065
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CryptAcquireContext_failed:__d_n
call fcn.00412b6f
pop ecx
pop ecx
jmp 0x40d16e
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x8004
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40d0a8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CryptAcquireContext_failed:__d_n
call fcn.00412b6f
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x40d179
push ebx
lea eax, [ebp - 0x14]
push eax
mov edi, 0x400
push edi
lea eax, [ebp - 0x440]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
jmp 0x40d0f0
cmp dword [ebp - 0x14], ebx
je 0x40d0fe
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40d0fb
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x18]
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x40d0c3
jmp 0x40d0fe
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x10], 0x14
je 0x40d155
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x40]
push eax
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40d155
mov esi, dword [ebp + 0xc]
xor edi, edi
cmp dword [ebp - 0x10], ebx
mov byte [esi], bl
jbe 0x40d150
movzx eax, byte [ebp + edi - 0x40]
mov ecx, eax
shr ecx, 4
mov cl, byte [ebp + ecx - 0x2c]
and eax, 0xf
mov al, byte [ebp + eax - 0x2c]
mov byte [esi + edi*2], cl
mov byte [esi + edi*2 + 1], al
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x40d12e
mov byte [esi + 0x28], bl
jmp 0x40d158
mov dword [ebp - 4], ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ebx, dword [ebp - 4]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret