Function at 0x408060
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47a540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x288
push 0x40
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], 0
call edi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x288
call esi
test eax, eax
je 0x4080c5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x18]
push 0x40
call edi
mov dword [ebp - 0x14], eax
jmp 0x4080c8
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
push eax
call esi
test eax, eax
jne 0x408346
mov eax, dword [ebp - 0x14]
mov edi, eax
test eax, eax
je 0x408346
mov edx, dword [ebp + 8]
test edx, edx
je 0x408245
lea eax, [edi + 8]
push eax
push str._tAdapter_Name:__t_s_n
call fcn.00405c20
lea eax, [edi + 0x10c]
push eax
push str._tAdapter_Desc:__t_s_n
call fcn.00405c20
push str._tAdapter_Addr:__t
call fcn.00405c20
mov eax, dword [edi + 0x190]
add esp, 0x14
xor esi, esi
test eax, eax
je 0x408160
mov ebx, 0xa
nop dword [eax]
dec eax
mov ecx, 0x2d
cmp esi, eax
movzx eax, byte [edi + esi + 0x194]
cmove ecx, ebx
push ecx
push eax
push str._x_c
call fcn.00405c20
mov eax, dword [edi + 0x190]
inc esi
add esp, 0xc
cmp esi, eax
jb 0x408130
mov ebx, dword [ebp - 0x1c]
lea esi, [edi + 0x1b0]
push esi
push str._tIP_Address:__t_s_n
call fcn.00405c20
lea eax, [edi + 0x1c0]
push eax
push str._tIP_Mask:__t_s_n
call fcn.00405c20
lea eax, [edi + 0x1d8]
push eax
push str._tGateway:__t_s_n
call fcn.00405c20
push str._t_n
call fcn.00405c20
add esp, 0x1c
cmp dword [edi + 0x1a4], 0
je 0x4081df
push str._tDHCP_Enabled:_Yes_n
call fcn.00405c20
lea eax, [edi + 0x200]
push eax
push str._t_tDHCP_Server:__t_s_n
call fcn.00405c20
push dword [edi + 0x27c]
push dword [edi + 0x278]
push str._tLease_Obtained:__ld_n
call fcn.00405c20
add esp, 0x18
jmp 0x4081ec
push str._tDHCP_Enabled:_No_n
call fcn.00405c20
add esp, 4
cmp dword [edi + 0x224], 0
je 0x408226
push str._tHave_Wins:_Yes_n
call fcn.00405c20
lea eax, [edi + 0x22c]
push eax
push str._t_tPrimary_Wins_Server:__t_s_n
call fcn.00405c20
lea eax, [edi + 0x254]
push eax
push str._t_tSecondary_Wins_Server:__t_s_n
call fcn.00405c20
add esp, 0x14
jmp 0x408233
push str._tHave_Wins:_No_n
call fcn.00405c20
add esp, 4
push 0x46bfd4
call fcn.00405c20
mov edx, dword [ebp + 8]
add esp, 4
jmp 0x40824b
lea esi, [edi + 0x1b0]
test ebx, ebx
je 0x4082e0
mov eax, dword [ebp - 0x20]
mov byte [ebx], 0
nop dword [eax]
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x408280
test cl, cl
je 0x40827c
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x408280
add esi, 2
add eax, 2
test cl, cl
jne 0x408260
xor eax, eax
jmp 0x408285
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4082e0
test edx, edx
je 0x40829d
push dword [ebp - 0x20]
push str._tIP_Compared__s_n
call fcn.00405c20
add esp, 8
lea esi, [edi + 0x1d8]
push 0x14
push esi
call fcn.0040aef0
add esp, 8
test eax, eax
je 0x4082e0
mov eax, str.0.0.0.0
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x4082d7
test cl, cl
je 0x4082d3
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x4082d7
add esi, 2
add eax, 2
test cl, cl
jne 0x4082b7
xor eax, eax
jmp 0x4082dc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4082e9
mov edi, dword [edi]
test edi, edi
jmp 0x4080de
xor esi, esi
cmp dword [edi + 0x190], esi
jbe 0x408346
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x24], 1
nop dword [eax]
movzx eax, byte [edi + esi + 0x194]
push eax
lea eax, [ebp - 0x10]
push str._02x
push eax
call fcn.00406df0
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
call fcn.0040b670
add esp, 0x18
cmp dword [ebp + 8], 0
je 0x40833d
push dword [ebp - 0x1c]
push str._tReturn_MAC__s._n
call fcn.00405c20
add esp, 8
inc esi
cmp esi, dword [edi + 0x190]
jb 0x408300
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041305e
mov esp, ebp
pop ebp
ret