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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0528
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5603e8]
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 esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
or edi, 0xffffffff
push edi
push ebx
mov dword [ebp - 0xa8], ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0xac], ebx
lea eax, [ebp - 0xac]
push eax
push 0x53719c
push 1
push ebx
push 0x53726c
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x495e27
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [ebp - 4], edi
jmp 0x4962cd
mov dword [ebp - 0xb0], ebx
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
lea edx, [ebp - 0xb0]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.ROOTCIMV2
push eax
mov eax, dword [ecx + 0xc]
mov byte [ebp - 4], 1
call eax
cmp eax, ebx
jge 0x495e7e
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x495e76
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], edi
jmp 0x4962cd
mov eax, dword [ebp - 0xb0]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jge 0x495ec2
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x495e76
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], edi
jmp 0x4962cd
mov dword [ebp - 0xb4], ebx
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax]
lea edx, [ebp - 0xb4]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_DiskDrive
push 0x5338a0
push eax
mov eax, dword [ecx + 0x50]
mov byte [ebp - 4], 2
call eax
cmp eax, ebx
jge 0x495f35
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov eax, dword [ebp - 0xb4]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x495f14
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x495e76
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], edi
jmp 0x4962cd
mov ecx, 0xf
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
mov eax, dword [ebp - 0xb4]
lea edi, [ecx + 1]
cmp eax, ebx
je 0x4960be
lea esp, [esp]
mov dword [ebp - 0xa4], ebx
lea edx, [ebp - 0xa8]
push edx
lea edx, [ebp - 0xa4]
push edx
push 1
mov dword [ebp - 0xa8], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
mov byte [ebp - 4], 6
call eax
cmp eax, ebx
jl 0x49609e
cmp dword [ebp - 0xa8], ebx
je 0x49609e
mov ecx, dword [ebp - 0xa4]
push str.SerialNumber
push ecx
lea edx, [ebp - 0xa0]
push edx
call fcn.00494df0
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call fcn.00485160
mov byte [ebp - 4], 6
cmp dword [ebp - 0x8c], edi
jb 0x495ff1
mov eax, dword [ebp - 0xa0]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0xa4]
cmp dword [ebp - 0x3c], ebx
jne 0x49601f
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x49600c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xb4]
cmp eax, ebx
jne 0x495f70
jmp 0x4960b4
push str.Model
push eax
lea ecx, [ebp - 0xa0]
push ecx
call fcn.00494df0
add esp, 0xc
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 8
call fcn.00485160
mov byte [ebp - 4], 6
cmp dword [ebp - 0x8c], edi
jb 0x49605f
mov edx, dword [ebp - 0xa0]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0xa4]
push str.FirmwareRevision
push eax
lea ecx, [ebp - 0xa0]
push ecx
call fcn.00494df0
add esp, 0xc
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.00485160
cmp dword [ebp - 0x8c], edi
jb 0x49609e
mov edx, dword [ebp - 0xa0]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0xa4]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x4960b4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x3c], ebx
jne 0x496125
mov ecx, 0xf
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp dword [ebp - 0x38], edi
jb 0x4960dc
mov eax, dword [ebp - 0x4c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, 0xf
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x54], edi
jb 0x4960fb
mov ecx, dword [ebp - 0x68]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, 0xf
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
cmp dword [ebp - 0x70], edi
jb 0x49611d
mov edx, dword [ebp - 0x84]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, 0xf
mov dword [ebp - 0x70], ecx
jmp 0x496292
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
mov eax, dword [ebp - 0x74]
mov edi, 4
cmp eax, ebx
je 0x49618d
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], edi
lea ecx, [ebp - 0xa8]
cmp eax, edi
jl 0x49616b
lea ecx, [ebp - 0xa4]
cmp dword [ebp - 0x70], 0x10
mov eax, dword [ebp - 0x84]
jae 0x49617d
lea eax, [ebp - 0x84]
mov ecx, dword [ecx]
push ecx
push eax
lea edx, [ebp - 0x30]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x4961cc
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], edi
lea ecx, [ebp - 0xa8]
cmp eax, edi
jl 0x4961b0
lea ecx, [ebp - 0xa4]
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
jae 0x4961bc
lea eax, [ebp - 0x68]
mov ecx, dword [ecx]
push ecx
push eax
lea edx, [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], 0x14
lea ecx, [ebp - 0xa8]
cmp eax, 0x14
jl 0x4961f0
lea ecx, [ebp - 0xa4]
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x4961fc
lea eax, [ebp - 0x4c]
mov ecx, dword [ecx]
push ecx
push eax
lea edx, [ebp - 0x28]
push edx
call sub.MSVCR100.dll_memcpy
lea eax, [ebp - 0x30]
mov byte [ebp - 0x14], bl
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
add esp, 0xc
mov byte [esi], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x496221
sub eax, edx
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.00485060
mov edi, 0x10
cmp dword [ebp - 0x38], edi
jb 0x49624c
mov ecx, dword [ebp - 0x4c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x54], edi
jb 0x49626a
mov edx, dword [ebp - 0x68]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
cmp dword [ebp - 0x70], edi
jb 0x49628b
mov eax, dword [ebp - 0x84]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x70], 0xf
mov eax, dword [ebp - 0xb4]
mov byte [ebp - 4], 1
mov byte [ebp - 0x84], bl
mov dword [ebp - 0x74], ebx
cmp eax, ebx
je 0x4962b1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4962c6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xac]
cmp eax, ebx
je 0x4962df
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
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.004b12f6
mov esp, ebp
pop ebp
ret