Function at 0x46fac0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xb4
mov eax, dword [0x6204e0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
mov esi, dword [esp + 0xc0]
push edi
mov edi, dword [esp + 0xc8]
xor ebx, ebx
push 0x3f
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x81]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x88], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0x10
jb 0x46fb18
mov edi, dword [edi + 4]
jmp 0x46fb1b
add edi, 4
push edi
lea ecx, [esp + 0x80]
push 0x40
push ecx
call sub.MSVCR90.dll_strcat_s
add esp, 0xc
push 0xf0000000
push 0x18
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x46fb6d
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push ebx
push ebx
push 0x800c
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x46fb8c
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x59fa81
mov ecx, esi
mov byte [esi + 4], bl
call fcn.0040bad0
jmp 0x46fd31
lea eax, [esp + 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46fb93
mov ecx, dword [esp + 0xc]
push ebx
sub eax, edx
push eax
lea eax, [esp + 0x84]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x46fbdd
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x59fa81
mov ecx, esi
call fcn.0040c090
jmp 0x46fd31
xor eax, eax
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
mov eax, dword [esp + 0x18]
push 2
push eax
mov byte [esp + 0x2c], bl
mov dword [esp + 0x28], 0x20
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x46fc3f
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 0x10]
push ebx
push edx
jmp 0x46fbc6
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x40
lea edx, [esp + 0x3d]
push ebx
push edx
mov byte [esp + 0x44], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
movzx ecx, byte [esp + eax + 0x18]
mov edx, ecx
shr edx, 4
mov dl, byte [edx + 0x5acee4]
and ecx, 0xf
mov byte [esp + eax*2 + 0x38], dl
mov cl, byte [ecx + 0x5acee4]
mov byte [esp + eax*2 + 0x39], cl
inc eax
cmp eax, 0x20
jl 0x46fc70
mov dword [esi + 0x18], 0xf
lea edi, [esi + 4]
mov dword [esi + 0x14], ebx
mov byte [edi], bl
mov eax, dword [esi + 0x18]
cmp eax, 0x10
jb 0x46fcb2
mov ecx, dword [edi]
jmp 0x46fcb4
mov ecx, edi
lea edx, [esp + 0x38]
cmp edx, ecx
jb 0x46fcee
cmp eax, 0x10
jb 0x46fcc5
mov ecx, dword [edi]
jmp 0x46fcc7
mov ecx, edi
mov edx, dword [esi + 0x14]
add edx, ecx
lea ecx, [esp + 0x38]
cmp edx, ecx
jbe 0x46fcee
cmp eax, 0x10
jb 0x46fcdb
mov edi, dword [edi]
push 0x41
lea edx, [esp + 0x3c]
sub edx, edi
push edx
push esi
mov ecx, esi
call fcn.0040b880
jmp 0x46fd31
cmp eax, 0x41
jae 0x46fd00
mov eax, dword [esi + 0x14]
push eax
push 0x41
mov ecx, esi
call fcn.0040aed0
mov ecx, dword [esi + 0x18]
cmp ecx, 0x10
jb 0x46fd0c
mov eax, dword [edi]
jmp 0x46fd0e
mov eax, edi
push 0x41
lea edx, [esp + 0x3c]
push edx
push ecx
push eax
call sub.MSVCR90.dll_memcpy_s
add esp, 0x10
cmp dword [esi + 0x18], 0x10
mov dword [esi + 0x14], 0x41
jb 0x46fd2e
mov edi, dword [edi]
mov byte [edi + 0x41], bl
mov ecx, dword [esp + 0xbc]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0058ecc6
add esp, 0xb4
ret