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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a050
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x458
mov eax, dword [0x452020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebx + 0xc]
mov eax, ecx
mov esi, dword [ebx + 8]
mov dword [ebp - 0x450], ecx
cmp dword [ecx + 0x14], 0x10
jb 0x4046e9
mov eax, dword [ecx]
mov dword [ecx + 0x10], 0
mov byte [eax], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4046fd
mov eax, dword [esi]
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x44c], eax
cmp eax, 0xffffffff
jne 0x40474c
add edi, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
jb 0x404732
mov esi, dword [esi]
push eax
push esi
push str.CDriverInstaller::CalcMD5OfFile__:_Error_opening_file___File:___S___ErrorCode:___d__
push 0xc8
push edi
call fcn.00407d80
add esp, 0x14
jmp 0x4048d0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40479a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDriverInstaller::CalcMD5OfFile__:_CryptAcquireContext_failed:_ErrorCode:___d__
lea eax, [edi + 0xc]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
push dword [ebp - 0x44c]
jmp 0x4048ca
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x404800
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDriverInstaller::CalcMD5OfFile__:_CryptAcquireContext_failed:_ErrorCode:___d__
lea eax, [edi + 0xc]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x4048d0
push 0x400
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0041f370
mov esi, dword [ebp - 0x44c]
lea eax, [ebp - 0x440]
add esp, 0xc
mov dword [ebp - 0x440], 0
push 0
push eax
push 0x400
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404892
mov eax, dword [ebp - 0x440]
push 0
test eax, eax
je 0x404900
push eax
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4048f2
push 0
lea eax, [ebp - 0x440]
push eax
push 0x400
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404846
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDriverInstaller::CalcMD5OfFile__:_ReadFile_failed:_ErrorCode:___d__
lea eax, [edi + 0xc]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
push 0
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041d1ec
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDriverInstaller::CalcMD5OfFile__:_CryptHashData_failed:_ErrorCode:___d__
jmp 0x40489e
lea eax, [ebp - 0x444]
mov dword [ebp - 0x444], 0x10
push eax
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push 2
push dword [ebp - 0x430]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x404b43
xorps xmm0, xmm0
mov dword [ebp - 0x434], 0
movq qword [ebp - 0x43c], xmm0
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x434], esi
xor edi, edi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x444], edi
jbe 0x4049f1
movzx eax, byte [ebp + edi - 0x24]
shr eax, 4
add eax, str.0123456789abcdef
cmp ecx, esi
je 0x404990
mov al, byte [eax]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x438], ecx
jmp 0x4049a9
push eax
push ecx
lea ecx, [ebp - 0x43c]
call fcn.00405c20
mov esi, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x438]
movzx eax, byte [ebp + edi - 0x24]
and eax, 0xf
add eax, str.0123456789abcdef
cmp ecx, esi
je 0x4049c7
mov al, byte [eax]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x438], ecx
jmp 0x4049e0
push eax
push ecx
lea ecx, [ebp - 0x43c]
call fcn.00405c20
mov esi, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x438]
inc edi
cmp edi, dword [ebp - 0x444]
jb 0x404972
mov edi, dword [ebp - 0x43c]
jmp 0x4049f3
xor edi, edi
mov byte [ebp - 0x445], 0
cmp ecx, esi
je 0x404a0a
mov byte [ecx], 0
inc ecx
mov dword [ebp - 0x438], ecx
jmp 0x404a29
lea eax, [ebp - 0x445]
push eax
push ecx
lea ecx, [ebp - 0x43c]
call fcn.00405c20
mov esi, dword [ebp - 0x434]
mov edi, dword [ebp - 0x43c]
mov ecx, edi
mov dword [ebp - 0x458], 0
xorps xmm0, xmm0
mov dword [ebp - 0x454], 0
movups xmmword [ebp - 0x468], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404a50
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x468]
call fcn.004058a0
mov eax, dword [ebp - 0x450]
lea ecx, [ebp - 0x468]
cmp eax, ecx
je 0x404ae1
mov ecx, dword [eax + 0x14]
cmp ecx, 0x10
jb 0x404aaf
mov eax, dword [eax]
inc ecx
cmp ecx, 0x1000
jb 0x404a9f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b65
mov eax, edx
push ecx
push eax
call fcn.0041d595
mov eax, dword [ebp - 0x450]
add esp, 8
movups xmm0, xmmword [ebp - 0x468]
mov byte [ebp - 0x468], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x458]
movq qword [eax + 0x10], xmm0
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0xf
lea ecx, [ebp - 0x468]
call fcn.00405200
test edi, edi
je 0x404b16
sub esi, edi
mov eax, edi
cmp esi, 0x1000
jb 0x404b0c
mov edi, dword [eax - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b65
push esi
push edi
call fcn.0041d595
add esp, 8
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4048d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDriverInstaller::CalcMD5OfFile__:_CryptGetHashParam_failed:_ErrorCode:___d__
lea eax, [edi + 0xc]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
jmp 0x4048c9
call fcn.004268a9
int3