Function at 0x10003560
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x100afd00
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x100d8dd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x1c], 0xa
mov dword [ebp - 4], esi
push str.rootwmi
lea ecx, [ebp - 0x30]
call fcn.100198c0
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], esi
je 0x100035fb
mov ecx, eax
call fcn.1001a1f0
movzx ecx, word [eax]
cmp cx, si
je 0x100035fb
cmp cx, 1
je 0x100035fb
cmp cx, 8
sete cl
test cl, cl
jne 0x100035f6
push esi
push 0xb7
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incAutoString.h
push 0xe0e00000
call fcn.10001ed0
mov eax, dword [eax + 8]
jmp 0x100035fd
xor eax, eax
push esi
push esi
push esi
push eax
lea ecx, [ebp + 0x60]
call fcn.1005b3c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.10019eb0
mov byte [ebp - 4], 4
push str.Optimus_SetGPUPower
lea ecx, [ebp - 0x30]
call fcn.100198c0
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.1001a2c0
mov edx, eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 8]
call fcn.10002c80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.10019eb0
mov dword [ebp - 4], 3
xor esi, esi
cmp dword [ebp + 0x10], esi
jne 0x1000393a
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0xa
mov byte [ebp - 4], 0xb
mov bl, 0xc
mov byte [ebp - 4], bl
push str.SELECT__FROM_RegisteredGuids________________________________WHERE_InstanceName_CA4982BF_C230_458E_B12F_6F16475F351B_
lea ecx, [ebp - 0x78]
call fcn.100198c0
mov byte [ebp - 4], 0xd
mov ecx, eax
call fcn.1001a2c0
mov dword [ebp + 0x28], vtable.CAtlListBuilder_class_CWMIClassObject__class_ATL::CElementTraits_class_CWMIClassObject___class_ATL::CAtlList_class_CWMIClassObject__class_ATL::CElementTraits_class_CWMIClassObject___.0
lea ecx, [ebp - 0x28]
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x2c], esi
mov edx, dword [ebp - 0x28]
mov dword [ebp + 0x30], edx
push 0x7530
push 0x30
push esi
lea ecx, [ebp + 0x28]
push ecx
push eax
lea ecx, [ebp + 0x60]
call fcn.1005b920
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x78]
call fcn.10019eb0
mov dword [ebp - 4], 0xb
cmp dword [ebp - 0x20], esi
jbe 0x100038eb
mov bl, 0x11
mov byte [ebp - 4], bl
mov edi, dword [ebp + 0x70]
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
cmp eax, esi
je 0x1000398d
call fcn.100020e0
cmp dword [eax + 0x1c], 6
jge 0x10003796
lea eax, [esi + 1]
jmp 0x10003798
xor eax, eax
test al, al
jne 0x1000381b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x54], esp
push str..DisplayDriverExtSite.cpp
call fcn.1004ce50
mov byte [ebp - 4], 0x12
push 0x166
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x50], esp
push str.CDisplayDriverExtSite::PowerUpOptimusGPU
call fcn.1004ce50
mov byte [ebp - 4], 0x13
mov byte [ebp + 0x67], 0
lea eax, [ebp + 0x67]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x38], str.Going_to_compile_the_MOF_file:
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x34], ecx
mov dword [ebp + 0x48], edi
lea edx, [ebp - 0x38]
mov dword [ebp + 0x4c], edx
mov dword [ebp], vtable.Nvidia::Logging::Loggable.0
mov dword [ebp], method.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_class_CFilePath_const___class_Nvidia::Logging::Chain_char_const_____19___class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType____.virtual_0
mov dword [ebp], method.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_class_CFilePath_const___class_Nvidia::Logging::Chain_char_const_____19___class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType____.virtual_0
lea eax, [ebp + 0x48]
mov dword [ebp + 4], eax
push 6
call fcn.100020e0
push eax
mov byte [ebp - 4], bl
lea edi, [ebp]
call fcn.1001ae50
mov ecx, dword [ebp + 0x70]
call fcn.10002b00
push str.Optimus_SetGPUPower
lea ecx, [ebp - 0x78]
call fcn.100198c0
mov byte [ebp - 4], 0x14
mov ecx, eax
call fcn.1001a2c0
mov edx, eax
lea ecx, [ebp + 0x60]
push ecx
lea eax, [ebp + 8]
call fcn.10002c80
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x78]
call fcn.10019eb0
cmp dword [ebp + 0x10], esi
jne 0x1000392b
call fcn.100020e0
cmp dword [eax + 0x1c], 4
jge 0x1000386f
mov eax, 1
jmp 0x10003871
xor eax, eax
test al, al
jne 0x100038eb
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x54], esp
push str..DisplayDriverExtSite.cpp
call fcn.1004ce50
mov byte [ebp - 4], 0x15
push 0x171
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x50], esp
push str.CDisplayDriverExtSite::PowerUpOptimusGPU
call fcn.1004ce50
mov byte [ebp - 4], 0x16
mov byte [ebp + 0x73], 0
lea edx, [ebp + 0x73]
mov dword [ebp - 0x48], edx
mov dword [ebp + 0x40], str.Failed_to_find_Optimus_related_class_instances_even_after_compiling_the_MOF_file
lea eax, [ebp - 0x4c]
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x20], vtable.Nvidia::Logging::Loggable.0
mov dword [ebp + 0x20], 0x100ba69c
mov dword [ebp + 0x20], 0x100b89d4
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x24], ecx
push 4
call fcn.100020e0
push eax
mov byte [ebp - 4], bl
lea edi, [ebp + 0x20]
call fcn.1001ae50
mov byte [ebp - 4], 3
lea esi, [ebp - 0x28]
call fcn.100109c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x60]
call fcn.10002d80
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
call fcn.100109c0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x68
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 3
lea esi, [ebp - 0x28]
call fcn.100109c0
mov byte [ebp - 4], 0x1c
mov edx, dword [ebp + 8]
mov dword [ebp + 0x70], edx
mov bl, 0x1d
cmp dword [ebp + 0x70], 0
je 0x10003b3d
lea ecx, [ebp + 0x70]
call fcn.10010a30
mov esi, eax
push str.PowerOnGPU
lea ecx, [ebp - 0x78]
call fcn.100198c0
mov byte [ebp - 4], bl
push 0
push 0
push 0
mov ecx, eax
call fcn.1001a2c0
push eax
mov ecx, esi
call fcn.1005bbb0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x78]
call fcn.10019eb0
jmp 0x10003946
call fcn.100020e0
cmp dword [eax + 0x1c], 4
jge 0x1000399f
mov eax, 1
jmp 0x100039a1
xor eax, eax
test al, al
jne 0x100038eb
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x54], esp
push str..DisplayDriverExtSite.cpp
call fcn.1004ce50
mov byte [ebp - 4], 0x17
push 0x177
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x50], esp
push str.CDisplayDriverExtSite::PowerUpOptimusGPU
call fcn.1004ce50
mov byte [ebp - 4], 0x18
mov byte [ebp + 0x73], 0
lea edx, [ebp + 0x73]
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x58], str.Path_to_MOF_file_is_not_specified
lea eax, [ebp + 0x30]
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x38], vtable.Nvidia::Logging::Loggable.0
mov dword [ebp + 0x38], 0x100ba69c
mov dword [ebp + 0x38], 0x100b89e8
lea ecx, [ebp + 0x58]
mov dword [ebp + 0x3c], ecx
push 4
call fcn.100020e0
push eax
mov byte [ebp - 4], bl
lea edi, [ebp + 0x38]
jmp 0x100038e6
call fcn.100020e0
cmp dword [eax + 0x1c], 5
jge 0x10003b4f
mov eax, 1
jmp 0x10003b51
xor eax, eax
test al, al
jne 0x10003bcc
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x54], esp
push str..DisplayDriverExtSite.cpp
call fcn.1004ce50
mov byte [ebp - 4], 0x1e
push 0x18f
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x50], esp
push str.CDisplayDriverExtSite::PowerUpOptimusGPU
call fcn.1004ce50
mov byte [ebp - 4], 0x1f
mov byte [ebp + 0x73], 0
lea eax, [ebp + 0x73]
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x58], str.Powered_up_GPU_through_WMI_call
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x5c], ecx
mov dword [ebp + 0x38], vtable.Nvidia::Logging::Loggable.0
mov dword [ebp + 0x38], 0x100ba69c
mov dword [ebp + 0x38], 0x100b8a10
lea edx, [ebp + 0x58]
mov dword [ebp + 0x3c], edx
push 5
call fcn.100020e0
push eax
mov byte [ebp - 4], 0x1c
lea edi, [ebp + 0x38]
call fcn.1001ae50
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x60]
call fcn.10002d80
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
call fcn.100109c0
mov al, 1
jmp 0x10003914