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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529028
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x60], eax
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov ebx, 8
mov byte [ebp - 0x49], 0
cmp dword [ebp + 0x1c], ebx
jae 0x458eea
lea eax, [ebp + 8]
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x458f29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], ebx
jb 0x458f22
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f287e
add esp, 4
xor al, al
jmp 0x45909f
push 0xf0000000
push 1
push esi
push esi
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x58], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x458f5b
cmp dword [ebp + 0x1c], ebx
jb 0x458f22
mov eax, dword [ebp + 8]
push eax
call fcn.004f287e
add esp, 4
xor al, al
jmp 0x45909f
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
push ecx
push esi
push esi
push 0x8003
push edx
mov dword [ebp - 0x50], esi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x458f43
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x458f95
lea esi, [ebp + 8]
call fcn.00402850
xor al, al
jmp 0x45909f
push esi
call fcn.004f1ede
add esp, 4
push 0
lea ecx, [ebp - 0x5c]
push ecx
push esi
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458f86
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x50]
push 0
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x458f86
push ebx
call fcn.004f391e
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x50]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea ecx, [ebp - 0x54]
push ecx
push 0
push 2
push edx
mov dword [ebp - 0x54], 4
call edi
test eax, eax
je 0x458f86
mov eax, dword [ebp - 0x54]
push eax
call fcn.004f33c3
mov edx, dword [ebp - 0x50]
add esp, 4
push 0
lea ecx, [ebp - 0x54]
push ecx
mov esi, eax
push esi
push 2
push edx
call edi
test eax, eax
je 0x45906c
mov eax, dword [ebp - 0x54]
push eax
push esi
call fcn.004576e0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x45902f
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a4f0
lea ecx, [ebp - 0x2c]
push ecx
lea ebx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004570c0
add esp, 4
mov esi, dword [ebp - 0x60]
mov edi, eax
mov byte [ebp - 4], 2
call fcn.00402120
mov esi, ebx
call fcn.00402850
lea ecx, [ebp - 0x2c]
call fcn.00403c70
mov bl, 1
jmp 0x45906f
mov bl, byte [ebp - 0x49]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x458f86
mov eax, dword [ebp - 0x58]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea esi, [ebp + 8]
test eax, eax
je 0x458f89
call fcn.00402850
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f2889
mov esp, ebp
pop ebp
ret