Function at 0x48f890
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
sub esp, 0x18
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
xor ebx, ebx
lea esi, [edi + 8]
mov dword [edi], vtable.MocanaUtil.0
mov byte [edi + 0xc], bl
mov dword [esi], ebx
call fcn.0051f8e0
cmp eax, ebx
jl 0x48fa77
push 0xf0000000
push 0x18
push ebx
push ebx
lea eax, [esp + 0x18]
push eax
mov dword [edi + 4], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x48fa4c
mov edx, dword [esp + 8]
push ebp
lea ecx, [esp + 0x10]
xor eax, eax
push ecx
push 0x10
push edx
mov byte [esp + 0x1c], bl
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov word [esp + 0x29], ax
mov byte [esp + 0x2b], al
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, 1
jne 0x48fa00
lea eax, [esp + 0x10]
push eax
push 0x10
push 0x5fdbc0
push 0x40
push esi
call fcn.00520030
add esp, 0x14
cmp eax, ebx
jne 0x48f9bf
mov ecx, dword [esi]
push 0xc3
push ecx
call fcn.0051fea0
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x48f970
mov eax, dword [esp + 0xc]
push ebx
push eax
mov byte [edi + 0xc], 1
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop ebp
pop esi
mov eax, edi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0051ed00
add esp, 0x18
ret
push esi
call fcn.0051fe00
mov eax, dword [0x68cb70]
add esp, 4
mov dword [esi], ebx
cmp eax, ebx
je 0x48fa2c
mov edx, dword [eax]
push ebp
push 0x5fdc40
push str.MocanaUtil::MocanaUtil
push 1
push eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x20]
add esp, 0x14
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop ebp
pop esi
mov eax, edi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0051ed00
add esp, 0x18
ret
mov ecx, dword [0x68cb70]
cmp ecx, ebx
je 0x48fa2c
mov edx, dword [ecx]
push eax
mov eax, dword [edx]
push str.RNG_Library_failed_to_initialize__08X
push str.MocanaUtil::MocanaUtil
push 1
push ecx
call eax
mov eax, dword [esp + 0x20]
add esp, 0x14
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop ebp
pop esi
mov eax, edi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0051ed00
add esp, 0x18
ret
mov eax, dword [0x68cb70]
cmp eax, ebx
je 0x48fa2c
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x68cb70]
mov edx, dword [esi]
push eax
push str.RNG_Library_failed_obtain_seed__08X
push str.MocanaUtil::MocanaUtil
push 1
push ecx
call edx
add esp, 0x14
mov eax, dword [esp + 0xc]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop ebp
pop esi
mov eax, edi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0051ed00
add esp, 0x18
ret
mov eax, dword [0x68cb70]
cmp eax, ebx
je 0x48fa98
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x68cb70]
mov edx, dword [esi]
push eax
push str.RNG_Failed_to_initialize_context_0x_08X
push str.MocanaUtil::MocanaUtil
push 1
push ecx
call edx
jmp 0x48fa95
mov ecx, dword [0x68cb70]
cmp ecx, ebx
je 0x48fa98
mov edx, dword [ecx]
push eax
mov eax, dword [edx]
push str.Encryption_library_failed_to_initialize.__d
push str.MocanaUtil::MocanaUtil
push 1
push ecx
call eax
add esp, 0x14
mov ecx, dword [esp + 0x1c]
pop esi
pop ebx
xor ecx, esp
mov eax, edi
call fcn.0051ed00
add esp, 0x18
ret