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

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0xfa4]
mov eax, 0x1024
call fcn.0040b8c0
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp + 0xfa0], eax
mov eax, dword [ebp + 0xfac]
push ebx
push esi
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xfb8]
push edi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xfc0]
xor ebx, ebx
mov esi, 0x1000
push esi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.00408720
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x80]
stosd dword es:[edi], eax
push 0xf0000040
push dword [ebp + 0xfb0]
stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x43662f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x436619
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x436624
mov ebx, 0x80004005
push ebx
push 0x94
jmp 0x436782
lea eax, [ebp - 0x64]
push eax
push edi
push edi
push dword [ebp + 0xfb4]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x436672
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x43665c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x436667
mov ebx, 0x80004005
push ebx
push 0x9a
jmp 0x436782
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x43669d
xor eax, eax
push eax
cmp dword [ebp - 0x68], eax
je 0x4366d9
push dword [ebp - 0x68]
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x43675d
push 0
lea eax, [ebp - 0x68]
push eax
push esi
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x43667b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4366c3
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x4366ce
mov ebx, 0x80004005
push ebx
push 0xa2
jmp 0x436782
lea eax, [ebp + 0xfbc]
push eax
push dword [ebp - 0x78]
push 2
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x436719
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436706
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x436711
mov ebx, 0x80004005
push ebx
push 0xb4
jmp 0x436782
cmp dword [ebp - 0x74], ebx
je 0x43678c
push 1
push dword [ebp - 0x74]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x43678c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43674a
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x436755
mov ebx, 0x80004005
push ebx
push 0xbb
jmp 0x436782
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436771
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x43677c
mov ebx, 0x80004005
push ebx
push 0xad
push 0x44ccce
call fcn.004315c0
xor esi, esi
cmp dword [ebp - 0x64], esi
je 0x43679c
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x6c], esi
je 0x4367ab
push esi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp + 0xfa0]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00408498
add ebp, 0xfa4
leave
ret 0x18