Function at 0x4214e0
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543e94
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x57906c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x1c], edi
push 0xf0000000
push 0x18
push 0
mov dword [ebp - 0xd8], edi
lea eax, [ebp - 0x18]
push 0
mov dword [ebp - 0xcc], 0
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x421567
push 0x55faaf
mov ecx, edi
call fcn.00407c10
mov dword [ebp - 4], 0
mov dword [ebp - 0xcc], 1
jmp 0x421911
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
sub eax, 0
je 0x42159e
sub eax, 1
je 0x42158f
sub eax, 1
jne 0x4215d4
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x800c
jmp 0x4215ab
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x8003
jmp 0x4215ab
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4215d4
push 0
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x421601
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x55faaf
mov ecx, edi
call fcn.00407c10
mov dword [ebp - 4], 0
mov dword [ebp - 0xcc], 1
jmp 0x421911
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 4
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 4
call esi
test eax, eax
je 0x4215cb
push ecx
push dword [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
call fcn.00421d50
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00408f80
push 0
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebx]
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x421698
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x55faaf
mov ecx, edi
call fcn.00407c10
mov dword [ebp - 0xcc], 1
jmp 0x421905
push 0x98
lea eax, [ebp - 0xc8]
push 0
push eax
call fcn.00516f30
lea eax, [ebp - 0x78]
mov dword [ebp - 0xc8], 0x568ca0
add esp, 0xc
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0x78], vtable.std::ios_base.0
mov byte [ebp - 4], 2
mov dword [ebp - 0x78], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xc8]
push 0
mov dword [ebp - 0xcc], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xcc], eax
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00413a40
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xcc], eax
lea eax, [ebp - 0xc4]
mov ecx, eax
mov dword [ebp - 0xd4], eax
call fcn.004139b0
mov byte [ebp - 4], 7
mov dword [ebp - 0xc4], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
mov esi, dword [ebx]
call fcn.004096f0
mov ebx, eax
cmp esi, dword [ebx]
je 0x421803
nop
mov ecx, dword [ebp - 0xc8]
mov ecx, dword [ecx + 4]
mov byte [ebp + ecx - 0x88], 0x30
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ecx + 4]
lea ecx, [ebp - 0xb4]
mov dword [ebp + eax - 0xa8], 2
mov dword [ebp + eax - 0xa4], 0
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx], eax
lea ecx, [ebp - 0xc8]
movzx eax, byte [esi]
push eax
call fcn.004225a0
inc esi
cmp esi, dword [ebx]
jne 0x4217a0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 4], 0xb
push ecx
mov ecx, edi
call fcn.0040c170
call fcn.00408f80
lea ecx, [ebp - 0xcd]
mov byte [ebp - 0xcd], 0
push ecx
push eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
call fcn.00404410
mov ecx, dword [ebp - 0x88]
add esp, 8
mov dword [ebp - 0xcc], 0x12
test cl, 2
jne 0x42188b
mov eax, dword [ebp - 0xa4]
mov edx, dword [eax]
test edx, edx
je 0x42188b
mov eax, dword [ebp - 0xb4]
cmp edx, dword [ebp - 0x8c]
cmovb edx, dword [ebp - 0x8c]
mov ecx, dword [eax]
sub edx, ecx
push edx
jmp 0x4218b1
test cl, 4
jne 0x4218b9
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax]
test edx, edx
je 0x4218b9
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
sub eax, ecx
add eax, edx
push eax
push ecx
mov ecx, edi
call fcn.004092d0
mov eax, 0x12
mov dword [ebp - 0xcc], eax
and eax, 0xffffffef
mov dword [ebp - 0xcc], eax
mov dword [ebp - 4], 0xa
or eax, 8
mov dword [ebp - 0xcc], eax
and eax, 0xfffffff7
mov dword [ebp - 0xcc], eax
mov dword [ebp - 4], 9
or eax, 1
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc8]
call fcn.00421930
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040c9a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c61ad
mov esp, ebp
pop ebp
ret