Function at 0x40edf0
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 0x4b1030
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x23c], ecx
cmp dword [ecx + 0xa58], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x228], eax
jne 0x40ee43
xor al, al
jmp 0x40f0d3
push 0x2000
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0
call fcn.00470c35
mov edi, eax
push 0x1000
mov dword [ebp - 0x234], edi
call fcn.00470c35
add esp, 8
mov dword [ebp - 0x220], eax
test edi, edi
je 0x40f204
test eax, eax
je 0x40f204
push 0x549508
push esi
call fcn.00470e95
mov esi, eax
add esp, 8
mov dword [ebp - 0x240], esi
test esi, esi
je 0x40f0f1
push 0x549508
push dword [ebp - 0x228]
call fcn.00470e95
add esp, 8
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x40f10c
push eax
push 0x1000
push 1
push dword [ebp - 0x220]
call fcn.004713b1
push dword [ebp - 0x21c]
mov dword [ebp - 0x228], eax
call fcn.00471146
add esp, 0x14
test eax, eax
jne 0x40f127
push dword [ebp - 0x21c]
call fcn.0047111a
add esp, 4
test eax, eax
je 0x40f142
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 0x23c]
push 0
push 0
push 0x8004
push dword [eax + 0xa54]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40f15d
mov ecx, dword [ebp - 0x228]
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x238], eax
mov eax, 0
mov dword [ebp - 0x22c], eax
je 0x40efc0
mov edx, dword [ebp - 0x220]
dec ecx
add ecx, edx
mov dword [ebp - 0x230], ecx
nop word [eax + eax]
mov cl, byte [eax + edx]
mov eax, dword [ebp - 0x230]
mov edi, dword [ebp - 0x22c]
mov al, byte [eax]
mov byte [edi + edx], al
mov edi, dword [ebp - 0x230]
mov eax, dword [ebp - 0x22c]
inc eax
mov dword [ebp - 0x22c], eax
mov byte [edi], cl
dec edi
mov dword [ebp - 0x230], edi
mov edi, dword [ebp - 0x234]
cmp eax, dword [ebp - 0x238]
jb 0x40ef80
nop
push esi
call fcn.0047111a
add esp, 4
test eax, eax
jne 0x40f010
push esi
push 0x2000
push 1
push edi
call fcn.004713b1
push esi
mov dword [ebp - 0x238], eax
call fcn.00471146
add esp, 0x14
test eax, eax
jne 0x40f178
push eax
push dword [ebp - 0x238]
push edi
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40f193
jmp 0x40efc0
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x228]
push 0
push 0
push dword [eax + 0xa58]
push ecx
push dword [ebp - 0x220]
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
je 0x40f1ae
mov byte [ebp - 0x215], 1
jmp 0x40f080
push esi
call fcn.004710bd
add esp, 4
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x40f09c
push eax
call fcn.004710bd
add esp, 4
test edi, edi
je 0x40f0a9
push edi
call fcn.00470c1a
add esp, 4
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x40f0bc
push eax
call fcn.00470c1a
add esp, 4
cmp dword [ebp - 0x224], 0
jne 0x40f0cd
push 0
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov al, byte [ebp - 0x215]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret 8
push 0x566b64
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], str.Could_not_open_data_file
push eax
call fcn.004474c3
push 0x566b64
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], str.Could_not_open_signature_file
push eax
call fcn.004474c3
push 0x566b64
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], str.Could_not_read_signature_file
push eax
call fcn.004474c3
push 0x566b64
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], str.Invalid_signature_file
push eax
call fcn.004474c3
push 0x566b64
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], str.Could_not_create_hash_object
push eax
call fcn.004474c3
push 0x566b64
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], str.Error_reading_data_file
push eax
call fcn.004474c3
push 0x566b64
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], str.Error_while_hashing_data
push eax
call fcn.004474c3
movups xmm0, xmmword [str.Bad_update_signature]
mov ax, word [0x549390]
mov word [ebp - 0x1ec], ax
lea eax, [ebp - 0x214]
movups xmmword [ebp - 0x214], xmm0
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x260]
movups xmm0, xmmword [0x549378]
push 0x566b64
push eax
movups xmmword [ebp - 0x204], xmm0
movq xmm0, qword [0x549388]
movq qword [ebp - 0x1f4], xmm0
call fcn.004474c3
push 0x566b64
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], str.Could_not_allocate_memory_for_reading_file
push eax
call fcn.004474c3
int3