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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f5cf
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x59e074]
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 dword [ebp - 0x210], ecx
push str.Ole32.dll
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x204], 0
call fcn.00404610
mov dword [ebp - 4], 0
lea eax, [ebp - 0x12c]
push eax
call fcn.0041fe20
mov ecx, eax
call fcn.0041fee0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00404600
test edi, edi
je 0x50571f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x567dac
push edi
call esi
push str.CoInitializeSecurity
push edi
mov dword [ebp - 0x1e4], eax
call esi
push str.CoSetProxyBlanket
push edi
mov ebx, eax
call esi
cmp dword [ebp - 0x1e4], 0
mov edi, eax
je 0x50571f
test ebx, ebx
je 0x50571f
test edi, edi
je 0x50571f
lea ecx, [ebp - 0x214]
call fcn.00412ac0
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 - 0x1ec]
mov dword [ebp - 0x1ec], 0
push eax
push 0x55ef98
push 1
push 0
push 0x55f068
call dword [ebp - 0x1e4]
test eax, eax
js 0x5050b5
mov ecx, dword [ebp - 0x1ec]
test ecx, ecx
je 0x5050b5
lea edx, [ebp - 0x1e8]
mov dword [ebp - 0x1e8], 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 0x5050a9
mov eax, dword [ebp - 0x1e8]
test eax, eax
je 0x5050a9
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 - 0x1e8]
jns 0x5050dc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1ec]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x204], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
call fcn.00412b80
mov eax, dword [ebp - 0x204]
jmp 0x505724
lea edx, [ebp - 0x1f0]
mov dword [ebp - 0x1f0], 0
mov ecx, dword [eax]
push edx
push 0
push 0x30
push str.SELECT__FROM_Win32_NetworkAdapter_WHERE__MACAddress_IS_NOT_NULL__AND__NOT__PNPDeviceID_LIKE_ROOT___
push 0x573b3c
push eax
call dword [ecx + 0x50]
test eax, eax
jns 0x505129
mov eax, dword [ebp - 0x1e8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1ec]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x204], 0xfffffffd
jmp 0x5050bf
push str.OleAut32.dll
lea ecx, [ebp - 0x12c]
call fcn.00404610
mov byte [ebp - 4], 2
lea eax, [ebp - 0x12c]
push eax
call fcn.0041fe20
mov ecx, eax
call fcn.0041fee0
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call fcn.00404600
test edi, edi
jne 0x50518c
mov eax, dword [ebp - 0x1e8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1ec]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x204], 0xfffffffc
jmp 0x5050bf
push str.VariantInit
push edi
call esi
push str.VariantClear
mov ebx, eax
push edi
mov dword [ebp - 0x208], ebx
call esi
mov edi, eax
test ebx, ebx
je 0x5056f8
test edi, edi
je 0x5056f8
mov ecx, dword [ebp - 0x1f0]
test ecx, ecx
je 0x5056db
nop dword [eax]
nop dword [eax + eax]
lea edx, [ebp - 0x114]
mov dword [ebp - 0x1e4], 0
push edx
lea edx, [ebp - 0x1e4]
mov dword [ebp - 0x114], 0
mov eax, dword [ecx]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x114], 0
je 0x5056cb
cmp dword [ebp - 0x1e4], 0
je 0x5056cb
lea eax, [ebp - 0x200]
push eax
call ebx
mov eax, dword [ebp - 0x1e4]
lea edx, [ebp - 0x200]
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 - 0x110]
push 0
push eax
call fcn.0050c400
add esp, 0xc
cmp word [ebp - 0x200], 8
jne 0x5052a1
mov esi, dword [ebp - 0x1f8]
test esi, esi
je 0x5052a1
lea ecx, [ebp - 0x110]
mov edx, 0x7f
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7fffff7f]
test eax, eax
je 0x505294
movzx eax, word [ecx + esi]
test ax, ax
je 0x505294
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x505276
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x200]
push eax
call edi
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x144]
call fcn.00404610
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x12c]
call fcn.00404660
mov byte [ebp - 4], 4
push ecx
push 0x565bb4
lea ecx, [ebp - 0x144]
call fcn.0040e8e0
cmp eax, 0xffffffff
je 0x505319
push eax
push 0
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x144]
call fcn.0040da70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x12c]
push eax
call fcn.004058e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x22c]
call fcn.00404600
lea ecx, [ebp - 0x12c]
call fcn.004045c0
mov edx, str.ROOT
mov ecx, eax
call fcn.0040ec60
test al, al
je 0x50533f
lea ecx, [ebp - 0x144]
call fcn.0040a5a0
lea edx, [ebp - 0x110]
push 1
push 0x80
mov ecx, edx
call fcn.00504d50
add esp, 8
test eax, eax
je 0x505691
inc dword [ebp - 0x204]
lea ecx, [ebp - 0x1e0]
call fcn.00404660
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c8]
call fcn.00404660
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1b0]
call fcn.00404660
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x198]
call fcn.00404660
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x17c]
call fcn.00404660
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x164]
call fcn.00404660
mov byte [ebp - 4], 0xb
mov byte [ebp - 0x180], 0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x110]
push eax
call fcn.00404920
add esp, 4
lea ecx, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00404720
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x164]
call fcn.004045d0
lea ecx, [ebp - 0x1c8]
call fcn.0040ef10
lea ecx, [ebp - 0x1c8]
call fcn.004045b0
test al, al
jne 0x505682
lea eax, [ebp - 0x200]
push eax
call ebx
mov eax, dword [ebp - 0x1e4]
lea edx, [ebp - 0x200]
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 - 0x110]
push 0
push eax
call fcn.0050c400
add esp, 0xc
cmp word [ebp - 0x200], 8
jne 0x5054ab
mov esi, dword [ebp - 0x1f8]
test esi, esi
je 0x5054ab
lea ecx, [ebp - 0x110]
mov edx, 0x7f
mov eax, ecx
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7fffff7f]
test eax, eax
je 0x50549e
movzx eax, word [ecx + esi]
test ax, ax
je 0x50549e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x505480
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x200]
push eax
call edi
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x20c], 0x3a
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5054c7
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
lea edx, [ebp - 0x10e]
push eax
lea edx, [edx + ecx*2]
lea ecx, [ebp - 0x110]
call fcn.00505740
add esp, 4
test eax, eax
je 0x5054fd
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x110]
push eax
call fcn.00404920
add esp, 4
lea ecx, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00404720
lea ecx, [ebp - 0x1b0]
call fcn.0040ef10
lea eax, [ebp - 0x200]
push eax
call ebx
mov eax, dword [ebp - 0x1e4]
lea edx, [ebp - 0x200]
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 - 0x110]
push 0
push eax
call fcn.0050c400
add esp, 0xc
cmp word [ebp - 0x200], 8
jne 0x5055bb
mov esi, dword [ebp - 0x1f8]
test esi, esi
je 0x5055bb
lea ecx, [ebp - 0x110]
mov edx, 0x7f
mov eax, ecx
sub esi, eax
nop word [eax + eax]
lea eax, [edx + 0x7fffff7f]
test eax, eax
je 0x5055ae
movzx eax, word [ecx + esi]
test ax, ax
je 0x5055ae
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x505590
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x200]
push eax
call edi
lea eax, [ebp - 0x110]
push eax
call fcn.00404920
add esp, 4
lea ecx, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00404720
lea ecx, [ebp - 0x198]
call fcn.0040a5a0
lea eax, [ebp - 0x200]
push eax
call ebx
mov eax, dword [ebp - 0x1e4]
lea edx, [ebp - 0x200]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.NetConnectionStatus
push eax
call dword [ecx + 0x10]
cmp word [ebp - 0x200], 3
jne 0x50563c
push dword [ebp - 0x1f8]
lea eax, [ebp - 0x198]
push 0x56784c
push eax
call fcn.0040f180
add esp, 0xc
lea eax, [ebp - 0x200]
push eax
call edi
mov ebx, dword [ebp - 0x210]
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 0x180], 1
push ecx
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x505674
mov edx, eax
call fcn.00502a00
add esp, 4
add dword [ebx + 4], 0x94
jmp 0x50567c
push eax
mov ecx, ebx
call fcn.00502ac0
mov ebx, dword [ebp - 0x208]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1e0]
call fcn.004f8480
mov eax, dword [ebp - 0x1e4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x12c]
call fcn.00404600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.00404600
mov ecx, dword [ebp - 0x1f0]
test ecx, ecx
jne 0x5051d0
jmp 0x5056db
mov ecx, dword [ebp - 0x1f0]
test ecx, ecx
je 0x5056db
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x1e8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1ec]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x5050bf
mov eax, dword [ebp - 0x1e8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1ec]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x204], 0xfffffffb
jmp 0x5050bf
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 - 0x10]
xor ecx, ebp
call fcn.00509af6
mov esp, ebp
pop ebp
ret