Function at 0x42513e
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 0x4c
mov eax, 0x44011d
call fcn.0042db7c
or dword [ebp - 0x24], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x11], bl
je 0x4252e4
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x425184
sub eax, edx
je 0x4252e4
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
call fcn.00424d43
test al, al
pop ecx
pop ecx
je 0x4252e7
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4252e7
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x8004
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4252e7
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp + 8]
call dword [0x449734]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x4252e7
lea eax, [ebp + 0xf]
push eax
mov edi, 0x4000
lea esi, [ebp - 0x48]
mov byte [ebp + 0xf], bl
call fcn.00420e4d
mov dword [ebp - 0x1c], ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
call fcn.00420b88
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
lea esi, [ebp - 0x48]
jne 0x42525f
call fcn.00420b6d
jmp 0x4252e7
push ebx
push dword [ebp - 0x1c]
push ebx
call fcn.00420b88
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
lea esi, [ebp - 0x48]
je 0x425238
jmp 0x42521b
cmp dword [ebp - 0x1c], ebx
jne 0x425242
call fcn.00420b6d
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push 2
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x4252e7
cmp dword [ebp - 0x34], ebx
jne 0x425289
xor eax, eax
jmp 0x42528f
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
cmp dword [ebp - 0x20], eax
jne 0x4252e7
push dword [ebp - 0x20]
lea eax, [ebp - 0x58]
call fcn.00425955
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
lea esi, [ebp - 0x58]
call fcn.00420b88
push eax
push 2
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x4252e7
mov eax, dword [ebp - 0x20]
push ebx
lea esi, [ebp - 0x38]
mov dword [ebp + 0xc], eax
call fcn.00420b88
push ebx
lea esi, [ebp - 0x58]
mov edi, eax
call fcn.00420b88
mov esi, eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
sete byte [ebp - 0x11]
jmp 0x4252e7
mov byte [ebp - 0x11], bl
cmp dword [ebp - 0x28], ebx
je 0x4252f6
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x18], ebx
je 0x425304
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x24], 0xffffffff
je 0x425313
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x58]
call fcn.00420b6d
lea esi, [ebp - 0x38]
call fcn.00420b6d
mov al, byte [ebp - 0x11]
call fcn.0042dc54
ret