Function at 0x406f60
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.00403790
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x406f88
push 0x40ca14
call fcn.004033c0
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 0x40725b
lea eax, [esp + 0x10]
push eax
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x406fe4
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 0x40725b
lea edx, [esp + 0x10]
push edx
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x40725b
test ebp, ebp
mov ebx, ebp
je 0x407166
lea eax, [ebx + 0x1b0]
push eax
call fcn.00403520
mov ecx, dword [esi + 0x268]
add esp, 4
cmp eax, ecx
je 0x407033
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x19c]
cmp eax, ecx
je 0x407033
mov ebx, dword [ebx]
test ebx, ebx
jne 0x407001
jmp 0x40715a
mov edx, dword [ebx + 0x19c]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebx + 0x10c]
push edx
push eax
lea ecx, [esi + 0x88]
push 0x40c354
push ecx
call edi
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 + 0x198]
push str._.2x:_.2x:_.2x:_.2x:_.2x:_.2x
push edx
call edi
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 + 0x188]
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 + 0x1aa]
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 + 0x1ba]
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
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x200]
or ecx, 0xffffffff
xor eax, eax
add edx, 0x1ca
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 0x40725b
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x248
push ecx
push ebx
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, 0x6f
jne 0x4071bc
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 0x40725b
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 0x40724b
lea edi, [ebx + 0x110]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esi + 0x1da]
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 0x40722f
mov ecx, dword [esp + 0x14]
lea edi, [eax + 4]
xor eax, eax
lea edx, [ecx + 0x1ea]
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 0x40725b
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 dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret