Function at 0x4f85a7
Capabilities:
Get file size
Hash data via wincrypt
Initialize hashing via wincrypt
Read file via mapping

Disassembly:
push 0x30
mov eax, 0x608f6d
call fcn.004e1c06
mov eax, ecx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
xor edi, edi
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
mov esi, edi
mov ebx, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x34], edi
and dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 4
test ecx, ecx
jne 0x4f85f8
mov ebx, 0x80070057
jmp 0x4f877a
test edx, edx
jne 0x4f8606
mov ebx, 0x80004003
jmp 0x4f877a
cmp dword [ebp - 0x28], 0
je 0x4f85fc
cmp dword [eax], 0
jne 0x4f8625
mov ecx, eax
call 0x4f89e2
mov ebx, eax
test ebx, ebx
js 0x4f875a
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4f8655
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x4f875a
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, 0xffffffff
je 0x4f863c
push 0
push ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x4f863c
test eax, eax
jne 0x4f869f
mov ebx, 0x80040c14
jmp 0x4f875a
xor eax, eax
push eax
push eax
push eax
push 2
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x4f863c
xor ecx, ecx
mov esi, eax
push ecx
push ecx
push ecx
push 4
push eax
mov dword [ebp - 0x3c], esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4f863c
push 0
push dword [ebp - 0x24]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4f86fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x4f8751
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4f86e5
push dword [ebp - 0x1c]
call fcn.00419537
mov edi, eax
pop ecx
test edi, edi
jne 0x4f872a
mov ebx, 0x8007000e
jmp 0x4f8751
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4f86e5
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, edi
mov ecx, dword [ebp - 0x28]
xor edi, edi
mov dword [ecx], eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x14], 0
je 0x4f876d
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and dword [ebp - 0x14], 0
test esi, esi
je 0x4f877a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push edi
call fcn.004192d3
pop ecx
test esi, esi
je 0x4f878c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4f879a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.004e1bb5
ret 0x10