Function at 0x40b4a0
Capabilities:
Check if file exists
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575937
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5c4104]
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
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallDllRepairOfficial
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x238], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b508
xor eax, eax
jmp 0x40b898
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0051edd0
add esp, 0xc
mov dword [ebp - 0x238], 1
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.DLLRepair.exe
lea ecx, [ebp - 0x228]
call fcn.00404e80
mov dword [ebp - 4], 0
lea eax, [ebp - 0x224]
mov byte [ebp - 0x220], 0
lea ecx, [ebp - 0x234]
push dword [ebp - 0x220]
mov dword [ebp - 0x234], 0
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x230], 0
push eax
mov dword [ebp - 0x22c], 0
call fcn.00421560
push fcn.00404e00
push 1
push 4
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push eax
call fcn.0051a448
mov ebx, dword [ebp - 0x234]
mov edi, ebx
cmp ebx, dword [ebp - 0x230]
je 0x40b767
nop
mov eax, dword [edi]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x21c], eax
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x40b60c
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi + 0xc], 0
lea eax, [esi + 0xc]
jl 0x40b61e
cmp ecx, dword [esi]
jne 0x40b61e
lock inc dword [eax]
jmp 0x40b666
lea eax, [esi + 4]
push 2
push dword [eax]
mov dword [ebp - 0x23c], eax
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x40b850
mov edx, dword [ebp - 0x23c]
mov ecx, dword [edx]
mov dword [esi + 4], ecx
mov edx, dword [edx]
lea ecx, [edx*2 + 2]
push ecx
push dword [ebp - 0x21c]
lea edx, [edx*2 + 2]
lea ecx, [esi + 0x10]
call fcn.00406950
add esp, 8
add esi, 0x10
mov dword [ebp - 0x23c], esi
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x220]
call fcn.00404e80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x220]
push dword [esi - 0xc]
push esi
call fcn.00405a70
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
test eax, eax
je 0x40b7a6
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40b717
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [ebp - 0x21c], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40b70f
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x21c], ebx
mov ebx, dword [ebp - 0x234]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40b705
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40b717
mov ecx, edx
call dword [ebp - 0x21c]
jmp 0x40b717
mov ecx, edx
call dword [ebp - 0x21c]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b758
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40b756
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40b756
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40b758
call edx
add edi, 4
cmp edi, dword [ebp - 0x230]
jne 0x40b5f0
mov esi, 1
test ebx, ebx
je 0x40b896
push dword [ebp - 0x21c]
mov edx, dword [ebp - 0x230]
push ecx
mov ecx, ebx
call fcn.004217b0
mov eax, dword [ebp - 0x22c]
add esp, 8
sub eax, ebx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x40b855
call fcn.00529651
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40b806
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [ebp - 0x21c], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40b7fe
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x21c], ebx
mov ebx, dword [ebp - 0x234]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40b7f4
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40b806
mov ecx, edx
call dword [ebp - 0x21c]
jmp 0x40b806
mov ecx, edx
call dword [ebp - 0x21c]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40b849
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40b847
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40b847
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
jmp 0x40b76c
call edx
xor esi, esi
jmp 0x40b76c
call fcn.00405700
shl eax, 2
cmp eax, 0x1000
jb 0x40b88d
test bl, 0x1f
je 0x40b869
call fcn.00529651
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x40b875
call fcn.00529651
sub ebx, eax
cmp ebx, 4
jae 0x40b881
call fcn.00529651
cmp ebx, 0x23
jbe 0x40b88b
call fcn.00529651
mov ebx, eax
push ebx
call fcn.0051a3d0
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 - 0x10]
xor ecx, ebp
call fcn.0051ac8e
mov esp, ebp
pop ebp
ret