Function at 0x40b660
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40ee46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0xc]
mov dword [esp + 0x250], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, 0x104
mov edi, str.SOFTWAREMicrosoftCryptographyDefaultsProvider_
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x250], 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x34], 1
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4145a0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], 3
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x48]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x40], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b84e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x144]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
push ecx
push 0
push str.Image_Path
push edx
call esi
test eax, eax
jne 0x40b84e
lea eax, [esp + 0x30]
lea ecx, [esp + 0x144]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
push 0
push str.Signature
push eax
call esi
test eax, eax
jne 0x40b84e
lea ecx, [esp + 0x38]
lea edx, [esp + 0x144]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push edx
push eax
push 0
push str.Type
push ecx
call esi
test eax, eax
jne 0x40b84e
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetSize
push 0xe008
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push 0xe009
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
lea eax, [esp + 0x14]
lea ecx, [ebp + 0x64]
push eax
call fcn.004071b0
lea ecx, [esp + 0xc]
mov byte [esp + 0x250], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x250], 0xffffffff
call fcn.0040e12e
mov eax, 1
jmp 0x40b8d1
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetSize
push 0xe008
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push 0xe00a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
lea edx, [esp + 0x14]
lea ecx, [ebp + 0x64]
push edx
call fcn.004071b0
lea ecx, [esp + 0xc]
mov byte [esp + 0x250], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x250], 0xffffffff
call fcn.0040e12e
xor eax, eax
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x248
ret