Function at 0x434590
Capabilities:
Check os version
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x483004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x368]
push eax
mov dword [ebp - 0x358], edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0
push 0
mov dword [ebp - 4], 0
xor bl, bl
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x348]
mov byte [ebp - 4], 2
push eax
push 0x469c38
push 1
push 0
push 0x469d08
mov dword [ebp - 0x348], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x43461d
push eax
call fcn.00437940
mov dword [ebp - 0x334], 0
mov esi, dword [ebp - 0x348]
mov byte [ebp - 4], 3
test esi, esi
jne 0x43463f
push 0x80004003
call fcn.00437940
push str.ROOTCIMV2
lea ecx, [ebp - 0x34c]
call fcn.00431df0
mov dword [ebp - 0x344], eax
mov ecx, dword [ebp - 0x334]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x43466f
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [ebp - 0x344]
mov dword [ebp - 0x334], 0
mov eax, dword [eax]
test eax, eax
je 0x434683
mov ecx, dword [eax]
jmp 0x434685
xor ecx, ecx
mov eax, dword [esi]
lea edx, [ebp - 0x334]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push esi
call dword [eax + 0xc]
test eax, eax
jns 0x4346a9
push eax
call fcn.00437940
mov esi, dword [ebp - 0x34c]
mov byte [ebp - 4], 3
test esi, esi
je 0x4346fe
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4346fe
test esi, esi
je 0x4346fe
mov eax, dword [esi]
test eax, eax
je 0x4346dc
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4346f3
push eax
call fcn.00436c52
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00436a0b
add esp, 8
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x334]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x434722
push eax
call fcn.00437940
mov dword [ebp - 0x338], 0
mov esi, dword [ebp - 0x334]
mov byte [ebp - 4], 5
test esi, esi
jne 0x434744
push 0x80004003
call fcn.00437940
push str.SELECT__FROM_Win32_OperatingSystem
lea ecx, [ebp - 0x350]
call fcn.00431d60
mov dword [ebp - 0x34c], eax
push 0x469830
lea ecx, [ebp - 0x344]
mov byte [ebp - 4], 6
call fcn.00431d60
mov dword [ebp - 0x354], eax
mov ecx, dword [ebp - 0x338]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x434788
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [ebp - 0x34c]
mov dword [ebp - 0x338], 0
mov eax, dword [eax]
test eax, eax
je 0x4347a2
mov edx, dword [eax]
jmp 0x4347a4
xor edx, edx
mov eax, dword [ebp - 0x354]
mov eax, dword [eax]
test eax, eax
je 0x4347b4
mov ecx, dword [eax]
jmp 0x4347b6
xor ecx, ecx
mov eax, dword [esi]
lea edi, [ebp - 0x338]
push edi
push 0
push 0x30
push edx
push ecx
push esi
call dword [eax + 0x50]
mov edi, dword [ebp - 0x358]
test eax, eax
jns 0x4347d9
push eax
call fcn.00437940
mov esi, dword [ebp - 0x344]
test esi, esi
je 0x434834
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x43482a
test esi, esi
je 0x43482a
mov eax, dword [esi]
test eax, eax
je 0x434808
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x43481f
push eax
call fcn.00436c52
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00436a0b
add esp, 8
mov dword [ebp - 0x344], 0
mov esi, dword [ebp - 0x350]
test esi, esi
je 0x434885
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x434885
test esi, esi
je 0x434885
mov eax, dword [esi]
test eax, eax
je 0x434863
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x43487a
push eax
call fcn.00436c52
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00436a0b
add esp, 8
xor eax, eax
mov dword [ebp - 0x33c], eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x340], eax
nop word [eax + eax]
mov esi, dword [ebp - 0x338]
test esi, esi
jne 0x4348b4
push 0x80004003
call fcn.00437940
test eax, eax
je 0x4348be
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x33c], 0
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0x33c]
push ecx
push 1
push 0xffffffffffffffff
push esi
call dword [eax + 0x10]
test eax, eax
jns 0x4348ea
push eax
call fcn.00437940
cmp dword [ebp - 0x340], 0
mov eax, dword [ebp - 0x33c]
jne 0x434aae
mov byte [ebp - 4], 5
test eax, eax
je 0x43490b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x338]
mov byte [ebp - 4], 3
test eax, eax
je 0x43491f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x334]
mov byte [ebp - 4], 2
test eax, eax
je 0x434933
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x348]
mov byte [ebp - 4], 1
test eax, eax
je 0x434947
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
test bl, bl
je 0x434af6
mov esi, dword [ebp - 0x360]
test edi, edi
je 0x43497c
push esi
push str.Original_System_Version___s_
push edi
call fcn.00430310
add esp, 0xc
mov ecx, edi
call fcn.0042f4f0
push 0x114
lea eax, [ebp - 0x330]
push 0
push eax
call fcn.004398f0
add esp, 0xc
mov dword [ebp - 0x330], 0x114
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test edi, edi
je 0x4349ce
push dword [ebp - 0x328]
push dword [ebp - 0x32c]
push str.Launching_System_Version___d._d_
push edi
call fcn.00430310
add esp, 0x10
mov ecx, edi
call fcn.0042f4f0
lea ecx, [ebp - 0x21c]
mov edx, 0x104
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4349fe
movzx eax, word [esi + ecx]
test ax, ax
je 0x4349fe
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4349e0
lea eax, [ecx - 2]
test edx, edx
push 0x2e
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x21c]
push eax
call fcn.00439a4a
mov esi, eax
mov dword [ebp - 0x340], 0
add esp, 8
test esi, esi
je 0x434a4e
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x21c]
push eax
call fcn.0043eafe
add esp, 4
mov dword [ebp - 0x340], eax
cmp eax, dword [ebp - 0x32c]
jne 0x434a9d
add esi, 2
xor edi, edi
push 0x2e
push esi
call fcn.00439a4a
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x434a7c
xor eax, eax
push esi
mov word [ebx], ax
call fcn.0043eafe
mov edi, eax
add esp, 4
cmp edi, dword [ebp - 0x328]
jne 0x434a9d
cmp dword [ebp - 0x340], 6
jne 0x434af6
test edi, edi
jne 0x434af6
lea eax, [ebx + 2]
push eax
call fcn.0043eafe
add esp, 4
cmp eax, dword [ebp - 0x324]
je 0x434af6
lea eax, [ebp - 0x368]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov al, 1
jmp 0x434b05
test eax, eax
jne 0x434abc
push 0x80004003
call fcn.00437940
mov ecx, dword [eax]
lea edx, [ebp - 0x350]
push 0
push edx
lea edx, [ebp - 0x368]
push edx
push 0
push 0x469834
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x434ae3
push eax
call fcn.00437940
mov eax, dword [ebp - 0x33c]
mov bl, 1
jmp 0x4348a0
lea eax, [ebp - 0x368]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004369c2
mov esp, ebp
pop ebp
ret