Function at 0x40f270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492cd6
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4c3aa8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x22c]
mov dword [ebp - 0x23c], eax
call fcn.004175b0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
call fcn.00435396
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40f2e0
push 0x80004005
call fcn.00402c90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
push 0x32
push str.SOFTWAREMicrosoftCryptographyDefaultsProvider_
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.00402be0
push 0x207
lea ecx, [ebp - 0x223]
push ebx
push ecx
mov byte [ebp - 0x224], bl
call fcn.004553e0
add esp, 0xc
push str.IsWow64Process
mov byte [ebp - 4], 2
push str.kernel32
mov dword [ebp - 0x248], 0x208
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x238], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40f36a
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea ecx, [ebp - 0x228]
cmp dword [ebp - 0x238], ebx
je 0x40f381
push 0x3e
push str.SOFTWAREWow6432NodeMicrosoftCryptographyDefaultsProvider_
jmp 0x40f388
push 0x32
push str.SOFTWAREMicrosoftCryptographyDefaultsProvider_
call fcn.00402be0
mov esi, dword [ebp - 0x23c]
cmp esi, ebx
jne 0x40f39b
xor eax, eax
jmp 0x40f3a9
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f3a0
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x228]
call fcn.00402570
mov edx, dword [ebp - 0x228]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40f3dd
push ebx
lea ecx, [ebp - 0x228]
call fcn.00402b30
mov edx, dword [ebp - 0x228]
mov ebx, edx
mov edi, str.IsCSPInstalled
lea esi, [ebp - 0x22c]
call fcn.00417830
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x234]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x230], eax
test eax, eax
je 0x40f430
push 0x4bb7fc
lea edx, [ebp - 0x24c]
push edx
mov dword [ebp - 0x24c], eax
call fcn.0045578e
mov ebx, str.Image_Path
mov edi, str.IsCSPInstalled
lea esi, [ebp - 0x22c]
call fcn.00417830
lea eax, [ebp - 0x248]
push eax
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x240]
push edx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x230], eax
test eax, eax
je 0x40f49b
mov ebx, str.RegQueryValueEx_failed.
call fcn.00417830
mov ecx, dword [ebp - 0x230]
push 0x4bb7fc
lea edx, [ebp - 0x244]
push edx
mov dword [ebp - 0x244], ecx
call fcn.0045578e
lea ebx, [ebp - 0x224]
call fcn.00417830
mov eax, ebx
lea edx, [eax + 1]
jmp 0x40f4b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f4b0
sub eax, edx
cmp eax, 1
jae 0x40f4c8
mov dword [ebp - 0x230], 2
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x40f4e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, str.exit
mov edi, str.IsCSPInstalled
lea esi, [ebp - 0x22c]
mov dword [ebp - 0x234], 0
call fcn.00417830
xor eax, eax
cmp dword [ebp - 0x230], eax
mov byte [ebp - 4], 0
sete al
or edx, 0xffffffff
mov esi, eax
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f532
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x40f545
push eax
call fcn.0044fdf3
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0044e1ea
mov esp, ebp
pop ebp
ret 4