Function at 0x4015bc
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421941
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1078
call fcn.00409f50
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1064], 0
mov dword [ebp - 0x1060], 0xffffffff
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x105c], 0x14
mov byte [ebp - 0x58], 0
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x57]
rep stosd dword es:[edi], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
call fcn.00402350
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1060], eax
cmp dword [ebp - 0x1060], 0xffffffff
jne 0x40167a
push 0x402280
mov eax, dword [ebp + 8]
push eax
push 0xe29198
push 0x1542d28
call fcn.00403240
add esp, 8
push eax
call fcn.00403550
add esp, 8
mov ecx, eax
call fcn.00402380
xor al, al
jmp 0x40188d
push 0xf0000000
push 1
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4016c5
mov edx, dword [ebp - 0x1060]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x402280
push 0xe291a8
push 0x1542d28
call fcn.00403240
add esp, 8
mov ecx, eax
call fcn.00402380
xor al, al
jmp 0x40188d
lea eax, [ebp - 0x1064]
push eax
push 0
push 0
push 0x8004
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x401721
mov edx, dword [ebp - 0x1060]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x402280
push 0xe291bc
push 0x1542d28
call fcn.00403240
add esp, 8
mov ecx, eax
call fcn.00402380
xor al, al
jmp 0x40188d
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x1000
lea edx, [ebp - 0x1058]
push edx
mov eax, dword [ebp - 0x1060]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40178d
cmp dword [ebp - 0x14], 0
jbe 0x40178d
push 0
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1058]
push edx
mov eax, dword [ebp - 0x1064]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40178b
push 0x402280
push 0xe291d0
push 0x1542d28
call fcn.00403240
add esp, 8
mov ecx, eax
call fcn.00402380
jmp 0x401855
jmp 0x401721
push 0
lea ecx, [ebp - 0x105c]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 2
mov eax, dword [ebp - 0x1064]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401855
mov dword [ebp - 0x1068], 0
jmp 0x4017cc
mov ecx, dword [ebp - 0x1068]
add ecx, 1
mov dword [ebp - 0x1068], ecx
mov edx, dword [ebp - 0x1068]
cmp edx, dword [ebp - 0x105c]
jae 0x401801
mov eax, dword [ebp - 0x1068]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x2c]
push ecx
push 0xe291e0
mov edx, dword [ebp - 0x1068]
lea eax, [ebp + edx*2 - 0x58]
push eax
call fcn.00409ef5
add esp, 0xc
jmp 0x4017bd
lea ecx, [ebp - 0x107c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x1078]
call fcn.004022e0
mov dword [ebp - 0x1080], eax
mov eax, dword [ebp - 0x1080]
mov dword [ebp - 0x1084], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1084]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00402330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1078]
call fcn.00402310
mov byte [ebp - 0x10], 1
mov edx, dword [ebp - 0x1060]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1064], 0
je 0x401878
mov eax, dword [ebp - 0x1064]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x18], 0
je 0x40188a
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret