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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100be678
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100f101c]
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
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x58]
push str.Ole32.dll
mov dword [ebp - 0x40], eax
call fcn.10003940
mov dword [ebp - 4], 0
lea eax, [ebp - 0x58]
push eax
call fcn.1000a500
mov ecx, eax
call fcn.1000a5c0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.100038a0
test edi, edi
je 0x1007182b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CoCreateInstance
push edi
call esi
push str.CoInitializeSecurity
push edi
mov dword [ebp - 0x38], eax
call esi
cmp dword [ebp - 0x38], 0
mov ebx, eax
je 0x1007182b
test ebx, ebx
je 0x1007182b
push str.OleAut32.dll
lea ecx, [ebp - 0x58]
call fcn.10003940
mov dword [ebp - 4], 1
lea eax, [ebp - 0x58]
push eax
call fcn.1000a500
mov ecx, eax
call fcn.1000a5c0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.100038a0
test edi, edi
je 0x1007182b
push str.VariantInit
push edi
call esi
push str.VariantClear
push edi
mov dword [ebp - 0x3c], eax
call esi
mov esi, dword [ebp - 0x3c]
mov edi, eax
test esi, esi
je 0x1007182b
test edi, edi
je 0x1007182b
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call ebx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
push 0x100d230c
push 1
push 0
push 0x100d23dc
call dword [ebp - 0x38]
test eax, eax
jne 0x10071811
cmp dword [ebp - 0x20], eax
je 0x10071811
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 6
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
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 0x100717fc
cmp dword [ebp - 0x1c], eax
je 0x100717fc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
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 0x100d9d64
push eax
call dword [ecx + 0x50]
test eax, eax
jne 0x100717e7
cmp dword [ebp - 0x18], eax
je 0x100717e7
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x34]
push eax
call esi
jmp 0x10071713
mov esi, dword [ebp - 0x3c]
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
je 0x10071746
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0xf
test eax, eax
je 0x10071746
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x100717cc
cmp dword [ebp - 0x24], eax
je 0x100717cc
cmp dword [ebp - 0x14], eax
je 0x100717cc
lea eax, [ebp - 0x34]
push eax
call edi
lea eax, [ebp - 0x34]
push eax
call esi
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x34]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.Model
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x10071713
cmp word [ebp - 0x34], 8
jne 0x10071713
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x10071710
push esi
call fcn.10003bb0
add esp, 4
push eax
push esi
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.100039c0
push esi
call fcn.100718a0
lea eax, [ebp - 0x34]
push eax
call edi
mov bl, 1
jmp 0x100717d4
lea eax, [ebp - 0x34]
push eax
call edi
xor bl, bl
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100717e9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100717e9
xor bl, bl
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100717fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100717fe
xor bl, bl
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10071813
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10071813
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x10071827
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
jmp 0x1007182d
xor al, al
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.1007f947
mov esp, ebp
pop ebp
ret 4