Function at 0x4bb790
Capabilities:
Create new key via cryptacquirecontext
Get file size
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
push SysReAllocStringLen
push eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x40], esi
cmp esi, 0xffffffff
je 0x4bb97f
push ebx
push ebx
push dword [ebp - 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push 0xf0000000
push 0x18
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, eax
test ebx, ebx
jne 0x4bb822
push 0xf0000000
push 1
push eax
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, eax
test ebx, ebx
je 0x4bb978
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4bb96d
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x4bb95f
push 0
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
mov ebx, 1
test eax, eax
je 0x4bb8fd
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
nop dword [eax]
mov esi, eax
cmp eax, 0x100000
mov eax, 0x100000
cmova esi, eax
push esi
push edx
push ecx
push 4
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4bb8c8
push 0
push esi
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4bb8ef
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
add edx, esi
mov eax, dword [ebp - 0x34]
adc ecx, 0
mov dword [ebp - 0x38], edx
sub eax, esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], eax
jne 0x4bb890
push dword [ebp - 0x28]
jmp 0x4bb8fe
push dword [ebp - 0x28]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
call eax
jmp 0x4bb961
push esi
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x20
push eax
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push 2
push dword [ebp - 0x2c]
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4bb961
xor esi, esi
cmp dword [ebp - 0x28], esi
jbe 0x4bb961
nop word [eax + eax]
movzx eax, byte [ebp + esi - 0x24]
push eax
push 0x4fc650
push edi
call fcn.00413e00
inc esi
add esp, 0xc
add edi, 4
cmp esi, dword [ebp - 0x28]
jb 0x4bb940
jmp 0x4bb961
xor ebx, ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov esi, dword [ebp - 0x40]
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
test ebx, ebx
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.004c3287
mov esp, ebp
pop ebp
ret