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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1830
call fcn.0043b1e0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1818], eax
test edi, edi
je 0x453a49
test eax, eax
je 0x453a49
push ebx
push esi
push 0
push 0
xor bl, bl
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x453986
lea eax, [ebp - 0x1808]
mov dword [ebp - 0x1808], 0
push eax
push 0x470cc4
push 1
push 0
push 0x470cb4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x45395e
cmp dword [ebp - 0x1808], 0
je 0x453978
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.._rootcimv2ApplicationsGames
call esi
lea edi, [ebp - 0x180c]
mov dword [ebp - 0x180c], 0
push edi
push 0
push 0
push 0
mov edx, eax
mov eax, dword [ebp - 0x1808]
push 0
push 0
push 0
mov ecx, dword [eax]
push edx
push eax
mov dword [ebp - 0x1820], edx
call dword [ecx + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
js 0x45392d
mov ecx, dword [ebp - 0x180c]
test ecx, ecx
je 0x45393b
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
push 0x470d1c
call esi
xor ecx, ecx
mov dword [ebp - 0x1814], eax
cmp word [edi], cx
je 0x4537e2
mov edx, edi
cmp ecx, 0x7d0
jg 0x4537e2
movzx eax, word [edx]
mov word [ebp + ecx*2 - 0x1004], ax
cmp eax, 0x5c
jne 0x4537d8
inc ecx
mov word [ebp + ecx*2 - 0x1004], ax
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x4537b7
add ecx, ecx
cmp ecx, 0x1000
jae 0x453a5d
xor eax, eax
mov word [ebp + ecx - 0x1004], ax
lea eax, [ebp - 0x1004]
push eax
push str.SELECT__FROM_GAME_WHERE_GDFBinaryPath____s_
lea eax, [ebp - 0x1804]
push 0x400
push eax
call fcn.00402670
add esp, 0x10
lea eax, [ebp - 0x1804]
push eax
call esi
mov ecx, dword [ebp - 0x180c]
lea edi, [ebp - 0x181c]
push edi
push 0
push 0x30
push eax
push dword [ebp - 0x1814]
mov dword [ebp - 0x181c], 0
mov edx, dword [ecx]
push ecx
call dword [edx + 0x50]
mov edi, dword [ebp + 8]
test eax, eax
js 0x45390f
mov eax, dword [ebp - 0x181c]
lea edx, [ebp - 0x1814]
push edx
lea edx, [ebp - 0x1810]
mov dword [ebp - 0x1810], 0
push edx
push 1
mov dword [ebp - 0x1814], 0
mov ecx, dword [eax]
push 0x1388
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4538f7
cmp dword [ebp - 0x1814], 0
je 0x4538f7
cmp dword [ebp - 0x1810], 0
je 0x45390f
push str.InstanceID
call esi
push 0
push 0
mov esi, eax
lea edx, [ebp - 0x1830]
mov eax, dword [ebp - 0x1810]
push edx
push 0
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4538e8
cmp word [ebp - 0x1830], 8
jne 0x4538e8
push dword [ebp - 0x1818]
mov bl, 1
push dword [ebp - 0x1828]
call fcn.00451ba0
add esp, 8
test esi, esi
je 0x4538f7
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
jmp 0x4538fd
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x1810]
test ecx, ecx
je 0x453915
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x453915
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x181c]
test ecx, ecx
je 0x453933
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x180c]
jmp 0x453941
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x180c]
jmp 0x453941
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x1820]
test eax, eax
je 0x453954
push eax
call esi
mov ecx, dword [ebp - 0x180c]
test ecx, ecx
je 0x45395e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x1808]
test ecx, ecx
je 0x453978
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x1808], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
test bl, bl
jne 0x453a2c
lea eax, [ebp - 0x1820]
push eax
lea eax, [ebp - 0x1808]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareClassesSoftwareMicrosoftWindowsCurrentVersionGameUXGamesToFindOnWindowsUpgrade
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4539de
push dword [ebp - 0x1818]
push edi
push dword [ebp - 0x1808]
call fcn.00453a70
add esp, 0xc
mov bl, al
push dword [ebp - 0x1808]
call esi
test bl, bl
jne 0x453a2c
lea eax, [ebp - 0x1820]
push eax
lea eax, [ebp - 0x1808]
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]
test eax, eax
jne 0x453a2c
push dword [ebp - 0x1818]
push edi
push dword [ebp - 0x1808]
call fcn.00453a70
add esp, 0xc
mov bl, al
push dword [ebp - 0x1808]
call esi
xor ecx, ecx
mov eax, 0x80004005
pop esi
test bl, bl
pop ebx
cmovne eax, ecx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x80070057
xor ecx, ebp
pop edi
call fcn.00438f17
mov esp, ebp
pop ebp
ret
call fcn.004399a9
int3