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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69b31f
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x729140]
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 0x6d7288
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x204], 0
call fcn.00405880
mov dword [ebp - 4], 0
lea eax, [ebp - 0x12c]
push eax
call fcn.004f08f0
mov ecx, eax
call fcn.004f09b0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00405870
test edi, edi
je 0x502c51
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6d7264
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 0x502c51
test ebx, ebx
je 0x502c51
test edi, edi
je 0x502c51
lea ecx, [ebp - 0x214]
call fcn.004ef120
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 0x6b5c84
push 1
push 0
push 0x6b5d54
call dword [ebp - 0x1e4]
test eax, eax
js 0x5025d5
mov ecx, dword [ebp - 0x1ec]
test ecx, ecx
je 0x5025d5
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 0x5025c9
mov eax, dword [ebp - 0x1e8]
test eax, eax
je 0x5025c9
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 0x5025fc
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.004ef1e0
mov eax, dword [ebp - 0x204]
jmp 0x502c56
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 0x6dc37c
push eax
call dword [ecx + 0x50]
test eax, eax
jns 0x502649
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 0x5025df
push str.OleAut32.dll
lea ecx, [ebp - 0x12c]
call fcn.00405880
mov byte [ebp - 4], 2
lea eax, [ebp - 0x12c]
push eax
call fcn.004f08f0
mov ecx, eax
call fcn.004f09b0
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call fcn.00405870
test edi, edi
jne 0x5026ac
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 0x5025df
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 0x502c2a
test edi, edi
je 0x502c2a
mov ecx, dword [ebp - 0x1f0]
test ecx, ecx
je 0x502c0d
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 0x502bfd
cmp dword [ebp - 0x1e4], 0
je 0x502bfd
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.0064d010
add esp, 0xc
cmp word [ebp - 0x200], 8
jne 0x5027c1
mov esi, dword [ebp - 0x1f8]
test esi, esi
je 0x5027c1
lea ecx, [ebp - 0x110]
mov edx, 0x7f
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7fffff7f]
test eax, eax
je 0x5027b4
movzx eax, word [ecx + esi]
test ax, ax
je 0x5027b4
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x502796
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.00405880
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x12c]
call fcn.004058d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x144]
push 0
push 0x6d5aa0
call fcn.004b1590
cmp eax, 0xffffffff
je 0x50283a
push eax
push 0
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x144]
call fcn.0043fc80
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x12c]
push eax
call fcn.0040cdf0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x22c]
call fcn.00405870
lea ecx, [ebp - 0x12c]
call fcn.00405860
mov edx, str.ROOT
mov ecx, eax
call fcn.004d6390
test al, al
je 0x502860
lea ecx, [ebp - 0x144]
call fcn.004142e0
lea edx, [ebp - 0x110]
push 1
push 0x80
mov ecx, edx
call fcn.00501c90
add esp, 8
test eax, eax
je 0x502bc3
inc dword [ebp - 0x204]
lea ecx, [ebp - 0x1e0]
call fcn.004058d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c8]
call fcn.004058d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1b0]
call fcn.004058d0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x198]
call fcn.004058d0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x17c]
call fcn.004058d0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x164]
call fcn.004058d0
mov byte [ebp - 4], 0xb
mov byte [ebp - 0x180], 0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x110]
push eax
call fcn.00405dd0
add esp, 4
lea ecx, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00405b20
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x164]
call fcn.00414300
lea ecx, [ebp - 0x1c8]
call fcn.004d66c0
lea ecx, [ebp - 0x1c8]
call fcn.0040cdb0
test al, al
jne 0x502bb4
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.0064d010
add esp, 0xc
cmp word [ebp - 0x200], 8
jne 0x5029cb
mov esi, dword [ebp - 0x1f8]
test esi, esi
je 0x5029cb
lea ecx, [ebp - 0x110]
mov edx, 0x7f
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffff7f]
test eax, eax
je 0x5029be
movzx eax, word [ecx + esi]
test ax, ax
je 0x5029be
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x5029a0
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 0x5029e7
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.00502c80
add esp, 4
test eax, eax
je 0x502a1d
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x110]
push eax
call fcn.00405dd0
add esp, 4
lea ecx, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00405b20
lea ecx, [ebp - 0x1b0]
call fcn.004d66c0
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.0064d010
add esp, 0xc
cmp word [ebp - 0x200], 8
jne 0x502adb
mov esi, dword [ebp - 0x1f8]
test esi, esi
je 0x502adb
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 0x502ace
movzx eax, word [ecx + esi]
test ax, ax
je 0x502ace
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x502ab0
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.00405dd0
add esp, 4
lea ecx, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00405b20
lea ecx, [ebp - 0x198]
call fcn.004142e0
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 0x502b5c
push dword [ebp - 0x1f8]
lea eax, [ebp - 0x198]
push 0x6d5e4c
push eax
call fcn.004d6990
add esp, 0xc
lea eax, [ebp - 0x200]
push eax
call edi
mov ebx, dword [ebp - 0x210]
mov byte [ebp - 0x180], 1
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x502b9f
push eax
push 0x94
call fcn.004024a0
add esp, 8
lea ecx, [ebp - 0x1e0]
push ecx
mov ecx, eax
call fcn.004dd0d0
add dword [ebx + 4], 0x94
jmp 0x502bae
lea ecx, [ebp - 0x1e0]
push ecx
push eax
mov ecx, ebx
call fcn.004fb7a0
mov ebx, dword [ebp - 0x208]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1e0]
call fcn.004dabd0
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.00405870
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.00405870
mov ecx, dword [ebp - 0x1f0]
test ecx, ecx
jne 0x5026f0
jmp 0x502c0d
mov ecx, dword [ebp - 0x1f0]
test ecx, ecx
je 0x502c0d
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 0x5025df
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 0x5025df
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.00634bf3
mov esp, ebp
pop ebp
ret