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

Disassembly:
push 0xffffffffffffffff
push 0x449650
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x460770]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x4c]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
jne 0x408b2b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x408b15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0xf0000000
push 1
push ebx
push ebx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x408b7e
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x408b15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 0x8003
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x408af4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebp
je 0x408af4
push edi
call fcn.004141c0
add esp, 4
push ebx
lea ecx, [esp + 0x28]
push ecx
push edi
mov ebp, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408bf0
lea ecx, [esp + 0x38]
call fcn.0040ea80
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push ebx
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x408bd1
push ebp
call fcn.004141cb
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push 2
push edx
mov dword [esp + 0x28], 4
call esi
test eax, eax
je 0x408bd1
mov eax, dword [esp + 0x14]
push eax
call fcn.00432c3a
mov edx, dword [esp + 0x1c]
add esp, 4
push ebx
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
push edi
push 2
push edx
call esi
test eax, eax
je 0x408cbc
xor esi, esi
cmp dword [esp + 0x14], ebx
jbe 0x408cbc
jmp 0x408c70
push 0x4511ab
lea ecx, [esp + 0x20]
call fcn.00401cb0
mov byte [esp + 0x30], 1
movzx eax, byte [esi + edi]
push eax
lea ecx, [esp + 0x20]
push str._02x
push ecx
call fcn.00401a80
mov ecx, dword [esp + 0x48]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
call fcn.0040a470
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.0040ea80
inc esi
cmp esi, dword [esp + 0x14]
jb 0x408c70
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x408bd1
mov ecx, dword [esp + 0x20]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x408bd1
push edi
call fcn.00432b1d
add esp, 4
lea ecx, [esp + 0x38]
call fcn.0040ea80
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret