Function at 0x10315250
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x10360616
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x4b0]
mov dword fs:[0], eax
mov ebp, ecx
push 0xc
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x1c]
push str.Iphlpapi.dll
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.100cdd90
mov dword [esp + 0x4b8], 0
mov eax, dword [0x105e87a0]
test al, 1
jne 0x1031530c
or eax, 1
mov dword [0x105e87a0], eax
mov byte [esp + 0x4b8], 1
mov dword [0x105e879c], 0
call fcn.1016c620
push 0x10366040
call fcn.1033d620
add esp, 4
mov byte [esp + 0x4b8], 0
lea eax, [esp + 0x18]
mov ecx, 0x105e879c
push eax
call fcn.1016c7f0
mov ebx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x4b8], 0xffffffff
cmp dword [esp + 0x2c], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x10315342
push dword [esp + 0x18]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
test ebx, ebx
je 0x103153b7
push str.GetAdaptersInfo
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x103153b7
lea eax, [esp + 0xac]
mov dword [esp + 0xac], 0
push eax
push 0
call ebx
push dword [esp + 0xac]
call fcn.1033d1c5
mov esi, eax
add esp, 4
mov dword [esp + 0xa8], esi
test esi, esi
je 0x103153b7
lea eax, [esp + 0xac]
push eax
push esi
call ebx
test eax, eax
je 0x103153be
push esi
call edi
add esp, 4
xor al, al
jmp 0x10315781
mov eax, dword [esp + 0xac]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0xb0]
push eax
push dword [esp + 0xac]
call ebx
test eax, eax
jne 0x10315607
jmp 0x103153f0
push dword [esi + 0x19c]
lea ecx, [esp + 0xb8]
call fcn.1030a4e0
mov dword [esp + 0x4b8], 2
lea edx, [esi + 8]
lea ecx, [esp + 0x30]
call fcn.10157480
mov byte [esp + 0x4b8], 3
lea ecx, [esp + 0xb4]
push eax
call fcn.100cd650
mov byte [esp + 0x4b8], 2
cmp dword [esp + 0x44], 8
jb 0x10315446
push dword [esp + 0x30]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
lea edx, [esi + 0x10c]
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x48]
mov word [esp + 0x30], ax
call fcn.10157480
mov byte [esp + 0x4b8], 4
lea ecx, [esp + 0xcc]
push eax
call fcn.100cd650
mov byte [esp + 0x4b8], 2
cmp dword [esp + 0x5c], 8
jb 0x10315499
push dword [esp + 0x48]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], 7
mov word [esp + 0x48], ax
lea ecx, [esp + 0xb4]
lea eax, [esi + 0x194]
mov dword [esp + 0x58], 0
push eax
call fcn.1030a800
lea edx, [esi + 0x1b0]
lea ecx, [esp + 0x60]
call fcn.10157480
mov byte [esp + 0x4b8], 5
lea ecx, [esp + 0xe4]
push eax
call fcn.100cd650
mov byte [esp + 0x4b8], 2
cmp dword [esp + 0x74], 8
jb 0x103154ff
push dword [esp + 0x60]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x74], 7
lea edx, [esi + 0x1d8]
mov dword [esp + 0x70], 0
lea ecx, [esp + 0x78]
mov word [esp + 0x60], ax
call fcn.10157480
mov byte [esp + 0x4b8], 6
lea ecx, [esp + 0x114]
push eax
call fcn.100cd650
mov byte [esp + 0x4b8], 2
cmp dword [esp + 0x8c], 8
jb 0x10315555
push dword [esp + 0x78]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], 7
lea edx, [esi + 0x1c0]
mov dword [esp + 0x88], 0
lea ecx, [esp + 0x90]
mov word [esp + 0x78], ax
call fcn.10157480
mov byte [esp + 0x4b8], 7
lea ecx, [esp + 0xfc]
push eax
call fcn.100cd650
mov byte [esp + 0x4b8], 2
cmp dword [esp + 0xa4], 8
jb 0x103155b7
push dword [esp + 0x90]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0xa4], 7
mov word [esp + 0x90], ax
mov ecx, ebp
lea eax, [esp + 0xb4]
mov dword [esp + 0xa0], 0
push eax
call fcn.103174f0
mov dword [esp + 0x4b8], 0xffffffff
lea ecx, [esp + 0xb4]
call fcn.1030a6c0
mov esi, dword [esi]
test esi, esi
jne 0x103153f0
push dword [esp + 0xa8]
call edi
add esp, 4
push str.GetIfTable
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10315738
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x360
push 0
mov dword [esp + 0xb0], 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10315738
push 0
lea eax, [esp + 0xac]
mov dword [esp + 0xac], 0x360
push eax
push edi
call esi
cmp eax, 0x7a
jne 0x10315694
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0xa8]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10315738
push 0
lea eax, [esp + 0xac]
push eax
push edi
call esi
test eax, eax
jne 0x1031572c
xor ebx, ebx
cmp dword [edi], ebx
jbe 0x10315726
lea esi, [edi + 0x218]
lea esp, [esp]
lea eax, [esi - 0x214]
test eax, eax
je 0x1031571b
cmp dword [esi - 4], 6
jne 0x1031571b
lea ecx, [esp + 0xb4]
call fcn.1030a3f0
mov dword [esp + 0x4b8], 8
lea ecx, [esp + 0xb4]
push esi
call fcn.1030a800
lea eax, [esp + 0x12c]
push eax
lea ecx, [ebp + 0x24]
call fcn.100d5970
mov dword [esp + 0x4b8], 0xffffffff
lea ecx, [esp + 0xb4]
call fcn.1030a6c0
inc ebx
add esi, 0x35c
cmp ebx, dword [edi]
jb 0x103156c0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0x24]
cmp eax, dword [ebp + 0x28]
je 0x1031577f
push dword [ebp + 0x28]
push eax
call fcn.103068d0
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
mov byte [esp + 0x1c], 0
push dword [esp + 0x1c]
call fcn.10307130
mov edx, eax
lea ecx, [ebp + 0x24]
sub edx, dword [ebp + 0x24]
mov eax, 0x2aaaaaab
imul edx
add esp, 0xc
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.103063a0
mov al, 1
mov ecx, dword [esp + 0x4b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x498]
xor ecx, esp
call fcn.1033d458
add esp, 0x4a8
ret