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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50deaa
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x567e00]
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 - 0x9c], 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 0x535ac0
push 1
push 0
push 0x535ab0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4c47d2
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 1
jmp 0x4c4994
mov dword [ebp - 0xa0], 0
mov esi, dword [ebp - 0xa4]
lea ecx, [ebp - 0x9c]
push 0x5352ec
mov byte [ebp - 4], 2
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
call fcn.004ab2f0
mov eax, dword [eax]
mov byte [ebp - 4], 3
test eax, eax
je 0x4c4809
mov eax, dword [eax]
jmp 0x4c480b
xor eax, eax
lea ecx, [ebp - 0xa0]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push esi
call ebx
lea ecx, [ebp - 0x9c]
mov esi, eax
call fcn.004ab620
test esi, esi
jns 0x4c486a
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 4], 4
test eax, eax
je 0x4c485e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 5
jmp 0x4c4994
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
jns 0x4c48bf
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 4], 6
test eax, eax
je 0x4c48b3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 7
jmp 0x4c4994
mov dword [ebp - 0x98], 0
mov esi, dword [ebp - 0xa0]
lea ecx, [ebp - 0x94]
push str.SELECT__FROM_Win32_DiskDrive
mov byte [ebp - 4], 8
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x9c], eax
call fcn.004ab2f0
mov ebx, dword [eax]
mov byte [ebp - 4], 9
test ebx, ebx
je 0x4c48fc
mov ebx, dword [ebx]
jmp 0x4c48fe
xor ebx, ebx
push 0x535340
lea ecx, [ebp - 0xa8]
call fcn.004ab2f0
mov eax, dword [eax]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x4c491c
mov eax, dword [eax]
jmp 0x4c491e
xor eax, eax
lea ecx, [ebp - 0x98]
push ecx
push 0
push 0x30
push ebx
push eax
push esi
call dword [ebp - 0x9c]
lea ecx, [ebp - 0xa8]
mov esi, eax
call fcn.004ab620
lea ecx, [ebp - 0x94]
call fcn.004ab620
test esi, esi
jns 0x4c49ad
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp - 0x98]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x4c4979
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x4c498d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x4c4f2d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4c4f2d
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov ebx, 0xf
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x48], 0
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x4c4e9e
mov dword [ebp - 0x94], 0
lea edx, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 0x11
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4c4e84
cmp dword [ebp - 0x9c], 0
je 0x4c4e84
push str.SerialNumber
push dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push eax
call fcn.004c4f50
mov edx, eax
add esp, 0xc
lea eax, [ebp - 0x48]
cmp eax, edx
je 0x4c4aa5
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 0x4c4aa8
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x90]
call fcn.00414cf0
cmp dword [ebp - 0x38], 0
jne 0x4c4ad8
mov eax, dword [ebp - 0x94]
mov byte [ebp - 4], 0x13
test eax, eax
je 0x4c4acd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x98]
jmp 0x4c4ea1
push str.Model
push dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push eax
call fcn.004c4f50
mov edx, eax
add esp, 0xc
lea eax, [ebp - 0x78]
cmp eax, edx
je 0x4c4b31
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 0x4c4b34
mov ebx, dword [ebp - 0x78]
lea ecx, [ebp - 0x90]
call fcn.00414cf0
push str.FirmwareRevision
push dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push eax
call fcn.004c4f50
mov edx, eax
add esp, 0xc
lea eax, [ebp - 0x60]
cmp eax, edx
je 0x4c4b9e
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 0x4c4ba7
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x90]
call fcn.00414cf0
mov eax, dword [ebp - 0x94]
mov byte [ebp - 4], 0x14
test eax, eax
je 0x4c4bc6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x68]
mov eax, 0x20202020
mov byte [ebp - 4], 0x10
mov ecx, 4
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 edx, edx
je 0x4c4c83
mov eax, ecx
cmp edx, eax
cmovl eax, edx
cmp dword [ebp - 0x64], 0x10
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x78]
mov edx, dword [ebp - 0x9c]
cmovae eax, ebx
mov dword [ebp - 0x94], eax
test edx, edx
je 0x4c4c83
test eax, eax
je 0x4c4c38
cmp edx, 0x1e
ja 0x4c4c38
push edx
push eax
lea eax, [ebp - 0x30]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4c4c7e
xor eax, eax
cmp dword [ebp - 0x94], eax
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
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jne 0x4c4c6a
call eax
mov dword [eax], 0x16
jmp 0x4c4c77
cmp edx, 0x1e
jbe 0x4c4c83
call eax
mov dword [eax], 0x22
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
call eax
mov ecx, 4
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x4c4cf9
cmp edx, 4
cmovl ecx, edx
cmp dword [ebp - 0x4c], 0x10
lea edx, [ebp - 0x60]
cmovae edx, dword [ebp - 0xa8]
test ecx, ecx
je 0x4c4cf9
test edx, edx
je 0x4c4cbb
cmp ecx, 0x1a
ja 0x4c4cbb
push ecx
push edx
lea eax, [ebp - 0x2c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4c4cf9
xor eax, 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
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
test edx, edx
jne 0x4c4ce6
call eax
mov dword [eax], 0x16
jmp 0x4c4cf3
cmp ecx, 0x1a
jbe 0x4c4cf9
call eax
mov dword [eax], 0x22
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov eax, 0x14
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x38], eax
cmovl eax, dword [ebp - 0x38]
cmp dword [ebp - 0x34], 0x10
cmovae ecx, esi
test eax, eax
je 0x4c4d6c
test ecx, ecx
je 0x4c4d2c
cmp eax, 0x16
ja 0x4c4d2c
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4c4d6c
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 0x4c4d54
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call eax
mov dword [eax], 0x16
jmp 0x4c4d66
cmp eax, 0x16
jbe 0x4c4d6c
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call eax
mov dword [eax], 0x22
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea ecx, [ebp - 0x30]
mov dword [edi], 0
mov dword [edi + 0x10], 0
lea edx, [ecx + 1]
mov dword [edi + 0x14], 0xf
mov byte [ebp - 0x14], 0
mov byte [edi], 0
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c4d90
sub ecx, edx
lea eax, [ebp - 0x30]
push ecx
push eax
mov ecx, edi
call fcn.0041a800
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0xf
cmp eax, 0x10
jb 0x4c4ddc
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4c4dd2
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c4ede
push ecx
push esi
call fcn.004c6f6f
add esp, 8
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0xe
cmp eax, 0x10
jb 0x4c4e19
mov edx, dword [ebp - 0xa8]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c4e0f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c4ede
push ecx
push edx
call fcn.004c6f6f
add esp, 8
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 8
cmp eax, 0x10
jb 0x4c4e50
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4c4e46
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c4ede
push ecx
push ebx
call fcn.004c6f6f
add esp, 8
mov eax, dword [ebp - 0x98]
mov byte [ebp - 4], 0x19
test eax, eax
je 0x4c4e64
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x4c4e78
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x1b
jmp 0x4c4994
mov eax, dword [ebp - 0x94]
mov byte [ebp - 4], 0x12
test eax, eax
je 0x4c4e98
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x98]
mov esi, dword [ebp - 0x48]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov byte [ebp - 4], 0xf
cmp ebx, 0x10
jb 0x4c4ef4
lea ecx, [ebx + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4c4ee4
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c4ee4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.004c6f6f
mov eax, dword [ebp - 0x98]
add esp, 8
mov byte [ebp - 4], 0x16
test eax, eax
je 0x4c4f02
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 4], 0x17
test eax, eax
je 0x4c4f16
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 4], 0x18
test ecx, ecx
je 0x4c4f2d
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.004c6f8b
mov esp, ebp
pop ebp
ret