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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4486e0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x45e084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x4566e4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.0040b9d0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x40], 0
call fcn.0040a4d0
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [esi + 4]
mov dword [esi], eax
call fcn.0040a3e0
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x42464a
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424640
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424905
push edx
push ecx
call fcn.004274df
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x424685
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42467b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42490a
push edx
push ecx
call fcn.004274df
add esp, 8
cmp dword [esi + 0x1c], 0
lea edi, [esi + 0x1c]
lea ebx, [esi + 0x20]
je 0x424766
cmp dword [ebx], 0
je 0x424766
push 0x28
push str.Cryptographic_provider_already_acquired_
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.0040b9d0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x40], 0
call fcn.0040a4d0
mov eax, dword [ebp - 0x40]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040a3e0
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x42471e
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424714
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42490f
push edx
push ecx
call fcn.004274df
add esp, 8
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x424752
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424748
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424914
push edx
push ecx
call fcn.004274df
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x24]
push 0xf0000020
push 1
push 0
push 0
push edi
mov dword [esi + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x424806
push 0x28
push str.Failed_to_acquire_cryptographic_context.
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], al
call fcn.0040b9d0
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x24]
push eax
call fcn.0040a4d0
mov eax, dword [ebp - 0x40]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040a3e0
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x42471e
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424714
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424919
jmp 0x424714
push ebx
push 0
push 0
push 0x8004
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4248f1
push 0x28
push str.Failed_to_acquire_cryptographic_context.
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], al
call fcn.0040b9d0
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x24]
push eax
call fcn.0040a4d0
mov eax, dword [ebp - 0x40]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040a3e0
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x42489d
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424893
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42491e
push edx
push ecx
call fcn.004274df
add esp, 8
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x4248cd
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4248c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424923
push edx
push ecx
call fcn.004274df
add esp, 8
push 0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [edi], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042c3c9
call fcn.0042c3c9
call fcn.0042c3c9
call fcn.0042c3c9
call fcn.0042c3c9
call fcn.0042c3c9
call fcn.0042c3c9
int3