Function at 0x4131b4
Capabilities:
Get file size
Hash data via wincrypt
Read file on windows

Disassembly:
push 0x558
mov eax, 0x42c810
call fcn.00417af6
mov eax, dword [ebp + 8]
mov esi, str.0123456789abcdef
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x544], ecx
mov ecx, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x554], ecx
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x538], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x53c], eax
mov dword [ebp - 0x534], ecx
mov dword [ebp - 0x540], ebx
mov byte [ebp - 0x52d], 1
mov dword [ebp - 0x548], ebx
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x564], ebx
mov dword [ebp - 0x560], ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 8], ebx
jne 0x41324f
push 0xc
call fcn.004159ed
pop ecx
cmp eax, ebx
je 0x413239
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x41323b
xor eax, eax
mov ecx, dword [ebp - 0x53c]
mov dword [ecx + 8], eax
call fcn.00412f9a
mov eax, dword [ebp - 0x53c]
cmp dword [eax + 4], ebx
jne 0x41329b
push 0x14
call fcn.004159ed
pop ecx
cmp eax, ebx
je 0x413270
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
jmp 0x413272
xor eax, eax
mov ecx, dword [ebp - 0x53c]
mov dword [ecx + 4], eax
call fcn.00412f2b
test al, al
jne 0x413295
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x45f
jmp 0x413516
mov eax, dword [ebp - 0x53c]
mov eax, dword [eax + 4]
push 0xf0000000
push 0x18
push ebx
push ebx
lea ecx, [ebp - 0x540]
push ecx
call dword [eax + 4]
cmp eax, 0x80090016
jne 0x4132e6
mov eax, dword [ebp - 0x53c]
mov eax, dword [eax + 4]
push 8
push 0x18
push ebx
push ebx
lea ecx, [ebp - 0x540]
push ecx
call dword [eax + 4]
test eax, eax
jne 0x4132e6
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x47c
jmp 0x413516
mov edi, dword [ebp - 0x53c]
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x548]
push ecx
push ebx
push ebx
push 0x800c
push dword [ebp - 0x540]
call dword [eax + 8]
test eax, eax
je 0x41350a
mov eax, dword [edi + 8]
mov dword [ebp - 0x550], ebx
cmp eax, ebx
je 0x41333f
cmp byte [ebp + 0x18], bl
je 0x41333f
lea ecx, [ebp - 0x550]
push ecx
call dword [eax + 4]
test eax, eax
jne 0x41333f
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x485
jmp 0x413516
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x544]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x4133a2
cmp byte [ebp + 0x18], bl
je 0x4133a2
push dword [ebp - 0x550]
call dword [eax + 8]
test eax, eax
jne 0x4133a2
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x486
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x534]
push esi
mov dword [ecx], eax
mov byte [ebp - 0x52d], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41352a
cmp esi, 0xffffffff
jne 0x4133b8
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x47f
jmp 0x413516
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x55c], eax
cmp eax, ebx
jne 0x4133e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x480
jmp 0x413516
xor edi, edi
cmp eax, ebx
jbe 0x413439
push ebx
lea eax, [ebp - 0x544]
push eax
push 0x400
lea eax, [ebp - 0x52c]
push eax
push esi
mov dword [ebp - 0x544], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413439
add edi, dword [ebp - 0x544]
push ebx
push dword [ebp - 0x544]
lea eax, [ebp - 0x52c]
push eax
push dword [ebp - 0x548]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41347c
cmp edi, dword [ebp - 0x55c]
jb 0x4133e8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop eax
push ebx
lea ecx, [ebp - 0x558]
push ecx
lea ecx, [ebp - 0x54c]
push ecx
push eax
push dword [ebp - 0x548]
mov dword [ebp - 0x558], eax
call esi
test eax, eax
jne 0x413494
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x482
jmp 0x413516
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x47e
jmp 0x413516
push ebx
lea eax, [ebp - 0x54c]
push eax
lea eax, [ebp - 0x12c]
push eax
push 2
push dword [ebp - 0x548]
call esi
test eax, eax
jne 0x4134bf
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x483
jmp 0x413516
xor esi, esi
xor ecx, ecx
cmp dword [ebp - 0x54c], ebx
jbe 0x4134ff
cmp esi, 0x40
jae 0x4134f6
movzx eax, byte [ebp + ecx - 0x12c]
mov edi, dword [ebp - 0x554]
mov edx, eax
shr edx, 4
mov dl, byte [ebp + edx - 0x28]
mov byte [edi + esi], dl
and eax, 0xf
mov al, byte [ebp + eax - 0x28]
inc esi
mov byte [edi + esi], al
inc esi
inc ecx
cmp ecx, dword [ebp - 0x54c]
jb 0x4134cb
mov eax, dword [ebp - 0x554]
mov byte [eax + esi], bl
jmp 0x41352a
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x47d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x534]
mov dword [ecx], eax
mov byte [ebp - 0x52d], bl
cmp dword [ebp - 0x540], ebx
je 0x41353f
push ebx
push dword [ebp - 0x540]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x53c]
mov esi, dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, ebx
je 0x41355f
push dword [esi]
call edi
push esi
mov dword [esi], ebx
call fcn.0041588a
pop ecx
mov eax, dword [ebp - 0x53c]
mov esi, dword [eax + 8]
mov dword [eax + 4], ebx
cmp esi, ebx
je 0x413582
push dword [esi]
call edi
push esi
mov dword [esi], ebx
call fcn.0041588a
mov eax, dword [ebp - 0x53c]
pop ecx
or dword [ebp - 4], 0xffffffff
mov dword [eax + 8], ebx
lea eax, [ebp - 0x564]
call fcn.00412b5b
mov al, byte [ebp - 0x52d]
call fcn.00417b79
ret 0x14