Function at 0x4284bd
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push 0x50
mov eax, 0x431ef7
call fcn.004148c8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 2
push eax
xor ebx, ebx
push ebx
push ebx
push 0x8004
push dword [0x4492b8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov esi, 0x80070000
test eax, eax
jne 0x428522
sub esp, 0x1c
mov ecx, esp
push 0x404fc4
call fcn.0040b41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42851c
movzx eax, ax
or eax, esi
push eax
call fcn.004150e1
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x42852e
lea eax, [ebp + 0x10]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 3
cmp edi, 0xffffffff
jne 0x428573
sub esp, 0x1c
mov ecx, esp
push 0x404bec
call fcn.0040b41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42856d
movzx eax, ax
or eax, esi
push eax
call fcn.004150e1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
sub esp, 0x1c
lea eax, [ebp + 0x28]
mov ecx, esp
push eax
call fcn.0040b470
call fcn.00425ca2
lea ecx, [ebp - 0x2c]
call fcn.00426f2e
test al, al
je 0x4285b6
or dword [ebp - 0x38], 0xffffffff
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x3c], ebx
call fcn.0042aef7
mov esi, ebx
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4285de
mov eax, dword [ebp - 0x24]
sub eax, ebx
sar eax, 3
cmp esi, eax
jae 0x4285de
push dword [ebp - 0x10]
push dword [ebx + esi*8 + 4]
push dword [ebx + esi*8]
push edi
call fcn.00426d00
inc esi
jmp 0x4285bb
push 4
pop ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
push ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x428627
sub esp, 0x1c
mov ecx, esp
push 0x404fe4
call fcn.0040b41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x428621
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.004150e1
push 0x401903
push dword [ebp - 0x14]
call fcn.00414796
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x428705
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x428683
sub esp, 0x1c
mov ecx, esp
push 0x404fe4
call fcn.0040b41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42867d
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.004150e1
lea ecx, [ebp - 0x5c]
call fcn.0040e26b
push dword [ebp - 0x14]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
push esi
call fcn.0040e4e0
lea ecx, [ebp - 0x5c]
call fcn.00408d70
mov ebx, dword [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.0040b41d
lea ecx, [ebp - 0x5c]
call fcn.0040e2b1
push esi
call sub.msvcrt.dll_free
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00411ea9
cmp edi, 0xffffffff
je 0x4286d1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x4286e0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor esi, esi
lea ecx, [ebp + 0xc]
push esi
push 1
mov dword [ebp - 0x10], esi
call fcn.0040b613
push esi
push 1
lea ecx, [ebp + 0x28]
call fcn.0040b613
mov eax, ebx
call fcn.00414896
ret 0x3c
lea ecx, [ebp - 0x40]
call fcn.004138cb
push 0x438704
lea eax, [ebp - 0x40]
push eax
call sub.msvcrt.dll__CxxThrowException
int3