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

Disassembly:
push 0xffffffffffffffff
push 0x49190f
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x4ed394]
xor eax, esp
mov dword [esp + 0x678], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x694]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6a4]
xor ebx, ebx
mov dword [esp + 0x24], ebx
test byte [0x4f4f60], 1
mov dword [esp + 0x60], ebp
lea esi, [ebx + 0xf]
jne 0x475b9e
or dword [0x4f4f60], 1
push 0x4ab530
mov dword [0x4f4f5c], esi
mov dword [0x4f4f58], ebx
mov byte [0x4f4f48], bl
call fcn.0047a75d
add esp, 4
mov ecx, 0x4f4f44
call fcn.0046df00
test al, al
jne 0x475bcb
push 0xffffffffffffffff
push ebx
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
push 0x4f4f44
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.0040e070
mov eax, ebp
jmp 0x476504
push ebx
push 0x4c5fc4
lea ecx, [esp + 0x13c]
mov dword [esp + 0x154], esi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
call fcn.0040da70
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x6c0], ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, 0x80010119
je 0x475c51
cmp eax, ebx
jge 0x475c51
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x13c]
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
push eax
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.0040e070
cmp dword [esp + 0x14c], 0x10
jb 0x475c4a
mov ecx, dword [esp + 0x138]
push ecx
call fcn.00479461
add esp, 4
mov eax, ebp
jmp 0x476504
lea edx, [esp + 0x20]
push edx
push 0x4b73b4
push 1
push ebx
push 0x4b7484
mov dword [esp + 0x34], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x475c15
mov dword [esp + 0x28], ebx
lea ebx, [esp + 0x2c]
call fcn.00474790
mov byte [esp + 0x69c], 1
mov eax, dword [eax]
xor ebx, ebx
cmp eax, ebx
je 0x475c92
mov eax, dword [eax]
jmp 0x475c94
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
lea esi, [esp + 0x28]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
lea edi, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x69c], bl
call fcn.004748f0
cmp esi, ebx
jge 0x475d00
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x13c]
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
push eax
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.0040e070
lea ecx, [esp + 0x134]
call fcn.0040e180
mov eax, ebp
jmp 0x476504
mov ecx, dword [esp + 0x28]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jge 0x475d53
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x134]
push eax
mov ecx, ebp
call fcn.0040e150
lea ecx, [esp + 0x134]
call fcn.0040e180
mov eax, ebp
jmp 0x476504
mov eax, 0x4bf31c
lea ecx, [esp + 0x150]
call fcn.0040b090
push 0x11c
lea ecx, [esp + 0x170]
push ebx
push ecx
mov byte [esp + 0x6a8], 2
call fcn.0047c520
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea edx, [esp + 0x16c]
push edx
mov dword [esp + 0x170], 0x11c
call esi
cmp eax, ebx
jne 0x475de1
lea eax, [esp + 0x16c]
push eax
mov dword [esp + 0x170], 0x114
call esi
test eax, eax
jne 0x475de1
push ebx
mov ecx, ebp
call fcn.0040dba0
lea esi, [esp + 0x150]
call fcn.00469b30
lea ecx, [esp + 0x134]
call fcn.0040e180
mov eax, ebp
jmp 0x476504
cmp dword [esp + 0x170], 6
push 0x400
lea ecx, [esp + 0x290]
push ebx
push ecx
setae byte [esp + 0x2b]
call fcn.0047c520
add esp, 0xc
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], 0x4bbf14
cmp byte [esp + 0x1f], bl
jne 0x475e22
mov dword [esp + 0x2c], str.SELECT__FROM_Win32_NetworkAdapter_WHERE__MACAddress_IS_NOT_NULL__AND__NOT__PNPDeviceID_LIKE_ROOT___
lea edx, [esp + 0x28c]
xor ebp, ebp
mov dword [esp + 0x18], edx
jmp 0x475e33
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + ebp*8]
mov dword [esp + 0x34], ebx
push ecx
lea ebx, [esp + 0x60]
call fcn.00474700
mov esi, eax
push 0x4c66e8
lea ebx, [esp + 0x58]
mov byte [esp + 0x6a0], 3
call fcn.00474700
mov byte [esp + 0x69c], 4
mov ecx, dword [esi]
xor ebx, ebx
cmp ecx, ebx
je 0x475e74
mov ecx, dword [ecx]
jmp 0x475e76
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x475e80
mov edx, dword [eax]
jmp 0x475e82
xor edx, edx
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
lea edi, [esp + 0x34]
push edi
push ebx
push 0x30
push ecx
push edx
mov edx, dword [esi + 0x50]
push eax
call edx
lea edi, [esp + 0x54]
mov esi, eax
call fcn.004748f0
lea edi, [esp + 0x5c]
mov byte [esp + 0x69c], 2
call fcn.004748f0
cmp esi, ebx
jge 0x475ecd
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
jmp 0x475fef
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x34]
push edx
push 1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x4c], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x40], ebx
je 0x475feb
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x84]
push eax
call esi
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x8c]
push edx
mov edx, dword [esp + 0x38]
mov edx, dword [edx + ebp*8 + 4]
push ebx
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
lea ecx, [esp + 0x64]
push ecx
call esi
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jl 0x476164
lea esi, [esp + 0x64]
lea edi, [esp + 0x58]
mov byte [esp + 0x69c], 5
call fcn.00474950
mov eax, dword [eax]
cmp eax, ebx
je 0x475f6a
mov esi, dword [eax]
jmp 0x475f6c
xor esi, esi
mov eax, dword [esp + 0x18]
mov edx, 0x7f
sub esi, eax
jmp 0x475f80
lea ecx, [edx + 0x7fffff7f]
test ecx, ecx
je 0x475fa0
movzx ecx, word [eax + esi]
cmp cx, bx
je 0x475fa0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x475f80
jmp 0x475fa4
cmp edx, ebx
jne 0x475fa7
sub eax, 2
xor edx, edx
lea edi, [esp + 0x58]
mov word [eax], dx
call fcn.004748f0
lea eax, [esp + 0x64]
mov byte [esp + 0x69c], 2
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push eax
call esi
lea ecx, [esp + 0x84]
push ecx
call esi
mov eax, dword [esp + 0x18]
mov ecx, ebp
call fcn.004750a0
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add dword [esp + 0x18], 0x100
inc ebp
cmp ebp, 4
jl 0x475e31
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x290]
call fcn.00417890
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x390]
mov byte [esp + 0x6a0], 6
call fcn.00417890
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x490]
mov ebp, 7
mov byte [esp + 0x6a0], 7
call fcn.00417890
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x590]
lea esi, [ebp + 1]
mov byte [esp + 0x6a0], 8
call fcn.00417890
mov byte [esp + 0x69c], 9
mov edx, dword [0x4f100c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f100c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x69c], 0xa
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 0xc]
xor edi, edi
cmp eax, edi
jle 0x4760d4
push eax
push ecx
lea eax, [esp + 0x20]
call fcn.00432a7e
push 1
push str._
lea eax, [esp + 0x20]
call fcn.00432a7e
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx - 0xc]
cmp eax, edi
jle 0x4760fa
push eax
push ecx
lea eax, [esp + 0x20]
call fcn.00432a7e
push 1
push str._
lea eax, [esp + 0x20]
call fcn.00432a7e
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx - 0xc]
cmp eax, edi
jle 0x476110
push eax
push ecx
lea eax, [esp + 0x20]
call fcn.00432a7e
push 1
push 0x4c66f0
lea eax, [esp + 0x20]
call fcn.00432a7e
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx - 0xc]
cmp eax, edi
jle 0x476146
push eax
push ecx
lea eax, [esp + 0x20]
call fcn.00432a7e
push 1
push str._
lea eax, [esp + 0x20]
call fcn.00432a7e
lea ecx, [esp + 0x84]
call fcn.004757a0
mov byte [esp + 0x69c], 0xb
cmp dword [eax + 0x18], esi
jb 0x47616a
mov eax, dword [eax + 4]
jmp 0x47616d
push eax
call fcn.0048ac70
add eax, 4
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.00417890
mov byte [esp + 0x69c], 0xd
cmp dword [esp + 0x9c], esi
jb 0x47619a
mov edx, dword [esp + 0x88]
push edx
call fcn.00479461
add esp, 4
lea ecx, [esp + 0x64]
xor eax, eax
push ecx
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], edi
mov word [esp + 0x8c], ax
call fcn.004758d0
add esp, 4
mov ebx, 0xe
mov byte [esp + 0x69c], bl
cmp dword [eax + 0x18], esi
jb 0x4761d5
mov eax, dword [eax + 4]
jmp 0x4761d8
add eax, 4
lea edx, [esp + 0x48]
push edx
mov ecx, eax
call fcn.00417890
mov byte [esp + 0x69c], 0x10
cmp dword [esp + 0x7c], esi
jb 0x4761ff
mov eax, dword [esp + 0x68]
push eax
call fcn.00479461
add esp, 4
xor ecx, ecx
lea edx, [esp + 0x48]
push edx
mov word [esp + 0x6c], cx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x44]
push edx
lea edx, [esp + 0x54]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], edi
call fcn.00475100
mov ebp, dword [esp + 0x28]
add esp, 0x10
cmp dword [ebp - 0xc], edi
jne 0x476251
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x134]
jmp 0x476307
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x11c]
call fcn.00475a40
add esp, 4
mov esi, eax
mov byte [esp + 0x69c], 0x11
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [esp + 0xe4]
mov dword [esp + 0x28], 2
call fcn.00475a40
add esp, 4
mov edi, eax
mov dword [esp + 0x69c], 0x12
push ebp
lea ecx, [esp + 0xc8]
mov dword [esp + 0x28], 6
call fcn.00475a40
add esp, 4
push edi
mov dword [esp + 0x6a0], 0x13
push eax
lea edi, [esp + 0xb0]
mov dword [esp + 0x2c], ebx
call fcn.00467b70
push esi
mov dword [esp + 0x6a8], 0x14
push eax
lea edi, [esp + 0x10c]
mov dword [esp + 0x34], 0x1e
call fcn.00467b70
add esp, 0x10
mov ebx, 0x3e
mov dword [esp + 0x69c], 0x15
mov dword [esp + 0x24], ebx
xor edi, edi
push eax
mov ecx, 0x4f4f44
call fcn.0046ddf0
mov esi, dword [esp + 0x60]
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov byte [esi + 4], 0
call fcn.0040e070
or ebx, 1
test bl, 0x20
je 0x476346
lea ecx, [esp + 0xfc]
and ebx, 0xffffffdf
call fcn.0040e180
test bl, 0x10
je 0x47635a
lea ecx, [esp + 0xa8]
and ebx, 0xffffffef
call fcn.0040e180
test bl, 8
je 0x47636e
lea ecx, [esp + 0xc4]
and ebx, 0xfffffff7
call fcn.0040e180
test bl, 4
je 0x476382
lea ecx, [esp + 0xe0]
and ebx, 0xfffffffb
call fcn.0040e180
mov dword [esp + 0x69c], 0x10
test bl, 2
je 0x47639e
lea ecx, [esp + 0x118]
call fcn.0040e180
mov byte [esp + 0x69c], 0xd
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4763c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x69c], 0xa
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4763ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x69c], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x476412
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x69c], 8
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47643a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x69c], 7
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x476462
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x69c], 6
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47648a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x69c], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4764b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x168], 8
jb 0x4764cc
mov ecx, dword [esp + 0x154]
push ecx
call fcn.00479461
add esp, 4
xor edx, edx
cmp dword [esp + 0x14c], 0x10
mov dword [esp + 0x168], 7
mov dword [esp + 0x164], edi
mov word [esp + 0x154], dx
jb 0x476502
mov eax, dword [esp + 0x138]
push eax
call fcn.00479461
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x694]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x678]
xor ecx, esp
call fcn.0047946c
add esp, 0x68c
ret