Function at 0x437c27
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0042ef30
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x101c], eax
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
mov esi, 0x1000
push esi
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1004]
push ebx
push eax
mov dword [ebp - 0x1010], ebx
mov dword [ebp - 0x1008], ebx
mov dword [ebp - 0x100c], ebx
call fcn.004284a0
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x1024]
stosd dword es:[edi], eax
push 0xf0000040
push dword [ebp + 0xc]
stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x437cd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x437cc1
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x437ccc
mov ebx, 0x80004005
push ebx
push 0x91
jmp 0x437e54
lea eax, [ebp - 0x1008]
push eax
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x437d1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x437d07
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x437d12
mov ebx, 0x80004005
push ebx
push 0x97
jmp 0x437e54
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x437d54
xor eax, eax
push eax
cmp dword [ebp - 0x100c], eax
je 0x437d99
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x437e2f
push 0
lea eax, [ebp - 0x100c]
push eax
push esi
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1014]
call edi
test eax, eax
jne 0x437d26
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x437d83
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x437d8e
mov ebx, 0x80004005
push ebx
push 0x9f
jmp 0x437e54
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x101c]
push 2
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x437ddc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x437dc9
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x437dd4
mov ebx, 0x80004005
push ebx
push 0xb1
jmp 0x437e54
cmp dword [ebp - 0x1018], ebx
je 0x437e5e
push 1
push dword [ebp - 0x1018]
push dword [ebp - 0x1020]
push dword [ebp - 0x1024]
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x437e5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x437e1c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x437e27
mov ebx, 0x80004005
push ebx
push 0xb8
jmp 0x437e54
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x437e43
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x437e4e
mov ebx, 0x80004005
push ebx
push 0xaa
push str.cryputil.cpp
call fcn.00432f68
xor esi, esi
cmp dword [ebp - 0x1008], esi
je 0x437e74
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x1010], esi
je 0x437e89
push esi
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0042851a
leave
ret 0x18