Function at 0x40de40
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 0x440450
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x457c70]
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 - 0x22c], ecx
cmp dword [ecx + 0xa58], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x220], eax
jne 0x40de93
xor al, al
jmp 0x40e1e1
push 0x2000
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x215], 0
mov dword [ebp - 4], 0
call fcn.0041e81f
mov edi, eax
push 0x1000
mov dword [ebp - 0x24c], edi
call fcn.0041e81f
add esp, 8
mov ebx, eax
mov dword [ebp - 0x254], ebx
test edi, edi
je 0x40e138
test ebx, ebx
je 0x40e138
push 0x444f28
push esi
call fcn.0041e8b1
mov esi, eax
add esp, 8
mov dword [ebp - 0x234], esi
test esi, esi
jne 0x40df2b
push 0x44ecb8
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], str.Could_not_open_data_file
push eax
call fcn.0041d151
push 0x444f28
push dword [ebp - 0x220]
call fcn.0041e8b1
add esp, 8
mov dword [ebp - 0x224], eax
test eax, eax
jne 0x40df63
push 0x44ecb8
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], str.Could_not_open_signature_file
push eax
call fcn.0041d151
push eax
push 0x1000
push 1
push ebx
call fcn.0041ecc9
push dword [ebp - 0x224]
mov dword [ebp - 0x220], eax
call fcn.0041eade
add esp, 0x14
test eax, eax
je 0x40dfa4
push 0x44ecb8
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], str.Could_not_read_signature_file
push eax
call fcn.0041d151
push dword [ebp - 0x224]
call fcn.0041eab8
add esp, 4
test eax, eax
jne 0x40dfd1
push 0x44ecb8
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], str.Invalid_signature_file
push eax
call fcn.0041d151
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x22c]
push 0
push 0
push 0x8004
push dword [eax + 0xa54]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40e012
push 0x44ecb8
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], str.Could_not_create_hash_object
push eax
call fcn.0041d151
mov ecx, dword [ebp - 0x220]
xor edx, edx
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x228], eax
je 0x40e051
lea eax, [ecx - 1]
add eax, ebx
mov dword [ebp - 0x230], eax
mov al, byte [eax]
mov cl, byte [edx + ebx]
mov byte [edx + ebx], al
inc edx
mov eax, dword [ebp - 0x230]
mov byte [eax], cl
dec eax
mov dword [ebp - 0x230], eax
cmp edx, dword [ebp - 0x228]
jb 0x40e031
push esi
call fcn.0041eab8
add esp, 4
test eax, eax
jne 0x40e0ce
push esi
push 0x2000
push 1
push edi
call fcn.0041ecc9
push esi
mov dword [ebp - 0x228], eax
call fcn.0041eade
add esp, 0x14
test eax, eax
je 0x40e09a
push 0x44ecb8
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], str.Error_reading_data_file
push eax
call fcn.0041d151
push 0
push dword [ebp - 0x228]
push edi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40e051
push 0x44ecb8
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], str.Error_while_hashing_data
push eax
call fcn.0041d151
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x220]
push 0
push 0
push dword [eax + 0xa58]
push ecx
push ebx
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
je 0x40e102
mov byte [ebp - 0x215], 1
jmp 0x40e190
xor ecx, ecx
movzx eax, word [ecx + str.Bad_update_signature]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x216], ax
test ax, ax
jne 0x40e104
lea eax, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x23c]
push 0x44ecb8
push eax
call fcn.0041d151
push 0x44ecb8
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], str.Could_not_allocate_memory_for_reading_file
push eax
call fcn.0041d151
push 0x10
push str.Auto_Update_Error
push dword [ebp - 0x264]
push dword [0x46346c]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x40e172
ret
test esi, esi
je 0x40e19d
push esi
call fcn.0041ea41
add esp, 4
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40e1b0
push eax
call fcn.0041ea41
add esp, 4
test edi, edi
je 0x40e1bd
push edi
call fcn.0041e7e7
add esp, 4
test ebx, ebx
je 0x40e1ca
push ebx
call fcn.0041e7e7
add esp, 4
cmp dword [ebp - 0x21c], 0
jne 0x40e1db
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.0041cc0e
mov esp, ebp
pop ebp
ret 8