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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5ba5
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x62819c]
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 ebx, dword [ebp + 8]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0x98], ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0xa4], 0
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 0
push eax
push 0x5d0724
push 1
push 0
push 0x5d0714
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x51f62b
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
jmp 0x51f749
mov dword [ebp - 0xa0], 0
mov edi, dword [ebp - 0xa4]
push str.ROOTCIMV2
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x98], esi
mov eax, dword [edi]
lea ecx, [ebp - 0xa0]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push edi
mov byte [ebp - 4], 2
call dword [eax + 0xc]
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jns 0x51f68f
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
jmp 0x51f735
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0xa0]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x51f679
mov dword [ebp - 0x9c], 0
mov ebx, dword [ebp - 0xa0]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.SELECT__FROM_Win32_DiskDrive
call esi
mov edi, eax
mov dword [ebp - 0x98], edi
push 0x5c9118
call esi
mov esi, eax
mov dword [ebp - 0xa8], esi
mov eax, dword [ebx]
lea ecx, [ebp - 0x9c]
push ecx
push 0
push 0x30
push edi
push esi
push ebx
mov byte [ebp - 4], 5
call dword [eax + 0x50]
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, eax
call esi
push edi
call esi
test ebx, ebx
jns 0x51f769
mov ebx, dword [ebp - 0xb0]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov eax, dword [ebp - 0x9c]
mov byte [ebp - 4], 1
test eax, eax
je 0x51f735
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 4], 0
test eax, eax
je 0x51f749
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x51fd14
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x51fd14
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
xor edi, edi
mov byte [ebp - 0x48], 0
mov ebx, 0xf
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x48]
test eax, eax
je 0x51fc8d
nop
mov dword [ebp - 0x94], 0
lea edx, [ebp - 0x98]
mov dword [ebp - 0x98], 0
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 9
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x51fc73
cmp dword [ebp - 0x98], 0
je 0x51fc73
push str.SerialNumber
push dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push eax
call fcn.0051fd40
mov edi, eax
add esp, 0xc
lea eax, [ebp - 0x48]
cmp eax, edi
je 0x51f87c
cmp ebx, 0x10
jb 0x51f848
lea ecx, [ebx + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x51f83e
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51fd32
push ecx
push esi
call fcn.00546044
add esp, 8
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov ebx, dword [edi + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x90]
call fcn.00437220
mov edi, dword [ebp - 0x38]
test edi, edi
jne 0x51f8b5
mov eax, dword [ebp - 0x94]
mov byte [ebp - 4], 8
test eax, eax
je 0x51f8a2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x9c]
test eax, eax
jne 0x51f7b0
jmp 0x51fc8d
push str.Model
push dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push eax
call fcn.0051fd40
mov edx, eax
add esp, 0xc
lea eax, [ebp - 0x78]
cmp eax, edx
je 0x51f914
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x78], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x68], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x64], eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
jmp 0x51f91d
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x90]
call fcn.00437220
push str.FirmwareRevision
push dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push eax
call fcn.0051fd40
mov edx, eax
add esp, 0xc
lea eax, [ebp - 0x60]
cmp eax, edx
je 0x51f987
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x60], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x4c], eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
jmp 0x51f990
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0x90]
call fcn.00437220
mov eax, dword [ebp - 0x94]
mov byte [ebp - 4], 8
test eax, eax
je 0x51f9af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x68]
mov eax, 0x20202020
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
test ecx, ecx
je 0x51fa68
cmp ecx, 4
mov dword [ebp - 0x98], ecx
lea eax, [ebp - 0x98]
mov dword [ebp - 0x94], 4
lea edx, [ebp - 0x94]
cmovge eax, edx
lea ecx, [ebp - 0x78]
cmp dword [ebp - 0x64], 0x10
cmovae ecx, dword [ebp - 0xa8]
mov eax, dword [eax]
test eax, eax
je 0x51fa68
test ecx, ecx
je 0x51fa27
cmp eax, 0x1e
ja 0x51fa27
push eax
push ecx
lea eax, [ebp - 0x30]
push eax
call fcn.0054ae00
add esp, 0xc
jmp 0x51fa68
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov word [ebp - 0x14], dx
test ecx, ecx
jne 0x51fa53
call fcn.0055545e
mov dword [eax], 0x16
jmp 0x51fa63
cmp eax, 0x1e
jbe 0x51fa68
call fcn.0055545e
mov dword [eax], 0x22
call fcn.00555384
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x51fb00
cmp ecx, 4
mov dword [ebp - 0x98], ecx
lea eax, [ebp - 0x98]
mov dword [ebp - 0x94], 4
lea edx, [ebp - 0x94]
cmovge eax, edx
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
cmovae ecx, dword [ebp - 0xac]
mov eax, dword [eax]
test eax, eax
je 0x51fb00
test ecx, ecx
je 0x51fac2
cmp eax, 0x1a
ja 0x51fac2
push eax
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.0054ae00
add esp, 0xc
jmp 0x51fb00
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov word [ebp - 0x14], dx
test ecx, ecx
jne 0x51faeb
call fcn.0055545e
mov dword [eax], 0x16
jmp 0x51fafb
cmp eax, 0x1a
jbe 0x51fb00
call fcn.0055545e
mov dword [eax], 0x22
call fcn.00555384
cmp edi, 0x14
mov dword [ebp - 0x98], edi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], 0x14
lea eax, [ebp - 0x98]
cmovge eax, ecx
cmp ebx, 0x10
lea ecx, [ebp - 0x48]
cmovae ecx, esi
mov eax, dword [eax]
test eax, eax
je 0x51fb85
test ecx, ecx
je 0x51fb4a
cmp eax, 0x16
ja 0x51fb4a
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.0054ae00
add esp, 0xc
jmp 0x51fb85
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov word [ebp - 0x14], dx
test ecx, ecx
jne 0x51fb70
call fcn.0055545e
mov dword [eax], 0x16
jmp 0x51fb80
cmp eax, 0x16
jbe 0x51fb85
call fcn.0055545e
mov dword [eax], 0x22
call fcn.00555384
mov ebx, dword [ebp - 0xb0]
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x14], 0
lea edx, [ecx + 1]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51fba6
sub ecx, edx
lea eax, [ebp - 0x30]
push ecx
push eax
mov ecx, ebx
call fcn.00437dd0
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 7
cmp ecx, 0x10
jb 0x51fbf0
inc ecx
mov eax, esi
cmp ecx, 0x1000
jb 0x51fbe6
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51fd32
push ecx
push esi
call fcn.00546044
add esp, 8
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 6
cmp eax, 0x10
jb 0x51fc2d
mov edx, dword [ebp - 0xac]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x51fc23
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51fd32
push ecx
push edx
call fcn.00546044
add esp, 8
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 3
cmp eax, 0x10
jb 0x51f721
mov edx, dword [ebp - 0xa8]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x51fc64
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51fd32
push ecx
push edx
call fcn.00546044
add esp, 8
jmp 0x51f721
mov eax, dword [ebp - 0x94]
mov byte [ebp - 4], 8
test eax, eax
je 0x51fc87
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 7
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp ecx, 0x10
jb 0x51fcdb
inc ecx
mov eax, esi
cmp ecx, 0x1000
jb 0x51fccb
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51fd32
push ecx
push esi
call fcn.00546044
mov eax, dword [ebp - 0x9c]
add esp, 8
mov byte [ebp - 4], 1
test eax, eax
je 0x51fce9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 4], 0
test eax, eax
je 0x51fcfd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x51fd14
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, ebx
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.00545ec7
mov esp, ebp
pop ebp
ret
call fcn.00555394
int3