Function at 0x49be40
Capabilities:
Link many functions at runtime
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
lea ebp, [esp - 0x1ec]
sub esp, 0x1ec
push 0xffffffffffffffff
push 0x4ed85a
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x522008]
xor eax, ebp
mov dword [ebp + 0x1e8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
push str.Ole32.dll
lea ecx, [ebp + 0xcc]
mov dword [ebp - 0x10], 0
call fcn.004021e0
mov dword [ebp - 4], 0
lea eax, [ebp + 0xcc]
push eax
call fcn.0040fa50
mov ecx, eax
call fcn.0040fb10
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xcc]
call fcn.00401f40
test edi, edi
je 0x49c580
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CoCreateInstance
push edi
call esi
push str.CoInitializeSecurity
push edi
mov dword [ebp + 0x1c], eax
call esi
push str.CoSetProxyBlanket
push edi
mov ebx, eax
call esi
cmp dword [ebp + 0x1c], 0
mov edi, eax
je 0x49c580
test ebx, ebx
je 0x49c580
test edi, edi
je 0x49c580
lea ecx, [ebp - 0x20]
call fcn.0048fe40
mov dword [ebp - 4], 1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call ebx
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 0
push eax
push 0x4fe0e4
push 1
push 0
push 0x4fe1b4
call dword [ebp + 0x1c]
test eax, eax
js 0x49bfa6
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x49bfa6
lea edx, [ebp + 0x18]
mov dword [ebp + 0x18], 0
mov eax, dword [ecx]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push str.ROOTCIMV2
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x49bf9d
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x49bf9d
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call edi
test eax, eax
mov eax, dword [ebp + 0x18]
jns 0x49bfc4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x10], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0048ff00
mov eax, dword [ebp - 0x10]
jmp 0x49c585
lea edx, [ebp + 0x10]
mov dword [ebp + 0x10], 0
mov ecx, dword [eax]
push edx
push 0
push 0x30
push 0x507450
push 0x507330
push eax
call dword [ecx + 0x50]
test eax, eax
jns 0x49c002
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x49bfad
push str.OleAut32.dll
lea ecx, [ebp + 0xcc]
call fcn.004021e0
mov byte [ebp - 4], 2
lea eax, [ebp + 0xcc]
push eax
call fcn.0040fa50
mov ecx, eax
call fcn.0040fb10
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xcc]
call fcn.00401f40
test edi, edi
jne 0x49c05c
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x10], 0xfffffffc
jmp 0x49bfad
push str.VariantInit
push edi
call esi
push str.VariantClear
mov ebx, eax
push edi
mov dword [ebp - 0x18], ebx
call esi
mov edi, eax
test ebx, ebx
je 0x49c562
test edi, edi
je 0x49c562
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49c54b
nop
lea edx, [ebp + 0xe4]
mov dword [ebp + 0x1c], 0
push edx
lea edx, [ebp + 0x1c]
mov dword [ebp + 0xe4], 0
mov eax, dword [ecx]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp + 0xe4], 0
je 0x49c53e
cmp dword [ebp + 0x1c], 0
je 0x49c53e
lea eax, [ebp]
push eax
call ebx
mov eax, dword [ebp + 0x1c]
lea edx, [ebp]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.PNPDeviceID
push eax
call dword [ecx + 0x10]
push 0x100
lea eax, [ebp + 0xe8]
push 0
push eax
call fcn.004b7720
add esp, 0xc
cmp word [ebp], 8
jne 0x49c14b
mov esi, dword [ebp + 8]
test esi, esi
je 0x49c14b
lea ecx, [ebp + 0xe8]
mov edx, 0x7f
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7fffff7f]
test eax, eax
je 0x49c13e
movzx eax, word [esi + ecx]
test ax, ax
je 0x49c13e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x49c120
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp]
push eax
call edi
lea eax, [ebp + 0xe8]
push eax
lea ecx, [ebp + 0xb4]
call fcn.004021e0
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xcc]
call fcn.00402230
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xb4]
push 0
push 0x502668
call fcn.0040ae30
cmp eax, 0xffffffff
je 0x49c1bb
push eax
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 0xb4]
call fcn.00405590
mov byte [ebp - 4], 5
lea ecx, [ebp + 0xcc]
push eax
call fcn.004021a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.00401f40
lea ecx, [ebp + 0xcc]
call fcn.00402130
mov edx, str.ROOT
mov ecx, eax
call fcn.00404cf0
test al, al
je 0x49c204
lea ecx, [ebp + 0xb4]
call fcn.00402330
mov dword [ebp - 0x14], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x49c1f7
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00402560
add esp, 8
lea edx, [ebp + 0xe8]
push 1
push 0x80
mov ecx, edx
call fcn.0049bc60
add esp, 8
test eax, eax
je 0x49c50a
inc dword [ebp - 0x10]
lea ecx, [ebp + 0x20]
call fcn.00402230
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x38]
call fcn.00402230
mov byte [ebp - 4], 7
lea ecx, [ebp + 0x50]
call fcn.00402230
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x68]
call fcn.00402230
mov byte [ebp - 4], 9
lea ecx, [ebp + 0x84]
call fcn.00402230
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x9c]
call fcn.00402230
mov byte [ebp - 4], 0xb
mov byte [ebp + 0x80], 0
mov byte [ebp - 4], 0xc
lea eax, [ebp + 0xe8]
push eax
call fcn.004025c0
add esp, 4
lea ecx, [ebp + 0x38]
push eax
lea eax, [ebp + 0xe8]
push eax
call fcn.004023b0
lea eax, [ebp + 0xb4]
push eax
lea ecx, [ebp + 0x9c]
call fcn.00402170
lea ecx, [ebp + 0x38]
call fcn.00405030
lea ecx, [ebp + 0x38]
call fcn.00402120
test al, al
jne 0x49c4fe
lea eax, [ebp]
push eax
call ebx
mov eax, dword [ebp + 0x1c]
lea edx, [ebp]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.MACAddress
push eax
call dword [ecx + 0x10]
push 0x100
lea eax, [ebp + 0xe8]
push 0
push eax
call fcn.004b7720
add esp, 0xc
cmp word [ebp], 8
jne 0x49c34b
mov esi, dword [ebp + 8]
test esi, esi
je 0x49c34b
lea ecx, [ebp + 0xe8]
mov edx, 0x7f
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffff7f]
test eax, eax
je 0x49c33e
movzx eax, word [ecx + esi]
test ax, ax
je 0x49c33e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x49c320
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp]
push eax
call edi
lea ecx, [ebp + 0xe8]
mov dword [ebp - 0x14], 0x3a
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49c361
sub ecx, edx
lea eax, [ebp - 0x14]
sar ecx, 1
lea edx, [ebp + 0xea]
push eax
lea edx, [edx + ecx*2]
lea ecx, [ebp + 0xe8]
call fcn.0049c5b0
add esp, 4
test eax, eax
je 0x49c394
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0xe8]
push eax
call fcn.004025c0
add esp, 4
lea ecx, [ebp + 0x50]
push eax
lea eax, [ebp + 0xe8]
push eax
call fcn.004023b0
lea ecx, [ebp + 0x50]
call fcn.00405030
lea eax, [ebp]
push eax
call ebx
mov eax, dword [ebp + 0x1c]
lea edx, [ebp]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.GUID
push eax
call dword [ecx + 0x10]
push 0x100
lea eax, [ebp + 0xe8]
push 0
push eax
call fcn.004b7720
add esp, 0xc
cmp word [ebp], 8
jne 0x49c43b
mov esi, dword [ebp + 8]
test esi, esi
je 0x49c43b
lea ecx, [ebp + 0xe8]
mov edx, 0x7f
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffff7f]
test eax, eax
je 0x49c42e
movzx eax, word [ecx + esi]
test ax, ax
je 0x49c42e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x49c410
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp]
push eax
call edi
lea eax, [ebp + 0xe8]
push eax
call fcn.004025c0
add esp, 4
lea ecx, [ebp + 0x20]
push eax
lea eax, [ebp + 0xe8]
push eax
call fcn.004023b0
lea ecx, [ebp + 0x68]
call fcn.00402330
mov dword [ebp - 0x14], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x49c47e
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00402560
add esp, 8
lea eax, [ebp]
push eax
call ebx
mov eax, dword [ebp + 0x1c]
lea edx, [ebp]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.NetConnectionStatus
push eax
call dword [ecx + 0x10]
cmp word [ebp], 3
jne 0x49c4c4
push dword [ebp + 8]
lea eax, [ebp + 0x68]
push 0x505584
push eax
call fcn.004052a0
add esp, 0xc
lea eax, [ebp]
push eax
call edi
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp + 0x20]
mov byte [ebp + 0x80], 1
push ecx
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x49c4f3
mov edx, eax
call fcn.00496c50
add esp, 4
add dword [ebx + 4], 0x94
jmp 0x49c4fb
push eax
mov ecx, ebx
call fcn.00496d10
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x20]
call fcn.00488c70
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xcc]
call fcn.00401f40
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xb4]
call fcn.00401f40
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x49c090
jmp 0x49c54b
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49c54b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x49bfad
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x10], 0xfffffffb
jmp 0x49bfad
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1e8]
xor ecx, ebp
call fcn.004b5964
lea esp, [ebp + 0x1ec]
pop ebp
ret