Function at 0x4065e0
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push 0xd
push str.03806ace63322
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00408b20
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea eax, [ebp - 0x250]
mov dword [ebp - 0x24], 0
push 0x200
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
add esp, 0x14
cmp byte [ebp - 0x250], 0
jne 0x40663c
xor ecx, ecx
jmp 0x40664e
lea ecx, [ebp - 0x250]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406645
sub ecx, edx
push ecx
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x20]
call fcn.004088e0
push 0xd
push str.27e6b976e038f
lea ecx, [ebp - 0x20]
call fcn.004088e0
push dword [ebp + 0x10]
lea eax, [ebp - 0x3c]
push str._0Iu
push 0xc
push eax
call fcn.00403a50
add esp, 0x10
cmp byte [ebp - 0x3c], 0
jne 0x40668d
xor ecx, ecx
jmp 0x40669c
lea ecx, [ebp - 0x3c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406693
sub ecx, edx
push esi
push ecx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
call fcn.004088e0
push 0xe
push str.0708c92d3ac308
lea ecx, [ebp - 0x20]
call fcn.004088e0
push 0x48
push 0x18
push 0
push str.Trion.CrashCollector
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x20]
push 0
push dword [ebp - 0x10]
cmovae eax, dword [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x14
push eax
lea eax, [ebp - 0x50]
push eax
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov esi, dword [ebp + 8]
xor eax, eax
push ebx
mov dword [ebp + 0xc], eax
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x406740
movzx eax, byte [ebp + eax - 0x50]
push eax
push 0x54b20c
lea eax, [ebp - 0x30]
push 3
push eax
call fcn.00403a90
lea eax, [ebp - 0x30]
push eax
call fcn.00420e00
mov ecx, dword [esi + 4]
mov edi, eax
mov eax, dword [esi]
add esp, 0x14
add eax, edi
cmp eax, ecx
jb 0x4067c4
lea edx, [eax + 1]
mov dword [ebp + 0x10], edx
cmp edx, ecx
jbe 0x4067c4
push 0
lea eax, [eax*2 + 2]
lea ecx, [esi + 0xc]
push eax
call fcn.00420b70
mov ebx, eax
test ebx, ebx
je 0x4067c4
mov eax, dword [esi]
add eax, eax
push eax
push dword [esi + 8]
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi]
xor ecx, ecx
add esp, 0xc
mov word [ebx + eax*2], cx
lea ecx, [esi + 0xc]
mov eax, dword [esi + 4]
add eax, eax
push eax
push dword [esi + 8]
call fcn.00420bb0
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], ebx
mov dword [esi + 4], eax
mov ecx, dword [esi]
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [esi + 8]
lea eax, [eax + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi]
xor edx, edx
mov eax, dword [esi + 8]
add ecx, edi
add esp, 0xc
mov word [eax + ecx*2], dx
mov eax, dword [ebp + 0xc]
add dword [esi], edi
inc eax
mov dword [ebp + 0xc], eax
cmp eax, 0x14
jb 0x406740
mov eax, dword [ebp - 4]
pop edi
pop ebx
test eax, eax
je 0x40680c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], 0
je 0x406827
push 0x10
push 0x18
push 0
push str.Trion.CrashCollector
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov eax, dword [ebp - 0xc]
cmp eax, 0x10
jb 0x406875
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x1000
jb 0x40686c
test cl, 0x1f
je 0x406845
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x406852
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ecx, eax
cmp ecx, 4
jae 0x40685f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ecx, 0x23
jbe 0x40686a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, eax
push ecx
call fcn.005469ba
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc