Function at 0x401d10
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43edeb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x107c
call fcn.00426660
mov eax, dword [0x450670]
xor eax, esp
mov dword [esp + 0x1078], eax
push ebx
push esi
push edi
mov eax, dword [0x450670]
xor eax, esp
push eax
lea eax, [esp + 0x1090]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [esp + 0x24], eax
xor eax, eax
cmp dword [esi + 0x18], 0x10
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x1c], 0x14
mov byte [esp + 0x44], 0
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
jb 0x401daf
mov eax, dword [esi + 4]
jmp 0x401db2
lea eax, [esi + 4]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401e44
push esi
push ecx
push 0x446134
push 0xf546b8
call fcn.004074a0
add esp, 0xc
push eax
call fcn.004076d0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403df0
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
test byte [edx + esi + 8], 6
lea eax, [edx + esi]
jne 0x401e1c
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, ebx
jne 0x401e1c
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x401e3d
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x401e35
or eax, 4
push 0
push eax
call fcn.00401700
xor al, al
jmp 0x4020cf
push 0xf0000000
push 1
push edi
push edi
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x401ed1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x446144
push 0xf546b8
call fcn.004074a0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403df0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
test byte [ecx + esi + 8], 6
lea eax, [ecx + esi]
jne 0x401ea5
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x401ea5
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x401e3d
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x401e35
or eax, 4
push 0
push eax
call fcn.00401700
xor al, al
jmp 0x4020cf
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push edi
push edi
push 0x8004
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x401f73
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x446158
push 0xf546b8
call fcn.004074a0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403df0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 8], 6
jne 0x401f43
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x401f43
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x401e3d
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x401e35
or eax, 4
push 0
push eax
call fcn.00401700
xor al, al
jmp 0x4020cf
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea edx, [esp + 0x24]
push edx
push 0x1000
lea eax, [esp + 0x90]
push eax
push ebx
call esi
test eax, eax
je 0x401fdd
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea esp, [esp]
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x401fdd
mov edx, dword [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x8c]
push ecx
push edx
call edi
test eax, eax
je 0x4020f3
push 0
lea eax, [esp + 0x24]
push eax
push 0x1000
lea ecx, [esp + 0x90]
push ecx
push ebx
call esi
test eax, eax
jne 0x401fa0
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x78]
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4020a4
xor edi, edi
cmp dword [esp + 0x1c], edi
jbe 0x40203a
xor esi, esi
jmp 0x402010
movzx edx, byte [esp + edi + 0x70]
push edx
mov eax, 0x29
push str._02x
sub eax, esi
push eax
lea ecx, [esp + esi + 0x50]
push ecx
call fcn.004253e1
inc edi
add esp, 0x10
add esi, 2
cmp edi, dword [esp + 0x1c]
jb 0x402010
lea eax, [esp + 0x44]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402056
sub eax, edx
push eax
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x30]
call fcn.00405000
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x10a4], 0
call fcn.004041c0
cmp dword [esp + 0x40], 0x10
jb 0x40209f
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00408e23
add esp, 4
mov byte [esp + 0x13], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4020ba
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4020cb
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x1090]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1078]
xor ecx, esp
call fcn.00424daa
mov esp, ebp
pop ebp
ret
push 0x44616c
push 0xf546b8
call fcn.004074a0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403df0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], 6
jne 0x402135
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x402135
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4020a4
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x402152
or eax, 4
push 0
push eax
call fcn.00401700
jmp 0x4020a4