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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5176a5
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x580b30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov esi, ecx
lea eax, [esi + 0x28]
mov dword [ebp - 0x40], edi
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x4c], eax
mov dword [eax + 0x10], edi
jb 0x4651e6
mov eax, dword [eax]
mov byte [eax], 0
mov dword [ebp - 0xf8], 0x534e40
mov dword [ebp - 0xe8], 0x537b70
mov dword [ebp - 0x98], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], edi
mov ebx, 1
push ecx
mov dword [ebp - 0x40], ebx
call fcn.004034a0
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0xf8]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xe0]
push ecx
mov dword [ebp + eax - 0xf8], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.00403fb0
mov dword [ebp - 0xe0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa0], edi
lea ebx, [esi + 0xc]
push ebx
push ecx
lea edx, [ebp - 0xe8]
push str.Start_MD5_checksum_computation_for_file:
mov dword [ebp - 4], 3
push edx
mov dword [ebp - 0x40], ebx
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 8
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0xf8]
call fcn.00402c70
push eax
push 4
mov byte [ebp - 4], 4
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x28], 8
jb 0x4652bd
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0xffffffff
call fcn.00401820
cmp dword [esi + 8], edi
jne 0x4653a2
cmp dword [ebx + 0x14], 8
jb 0x4652e2
mov eax, dword [ebx]
jmp 0x4652e4
mov eax, ebx
push edi
push 0x8000000
push 3
push edi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x4653a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xf8]
push ecx
mov esi, eax
call fcn.00402bd0
push esi
push ecx
push str._with_error:
push ecx
push ebx
push ecx
lea edx, [ebp - 0xe8]
push str.Error_opening_file
push edx
mov dword [ebp - 4], 5
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 0xc
push eax
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0xf8]
call fcn.00402c70
mov byte [ebp - 4], 6
push eax
push 1
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x28], 8
jb 0x46538b
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0xffffffff
call fcn.00401820
jmp 0x4657b3
cmp dword [esi], edi
jne 0x465408
push 0xf0000000
push 1
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x465408
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xf8]
push ecx
mov esi, eax
call fcn.00402bd0
push esi
push ecx
lea edx, [ebp - 0xe8]
push str.CryptAcquireContext___failed_with_error:
push edx
mov dword [ebp - 4], 7
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0xf8]
call fcn.00402c70
mov byte [ebp - 4], 8
jmp 0x46536a
mov eax, dword [esi + 4]
lea ebx, [esi + 4]
cmp eax, edi
je 0x46541b
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebx], edi
mov ecx, dword [esi]
push ebx
push edi
push edi
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x46549b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0xf8]
push edx
mov esi, eax
call fcn.00402bd0
push esi
push ecx
lea eax, [ebp - 0xe8]
push str.CryptCreateHash___failed_with_error:
push eax
mov dword [ebp - 4], 9
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0xf8]
call fcn.00402c70
push eax
push 1
mov byte [ebp - 4], 0xa
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x28], 8
jb 0x46538b
mov ecx, dword [ebp - 0x3c]
push ecx
jmp 0x465383
push 0x58ab40
push 0x400
call fcn.004d562e
mov edi, eax
add esp, 8
mov dword [ebp - 0x50], edi
mov dword [ebp - 4], 0xb
test edi, edi
jne 0x46552a
lea edx, [ebp - 0xf8]
push edx
call fcn.00402bd0
lea eax, [ebp - 0xe8]
push str.Allocate_data_buffer_failed
push eax
mov byte [ebp - 4], 0xc
call fcn.004050c0
add esp, 8
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0xf8]
call fcn.00402c70
push eax
push 1
mov byte [ebp - 4], 0xd
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x28], 8
jb 0x465514
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xb
call fcn.00401820
push 0
jmp 0x4657ab
mov eax, dword [esi + 8]
push 0
lea edx, [ebp - 0x44]
push edx
push 0x400
push edi
push eax
mov dword [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46558a
jmp 0x465550
mov eax, dword [ebp - 0x44]
push 0
test eax, eax
je 0x465601
mov ecx, dword [ebx]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x46573e
mov eax, dword [esi + 8]
push 0
lea edx, [ebp - 0x44]
push edx
push 0x400
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x465550
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xf8]
push ecx
mov esi, eax
call fcn.00402bd0
push esi
push ecx
push str.:_ReadFile___failed_with_error:
push ecx
lea edx, [ebp - 0xe8]
push str.NetworkService::MD5Checksum::ComputeChecksum
push edx
mov byte [ebp - 4], 0xe
call fcn.004050c0
add esp, 0xc
push eax
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0xf8]
call fcn.00402c70
mov byte [ebp - 4], 0xf
push eax
push 1
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
lea ecx, [ebp - 0x3c]
call fcn.0040a4f0
lea ecx, [ebp - 0xf8]
jmp 0x4657a1
mov eax, dword [str.0123456789abcdef]
mov edx, dword [0x539b24]
mov ecx, dword [0x539b20]
mov dword [ebp - 0x34], eax
mov eax, dword [0x539b28]
mov dword [ebp - 0x2c], edx
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x30], ecx
mov cl, byte [0x539b2c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 0x24], cl
mov ecx, dword [ebx]
push 2
push ecx
mov dword [ebp - 0x48], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x465695
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0xf8]
push edx
mov esi, eax
call fcn.00402bd0
push esi
push ecx
lea eax, [ebp - 0xe8]
push str.CryptGetHashParam___failed_with_error:
push eax
mov byte [ebp - 4], 0x12
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0xf8]
call fcn.00402c70
mov byte [ebp - 4], 0x13
jmp 0x4655df
xor esi, esi
cmp dword [ebp - 0x48], esi
jbe 0x4656d7
lea esp, [esp]
movzx ecx, byte [ebp + esi - 0x20]
mov ebx, dword [ebp - 0x4c]
shr ecx, 4
movzx edx, byte [ebp + ecx - 0x34]
push edx
push 1
mov ecx, ebx
call fcn.00409a00
movzx eax, byte [ebp + esi - 0x20]
and eax, 0xf
movzx ecx, byte [ebp + eax - 0x34]
push ecx
push 1
mov ecx, ebx
call fcn.00409a00
inc esi
cmp esi, dword [ebp - 0x48]
jb 0x4656a0
lea edx, [ebp - 0x1a0]
push edx
call fcn.00402bd0
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x40]
push eax
push ecx
lea ecx, [ebp - 0x190]
push str.Finished_MD5_checksum_computation_for_file:
push ecx
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 8
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x1a0]
call fcn.00402c70
push eax
push 4
mov byte [ebp - 4], 0x15
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x28], 8
jb 0x46579b
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00469e1a
add esp, 4
jmp 0x46579b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.00402bd0
push esi
push ecx
lea ecx, [ebp - 0x190]
push str.CryptHashData_failed_with_error:
push ecx
mov byte [ebp - 4], 0x10
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x1a0]
call fcn.00402c70
push eax
push 1
mov byte [ebp - 4], 0x11
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
lea ecx, [ebp - 0x3c]
call fcn.0040a4f0
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0xb
call fcn.00401820
push edi
call fcn.004d51c9
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret