Function at 0x44f850
Capabilities:
Create new key via cryptacquirecontext
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
sub esp, 0x55c
mov eax, dword [0x62c140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x62d034]
mov edx, dword [eax + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, 0x62d034
mov dword [ebp - 0x55c], ebx
mov dword [ebp - 0x550], edi
mov dword [ebp - 0x544], esi
mov dword [ebp - 0x540], esi
mov dword [ebp - 0x554], esi
mov dword [ebp - 0x54c], 0x29
mov dword [ebp - 0x548], esi
call edx
add eax, 0x10
mov dword [ebp - 0x538], eax
push 0xfde9
lea eax, [ebp - 0x530]
push ebx
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x534], eax
call fcn.00427130
mov edx, dword [ebp - 0x534]
cmp edx, esi
jne 0x44f8df
xor eax, eax
jmp 0x44f903
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x53c], ecx
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x44f8f0
sub eax, dword [ebp - 0x53c]
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x538]
call fcn.00411ba0
mov eax, dword [ebp - 0x534]
lea edx, [ebp - 0x530]
cmp eax, edx
je 0x44f929
push eax
call fcn.0057f05b
add esp, 4
push 0x400
lea eax, [ebp - 0x430]
push esi
push eax
call fcn.00584f40
push 0x29
call fcn.0057f2a0
push 0x29
push esi
push eax
mov dword [edi], eax
call fcn.00584f40
mov edi, dword [ebp - 0x538]
add esp, 0x1c
cmp dword [edi - 4], 1
jle 0x44f971
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x538]
call fcn.00410ea0
mov edi, dword [ebp - 0x538]
push esi
push 0x8000000
push 3
push esi
push 1
push SQLAllocStmt
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x558], esi
cmp esi, 0xffffffff
jne 0x44f9e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
push str.GetSHA1HashFromFile
push str._s_:_Error_while_opening_file__s_nError_:__d_n
call fcn.0043d500
lea eax, [edi - 0x10]
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44f9cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee81
mov esp, ebp
pop ebp
ret
push 0xf0000000
push 0x18
push 0
push 0
lea ecx, [ebp - 0x544]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x44fa4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.GetSHA1HashFromFile
push str._s_:_CryptAcquireContext_failed_:__d_n
call fcn.0043d500
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44fa3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee81
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x544]
lea ecx, [ebp - 0x540]
push ecx
push 0
push 0
push 0x8004
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x44fab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.GetSHA1HashFromFile
push str._s_:_CryptCreateHash_failed_:__d_n
call fcn.0043d500
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x544]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x44fa2e
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0x548]
push ecx
push 0x400
lea edx, [ebp - 0x430]
push edx
push esi
call ebx
test eax, eax
je 0x44fb87
lea ebx, [ebx]
mov ecx, dword [ebp - 0x548]
test ecx, ecx
je 0x44fb83
push 0
push ecx
mov ecx, dword [ebp - 0x540]
lea eax, [ebp - 0x430]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x44fb27
push 0
lea edx, [ebp - 0x548]
push edx
push 0x400
lea eax, [ebp - 0x430]
push eax
push esi
call ebx
test eax, eax
jne 0x44fae0
jmp 0x44fb87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.GetSHA1HashFromFile
push str._s_:_CryptHashData_failed_:__d_n
call fcn.0043d500
mov ecx, dword [ebp - 0x544]
add esp, 0xc
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [ebp - 0x540]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x538]
call fcn.00402790
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee81
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x44fbba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.GetSHA1HashFromFile
push str._s_:_ReadFile_failed_:__d_n
call fcn.0043d500
mov eax, dword [ebp - 0x544]
add esp, 0xc
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x540]
push ecx
jmp 0x44fb58
mov ecx, dword [ebp - 0x540]
push 0
lea edx, [ebp - 0x54c]
push edx
lea eax, [ebp - 0x30]
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x44fd19
mov edx, dword [0x62d034]
mov eax, dword [edx + 0xc]
mov ecx, 0x62d034
call eax
xor ebx, ebx
lea edi, [eax + 0x10]
mov dword [ebp - 0x53c], edi
cmp dword [ebp - 0x54c], ebx
jbe 0x44fc7f
movzx ecx, byte [ebp + ebx - 0x30]
push ecx
lea edx, [ebp - 0x53c]
push str._02X
push edx
call fcn.00402d20
mov eax, dword [ebp - 0x53c]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x44fc3c
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x53c]
call fcn.004028c0
mov eax, dword [ebp - 0x53c]
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x44fc40
sub eax, ecx
mov esi, ecx
mov ecx, dword [ebp - 0x550]
mov edi, dword [ecx]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x44fc54
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
cmp ebx, dword [ebp - 0x54c]
jb 0x44fc01
mov esi, dword [ebp - 0x558]
mov edi, dword [ebp - 0x53c]
mov edx, dword [ebp - 0x550]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x55c]
push eax
push ecx
push str.GetSHA1HashFromFile
push str._s_:_SHA1_hash_of_File__s_is_:__s_n
call fcn.0043d390
lea eax, [edi - 0x10]
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44fcbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x538]
mov ecx, dword [ebp - 0x540]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0x544]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44fd02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x554]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057ee81
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSHA1HashFromFile
push str._s_:_CryptGetHashParam_failed_:__d_n
mov dword [ebp - 0x554], eax
call fcn.0043d500
add esp, 0xc
jmp 0x44fcc3