Function at 0x440d20
Capabilities:
Connect to wmi namespace via wbemlocator
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1854
call fcn.0043ddd0
mov eax, dword [0x471050]
xor eax, ebp
mov dword [ebp - 0x18], eax
cmp dword [ebp + 8], 0
je 0x440d43
cmp dword [ebp + 0xc], 0
jne 0x440d4d
mov eax, 0x80070057
jmp 0x4411ac
mov byte [ebp - 5], 0
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x4410c4
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x45b36c
push 1
push 0
push 0x45b35c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x4410a3
cmp dword [ebp - 0xc], 0
je 0x4410a3
push str.._rootcimv2ApplicationsGames
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x441078
cmp dword [ebp - 0x14], 0
je 0x441078
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
push 0x45aa3c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x1820], eax
mov dword [ebp - 0x181c], 0
mov dword [ebp - 0x1824], 0
mov edx, dword [ebp - 0x1824]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x440e46
cmp dword [ebp - 0x181c], 0x7d0
jle 0x440e48
jmp 0x440eba
mov edx, dword [ebp - 0x181c]
mov eax, dword [ebp - 0x1824]
mov ecx, dword [ebp + 8]
mov ax, word [ecx + eax*2]
mov word [ebp + edx*2 - 0x1818], ax
mov ecx, dword [ebp - 0x1824]
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x5c
jne 0x440e97
mov ecx, dword [ebp - 0x181c]
add ecx, 1
mov dword [ebp - 0x181c], ecx
mov edx, 0x5c
mov eax, dword [ebp - 0x181c]
mov word [ebp + eax*2 - 0x1818], dx
mov ecx, dword [ebp - 0x181c]
add ecx, 1
mov dword [ebp - 0x181c], ecx
mov edx, dword [ebp - 0x1824]
add edx, 1
mov dword [ebp - 0x1824], edx
jmp 0x440e29
xor eax, eax
mov ecx, dword [ebp - 0x181c]
mov word [ebp + ecx*2 - 0x1818], ax
lea edx, [ebp - 0x1818]
push edx
push str.SELECT__FROM_GAME_WHERE_GDFBinaryPath____s_
push 0x400
lea eax, [ebp - 0x818]
push eax
call fcn.004012b0
add esp, 0x10
lea ecx, [ebp - 0x818]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x1828], eax
mov dword [ebp - 0x182c], 0
lea edx, [ebp - 0x182c]
push edx
push 0
push 0x30
mov eax, dword [ebp - 0x1828]
push eax
mov ecx, dword [ebp - 0x1820]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [eax + 0x50]
call edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x441051
mov dword [ebp - 0x1830], 0
mov dword [ebp - 0x1838], 0
mov dword [ebp - 0x1834], 0
lea eax, [ebp - 0x1838]
push eax
lea ecx, [ebp - 0x1830]
push ecx
push 1
push 0x1388
mov edx, dword [ebp - 0x182c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x182c]
push ecx
mov edx, dword [eax + 0x10]
call edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x44102a
cmp dword [ebp - 0x1838], 0
je 0x44102a
cmp dword [ebp - 0x1830], 0
je 0x44102a
push str.InstanceID
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x1834], eax
push 0
push 0
lea eax, [ebp - 0x1848]
push eax
push 0
mov ecx, dword [ebp - 0x1834]
push ecx
mov edx, dword [ebp - 0x1830]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1830]
push ecx
mov edx, dword [eax + 0x10]
call edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x441014
movzx eax, word [ebp - 0x1848]
cmp eax, 8
jne 0x441014
mov byte [ebp - 5], 1
cmp dword [ebp + 0xc], 0
je 0x441014
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1840]
push edx
call fcn.00440a80
add esp, 8
cmp dword [ebp - 0x1834], 0
je 0x44102a
mov eax, dword [ebp - 0x1834]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x1830], 0
je 0x441051
mov ecx, dword [ebp - 0x1830]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1830]
push eax
mov ecx, dword [edx + 8]
call ecx
mov dword [ebp - 0x1830], 0
cmp dword [ebp - 0x182c], 0
je 0x441078
mov edx, dword [ebp - 0x182c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x182c]
push ecx
mov edx, dword [eax + 8]
call edx
mov dword [ebp - 0x182c], 0
cmp dword [ebp - 0x10], 0
je 0x441088
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x14], 0
je 0x4410a3
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [edx + 8]
call ecx
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0xc], 0
je 0x4410be
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 8]
call edx
mov dword [ebp - 0xc], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
movzx eax, byte [ebp - 5]
test eax, eax
jne 0x44119a
lea ecx, [ebp - 0x184c]
push ecx
lea edx, [ebp - 0x1854]
push edx
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareClassesSoftwareMicrosoftWindowsCurrentVersionGameUXGamesToFindOnWindowsUpgrade
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x1850], eax
cmp dword [ebp - 0x1850], 0
jne 0x441131
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1854]
push edx
call fcn.00440bf0
add esp, 0xc
mov byte [ebp - 5], al
mov eax, dword [ebp - 0x1854]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, byte [ebp - 5]
test ecx, ecx
jne 0x44119a
lea edx, [ebp - 0x184c]
push edx
lea eax, [ebp - 0x1854]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionGameUXGamesToFindOnWindowsUpgrade
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x1850], eax
cmp dword [ebp - 0x1850], 0
jne 0x44119a
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1854]
push eax
call fcn.00440bf0
add esp, 0xc
mov byte [ebp - 5], al
mov ecx, dword [ebp - 0x1854]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [ebp - 5]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0042c9e9
mov esp, ebp
pop ebp
ret