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

Disassembly:
mov eax, 0x1838
call fcn.100047f0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1834], eax
mov eax, dword [esp + 0x1840]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x17], bl
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x20]
push ecx
push 0x10010814
push 1
push ebx
test eax, eax
push 0x10010804
setge byte [esp + 0x33]
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov ebp, dword [esp + 0x184c]
jl 0x10001dd0
cmp dword [esp + 0x20], ebx
je 0x10001de4
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.._rootcimv2ApplicationsGames
call esi
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
mov edi, eax
mov eax, dword [esp + 0x38]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ebx
push edi
push eax
mov dword [esp + 0x4c], edi
call edx
test eax, eax
jl 0x10001dad
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10001db1
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
push 0x100107b4
call esi
mov edi, eax
xor eax, eax
cmp word [ebp], bx
je 0x10001cad
mov edx, ebp
lea ebp, [ebx + 0x5c]
mov edi, edi
cmp eax, 0x7d0
jg 0x10001cad
movzx ecx, word [edx]
cmp cx, bp
mov word [esp + eax*2 + 0x844], cx
jne 0x10001ca2
add eax, 1
mov word [esp + eax*2 + 0x844], bp
add edx, 2
add eax, 1
cmp word [edx], bx
jne 0x10001c80
mov word [esp + eax*2 + 0x844], bx
lea eax, [esp + 0x844]
push eax
push str.SELECT__FROM_GAME_WHERE_GDFBinaryPath____s_
lea ecx, [esp + 0x4c]
push 0x400
push ecx
call fcn.10001610
add esp, 0x10
lea edx, [esp + 0x44]
push edx
call esi
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
lea ebp, [esp + 0x24]
push ebp
push ebx
push 0x30
push eax
mov eax, dword [edx + 0x50]
push edi
push ecx
call eax
test eax, eax
jl 0x10001d8e
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x18]
push edx
push 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], ebx
mov ecx, dword [eax]
push 0x1388
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x10001d7e
cmp dword [esp + 0x30], ebx
je 0x10001d7e
cmp dword [esp + 0x14], ebx
je 0x10001d8e
push str.InstanceID
call esi
push ebx
push ebx
lea edx, [esp + 0x3c]
push edx
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push ebx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x10001d73
cmp word [esp + 0x34], 8
jne 0x10001d73
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov byte [esp + 0x13], 1
je 0x10001d73
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call fcn.100012b0
add esp, 8
cmp esi, ebx
je 0x10001d7e
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10001d8e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x10001da2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x184c]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
cmp edi, ebx
je 0x10001dc0
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10001dd0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10001de4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebx
cmp byte [esp + 0x1f], bl
je 0x10001df0
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp byte [esp + 0x13], bl
jne 0x10001e8e
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x20019
push ebx
push ebx
push ebx
push str.SoftwareClassesSoftwareMicrosoftWindowsCurrentVersionGameUXGamesToFindOnWindowsUpgrade
push SysReAllocString
call edi
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x10001e4d
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push edx
push ebp
push eax
call fcn.10001380
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
mov byte [esp + 0x17], al
call esi
cmp byte [esp + 0x13], bl
jne 0x10001e8e
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionGameUXGamesToFindOnWindowsUpgrade
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x10001e8e
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push ecx
push ebp
push edx
call fcn.10001380
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call esi
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x1844]
neg al
pop edi
pop esi
pop ebp
pop ebx
sbb eax, eax
and eax, 0x7fffbffb
xor ecx, esp
add eax, 0x80004005
call fcn.100046b7
add esp, 0x1838
ret 8