Function at 0x440080
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
call fcn.0043f239
mov ecx, dword [0x54b068]
xor ebx, ebx
mov esi, str.CUS_STCA_LSan_Francisco_OBitTorrent_OUuTorrent_CNuTorrent
cmp ecx, ebx
je 0x4400e8
mov edx, dword [0x54b06c]
cmp edx, ebx
je 0x4400e8
cmp dword [0x54825c], ebx
jne 0x440296
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x1001
push esi
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
call dword [0x5476c4]
mov dword [0x54825c], eax
cmp eax, ebx
je 0x4400f4
push ebx
push eax
call dword [0x5476cc]
mov dword [0x548260], eax
cmp dword [0x54825c], ebx
jne 0x440296
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push ebx
push 0xc
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0x4f95a0
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0x4f95a4
call edi
test eax, eax
jne 0x440131
push 8
push 0xc
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
call edi
test eax, eax
je 0x440286
lea eax, [ebp - 0x18]
push eax
push 0x4001
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x440286
push ebx
push 0x2000
push ebx
push 0x10000
push 2
call dword [0x5476d8]
mov dword [0x54825c], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push esi
push 1
call dword [0x5476dc]
test eax, eax
jne 0x440191
push ebx
push dword [0x54825c]
call dword [0x5476d0]
jmp 0x440286
mov ecx, dword [ebp - 4]
call fcn.0046b19f
mov edi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x40000002
push esi
push 1
mov dword [ebp - 8], edi
call dword [0x5476dc]
mov eax, dword [ebp - 4]
push 7
pop ecx
push ebx
mov dword [ebp - 0x2c], eax
push ebx
xor eax, eax
mov dword [ebp - 0x28], edi
push ebx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], str.Microsoft_RSA_SChannel_Cryptographic_Provider
mov dword [ebp - 0x4c], 0xc
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], str.1.2.840.113549.1.1.5
mov dword [ebp - 0x34], ebx
call dword [0x5476d4]
mov edi, eax
cmp edi, ebx
je 0x44022a
lea eax, [ebp - 0x54]
push eax
push ebx
push 2
push edi
call dword [0x5476e4]
push 0x548260
push 4
push edi
push dword [0x54825c]
call dword [0x5476e0]
xor eax, eax
push 4
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x24]
push eax
push dword [0x54825c]
call dword [0x5476c8]
test eax, eax
je 0x440278
mov ecx, dword [ebp - 0x24]
call fcn.0046b19f
push 4
push ebx
mov dword [ebp - 0x20], eax
push esi
lea eax, [ebp - 0x24]
push eax
push dword [0x54825c]
call dword [0x5476c8]
mov eax, dword [ebp - 0x20]
mov dword [0x54b068], eax
mov eax, dword [ebp - 0x24]
mov dword [0x54b06c], eax
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x440286
mov dl, 1
call fcn.0046b197
lea ecx, [ebp - 0x14]
call fcn.0043f51e
lea ecx, [ebp - 0x1c]
call fcn.0043f4e8
pop edi
pop esi
pop ebx
leave
ret