Function at 0x4087f0
Capabilities:
Get local ipv4 addresses
Get mac address on windows
Get networking parameters

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.004039a0
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x408818
push 0x441180
call fcn.00403300
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x280
push 0
mov dword [esp + 0x18], 0x280
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x408ae7
lea eax, [esp + 0x10]
push eax
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x408874
push ebp
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x10]
push ecx
push 0
call edi
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x408ae7
lea edx, [esp + 0x10]
push edx
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x408ae7
test ebp, ebp
mov ebx, ebp
je 0x4089f3
lea eax, [ebx + 0x1b0]
push eax
call fcn.004035c0
mov ecx, dword [esi + 0x240]
add esp, 4
cmp eax, ecx
je 0x4088c3
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x19c]
cmp eax, ecx
je 0x4088c3
mov ebx, dword [ebx]
test ebx, ebx
jne 0x408891
jmp 0x4089e7
mov edx, dword [ebx + 0x19c]
lea eax, [ebx + 0x10c]
push edx
push eax
lea ecx, [esi + 0x64]
push 0x440384
push ecx
call fcn.0041176b
xor edx, edx
xor eax, eax
mov dl, byte [ebx + 0x199]
mov al, byte [ebx + 0x198]
xor ecx, ecx
push edx
mov cl, byte [ebx + 0x197]
push eax
xor edx, edx
push ecx
mov dl, byte [ebx + 0x196]
xor eax, eax
mov al, byte [ebx + 0x195]
xor ecx, ecx
mov cl, byte [ebx + 0x194]
push edx
push eax
push ecx
lea edx, [esi + 0x174]
push str._.2x:_.2x:_.2x:_.2x:_.2x:_.2x
push edx
call fcn.0041176b
lea edi, [ebx + 0x1b0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x30
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esi + 0x164]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x1d8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0x186]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x18], esi
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x1c0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0x196]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x18], esi
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add edx, 0x1a6
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x200]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebp
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x248
push 0
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebp
mov ebx, eax
test ebx, ebx
je 0x408ae7
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x248
push ecx
push ebx
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, 0x6f
jne 0x408a49
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x10]
push edx
push 0
call edi
push eax
call ebp
mov ebx, eax
test ebx, ebx
je 0x408ae7
lea eax, [esp + 0x10]
push eax
push ebx
call sub.iphlpapi.dll_GetNetworkParams
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
je 0x408ad8
lea edi, [ebx + 0x110]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esi + 0x1b6]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x10c]
test eax, eax
je 0x408abc
mov ecx, dword [esp + 0x14]
lea edi, [eax + 4]
xor eax, eax
lea edx, [ecx + 0x1c6]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x408ae7
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0
push str.GetNetworkParams_failed_with_error:__d_n
call fcn.00411802
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret