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

Disassembly:
mov eax, 0x448df6
call fcn.00435154
sub esp, 0x414
push ebx
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jge 0x41f502
cmp eax, 0x80010119
je 0x41f502
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
inc eax
jmp 0x41f5aa
push edi
lea eax, [ebp - 0x10]
push eax
push 0x451c0c
xor edi, edi
inc edi
push edi
push ebx
push 0x451cdc
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x41f52d
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
jmp 0x41f5a9
push str.ROOTCIMV2
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
call fcn.0041ab42
mov eax, dword [eax]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x41f54a
mov ecx, dword [eax]
jmp 0x41f54c
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push esi
lea esi, [ebp - 0x18]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
mov esi, eax
cmp ecx, ebx
je 0x41f573
call fcn.0041b7f3
cmp esi, ebx
jl 0x41f597
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jge 0x41f5b7
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [ebp + 8]
push 0xb
pop ecx
mov esi, str.SELECT__FROM_Win32_DiskDrive__WHERE_Name__
lea edi, [ebp - 0x420]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41f5ce
lea edi, [ebp - 0x420]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x41f5de
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x420]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x41f5fd
lea eax, [ebp - 0x420]
mov esi, 0x44ccd0
push eax
lea ecx, [ebp - 0x28]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x14], ebx
call fcn.0041aaee
mov esi, eax
push 0x44cb84
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.0041aaee
mov ecx, dword [esi]
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x41f642
mov ecx, dword [ecx]
jmp 0x41f644
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x41f64e
mov edx, dword [eax]
jmp 0x41f650
xor edx, edx
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
lea edi, [ebp - 0x14]
push edi
push ebx
push 0x30
push ecx
push edx
push eax
call dword [esi + 0x50]
mov ecx, dword [ebp - 0x1c]
mov esi, eax
cmp ecx, ebx
je 0x41f673
call fcn.0041b7f3
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x41f683
call fcn.0041b7f3
cmp esi, ebx
jge 0x41f6a9
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x41f5a8
mov dword [ebp - 0x20], ebx
jmp 0x41f776
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [eax + 0x10]
cmp dword [ebp - 0x20], ebx
je 0x41f68a
cmp eax, ebx
jl 0x41f68a
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0x800
call fcn.00420d53
mov esi, eax
mov eax, dword [ebp + 0xc]
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41f6ee
sub eax, edi
push eax
push dword [ebp + 0xc]
push esi
call fcn.00435b06
add esp, 0xc
push ebx
push ebx
lea edx, [ebp - 0x38]
push edx
xor ecx, ecx
push ebx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x41f760
cmp word [ebp - 0x38], 1
je 0x41f760
cmp dword [ebp + 0x18], ebx
jne 0x41f742
push dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push dword [ebp - 0x30]
push edi
call fcn.0043594b
add esp, 0xc
mov byte [eax + edi], bl
jmp 0x41f765
cmp dword [ebp + 0x18], 1
je 0x41f74e
cmp dword [ebp + 0x18], 2
jne 0x41f765
push 0xa
push dword [ebp + 0x10]
push dword [ebp - 0x30]
call fcn.0044802e
add esp, 0xc
jmp 0x41f765
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push esi
call fcn.00420d5e
pop ecx
cmp dword [ebp - 0x14], ebx
jne 0x41f6b1
jmp 0x41f68a