Function at 0x4514a0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acdc0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x62c2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], 0
cmp dword [ebx], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
je 0x451511
push 0x6256a0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x16
push eax
call fcn.00586852
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.00448170
mov edx, eax
mov ecx, ebx
lea eax, [ebp - 0x28]
push eax
call fcn.00450d90
mov ecx, dword [edx]
mov edi, 0x5ef390
mov esi, dword [ebx + 0x14]
test ecx, ecx
mov edx, edi
mov eax, dword [eax]
cmovne edx, ecx
test eax, eax
cmovne edi, eax
and esi, 0x20
push esi
push dword [ebx + 0xc]
lea eax, [ebp - 0x20]
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
mov eax, dword [ebp - 0x28]
sete byte [ebp - 0x11]
test eax, eax
je 0x45158c
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x451585
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45157c
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x451573
push edx
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4515b7
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x4515b7
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x4515ae
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x4515a5
push edx
call fcn.00582cf0
add esp, 4
cmp byte [ebp - 0x11], 0
je 0x4515d2
push 0x6256a0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x17
push eax
call fcn.00586852
mov esi, dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x20]
call esi
test eax, eax
jne 0x45163b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090008
je 0x451610
push 0x6256a0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x18
push eax
call fcn.00586852
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x20]
call esi
test eax, eax
jne 0x45163b
push 0x6256a0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x18
push eax
call fcn.00586852
push 0
push 4
push 0x6000dc
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x451666
push 0x6256a0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x19
push eax
call fcn.00586852
mov edi, dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push dword [ebx + 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x451697
push 0x6256a0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x1a
push eax
call fcn.00586852
push dword [ebp - 0x24]
call fcn.0046424b
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4516c0
push 0x6256a0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0xc
push eax
call fcn.00586852
lea eax, [ebp - 0x24]
push eax
push esi
push 0
push 0
push dword [ebx + 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x4516ea
push 0x6256a0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x1b
push eax
call fcn.00586852
mov dword [ebp - 0x2c], 1
jmp 0x45170f
test esi, esi
je 0x45171c
push esi
call fcn.00464246
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45172a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x45173a
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4