Function at 0x40c540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d8b2
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x5ce104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x634], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x63c], esi
mov dword [ebp - 0x638], 0
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x40c5a2
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40c5b7
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40c5b9
call edx
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x62c]
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallDLLRepair
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x638], 1
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x630], 0
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c69e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00526bd0
add esp, 0xc
mov dword [ebp - 0x630], 1
lea eax, [ebp - 0x634]
mov dword [ebp - 0x634], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x630]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x62c]
call ebx
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x62c], 0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c680
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00405730
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x40c753
lea eax, [ebp - 0x62c]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsDLLRepair.exe
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x40c753
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00526bd0
add esp, 0xc
mov dword [ebp - 0x630], 1
lea eax, [ebp - 0x634]
mov dword [ebp - 0x634], 0x208
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x630]
push eax
push 0
push str.Path
push dword [ebp - 0x62c]
call ebx
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x62c], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c735
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00405730
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x40c80e
lea eax, [ebp - 0x62c]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsDLLRepair_Installer.exe
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x40c80e
push 0x208
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00526bd0
add esp, 0xc
mov dword [ebp - 0x630], 1
lea eax, [ebp - 0x634]
mov dword [ebp - 0x634], 0x208
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x630]
push eax
push 0
push str.Path
push dword [ebp - 0x62c]
call ebx
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x628]
mov dword [ebp - 0x62c], 0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c7f0
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00405730
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 - 0x10]
xor ecx, ebp
call fcn.00522a9a
mov esp, ebp
pop ebp
ret