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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1854
call fcn.0043d5c0
mov eax, dword [0x470050]
xor eax, ebp
mov dword [ebp - 0x18], eax
cmp dword [ebp + 8], 0
je 0x440593
cmp dword [ebp + 0xc], 0
jne 0x44059d
mov eax, 0x80070057
jmp 0x4409fc
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 0x440914
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x45a36c
push 1
push 0
push 0x45a35c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x4408f3
cmp dword [ebp - 0xc], 0
je 0x4408f3
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 0x4408c8
cmp dword [ebp - 0x14], 0
je 0x4408c8
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 0x459a3c
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 0x440696
cmp dword [ebp - 0x181c], 0x7d0
jle 0x440698
jmp 0x44070a
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 0x4406e7
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 0x440679
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.004012c0
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 0x4408a1
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 0x44087a
cmp dword [ebp - 0x1838], 0
je 0x44087a
cmp dword [ebp - 0x1830], 0
je 0x44087a
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 0x440864
movzx eax, word [ebp - 0x1848]
cmp eax, 8
jne 0x440864
mov byte [ebp - 5], 1
cmp dword [ebp + 0xc], 0
je 0x440864
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1840]
push edx
call fcn.004402d0
add esp, 8
cmp dword [ebp - 0x1834], 0
je 0x44087a
mov eax, dword [ebp - 0x1834]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x1830], 0
je 0x4408a1
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 0x4408c8
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 0x4408d8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x14], 0
je 0x4408f3
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 0x44090e
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 0x4409ea
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 0x440981
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1854]
push edx
call fcn.00440440
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 0x4409ea
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 0x4409ea
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1854]
push eax
call fcn.00440440
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.0042c1e9
mov esp, ebp
pop ebp
ret