Function at 0x180003420
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x530]
sub rsp, 0x630
mov rax, qword [0x18011e040]
xor rax, rsp
mov qword [rbp + 0x520], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.180004600
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x1800035f8
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x70], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x1800034a1
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.1800055e0
nop
lea rcx, [rbp + 0xa0]
call fcn.1800981e0
nop
lea r8, [rbp + 0x60]
cmp qword [rbp + 0x78], 7
cmova r8, qword [rbp + 0x60]
mov rax, qword [rbp + 0x70]
lea r9, [r8 + rax*2]
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xa0]
call fcn.1800985c0
nop
lea rax, vtable.std::wstring_convert_class_std::codecvt_utf8_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
mov qword [rbp + 0xa0], rax
lea rcx, [rbp + 0xe0]
call fcn.1800052f0
lea rcx, [rbp + 0xc0]
call fcn.180002fe0
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x18000353f
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x18000353f
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
nop
mov rdx, qword [rbp + 0x78]
cmp rdx, 7
jbe 0x180003582
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000357d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000357d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800aca84
movdqa xmm0, xmmword [0x180109a70]
movdqu xmmword [rbp + 0x70], xmm0
mov word [rbp + 0x60], si
mov ecx, dword [0x180146028]
cmp dword [0x1801485b8], ecx
cmovg ecx, dword [0x1801485b8]
cmp ecx, 0xfffffffe
jl 0x1800035e5
lea rax, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova rax, qword [rbp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, str.MD5Hash:_Failed_to_open_file:__s
mov r8d, 0x14
lea rdx, str.C:UsersTOTOMAN2_source_reposNewColussus_Qols_ModMD5md5Check.cpp
lea ecx, [r8 - 0x16]
call fcn.1800a9f80
nop
lea rcx, [rbp + 0x80]
call fcn.180002fe0
xor bl, bl
jmp 0x18000381d
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180003664
mov ecx, dword [0x180146028]
cmp dword [0x1801485b8], ecx
cmovg ecx, dword [0x1801485b8]
cmp ecx, 0xfffffffe
jl 0x1800037d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.MD5Hash_failed_with_error_code:__d
mov r8d, 0x1a
lea rdx, str.C:UsersTOTOMAN2_source_reposNewColussus_Qols_ModMD5md5Check.cpp
lea ecx, [r8 - 0x1c]
call fcn.1800a9f80
xor bl, bl
jmp 0x18000381d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1800036df
mov ecx, dword [0x180146028]
cmp dword [0x1801485b8], ecx
cmovg ecx, dword [0x1801485b8]
cmp ecx, 0xfffffffe
jl 0x1800037cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.MD5Hash_failed_with_error_code:__d
mov r8d, 0x21
lea rdx, str.C:UsersTOTOMAN2_source_reposNewColussus_Qols_ModMD5md5Check.cpp
lea ecx, [r8 - 0x23]
call fcn.1800a9f80
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor bl, bl
jmp 0x18000381d
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x180003755
nop word [rax + rax]
mov r8d, 0x400
lea rdx, [rbp + 0x120]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
lea rdx, [rbp + 0x120]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1800037dd
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x180003700
mov dword [rsp + 0x30], 0x10
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x30]
mov r8, rdi
mov edx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180003803
mov ecx, dword [0x180146028]
cmp dword [0x1801485b8], ecx
cmovg ecx, dword [0x1801485b8]
cmp ecx, 0xfffffffe
jl 0x1800037c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x39
mov dword [rsp + 0x20], eax
lea r9, str.MD5Hash_failed_with_error_code:__d
lea rdx, str.C:UsersTOTOMAN2_source_reposNewColussus_Qols_ModMD5md5Check.cpp
mov ecx, 0xfffffffe
call fcn.1800a9f80
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor bl, bl
jmp 0x18000381d
mov ecx, dword [0x180146028]
cmp dword [0x1801485b8], ecx
cmovg ecx, dword [0x1801485b8]
cmp ecx, 0xfffffffe
jl 0x1800037c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x2f
jmp 0x1800037a5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov bl, 1
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rdx + 0x50], rax
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb0]
mov dword [rsp + rdx + 0x4c], r8d
lea rcx, [rsp + 0x60]
call fcn.180004590
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
movzx eax, bl
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.1800ac6b0
mov rbx, qword [rsp + 0x660]
add rsp, 0x630
pop rdi
pop rsi
pop rbp
ret