Function at 0x506190
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push 0xffffffffffffffff
push 0x594d5e
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], eax
xor eax, eax
push 9
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
push str.Ole32.dll
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00404a80
mov dword [esp + 0x6c], 0
mov eax, dword [0x7e23f4]
test al, 1
jne 0x506240
or eax, 1
mov dword [0x7e23f4], eax
mov byte [esp + 0x6c], 1
mov dword [0x7e23f0], 0
call fcn.004c1de0
push 0x59ffb0
call fcn.00565027
add esp, 4
mov byte [esp + 0x6c], 0
lea eax, [esp + 0x14]
mov ecx, 0x7e23f0
push eax
call fcn.004c1fa0
mov esi, eax
mov dword [esp + 0x6c], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x50626c
push dword [esp + 0x14]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
test esi, esi
je 0x50653d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5be5f4
push esi
call edi
push str.CoInitializeSecurity
push esi
mov ebp, eax
call edi
mov ebx, eax
test ebp, ebp
je 0x50653d
test ebx, ebx
je 0x50653d
push str.OleAut32.dll
lea ecx, [esp + 0x18]
call fcn.00403a70
mov dword [esp + 0x6c], 2
lea eax, [esp + 0x14]
push eax
call fcn.004c1f20
mov ecx, eax
call fcn.004c1fa0
mov esi, eax
mov dword [esp + 0x6c], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x5062f9
push dword [esp + 0x14]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
test esi, esi
je 0x50653d
push str.VariantInit
push esi
call edi
push str.VariantClear
push esi
mov dword [esp + 0x34], eax
call edi
mov edi, dword [esp + 0x2c]
mov esi, eax
test edi, edi
je 0x50653d
test esi, esi
je 0x50653d
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call ebx
mov dword [esp + 0x50], 0
mov dword [esp + 0x6c], 4
lea eax, [esp + 0x50]
push eax
push 0x5a8178
push 1
push 0
push 0x5a8248
call ebp
test eax, eax
jne 0x506521
cmp dword [esp + 0x50], eax
je 0x506521
mov dword [esp + 0x54], eax
mov byte [esp + 0x6c], 7
lea edx, [esp + 0x54]
mov eax, dword [esp + 0x50]
push edx
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push str.ROOTcimv2
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x50650a
cmp dword [esp + 0x54], eax
je 0x50650a
mov dword [esp + 0x4c], eax
mov byte [esp + 0x6c], 0xb
lea edx, [esp + 0x4c]
mov eax, dword [esp + 0x54]
push edx
push 0
push 0x30
mov ecx, dword [eax]
push str.SELECT__FROM_Win32_DiskDrive_WHERE__Model_IS_NOT_NULL__AND__MediaType_LIKE_Fixed_hard_disk__
push 0x5be704
push eax
call dword [ecx + 0x50]
test eax, eax
jne 0x5064f3
cmp dword [esp + 0x4c], eax
je 0x5064f3
mov dword [esp + 0x48], eax
mov byte [esp + 0x6c], 0x10
lea eax, [esp + 0x34]
push eax
call edi
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x5c], 0
call fcn.00506a30
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0x4c]
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x5064b8
mov edi, edi
cmp dword [esp + 0x58], 0
je 0x5064b8
cmp dword [esp + 0x48], 0
je 0x5064b8
lea eax, [esp + 0x34]
push eax
call esi
lea eax, [esp + 0x34]
push eax
call edi
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x34]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push 0x5be70c
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x50648a
cmp word [esp + 0x34], 8
jne 0x50648a
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x5064d6
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x5c], 0
call fcn.00506a30
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0x4c]
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
je 0x506440
lea eax, [esp + 0x34]
push eax
call esi
xor bl, bl
mov byte [esp + 0x6c], 0xb
mov eax, dword [esp + 0x48]
test eax, eax
je 0x5064f5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5064f5
mov edi, dword [esp + 0x30]
mov ecx, edi
push eax
call fcn.0040bc40
push edi
call fcn.00506560
lea eax, [esp + 0x34]
push eax
call esi
mov bl, 1
jmp 0x5064c1
xor bl, bl
mov byte [esp + 0x6c], 7
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x50650c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x50650c
xor bl, bl
mov byte [esp + 0x6c], 4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x506523
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x506523
xor bl, bl
mov dword [esp + 0x6c], 0xffffffff
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x506539
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
jmp 0x50653f
xor al, al
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00564de8
add esp, 0x5c
ret 4