Function at 0x411c69
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
je 0x411cc4
cmp dword [ebp + 0xc], 1
je 0x411cc4
cmp dword [ebp + 0xc], 2
je 0x411cc4
cmp dword [ebp + 0xc], 3
je 0x411cc4
mov eax, 1
jmp 0x411cc9
mov eax, 0
test eax, eax
je 0x411cdb
mov eax, 0
jmp 0x412011
cmp dword [ebp + 0xc], 0
jne 0x411d1b
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x411d01
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004481fd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x411d12
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x411e7f
cmp dword [ebp + 0xc], 1
jne 0x411d4d
push dword [ebp + 8]
call fcn.00412039
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x411d44
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x411e7f
cmp dword [ebp + 0xc], 2
jne 0x411e5c
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0041407c
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x411dcc
push ebx
call fcn.00448209
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x411ddc
push ebx
call fcn.00448209
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x411dec
push ebx
call fcn.00448209
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x411dfc
push ebx
call fcn.00448209
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x411e0c
push ebx
call fcn.00448209
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x411e1c
push ebx
call fcn.00448209
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x411e30
mov eax, 0
jmp 0x412011
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.00413f37
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x411e53
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x411e7f
push dword [ebp + 8]
call fcn.00414a3d
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x411e7b
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, 0x48c3a9
xor ecx, ecx
test eax, eax
je 0x411e8d
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 4]
xor ebx, ebx
test eax, eax
je 0x411e9e
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x411eb5
dec eax
test ecx, ecx
je 0x411eb5
call fcn.004037bb
add esp, 0xc
test eax, eax
jne 0x411eca
mov eax, 0
jmp 0x412011
mov dword [ebp - 0x18], esp
push 0
push 0x18
push 0x48c313
push 0x48c313
lea eax, [ebp - 0x10]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x411f01
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x411f5c
mov dword [ebp - 0x18], esp
push 8
push 0x18
push 0x48c313
push 0x48c313
lea eax, [ebp - 0x10]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x411f45
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x411f5c
mov eax, 0
jmp 0x412011
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x411f6f
mov eax, 0x48c3a9
push eax
push 1
mov ebx, 0x194
call fcn.00449860
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
test eax, eax
je 0x411fa3
add eax, 8
push eax
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x411fc3
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x412001
mov dword [ebp - 0x18], esp
push 0
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x411ff7
push 6
call fcn.004481f1
add esp, 4
mov eax, 0
jmp 0x412011
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0041814d
jmp 0x412011
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x412022
push ebx
call fcn.00448209
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412032
push ebx
call fcn.00448209
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc