Function at 0x4011d0
Capabilities:
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, 0x38
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x214
push 0x409380
mov ecx, dword [0x409798]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x40140a
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x401400
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4013f6
push 0
push 0
push 0
push 4
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4013d2
push 0
push 0
push 0
push 6
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4013c8
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x2153474e
jne 0x4013be
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 4], 0
je 0x4013be
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 0x18]
jae 0x4013be
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0x8004
mov edx, dword [0x409798]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4013be
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx + 8]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
add eax, 8
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4013be
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004010c0
add esp, 0x14
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4013a5
push 0
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
je 0x4013a5
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movsx edx, byte [ebp - 0xd]
test edx, edx
je 0x4013f6
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004040fa
mov esp, ebp
pop ebp
ret