Function at 0x51b030
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x579f11
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x5e95e0]
xor eax, esp
mov dword [esp + 0x98], eax
push ebp
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov eax, dword [esp + 0xbc]
mov eax, dword [eax]
mov edi, ecx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0x10
call fcn.00426b80
mov dword [esp + 0xb4], 0
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x51b0b8
push esi
lea ecx, [esp + 0x14]
call fcn.00426df0
mov edx, dword [esp + 0x10]
push 0xf0000020
push 1
push 0
push 0
lea eax, [esp + 0x28]
push eax
mov ebp, edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x51b20f
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x51b1fe
mov eax, dword [esp + 0x14]
push 0
push esi
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x51b1ed
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
lea ebp, [edi + 4]
mov ecx, ebp
je 0x51b1e1
call fcn.00402160
lea esi, [esp + 0x1c]
call fcn.0046cc40
mov byte [esp + 0xb4], 1
xor esi, esi
mov edi, edi
movzx ecx, byte [esp + esi + 0x28]
push ecx
push str._02x
lea edi, [esp + 0x24]
call fcn.004d4d10
mov edi, dword [esp + 0x24]
add esp, 8
push edi
lea ecx, [esp + 0x28]
call fcn.00450b00
mov byte [esp + 0xb4], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebp
call fcn.004121c0
mov byte [esp + 0xb4], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51b1b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 1
cmp esi, 0x10
jl 0x51b150
lea eax, [edi - 0x10]
mov byte [esp + 0xb4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51b220
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x51b220
push str.Error_getting_hash_param
call fcn.004021d0
jmp 0x51b220
lea ebp, [edi + 4]
push str.Error_hashing_data
mov ecx, ebp
call fcn.004021d0
jmp 0x51b220
lea ebp, [edi + 4]
push str.Error_creating_hash
mov ecx, ebp
call fcn.004021d0
jmp 0x51b220
push 0x17
lea ebp, [edi + 4]
push str.Error_acquiring_context
mov ecx, ebp
call fcn.00402250
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 0x18]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x51b244
xor eax, eax
jmp 0x51b25d
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x51b250
sub eax, esi
js 0x51b2c3
cmp eax, dword [edx - 8]
jg 0x51b2c3
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x10]
mov byte [eax + ecx], 0
mov dword [esp + 0xb4], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51b298
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00552101
add esp, 0xa8
ret 4
push 0x80070057
call fcn.00401f70
int3