Function at 0x5059e0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6592b5
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
call fcn.005468f0
mov eax, dword [0x6dc0b8]
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 edi, ecx
mov dword [ebp - 0x104c], edi
mov dword [ebp - 0x1044], edi
mov dword [ebp - 0x1050], edi
mov dword [ebp - 0x1048], 0
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
push 0x1000
push eax
mov dword [ebp - 0x1040], eax
mov dword [ebp - 0x103c], eax
lea eax, [ebp - 0x1020]
push eax
mov dword [ebp - 0x1048], 1
call fcn.005e0dd0
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 0x1040]
add esp, 0xc
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push eax
call esi
test eax, eax
jne 0x505ab0
push eax
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea eax, [ebp - 0x1040]
push eax
call esi
test eax, eax
je 0x505c32
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x6b9d50
cmovae eax, dword [ebp + 8]
push eax
call fcn.005f4af4
mov esi, eax
add esp, 8
test esi, esi
je 0x505c24
lea eax, [ebp - 0x103c]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x1040]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edi, 0x100
nop word [eax + eax]
push esi
call fcn.005f3ed6
add esp, 4
test eax, eax
jne 0x505b59
nop dword [eax]
push 0x1000
lea eax, [ebp - 0x1020]
push 0
push eax
call fcn.005e0dd0
push esi
push 0x1000
lea eax, [ebp - 0x1020]
push 1
push eax
call fcn.005f45d2
add esp, 0x1c
push 0
push eax
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x103c]
call ebx
push esi
call fcn.005f3ed6
add esp, 4
test eax, eax
je 0x505b10
sub edi, 1
jne 0x505b00
push esi
call fcn.005f0691
add esp, 4
mov dword [ebp - 0x1044], 0x10
lea eax, [ebp - 0x1044]
mov byte [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x17], edi
movq qword [ebp - 0x1f], xmm0
push edi
push eax
lea eax, [ebp - 0x20]
mov word [ebp - 0x13], di
push eax
push 2
push dword [ebp - 0x103c]
mov byte [ebp - 0x11], 0
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x103c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ecx
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1038]
call fcn.005058f0
add esp, 4
mov esi, eax
mov edi, dword [ebp - 0x104c]
cmp edi, esi
je 0x505c06
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x505bdf
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00416870
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x505bf7
mov eax, dword [edi]
jmp 0x505bf9
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push esi
call fcn.004155f0
mov eax, dword [ebp - 0x1024]
cmp eax, 8
jb 0x505c24
inc eax
lea ecx, [ebp - 0x1038]
push eax
push dword [ebp - 0x1038]
call fcn.00416870
push 0
push dword [ebp - 0x1040]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x505c47
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00416870
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.00545b50
mov esp, ebp
pop ebp
ret