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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x48e300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0xc], ecx
movq xmm0, qword [0x481ca8]
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0x54], xmm0
movq xmm0, qword [0x481cb0]
movq qword [ebp - 0x4c], xmm0
movq xmm0, qword [0x481cb8]
mov dword [ebp - 0x4c0], eax
movzx eax, word [0x481cc8]
movq qword [ebp - 0x44], xmm0
movq xmm0, qword [0x481cc0]
movq qword [ebp - 0x3c], xmm0
movq xmm0, qword [str.0123456789ABCDEF]
mov word [ebp - 0x34], ax
movzx eax, word [0x481cec]
mov esi, dword [ebp + 0x10]
movq qword [ebp - 0x30], xmm0
movq xmm0, qword [0x481cd4]
mov word [ebp - 0x10], ax
xor eax, eax
movq qword [ebp - 0x28], xmm0
movq xmm0, qword [0x481cdc]
push 0x40
push eax
mov word [ebp - 0xa8], ax
movq qword [ebp - 0x20], xmm0
movq xmm0, qword [0x481ce4]
lea eax, [ebp - 0xa6]
xor edi, edi
push eax
mov dword [ebp - 0x4bc], esi
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4ac], 0
mov dword [ebp - 0x4b4], edi
mov dword [ebp - 0x4b0], edi
movq qword [ebp - 0x18], xmm0
call fcn.00424e10
add esp, 0xc
lea eax, [ebp - 0x4b8]
push 0xf0000000
push 1
push edi
push edi
push eax
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov esi, eax
test esi, esi
je 0x4096ac
lea eax, [ebp - 0x4ac]
push eax
push edi
push edi
push 0x8003
push dword [ebp - 0x4b8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov esi, eax
test esi, esi
je 0x4096ac
push edi
test ebx, ebx
jg 0x409608
push 0x8000000
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4096ac
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0x4b4]
push eax
push 0x400
lea eax, [ebp - 0x4a8]
push eax
push edi
call ebx
test eax, eax
je 0x409622
lea esp, [esp]
mov eax, dword [ebp - 0x4b4]
test eax, eax
je 0x409622
push 0
push eax
lea eax, [ebp - 0x4a8]
push eax
push dword [ebp - 0x4ac]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, eax
test esi, esi
je 0x4096ac
push 0
lea eax, [ebp - 0x4b4]
push eax
push 0x400
lea eax, [ebp - 0x4a8]
push eax
push edi
call ebx
test eax, eax
jne 0x4095c0
jmp 0x409622
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x4ac]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, eax
test esi, esi
je 0x4096ac
push 0
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x64]
push eax
push 2
push dword [ebp - 0x4ac]
mov dword [ebp - 0x4b0], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov esi, eax
test esi, esi
je 0x4096ac
xor eax, eax
xor esi, esi
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
cmp dword [ebp - 0x4b0], eax
jbe 0x4096a7
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
movzx ecx, byte [ebp + esi - 0x64]
mov eax, ecx
and eax, 0xf
shr ecx, 4
movzx eax, word [ebp + eax*2 - 0x30]
push eax
movzx eax, word [ebp + ecx*2 - 0x30]
push eax
lea eax, [ebp - 0xc]
push str._c_c
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc esi
cmp esi, dword [ebp - 0x4b0]
jb 0x409666
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x4bc]
push dword [ebp - 0x4ac]
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x4b8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x4c0]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420548
mov esp, ebp
pop ebp
ret