Function at 0x41871a
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov eax, 0x49906f
call fcn.00497330
sub esp, 0x500
push ebx
push esi
push edi
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov esi, ecx
mov dword [ebp - 0x64], esi
cmp edi, 0xffffffff
jne 0x4187db
xor edx, edx
xor ecx, ecx
call fcn.0040c8b0
mov dword [ebp - 0x30], 0x7b0
mov dword [ebp - 0x2c], 0xd
mov dword [ebp - 0x28], str.C:BooCodeOffergateMultiSetup_ObfuscatedoglibOGLiboglibutils_system_utils.cpp
mov dword [ebp - 0x24], str.ReplacementFor_GetMD5HashOfFile
mov dword [ebp - 0x60], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
push 0xf
pop edi
push 0x4b411d
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], edi
mov byte [ebp - 0x60], bl
call fcn.00405c0c
mov dword [ebp - 4], 1
mov dword [ebp - 0x48], ebx
push str.Cannot_calculate_hash:_wrong_file_handle
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edi
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 1
call fcn.00405c0c
push ecx
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040c966
lea ecx, [ebp - 0x48]
call fcn.00403b90
lea ecx, [ebp - 0x60]
call fcn.00403b90
mov dword [esi], ebx
mov dword [esi + 0x14], edi
jmp 0x418886
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4187fc
mov dword [esi], ebx
jmp 0x41887f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push ebx
test eax, eax
jne 0x418825
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], ebx
jmp 0x41887f
mov dword [ebp - 0x18], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x418851
cmp dword [ebp - 0x18], 0
je 0x4188b5
push 0
push dword [ebp - 0x18]
lea eax, [ebp - 0x50c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41889c
push 0
lea eax, [ebp - 0x18]
push eax
push 0x400
lea eax, [ebp - 0x50c]
push eax
push edi
call ebx
test eax, eax
jne 0x418830
xor ebx, ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [esi], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
xor ebx, ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [esi], ebx
jmp 0x41887f
xor ebx, ebx
mov dword [ebp - 0x1c], 0x10
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x74]
push eax
push 2
pop edi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x418a2f
mov dword [ebp - 0x10c], 0x4b5328
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0xbc], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push ebx
push ebx
lea eax, [ebp - 0x108]
mov dword [ebp - 4], 9
push eax
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x20], edi
call fcn.00419bf7
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x10c], 0x4b5330
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x110], eax
lea ecx, [ebp - 0x108]
call fcn.0041a4ca
mov dword [ebp - 0x108], 0x4b5334
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], 4
mov dword [ebp - 4], 0xb
lea edi, [ebp - 0x74]
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x10c]
mov bl, byte [edi]
mov eax, dword [eax + 4]
mov byte [ebp + eax - 0xcc], 0x30
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + 4]
and dword [ebp + eax - 0xe8], 0
mov dword [ebp + eax - 0xec], 2
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + 4]
add eax, ecx
push eax
call fcn.0041b5e9
pop ecx
movzx eax, bl
lea ecx, [ebp - 0x10c]
push eax
call fcn.00419266
inc edi
lea eax, [ebp - 0x64]
cmp edi, eax
jne 0x418983
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
lea ecx, [ebp - 0x108]
call fcn.00419b58
lea ecx, [ebp - 0xbc]
call fcn.0041920c
lea eax, [ebp - 0xbc]
mov dword [ebp - 4], 0xc
push eax
mov dword [ebp - 0xbc], vtable.std::ios_base.0
call fcn.0046e7bf
pop ecx
jmp 0x41888b
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], ebx
jmp 0x41887f