Function at 0x40a630
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, 0x854
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x850], eax
push edi
mov edi, ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
test ebx, ebx
je 0x40a8b3
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x18]
push eax
call esi
test eax, eax
je 0x40a684
mov eax, dword [esp + 8]
test eax, eax
jne 0x40a6b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40a7dc
push 8
push 1
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
je 0x40a7dc
mov eax, dword [esp + 8]
test eax, eax
je 0x40a7dc
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40a7cf
push 0x47a688
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.0043fb24
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test ecx, ecx
jne 0x40a6f8
test eax, eax
jne 0x40a7c4
push ecx
push 0x800
lea ecx, [esp + 0x60]
push 1
push ecx
call fcn.0043fe17
add esp, 0x10
test eax, eax
je 0x40a74b
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 1
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x60]
push edx
push eax
call esi
test eax, eax
je 0x40a889
mov ecx, dword [esp + 0x10]
push ecx
push 0x800
lea edx, [esp + 0x60]
push 1
push edx
call fcn.0043fe17
add esp, 0x10
test eax, eax
jne 0x40a717
mov eax, dword [esp + 0x10]
push eax
call fcn.0043fe34
add esp, 4
test eax, eax
je 0x40a889
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0043fedf
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
add esp, 4
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
mov edi, 4
push edi
push ecx
mov dword [esp + 0x28], edi
call esi
test eax, eax
je 0x40a889
cmp dword [esp + 0x18], 0x10
jne 0x40a889
mov ecx, dword [esp + 0xc]
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], edi
push eax
mov edi, 2
push edi
push ecx
call esi
test eax, eax
jne 0x40a7f5
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x850]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x854
ret
push 0x208
push 0
push ebx
call fcn.004416b0
xor esi, esi
add esp, 0xc
mov dword [esp + 0x14], 0x103
cmp dword [esp + 0x18], esi
jbe 0x40a855
movzx ecx, byte [esp + esi + 0x1c]
push ecx
push 0x479788
lea edx, [esp + 0x38]
push 0x14
push edx
call fcn.0043ed50
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
push ecx
push 0x104
push ebx
call fcn.0043e4d6
add esp, 0x20
cmp dword [esp + 0x14], edi
jbe 0x40a855
sub dword [esp + 0x14], edi
inc esi
cmp esi, dword [esp + 0x18]
jb 0x40a815
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x850]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x854
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x10]
push eax
call fcn.0043fedf
add esp, 4
jmp 0x40a7dc
mov ecx, dword [esp + 0x854]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0043e4c7
add esp, 0x854
ret