Function at 0x40a8d0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
sub esp, 0x830
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x82c], eax
mov eax, dword [esp + 0x834]
push ebx
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ebx
test eax, eax
je 0x40ab4d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
je 0x40a934
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40a968
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40aac8
push 8
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
je 0x40aac8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40aac8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40ab41
call fcn.00407be0
test eax, eax
je 0x40a9a0
lea esi, [esp + 0x18]
call fcn.00408b80
test eax, eax
je 0x40a9a0
mov ebx, 1
push 0x47a688
push edi
call fcn.0043fb0d
add esp, 8
mov edi, eax
test ebx, ebx
je 0x40a9bd
mov esi, dword [esp + 0x18]
call fcn.00408bc0
test edi, edi
je 0x40aab0
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
xor esi, esi
lea ecx, [ecx]
push edi
push 0x800
lea eax, [esp + 0x40]
push 1
push eax
call fcn.0043fe17
add esp, 0x10
test eax, eax
je 0x40aa24
mov edx, dword [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
add esi, eax
call ebx
test eax, eax
jne 0x40a9d0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0xc]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call fcn.0043fedf
add esp, 4
jmp 0x40aac8
push edi
call fcn.0043fe34
add esp, 4
test eax, eax
jne 0x40aa54
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call fcn.0043fedf
add esp, 4
jmp 0x40aac8
push edi
call fcn.0043fedf
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
add esp, 4
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
mov edi, 4
push edi
push eax
mov dword [esp + 0x28], edi
call esi
test eax, eax
je 0x40ab36
cmp dword [esp + 0x1c], 0x10
jne 0x40ab36
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push 2
push eax
mov dword [esp + 0x28], edi
call esi
test eax, eax
jne 0x40aae2
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 0xc]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x82c]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x830
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [eax], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
pop esi
mov dword [eax + 8], edx
pop edi
mov dword [eax + 0xc], ecx
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x82c]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x830
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0xc]
push 0
push eax
jmp 0x40aac2
mov ecx, dword [esp + 0x834]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0043e4c7
add esp, 0x830
ret