Function at 0x41f62d
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Import public key
Initialize hashing via wincrypt

Disassembly:
push 0x58
mov eax, 0x45a0e8
call fcn.00422957
mov dword [ebp - 0x2c], ecx
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea eax, [ebp - 0x10]
xor ebx, ebx
push ebx
push ebx
push eax
push ebx
push ebx
push dword [ebp + 0x1c]
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x18]
call esi
test eax, eax
jne 0x41f662
xor al, al
jmp 0x41f853
push ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x64]
call fcn.004155df
push ebx
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 0x64]
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call esi
test eax, eax
je 0x41f849
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x10]
mov ecx, eax
call fcn.00413dcd
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], ebx
push eax
push ebx
push 0x8000
push dword [ebp - 0x10]
push dword [ebp - 0x64]
push 8
push 1
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x41f849
mov esi, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edi
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push eax
call ebx
test eax, eax
jne 0x41f715
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push eax
lea eax, [ebp - 0x14]
push eax
call ebx
test eax, eax
jne 0x41f715
xor bl, bl
jmp 0x41f83a
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], fcn.0041f61d
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push 1
push esi
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
jne 0x41f73d
xor bl, bl
jmp 0x41f828
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebx]
call fcn.0041f91a
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x41f775
xor bl, bl
jmp 0x41f810
mov edi, dword [ebp - 0x20]
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
push 0
mov byte [ebp - 4], 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x41f79e
xor bl, bl
jmp 0x41f7f6
mov ecx, dword [ebp + 0x10]
xor eax, eax
push dword [ebp + 0x1c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
add eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.0041f8e6
cmp byte [ebx + 4], 0
mov ebx, dword [ebp - 0x54]
je 0x41f7d2
push ebx
push dword [ebp - 0x58]
call fcn.0042114c
pop ecx
pop ecx
sub ebx, dword [ebp - 0x58]
push 0
push 0
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x58]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
lea ecx, [ebp - 0x58]
setne bl
call fcn.00413634
mov byte [ebp - 4], 0xf
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x41f80a
test edi, edi
je 0x41f80a
push edi
call eax
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 0x10
mov ecx, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test ecx, ecx
je 0x41f828
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x41f828
push eax
call ecx
mov byte [ebp - 4], 0x11
test esi, esi
je 0x41f837
push esi
call fcn.0041f61d
pop ecx
mov esi, dword [ebp - 0x24]
mov byte [ebp - 4], 0x12
test edi, edi
je 0x41f849
test esi, esi
je 0x41f849
push esi
call edi
lea ecx, [ebp - 0x64]
call fcn.00413634
mov al, bl
call fcn.00422920
ret 0x18