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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6712f5
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x718924]
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 edi, dword [ebp + 8]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x98], edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0xa4], 0
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 0
push eax
push 0x68b844
push 1
push 0
push 0x68b834
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4c26e5
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x4c2836
mov dword [ebp - 0xa0], 0
mov esi, dword [ebp - 0xa4]
lea ecx, [ebp - 0x98]
push str.ROOTCIMV2
mov byte [ebp - 4], 1
call fcn.00448d80
mov eax, dword [eax]
mov byte [ebp - 4], 2
test eax, eax
je 0x4c2717
mov ecx, dword [eax]
jmp 0x4c2719
xor ecx, ecx
mov eax, dword [esi]
lea edx, [ebp - 0xa0]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push esi
call dword [eax + 0xc]
lea ecx, [ebp - 0x98]
mov esi, eax
call fcn.00449570
test esi, esi
jns 0x4c275a
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x4c2822
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 0x4c2744
mov dword [ebp - 0x9c], 0
mov ebx, dword [ebp - 0xa0]
lea ecx, [ebp - 0xa8]
push str.SELECT__FROM_Win32_DiskDrive
mov byte [ebp - 4], 3
call fcn.00448d80
mov esi, eax
push 0x688fac
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.00448d80
mov edx, dword [esi]
mov byte [ebp - 4], 5
test edx, edx
je 0x4c27c0
mov edx, dword [edx]
jmp 0x4c27c2
xor edx, edx
mov eax, dword [eax]
test eax, eax
je 0x4c27cc
mov ecx, dword [eax]
jmp 0x4c27ce
xor ecx, ecx
mov eax, dword [ebx]
lea esi, [ebp - 0x9c]
push esi
push 0
push 0x30
push edx
push ecx
push ebx
call dword [eax + 0x50]
lea ecx, [ebp - 0x98]
mov esi, eax
call fcn.00449570
lea ecx, [ebp - 0xa8]
call fcn.00449570
test esi, esi
jns 0x4c2856
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp - 0x9c]
mov byte [ebp - 4], 1
test eax, eax
je 0x4c2822
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 4], 0
test eax, eax
je 0x4c2836
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4c2db6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4c2db6
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
mov ebx, 0xf
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x48], 0
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x4c2d33
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 0x4c2d19
cmp dword [ebp - 0x98], 0
je 0x4c2d19
push str.SerialNumber
push dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push eax
call fcn.004c2de0
mov edx, eax
add esp, 0xc
lea eax, [ebp - 0x48]
cmp eax, edx
je 0x4c2939
mov eax, dword [edx + 8]
mov esi, dword [edx]
mov ecx, dword [edx + 4]
mov ebx, dword [edx + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
jmp 0x4c293c
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x90]
call fcn.004519e0
cmp dword [ebp - 0x38], 0
jne 0x4c296c
mov eax, dword [ebp - 0x94]
mov byte [ebp - 4], 8
test eax, eax
je 0x4c2961
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x9c]
jmp 0x4c2d36
push str.Model
push dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push eax
call fcn.004c2de0
mov edx, eax
add esp, 0xc
lea eax, [ebp - 0x78]
cmp eax, edx
je 0x4c29c5
mov eax, dword [edx + 8]
mov ebx, dword [edx]
mov ecx, dword [edx + 4]
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 - 0x78], ebx
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 0x4c29c8
mov ebx, dword [ebp - 0x78]
lea ecx, [ebp - 0x90]
call fcn.004519e0
push str.FirmwareRevision
push dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push eax
call fcn.004c2de0
mov edx, eax
add esp, 0xc
lea eax, [ebp - 0x60]
cmp eax, edx
je 0x4c2a32
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0xa8], 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 0x4c2a3b
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x90]
call fcn.004519e0
mov eax, dword [ebp - 0x94]
mov byte [ebp - 4], 8
test eax, eax
je 0x4c2a5a
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 0x4c2b0f
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, ebx
mov eax, dword [eax]
test eax, eax
je 0x4c2b0f
test ecx, ecx
je 0x4c2ace
cmp eax, 0x1e
ja 0x4c2ace
push eax
push ecx
lea eax, [ebp - 0x30]
push eax
call fcn.004e25c0
add esp, 0xc
jmp 0x4c2b0f
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 0x4c2afa
call fcn.004e6683
mov dword [eax], 0x16
jmp 0x4c2b0a
cmp eax, 0x1e
jbe 0x4c2b0f
call fcn.004e6683
mov dword [eax], 0x22
call fcn.004e6579
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x4c2ba7
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 - 0xa8]
mov eax, dword [eax]
test eax, eax
je 0x4c2ba7
test ecx, ecx
je 0x4c2b69
cmp eax, 0x1a
ja 0x4c2b69
push eax
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.004e25c0
add esp, 0xc
jmp 0x4c2ba7
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 0x4c2b92
call fcn.004e6683
mov dword [eax], 0x16
jmp 0x4c2ba2
cmp eax, 0x1a
jbe 0x4c2ba7
call fcn.004e6683
mov dword [eax], 0x22
call fcn.004e6579
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x98]
cmp ecx, 0x14
mov dword [ebp - 0x98], ecx
lea edx, [ebp - 0x94]
mov dword [ebp - 0x94], 0x14
cmovge eax, edx
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
cmovae ecx, esi
mov eax, dword [eax]
test eax, eax
je 0x4c2c30
test ecx, ecx
je 0x4c2bf5
cmp eax, 0x16
ja 0x4c2bf5
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.004e25c0
add esp, 0xc
jmp 0x4c2c30
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 0x4c2c1b
call fcn.004e6683
mov dword [eax], 0x16
jmp 0x4c2c2b
cmp eax, 0x16
jbe 0x4c2c30
call fcn.004e6683
mov dword [eax], 0x22
call fcn.004e6579
lea ecx, [ebp - 0x30]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x14], 0
mov byte [edi], 0
jmp 0x4c2c50
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c2c50
sub ecx, edx
lea eax, [ebp - 0x30]
push ecx
push eax
mov ecx, edi
call fcn.0045d850
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 7
cmp eax, 0x10
jb 0x4c2c9c
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4c2c92
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2dd4
push ecx
push esi
call fcn.004cb4db
add esp, 8
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 6
cmp eax, 0x10
jb 0x4c2cd9
mov edx, dword [ebp - 0xa8]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c2ccf
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2dd4
push ecx
push edx
call fcn.004cb4db
add esp, 8
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 3
cmp eax, 0x10
jb 0x4c280e
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4c2d0a
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2dd4
push ecx
push ebx
call fcn.004cb4db
add esp, 8
jmp 0x4c280e
mov eax, dword [ebp - 0x94]
mov byte [ebp - 4], 8
test eax, eax
je 0x4c2d2d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x48]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov byte [ebp - 4], 7
cmp ebx, 0x10
jb 0x4c2d7d
lea ecx, [ebx + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4c2d6d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2dd4
push ecx
push esi
call fcn.004cb4db
mov eax, dword [ebp - 0x9c]
add esp, 8
mov byte [ebp - 4], 1
test eax, eax
je 0x4c2d8b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 4], 0
test eax, eax
je 0x4c2d9f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4c2db6
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, edi
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.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3