Function at 0x466130
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c4b7
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4c0e0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call fcn.00477270
add esp, 4
lea ecx, [ebp - 0x1c]
mov esi, eax
push str.CFG_FUNCTION_MODIFY_DRIVERS
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov edx, dword [esi]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call dword [edx + 0x20]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
test esi, esi
je 0x46638b
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 0x14]
push 0x30
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.ScanvecAmiable_Signature2
push eax
mov dword [ebp - 0x14], 0
call esi
push 0x28
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.ScanvecAmiable_Signature2
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
jne 0x46621b
push 0x4aa
lea eax, [ebp - 0xd]
push str.srcModifyDrivers.cpp
push eax
call dword [sym.imp.FSUTIL.dll_public:_static_class_SA_LOG___cdecl_SA_LOG::SALogHelper_char_const___int_]
push str.Error_creating_new_container.
mov dword [ebp - 4], 1
call dword [sym.imp.FSUTIL.dll_public:_static_void___cdecl_SA_LOG::LogError_char_const__]
add esp, 0x10
lea ecx, [ebp - 0xd]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_SA_LOG::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x48]
call fcn.004760d0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
push 0x4c068a
push 0x258
lea ecx, [ebp - 0x48]
call fcn.004764b0
test eax, eax
jne 0x466282
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x4b6
lea eax, [ebp - 0xd]
push str.srcModifyDrivers.cpp
push eax
call dword [sym.imp.FSUTIL.dll_public:_static_class_SA_LOG___cdecl_SA_LOG::SALogHelper_char_const___int_]
push str.Error_in_DecryptData
mov byte [ebp - 4], 3
call dword [sym.imp.FSUTIL.dll_public:_static_void___cdecl_SA_LOG::LogError_char_const__]
add esp, 0x10
lea ecx, [ebp - 0xd]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_SA_LOG::destructor_void_]
jmp 0x466383
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
push dword [ebp - 0x24]
mov esi, eax
call sub.mfc140.dll_Ordinal_266
mov edi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_SA_LOG::destructor_void_]
add esp, 4
mov ebx, dword [sym.imp.FSUTIL.dll_public:_static_void___cdecl_SA_LOG::LogError_char_const__]
test esi, esi
mov esi, dword [sym.imp.FSUTIL.dll_public:_static_class_SA_LOG___cdecl_SA_LOG::SALogHelper_char_const___int_]
je 0x4662f6
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x14]
call fcn.00476290
add esp, 4
test eax, eax
jne 0x46631d
push 0x4c7
lea eax, [ebp - 0xd]
push str.srcModifyDrivers.cpp
push eax
call esi
mov byte [ebp - 4], 4
push str.Error_in_ChangeSecurityPermission
jmp 0x46630f
push 0x4cd
lea eax, [ebp - 0xd]
push str.srcModifyDrivers.cpp
push eax
call esi
mov byte [ebp - 4], 5
push str.Error_in_CryptImportKey
call ebx
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd]
call edi
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x466383
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_316]
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str.Error_in_CryptReleaseContect_0x_x
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
push 0x4d5
lea eax, [ebp - 0xe]
push str.srcModifyDrivers.cpp
push eax
call esi
add esp, 0x18
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call ebx
add esp, 4
lea ecx, [ebp - 0xe]
call edi
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x48]
call fcn.004761c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret