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

Disassembly:
sub esp, 0xb4
mov eax, dword [0x4acab8]
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 fcn.00470880
add esp, 0xc
cmp dword [edi + 0x18], 0x10
jb 0x462988
mov edi, dword [edi + 4]
jmp 0x46298b
add edi, 4
push edi
lea ecx, [esp + 0x80]
push 0x40
push ecx
call fcn.00473267
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 0x4629dd
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 0x4629fc
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 0x490721
mov ecx, esi
mov byte [esi + 4], bl
call fcn.0040b580
jmp 0x462ba1
lea eax, [esp + 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x462a03
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 0x462a4d
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 0x490721
mov ecx, esi
call fcn.0040b920
jmp 0x462ba1
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 0x462aaf
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 0x10]
push ebx
push edx
jmp 0x462a36
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 fcn.00470880
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 + str.0123456789abcdef]
and ecx, 0xf
mov byte [esp + eax*2 + 0x38], dl
mov cl, byte [ecx + str.0123456789abcdef]
mov byte [esp + eax*2 + 0x39], cl
inc eax
cmp eax, 0x20
jl 0x462ae0
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 0x462b22
mov ecx, dword [edi]
jmp 0x462b24
mov ecx, edi
lea edx, [esp + 0x38]
cmp edx, ecx
jb 0x462b5e
cmp eax, 0x10
jb 0x462b35
mov ecx, dword [edi]
jmp 0x462b37
mov ecx, edi
mov edx, dword [esi + 0x14]
add edx, ecx
lea ecx, [esp + 0x38]
cmp edx, ecx
jbe 0x462b5e
cmp eax, 0x10
jb 0x462b4b
mov edi, dword [edi]
push 0x41
lea edx, [esp + 0x3c]
sub edx, edi
push edx
push esi
mov ecx, esi
call fcn.0040b360
jmp 0x462ba1
cmp eax, 0x41
jae 0x462b70
mov eax, dword [esi + 0x14]
push eax
push 0x41
mov ecx, esi
call fcn.0040aa30
mov ecx, dword [esi + 0x18]
cmp ecx, 0x10
jb 0x462b7c
mov eax, dword [edi]
jmp 0x462b7e
mov eax, edi
push 0x41
lea edx, [esp + 0x3c]
push edx
push ecx
push eax
call fcn.0046fcaa
add esp, 0x10
cmp dword [esi + 0x18], 0x10
mov dword [esi + 0x14], 0x41
jb 0x462b9e
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.00470538
add esp, 0xb4
ret