Function at 0x4282a1
Capabilities:
Get file size
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push 0x40
mov eax, 0x431ea4
call fcn.004148c8
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x10]
xor edi, edi
push eax
push edi
push edi
push 0x8004
push dword [0x4492b8]
xor esi, esi
mov dword [ebp - 0x10], edi
inc esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x428300
sub esp, 0x1c
mov ecx, esp
push 0x404fc4
call fcn.0040b41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4282fa
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.004150e1
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x42830c
lea eax, [ebp + 0x10]
push edi
push edi
push 3
push edi
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x428353
sub esp, 0x1c
mov ecx, esp
push 0x404bec
call fcn.0040b41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42834d
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.004150e1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x428389
sub esp, 0x1c
mov ecx, esp
push 0x404e54
call fcn.0040b41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x428383
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.004150e1
push dword [ebp - 0x10]
push edi
xor edi, edi
push edi
push esi
call fcn.00426d00
push 4
pop ecx
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
push eax
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x4283dd
sub esp, 0x1c
mov ecx, esp
push 0x404fe4
call fcn.0040b41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4283d7
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.004150e1
push 0x401903
push dword [ebp - 0x14]
call fcn.00414796
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x4284a6
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x42843a
sub esp, 0x1c
mov ecx, esp
push 0x404fe4
call fcn.0040b41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x428434
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.004150e1
lea ecx, [ebp - 0x4c]
call fcn.0040e26b
push dword [ebp - 0x14]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
push edi
call fcn.0040e4e0
lea ecx, [ebp - 0x4c]
call fcn.00408d70
push eax
mov ecx, ebx
call fcn.0040b41d
lea ecx, [ebp - 0x4c]
call fcn.0040e2b1
push edi
call sub.msvcrt.dll_free
pop ecx
cmp esi, 0xffffffff
je 0x42847d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x42848c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0xc]
push 0
push 1
call fcn.0040b613
mov eax, ebx
call fcn.00414896
ret 0x20
lea ecx, [ebp - 0x30]
call fcn.004138cb
push 0x438704
lea eax, [ebp - 0x30]
push eax
call sub.msvcrt.dll__CxxThrowException
int3