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

Disassembly:
sub esp, 0x43c
mov eax, dword [0x416044]
xor eax, esp
mov dword [esp + 0x438], eax
mov edx, dword [0x413bb8]
mov eax, dword [esp + 0x440]
push ebx
push ebp
push edi
xor ebp, ebp
push ebp
push 0x8000000
push 3
mov ebx, ecx
mov ecx, dword [str.0123456789abcdef]
push ebp
mov dword [esp + 0x30], ecx
mov ecx, dword [0x413bbc]
push 1
mov dword [esp + 0x38], edx
mov edx, dword [0x413bc0]
mov dword [esp + 0x3c], ecx
mov cl, byte [0x413bc4]
push 0x80000000
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x48], edx
mov byte [esp + 0x4c], cl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4012d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0040603f
add esp, 0x43c
ret
push esi
push 0xf0000000
push 1
push ebp
push ebp
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x401303
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4014b3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ebp
push ebp
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x401340
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x4014b3
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea eax, [esp + 0x20]
push eax
push 0x400
lea ecx, [esp + 0x54]
push ecx
push edi
call esi
cmp eax, ebp
je 0x4013c8
lea ecx, [ecx]
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x4013c4
mov eax, dword [esp + 0x14]
push ebp
push ecx
lea edx, [esp + 0x50]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x401397
push ebp
lea ecx, [esp + 0x20]
push ecx
push 0x400
lea edx, [esp + 0x54]
push edx
push edi
call esi
cmp eax, ebp
jne 0x401360
jmp 0x4013c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4014b3
cmp eax, ebp
jne 0x4013f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
push ebp
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4014b3
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x40]
push edx
push 2
push eax
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401487
xor esi, esi
cmp dword [esp + 0x18], ebp
jbe 0x401491
cmp esi, ebp
jne 0x401452
movzx eax, byte [esp + 0x38]
mov ecx, eax
and ecx, 0xf
movsx edx, byte [esp + ecx + 0x24]
shr eax, 4
movsx eax, byte [esp + eax + 0x24]
push edx
push eax
push str._c_c
mov ecx, 0x21
call fcn.004010f0
add esp, 0xc
jmp 0x40147e
movzx eax, byte [esp + esi + 0x38]
mov ecx, eax
and ecx, 0xf
movsx edx, byte [esp + ecx + 0x24]
shr eax, 4
movsx eax, byte [esp + eax + 0x24]
push edx
push eax
push ebx
push str._s_c_c
mov ecx, 0x21
call fcn.004010f0
add esp, 0x10
inc esi
cmp esi, dword [esp + 0x18]
jb 0x401421
jmp 0x401491
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 0x10]
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x448]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040603f
add esp, 0x43c
ret