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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af34a
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x63434c]
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 - 0xa4], edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x9c], 0
lea eax, [ebp - 0x9c]
mov dword [ebp - 4], 0
push eax
push 0x5dac14
push 1
push 0
push 0x5dac04
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x594922
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 1
jmp 0x594ae4
mov dword [ebp - 0x98], 0
mov esi, dword [ebp - 0x9c]
lea ecx, [ebp - 0xa4]
push 0x5d3b24
mov byte [ebp - 4], 2
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
call fcn.00467b90
mov eax, dword [eax]
mov byte [ebp - 4], 3
test eax, eax
je 0x594959
mov eax, dword [eax]
jmp 0x59495b
xor eax, eax
lea ecx, [ebp - 0x98]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push esi
call ebx
lea ecx, [ebp - 0xa4]
mov esi, eax
call fcn.00468120
test esi, esi
jns 0x5949ba
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], 4
test eax, eax
je 0x5949ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 5
jmp 0x594ae4
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x98]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x594a0f
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], 6
test eax, eax
je 0x594a03
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 7
jmp 0x594ae4
mov dword [ebp - 0x94], 0
mov esi, dword [ebp - 0x98]
lea ecx, [ebp - 0xa8]
push str.SELECT__FROM_Win32_DiskDrive
mov byte [ebp - 4], 8
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xa4], eax
call fcn.00467b90
mov ebx, dword [eax]
mov byte [ebp - 4], 9
test ebx, ebx
je 0x594a4c
mov ebx, dword [ebx]
jmp 0x594a4e
xor ebx, ebx
push 0x5d3b78
lea ecx, [ebp - 0xac]
call fcn.00467b90
mov eax, dword [eax]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x594a6c
mov eax, dword [eax]
jmp 0x594a6e
xor eax, eax
lea ecx, [ebp - 0x94]
push ecx
push 0
push 0x30
push ebx
push eax
push esi
call dword [ebp - 0xa4]
lea ecx, [ebp - 0xac]
mov esi, eax
call fcn.00468120
lea ecx, [ebp - 0xa8]
call fcn.00468120
test esi, esi
jns 0x594afd
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp - 0x94]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x594ac9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x98]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x594add
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x59505a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x59505a
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], al
mov ebx, 0xf
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x48], al
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x594fd1
mov dword [ebp - 0xa0], 0
lea edx, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0xa0]
mov byte [ebp - 4], 0x11
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x594fb7
cmp dword [ebp - 0xa4], 0
je 0x594fb7
push str.SerialNumber
push dword [ebp - 0xa0]
lea eax, [ebp - 0x90]
push eax
call fcn.0052aae0
mov edx, eax
add esp, 0xc
lea eax, [ebp - 0x48]
cmp eax, edx
je 0x594be9
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 0x594bec
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x90]
call fcn.00437be0
cmp dword [ebp - 0x38], 0
jne 0x594c1c
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 4], 0x13
test eax, eax
je 0x594c11
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x94]
jmp 0x594fd4
push str.Model
push dword [ebp - 0xa0]
lea eax, [ebp - 0x90]
push eax
call fcn.0052aae0
mov edx, eax
add esp, 0xc
lea eax, [ebp - 0x78]
cmp eax, edx
je 0x594c7b
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 - 0xac], ebx
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 0x594c84
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0x90]
call fcn.00437be0
push str.FirmwareRevision
push dword [ebp - 0xa0]
lea eax, [ebp - 0x90]
push eax
call fcn.0052aae0
mov edx, eax
add esp, 0xc
lea eax, [ebp - 0x60]
cmp eax, edx
je 0x594cee
mov eax, dword [edx + 8]
mov ebx, dword [edx]
mov ecx, dword [edx + 4]
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 - 0xa8], ebx
mov dword [ebp - 0x60], ebx
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 0x594cf7
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x90]
call fcn.00437be0
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 4], 0x14
test eax, eax
je 0x594d16
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x68]
mov eax, 0x20202020
mov byte [ebp - 4], 0x10
mov ebx, 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 ecx, ecx
je 0x594db7
mov eax, ebx
cmp ecx, eax
cmovl eax, ecx
cmp dword [ebp - 0x64], 0x10
lea ecx, [ebp - 0x78]
cmovae ecx, dword [ebp - 0xac]
test eax, eax
je 0x594db7
test ecx, ecx
je 0x594d76
cmp eax, 0x1e
ja 0x594d76
push eax
push ecx
lea eax, [ebp - 0x30]
push eax
call fcn.0055bfb0
add esp, 0xc
jmp 0x594db7
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 0x594da2
call fcn.00566ade
mov dword [eax], 0x16
jmp 0x594db2
cmp eax, 0x1e
jbe 0x594db7
call fcn.00566ade
mov dword [eax], 0x22
call fcn.00566a04
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x594e2d
cmp eax, 4
cmovl ebx, eax
cmp dword [ebp - 0x4c], 0x10
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0xa8]
test ebx, ebx
je 0x594e2d
test eax, eax
je 0x594def
cmp ebx, 0x1a
ja 0x594def
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0055bfb0
add esp, 0xc
jmp 0x594e2d
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], cx
test eax, eax
jne 0x594e18
call fcn.00566ade
mov dword [eax], 0x16
jmp 0x594e28
cmp ebx, 0x1a
jbe 0x594e2d
call fcn.00566ade
mov dword [eax], 0x22
call fcn.00566a04
mov ebx, dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
mov eax, 0x14
cmp dword [ebp - 0x38], eax
cmovl eax, dword [ebp - 0x38]
cmp ebx, 0x10
cmovae ecx, esi
test eax, eax
je 0x594e9d
test ecx, ecx
je 0x594e62
cmp eax, 0x16
ja 0x594e62
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.0055bfb0
add esp, 0xc
jmp 0x594e9d
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 0x594e88
call fcn.00566ade
mov dword [eax], 0x16
jmp 0x594e98
cmp eax, 0x16
jbe 0x594e9d
call fcn.00566ade
mov dword [eax], 0x22
call fcn.00566a04
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
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x594ec0
sub ecx, edx
lea eax, [ebp - 0x30]
push ecx
push eax
mov ecx, edi
call fcn.004385d0
mov byte [ebp - 4], 0xf
cmp ebx, 0x10
jb 0x594f09
lea ecx, [ebx + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x594eff
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x595078
push ecx
push esi
call fcn.00558004
add esp, 8
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0xe
cmp eax, 0x10
jb 0x594f46
mov edx, dword [ebp - 0xa8]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x594f3c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x595078
push ecx
push edx
call fcn.00558004
add esp, 8
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 8
cmp eax, 0x10
jb 0x594f83
mov edx, dword [ebp - 0xac]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x594f79
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x595078
push ecx
push edx
call fcn.00558004
add esp, 8
mov eax, dword [ebp - 0x94]
mov byte [ebp - 4], 0x19
test eax, eax
je 0x594f97
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x98]
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x594fab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x1b
jmp 0x594ae4
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 4], 0x12
test eax, eax
je 0x594fcb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x94]
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 0x595021
lea ecx, [ebx + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x595011
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x595078
push ecx
push esi
call fcn.00558004
mov eax, dword [ebp - 0x94]
add esp, 8
mov byte [ebp - 4], 0x16
test eax, eax
je 0x59502f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x98]
mov byte [ebp - 4], 0x17
test eax, eax
je 0x595043
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 4], 0x18
test ecx, ecx
je 0x59505a
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.00557e89
mov esp, ebp
pop ebp
ret
call fcn.00566a14
int3