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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b6e40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push 0x288
push 0x40
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 0
call esi
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x404162
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x1c]
push 0x40
call esi
mov edi, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4043e9
mov esi, edi
test edi, edi
je 0x4043e9
mov edi, dword [ebp + 8]
test edi, edi
je 0x4042e3
lea eax, [esi + 8]
push eax
push str._tAdapter_Name:__t_s_n
call fcn.0041bca0
lea eax, [esi + 0x10c]
push eax
push str._tAdapter_Desc:__t_s_n
call fcn.0041bca0
push str._tAdapter_Addr:__t
call fcn.0041bca0
mov eax, dword [esi + 0x190]
add esp, 0x14
xor edi, edi
test eax, eax
je 0x404200
mov ebx, 0xa
jmp 0x4041d0
dec eax
cmp edi, eax
movzx eax, byte [esi + edi + 0x194]
mov ecx, 0x2d
cmove ecx, ebx
push ecx
push eax
push str._x_c
call fcn.0041bca0
mov eax, dword [esi + 0x190]
inc edi
add esp, 0xc
cmp edi, eax
jb 0x4041d0
mov ebx, dword [ebp - 0x18]
lea eax, [esi + 0x1b0]
push eax
push str._tIP_Address:__t_s_n
call fcn.0041bca0
lea eax, [esi + 0x1c0]
push eax
push str._tIP_Mask:__t_s_n
call fcn.0041bca0
lea eax, [esi + 0x1d8]
push eax
push str._tGateway:__t_s_n
call fcn.0041bca0
push str._t_n
call fcn.0041bca0
add esp, 0x1c
cmp dword [esi + 0x1a4], 0
je 0x40427f
push str._tDHCP_Enabled:_Yes_n
call fcn.0041bca0
lea eax, [esi + 0x200]
push eax
push str._t_tDHCP_Server:__t_s_n
call fcn.0041bca0
push dword [esi + 0x27c]
push dword [esi + 0x278]
push str._tLease_Obtained:__ld_n
call fcn.0041bca0
add esp, 0x18
jmp 0x40428c
push str._tDHCP_Enabled:_No_n
call fcn.0041bca0
add esp, 4
cmp dword [esi + 0x224], 0
je 0x4042c6
push str._tHave_Wins:_Yes_n
call fcn.0041bca0
lea eax, [esi + 0x22c]
push eax
push str._t_tPrimary_Wins_Server:__t_s_n
call fcn.0041bca0
lea eax, [esi + 0x254]
push eax
push str._t_tSecondary_Wins_Server:__t_s_n
call fcn.0041bca0
add esp, 0x14
jmp 0x4042d3
push str._tHave_Wins:_No_n
call fcn.0041bca0
add esp, 4
push 0x496328
call fcn.0041bca0
mov edi, dword [ebp + 8]
add esp, 4
test ebx, ebx
je 0x404379
mov ecx, dword [ebp - 0x24]
mov byte [ebx], 0
lea eax, [esi + 0x1b0]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404317
test dl, dl
je 0x404313
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404317
add eax, 2
add ecx, 2
test dl, dl
jne 0x4042f7
xor eax, eax
jmp 0x40431c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404379
test edi, edi
je 0x404334
push dword [ebp - 0x24]
push str._tIP_Compared__s_n
call fcn.0041bca0
add esp, 8
lea edi, [esi + 0x1d8]
push 0x14
push edi
call fcn.00401037
add esp, 8
test eax, eax
je 0x404379
mov eax, str.0.0.0.0
mov edi, edi
mov cl, byte [edi]
cmp cl, byte [eax]
jne 0x404370
test cl, cl
je 0x40436c
mov cl, byte [edi + 1]
cmp cl, byte [eax + 1]
jne 0x404370
add edi, 2
add eax, 2
test cl, cl
jne 0x404350
xor eax, eax
jmp 0x404375
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404384
mov esi, dword [esi]
test esi, esi
je 0x4043e6
jmp 0x40417e
xor edi, edi
cmp dword [esi + 0x190], edi
jbe 0x4043e6
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x20], 1
jmp 0x4043a0
movzx eax, byte [esi + edi + 0x194]
push eax
lea eax, [ebp - 0x10]
push 0x4961e8
push eax
call fcn.0041bff0
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.004014ba
add esp, 0x18
cmp dword [ebp + 8], 0
je 0x4043dd
push dword [ebp - 0x18]
push str._tReturn_MAC__s._n
call fcn.0041bca0
add esp, 8
inc edi
cmp edi, dword [esi + 0x190]
jb 0x4043a0
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c3d0
mov esp, ebp
pop ebp
ret