Function at 0x419540
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e811
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4ac084]
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 - 0x3c], edi
mov dword [ebp - 0x38], edi
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], 0
push eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4195e7
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push 0
test eax, eax
je 0x4195de
push dword [ebp + 8]
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4195f8
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x490710
mov ecx, edi
call fcn.00403ac0
jmp 0x419788
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x38]
push 0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 4
push dword [ebp - 0x2c]
mov dword [ebp - 0x38], 4
call ebx
test eax, eax
je 0x4195d3
push dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
call fcn.00419a90
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x48]
push eax
push esi
push 2
push dword [ebp - 0x2c]
call ebx
test eax, eax
jne 0x41966d
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x490710
mov ecx, edi
call fcn.00403ac0
jmp 0x419780
sub esp, 8
lea ecx, [ebp - 0xe4]
call fcn.00419bd0
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x44]
cmp esi, ebx
je 0x4196f8
mov edi, 0x30
nop dword [eax + eax]
mov eax, dword [ebp - 0xe4]
lea ecx, [ebp - 0xe4]
mov eax, dword [eax + 4]
mov word [ebp + eax - 0xa4], di
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], 2
mov dword [ebp + eax - 0xc0], 0
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0xe4]
movzx eax, byte [esi]
push eax
call fcn.0041a300
inc esi
cmp esi, ebx
jne 0x419690
mov edi, dword [ebp - 0x3c]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00419af0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x419727
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.00403ac0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x419744
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0041d800
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00419b10
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x94], vtable.std::ios_base.0
call fcn.00455ee4
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.0041b360
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.00458d41
mov esp, ebp
pop ebp
ret