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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d757
mov eax, dword fs:[0]
push eax
sub esp, 0x234
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
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallDLLRepair
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x238], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b518
xor eax, eax
jmp 0x40b8a8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00526bd0
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.004226c0
push fcn.00404e00
push 1
push 4
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push eax
call fcn.00522254
mov ebx, dword [ebp - 0x234]
mov edi, ebx
cmp ebx, dword [ebp - 0x230]
je 0x40b777
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 0x40b61c
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi + 0xc], 0
lea eax, [esi + 0xc]
jl 0x40b62e
cmp ecx, dword [esi]
jne 0x40b62e
lock inc dword [eax]
jmp 0x40b676
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 0x40b860
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 0x40b7b6
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40b727
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 0x40b71f
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 0x40b715
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40b727
mov ecx, edx
call dword [ebp - 0x21c]
jmp 0x40b727
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 0x40b768
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40b766
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40b766
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40b768
call edx
add edi, 4
cmp edi, dword [ebp - 0x230]
jne 0x40b600
mov esi, 1
test ebx, ebx
je 0x40b8a6
push dword [ebp - 0x21c]
mov edx, dword [ebp - 0x230]
push ecx
mov ecx, ebx
call fcn.00422940
mov eax, dword [ebp - 0x22c]
add esp, 8
sub eax, ebx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x40b865
call fcn.00531451
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40b816
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 0x40b80e
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 0x40b804
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40b816
mov ecx, edx
call dword [ebp - 0x21c]
jmp 0x40b816
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 0x40b859
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40b857
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40b857
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
jmp 0x40b77c
call edx
xor esi, esi
jmp 0x40b77c
call fcn.00405700
shl eax, 2
cmp eax, 0x1000
jb 0x40b89d
test bl, 0x1f
je 0x40b879
call fcn.00531451
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x40b885
call fcn.00531451
sub ebx, eax
cmp ebx, 4
jae 0x40b891
call fcn.00531451
cmp ebx, 0x23
jbe 0x40b89b
call fcn.00531451
mov ebx, eax
push ebx
call fcn.005221dc
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.00522a9a
mov esp, ebp
pop ebp
ret