Function at 0x100126d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0f7d
mov eax, dword fs:[0]
push eax
sub esp, 0xec
push ebx
push esi
push edi
mov eax, dword [0x100f6f50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
call fcn.100021b0
mov esi, 5
cmp dword [eax + 0x1c], esi
jl 0x100127a0
sub esp, 0x1c
mov dword [ebp - 0x18], esp
mov ecx, esp
mov edi, 7
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
xor eax, eax
mov word [ecx + 4], ax
push 0x1a
push str..DisplayDriverExtSite.cpp
call fcn.10058390
mov dword [ebp - 4], ebx
push 0xe6e
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov ecx, esp
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
xor edx, edx
mov word [ecx + 4], dx
push 0x2e
push str.CDisplayDriverExtSite::IsOptimusWmiGuidPresent
call fcn.10058390
mov byte [ebp - 4], 1
mov byte [ebp - 0x11], bl
lea eax, [ebp - 0x11]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4c], str.Checking_WMI_for_Optimus_cookie
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x24], vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____32___class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x20], edx
push esi
call fcn.100021b0
push eax
mov dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x24]
call fcn.10025de0
push str.rootwmi
lea ecx, [ebp - 0xb8]
call fcn.10024650
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 5
mov byte [ebp - 4], 6
push ebx
push ebx
push ebx
push ecx
lea ecx, [ebp - 0xb8]
call fcn.100247b0
add esp, 4
push eax
lea ecx, [ebp - 0x28]
call fcn.10064c30
mov dword [ebp - 4], esi
push str.SOFTWARENVIDIA_Corporation
lea ecx, [ebp - 0x44]
call fcn.100242c0
mov byte [ebp - 4], 9
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x38]
call fcn.10024050
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.100244e0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x38]
call fcn.10024250
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x44]
call fcn.10024250
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x58]
call fcn.10067c30
test al, al
je 0x1001286c
push str.OptimusCookieGuid
lea ecx, [ebp - 0x18]
call fcn.10001a70
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x58]
call fcn.10069ef0
mov edi, eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x18]
call fcn.10001df0
cmp edi, ebx
jne 0x10012873
mov eax, str.A486D8F8_0BDA_471B_A72B_6042A6B5BEE0
jmp 0x1001288d
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
mov edx, dword [eax + 0xc]
call edx
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x2c], 1
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xd8]
call fcn.10024650
mov dword [ebp - 4], 0x12
test byte [ebp - 0x2c], 1
je 0x100128b2
and dword [ebp - 0x2c], 0xfffffffe
lea ecx, [ebp - 0x18]
call fcn.10001df0
push str.SELECT__FROM_RegisteredGuids_WHERE_InstanceName_
lea ecx, [ebp - 0x98]
call fcn.10024650
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x98]
call fcn.1001f6d0
push 0x100d1030
lea ecx, [ebp - 0xf8]
call fcn.10024650
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xf8]
push ecx
lea ecx, [ebp - 0x98]
call fcn.1001f6d0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xf8]
call fcn.100245f0
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], 0xa
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x98]
call fcn.100247b0
mov edx, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
call fcn.10002580
mov dword [ebp - 4], 0x15
cmp dword [ebp - 0x68], ebx
jbe 0x10012a4a
call fcn.100021b0
cmp dword [eax + 0x1c], esi
jl 0x100129c5
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str..DisplayDriverExtSite.cpp
call fcn.10058480
mov byte [ebp - 4], 0x1b
push 0xea4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.CDisplayDriverExtSite::IsOptimusWmiGuidPresent
call fcn.10058480
mov byte [ebp - 4], 0x1c
mov byte [ebp - 0x11], bl
lea ecx, [ebp - 0x11]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x24], str.Optimus_cookie_present_on_this_machine
lea edx, [ebp - 0x40]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x34], 0x100cff08
lea eax, [ebp - 0x24]
mov dword [ebp - 0x30], eax
push esi
call fcn.100021b0
push eax
mov byte [ebp - 4], 0x15
lea edi, [ebp - 0x34]
call fcn.10025de0
mov byte [ebp - 4], 0x13
lea esi, [ebp - 0x70]
call fcn.10019c00
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x98]
call fcn.100245f0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xd8]
call fcn.100245f0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x10012a02
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.10024250
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x10012a24
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.100245f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.100021b0
cmp dword [eax + 0x1c], esi
jl 0x10012abb
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x48], esp
push str..DisplayDriverExtSite.cpp
call fcn.10058480
mov byte [ebp - 4], 0x1f
push 0xea9
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.CDisplayDriverExtSite::IsOptimusWmiGuidPresent
call fcn.10058480
mov byte [ebp - 4], 0x20
mov byte [ebp - 0x11], bl
lea eax, [ebp - 0x11]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], str.No_Optimus_cookie_on_this_machine
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____34___class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
lea edx, [ebp - 0x34]
mov dword [ebp - 0x20], edx
push esi
call fcn.100021b0
push eax
mov byte [ebp - 4], 0x15
lea edi, [ebp - 0x24]
call fcn.10025de0
mov byte [ebp - 4], 0x13
lea esi, [ebp - 0x70]
call fcn.10019c00
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x98]
call fcn.100245f0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xd8]
call fcn.100245f0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x10012af8
mov eax, dword [ecx]
push 1
mov edx, dword [eax]
call edx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.10024250
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x10012c01
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
jmp 0x10012c01
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.100245f0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret