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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6cc
push ebx
push esi
lea eax, [ebp - 0xcc]
push edi
mov edi, dword [0x61b0d0]
xor esi, esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
xor ebx, ebx
mov dword [ebp - 0xcc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xbc], 2
je 0x49e790
xor eax, eax
jmp 0x49e9b3
lea eax, [ebp - 0x14]
push eax
push 0x569260
push 1
push esi
push 0x569250
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x49e98a
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
push edx
push esi
mov ecx, dword [eax]
push esi
push esi
push esi
push esi
push esi
push str.ROOTCIMV2
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x49e98a
push 0x20
push esi
push 3
push 6
push esi
push esi
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp edi, esi
jne 0x49e7fa
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push esi
mov ecx, dword [eax]
push 0x30
push str.SELECT_SerialNumber_FROM_Win32_PhysicalMedia_WHERE_TAG.PHYSICALDRIVE0
jmp 0x49e840
cmp edi, 1
jne 0x49e812
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push esi
mov ecx, dword [eax]
push 0x30
push str.SELECT_SerialNumber_FROM_Win32_PhysicalMedia_WHERE_TAG.PHYSICALDRIVE1
jmp 0x49e840
cmp edi, 2
jne 0x49e82a
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push esi
mov ecx, dword [eax]
push 0x30
push str.SELECT_SerialNumber_FROM_Win32_PhysicalMedia_WHERE_TAG.PHYSICALDRIVE2
jmp 0x49e840
cmp edi, 3
jne 0x49e849
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push esi
mov ecx, dword [eax]
push 0x30
push str.SELECT_SerialNumber_FROM_Win32_PhysicalMedia_WHERE_TAG.PHYSICALDRIVE3
push 0x5e93b4
push eax
call dword [ecx + 0x50]
cmp eax, esi
jl 0x49e98a
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0xc], esi
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp eax, esi
jl 0x49e98a
cmp dword [ebp - 0xc], esi
jne 0x49e882
cmp eax, esi
je 0x49e851
jmp 0x49e98a
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0xc]
push esi
lea edx, [ebp - 0x38]
push esi
mov ecx, dword [eax]
push edx
push esi
push str.SerialNumber
push eax
call dword [ecx + 0x10]
mov edi, dword [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x14
mov dword [ebp - 0x18], eax
jle 0x49e952
cmp dword [ebp - 0xc8], 6
jne 0x49e952
push 0x200
lea eax, [ebp - 0x2cc]
push esi
push eax
mov word [ebp - 0x1c], si
call fcn.004c5a20
add esp, 0xc
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
jle 0x49e937
add edi, 4
mov ax, word [edi - 4]
push 0x10
mov word [ebp - 0x24], ax
mov ax, word [edi - 2]
mov word [ebp - 0x22], ax
mov ax, word [edi]
mov word [ebp - 0x20], ax
mov ax, word [edi + 2]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.004c61cb
add esp, 0xc
mov ecx, eax
mov eax, dword [ebp - 0x10]
add edi, 8
push 4
cdq
pop ebx
idiv ebx
add dword [ebp - 0x10], ebx
mov word [ebp + eax*2 - 0x2cc], cx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jl 0x49e8e8
lea eax, [ebp - 0x2cc]
push 0x400
push eax
lea eax, [ebp - 0x6cc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x49e96b
push esi
push esi
lea eax, [ebp - 0x6cc]
push 0x400
push eax
push 0xffffffffffffffff
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x6cc]
push eax
push 0x61c0fc
call fcn.004c5930
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop ebx
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x49e997
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x49e9a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x49e9b1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret