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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3a04
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x639354]
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 - 0x80], edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x8c], 0
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], 0
push eax
push 0x5dfe34
push 1
push 0
push 0x5dfe24
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x595bbf
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 1
jmp 0x595d75
mov dword [ebp - 0x88], 0
mov esi, dword [ebp - 0x8c]
lea ecx, [ebp - 0x80]
push 0x5d8dbc
mov byte [ebp - 4], 2
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
call fcn.004677a0
mov eax, dword [eax]
mov byte [ebp - 4], 3
test eax, eax
je 0x595bf3
mov eax, dword [eax]
jmp 0x595bf5
xor eax, eax
lea ecx, [ebp - 0x88]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push esi
call ebx
lea ecx, [ebp - 0x80]
mov esi, eax
call fcn.00467d30
test esi, esi
jns 0x595c51
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp - 0x88]
mov byte [ebp - 4], 4
test eax, eax
je 0x595c45
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 5
jmp 0x595d75
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x88]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x595ca6
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp - 0x88]
mov byte [ebp - 4], 6
test eax, eax
je 0x595c9a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 7
jmp 0x595d75
mov dword [ebp - 0x84], 0
mov esi, dword [ebp - 0x88]
lea ecx, [ebp - 0x90]
push str.SELECT__FROM_Win32_DiskDrive
mov byte [ebp - 4], 8
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x80], eax
call fcn.004677a0
mov ebx, dword [eax]
mov byte [ebp - 4], 9
test ebx, ebx
je 0x595ce0
mov ebx, dword [ebx]
jmp 0x595ce2
xor ebx, ebx
push 0x5d8e10
lea ecx, [ebp - 0x94]
call fcn.004677a0
mov eax, dword [eax]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x595d00
mov eax, dword [eax]
jmp 0x595d02
xor eax, eax
lea ecx, [ebp - 0x84]
push ecx
push 0
push 0x30
push ebx
push eax
push esi
call dword [ebp - 0x80]
lea ecx, [ebp - 0x94]
mov esi, eax
call fcn.00467d30
lea ecx, [ebp - 0x90]
call fcn.00467d30
test esi, esi
jns 0x595d8e
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp - 0x84]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x595d5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x88]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x595d6e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x5961fc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5961fc
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], al
mov dword [ebp - 0x60], eax
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 - 0x84]
mov esi, dword [ebp - 0x48]
test eax, eax
je 0x596178
mov dword [ebp - 0x7c], 0
lea edx, [ebp - 0x80]
mov dword [ebp - 0x80], 0
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x7c]
mov byte [ebp - 4], 0x11
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x59615e
cmp dword [ebp - 0x80], 0
je 0x59615e
push str.SerialNumber
push dword [ebp - 0x7c]
lea eax, [ebp - 0x2c]
push eax
call fcn.00596220
mov ebx, eax
add esp, 0xc
lea eax, [ebp - 0x48]
cmp eax, ebx
je 0x595e90
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x595e5c
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x595e52
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59621a
push ecx
push esi
call fcn.0055c524
add esp, 8
mov eax, dword [ebx + 4]
mov esi, dword [ebx]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x34], eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
lea ecx, [ebp - 0x2c]
call fcn.00437c40
mov ebx, dword [ebp - 0x38]
test ebx, ebx
jne 0x595ec3
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 0x13
test eax, eax
je 0x595eb0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x84]
test eax, eax
jne 0x595dd6
jmp 0x596175
push str.Model
push dword [ebp - 0x7c]
lea eax, [ebp - 0x2c]
push eax
call fcn.00596220
mov edx, eax
add esp, 0xc
lea eax, [ebp - 0x78]
cmp eax, edx
je 0x595f1c
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x94], 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 0x595f25
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x94], eax
lea ecx, [ebp - 0x2c]
call fcn.00437c40
push str.FirmwareRevision
push dword [ebp - 0x7c]
lea eax, [ebp - 0x2c]
push eax
call fcn.00596220
mov edx, eax
add esp, 0xc
lea eax, [ebp - 0x60]
cmp eax, edx
je 0x595f86
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x90], 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 0x595f8f
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x2c]
call fcn.00437c40
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 0x14
test eax, eax
je 0x595fa8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x20202020
mov byte [ebp - 4], 0x10
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 - 0x68]
test eax, eax
je 0x596004
cmp eax, 4
mov dword [ebp - 0x80], eax
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x7c], 4
lea ecx, [ebp - 0x80]
cmovge ecx, edx
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 0x10
cmovae eax, dword [ebp - 0x94]
push dword [ecx]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00560500
add esp, 0xc
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x59603e
cmp eax, 4
mov dword [ebp - 0x80], eax
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x7c], 4
lea ecx, [ebp - 0x80]
cmovge ecx, edx
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
cmovae eax, dword [ebp - 0x90]
push dword [ecx]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00560500
add esp, 0xc
cmp ebx, 0x14
mov dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 0x34]
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x7c], 0x14
cmovge ecx, eax
cmp ebx, 0x10
lea eax, [ebp - 0x48]
cmovae eax, esi
push dword [ecx]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00560500
add esp, 0xc
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.004abb90
mov byte [ebp - 4], 0xf
cmp ebx, 0x10
jb 0x5960b0
inc ebx
mov eax, esi
cmp ebx, 0x1000
jb 0x5960a6
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59621a
push ebx
push esi
call fcn.0055c524
add esp, 8
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0xe
cmp eax, 0x10
jb 0x5960ed
mov ecx, dword [ebp - 0x90]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x5960e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59621a
push edx
push ecx
call fcn.0055c524
add esp, 8
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 8
cmp eax, 0x10
jb 0x59612a
mov ecx, dword [ebp - 0x94]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x596120
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59621a
push edx
push ecx
call fcn.0055c524
add esp, 8
mov eax, dword [ebp - 0x84]
mov byte [ebp - 4], 0x19
test eax, eax
je 0x59613e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x88]
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x596152
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x1b
jmp 0x595d75
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 0x12
test eax, eax
je 0x59616f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x34]
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 0x5961c3
inc ebx
mov eax, esi
cmp ebx, 0x1000
jb 0x5961b3
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59621a
push ebx
push esi
call fcn.0055c524
mov eax, dword [ebp - 0x84]
add esp, 8
mov byte [ebp - 4], 0x16
test eax, eax
je 0x5961d1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x88]
mov byte [ebp - 4], 0x17
test eax, eax
je 0x5961e5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 4], 0x18
test ecx, ecx
je 0x5961fc
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.0055c3a9
mov esp, ebp
pop ebp
ret
call fcn.0056af64
int3