Function at 0x403010
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4252cc
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x432018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x40306e
push eax
mov edx, str.Failed_to_initialize_COM_library._Error_code:
mov ecx, 0x433168
call fcn.004054d0
mov ecx, eax
call fcn.00403380
push eax
call fcn.00405770
add esp, 4
jmp 0x403334
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x42e74c
push 1
push 0
push 0x42e75c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4030bc
push eax
mov edx, str.Failed_to_create_IWbemLocator_object._Error_code:
mov ecx, 0x433168
call fcn.004054d0
mov ecx, eax
call fcn.00403380
push eax
call fcn.00405770
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x403334
push str.ROOTCIMV2
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
call fcn.004022d0
mov dword [ebp - 4], 0
mov edx, dword [eax]
test edx, edx
je 0x4030e1
mov edx, dword [edx]
jmp 0x4030e3
xor edx, edx
mov eax, dword [ebp - 0x34]
lea esi, [ebp - 0x30]
push esi
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00402380
test esi, esi
jns 0x403146
push esi
mov edx, str.Could_not_connect_to_WMI_service._Error_code:
mov ecx, 0x433168
call fcn.004054d0
mov ecx, eax
call fcn.00403380
push eax
call fcn.00405770
mov eax, dword [ebp - 0x34]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x403334
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x30]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x40319e
push eax
mov edx, str.Could_not_set_proxy_blanket._Error_code:
mov ecx, 0x433168
call fcn.004054d0
mov ecx, eax
call fcn.00403380
push eax
call fcn.00405770
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x403334
push 0xc
call fcn.00408ef6
mov ebx, eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 1
lea edi, [ebx + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x38], edi
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov dword [ebx], vtable.PrintJobEventSink.0
push 0x14
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00408ef6
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push str.Select__From___InstanceModificationEvent_Within_0.1_Where_TargetInstance_Isa_Win32_PrintJob_And__TargetInstance.JobStatus__Impression_en_cours_Or_TargetInstance.JobStatus__Printing_
mov dword [edi], eax
call fcn.004022d0
mov esi, eax
push 0x42e320
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 2
call fcn.004022d0
mov byte [ebp - 4], 3
mov esi, dword [esi]
test esi, esi
je 0x40322a
mov esi, dword [esi]
jmp 0x40322c
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x403236
mov edx, dword [eax]
jmp 0x403238
xor edx, edx
mov eax, dword [ebp - 0x30]
push ebx
push 0
push 0x80
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x5c]
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00402380
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402380
test esi, esi
jns 0x403293
push esi
mov edx, str.Failed_to_execute_notification_query_asynchronously._Error_code:
mov ecx, 0x433168
call fcn.004054d0
mov ecx, eax
call fcn.00403380
push eax
call fcn.00405770
mov eax, dword [ebx]
add esp, 4
push ebx
call dword [eax + 8]
jmp 0x403181
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x2c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x4032d4
nop dword [eax]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call esi
test eax, eax
jne 0x4032b0
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [edi]
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x403320
nop dword [eax]
push dword [esi + 8]
mov ecx, edi
push edi
call fcn.00406980
mov eax, esi
mov esi, dword [esi]
push 0x14
push eax
call fcn.00409177
add esp, 8
cmp byte [esi + 0xd], 0
je 0x403300
push 0x14
push dword [edi]
call fcn.00409177
push 0xc
push ebx
call fcn.00409177
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408ee3
mov esp, ebp
pop ebp
ret