Function at 0x478e50
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov eax, dword [0x4f4398]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov esi, ecx
jne 0x479048
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edi, eax
mov eax, dword [esi + 0x18]
cmp eax, edi
jb 0x478e7c
cmp edi, ebx
jne 0x478e9e
mov ecx, dword [esi + 0x14]
push ecx
call fcn.00491430
lea eax, [edi + 1]
mov dword [esi + 0x14], ebx
push eax
mov dword [esi + 0x18], eax
call fcn.0049e01f
add esp, 8
mov dword [esi + 0x14], eax
mov byte [eax], bl
cmp edi, ebx
jbe 0x478ecc
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jne 0x478eab
xor eax, eax
jmp 0x478eb2
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x1c]
push ebx
push ebx
push edx
inc eax
push ecx
push eax
push edi
push ebx
push ebx
mov byte [ecx], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [esi + 0xc]
mov ebp, dword [esi + 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edi, eax
mov eax, dword [esi + 8]
cmp eax, edi
jb 0x478ee6
cmp edi, ebx
jne 0x478f08
mov eax, dword [esi + 4]
push eax
call fcn.00491430
lea eax, [edi + 1]
mov dword [esi + 4], ebx
push eax
mov dword [esi + 8], eax
call fcn.0049e01f
add esp, 8
mov dword [esi + 4], eax
mov byte [eax], bl
cmp edi, ebx
jbe 0x478f36
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x478f15
xor eax, eax
jmp 0x478f1c
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
push ebx
push ebx
push edx
inc eax
push ecx
push eax
push edi
push ebx
push ebx
mov byte [ecx], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 4]
push ebx
push ecx
push ebp
push eax
push 0x4f4398
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x479048
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edi, eax
mov eax, dword [esi + 0x18]
cmp eax, edi
jb 0x478f6a
cmp edi, ebx
jne 0x478f8c
mov eax, dword [esi + 0x14]
push eax
call fcn.00491430
lea eax, [edi + 1]
mov dword [esi + 0x14], ebx
push eax
mov dword [esi + 0x18], eax
call fcn.0049e01f
add esp, 8
mov dword [esi + 0x14], eax
mov byte [eax], bl
cmp edi, ebx
jbe 0x478fba
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jne 0x478f99
xor eax, eax
jmp 0x478fa0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x1c]
push ebx
push ebx
push edx
inc eax
push ecx
push eax
push edi
push ebx
push ebx
mov byte [ecx], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esi + 0xc]
mov ebp, dword [esi + 0x14]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edi, eax
mov eax, dword [esi + 8]
cmp eax, edi
jb 0x478fd4
cmp edi, ebx
jne 0x478ff6
mov edx, dword [esi + 4]
push edx
call fcn.00491430
lea eax, [edi + 1]
mov dword [esi + 4], ebx
push eax
mov dword [esi + 8], eax
call fcn.0049e01f
add esp, 8
mov dword [esi + 4], eax
mov byte [eax], bl
cmp edi, ebx
jbe 0x479024
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x479003
xor eax, eax
jmp 0x47900a
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
push ebx
push ebx
push edx
inc eax
push ecx
push eax
push edi
push ebx
push ebx
mov byte [ecx], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 4]
push 8
push ecx
push ebp
push eax
push 0x4f4398
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x479048
pop edi
pop esi
pop ebp
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret