Function at 0x407e80
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.00403be0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x280
push 0
mov dword [esp + 0x20], eax
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 0x408165
lea eax, [esp + 0x10]
push eax
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x407ef2
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 0x408165
lea edx, [esp + 0x10]
push edx
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x408165
test ebp, ebp
mov ebx, ebp
je 0x408071
lea eax, [ebx + 0x1b0]
push eax
call fcn.00403940
mov ecx, dword [esi + 0x258]
add esp, 4
cmp eax, ecx
je 0x407f41
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x19c]
cmp eax, ecx
je 0x407f41
mov ebx, dword [ebx]
test ebx, ebx
jne 0x407f0f
jmp 0x408065
mov edx, dword [ebx + 0x19c]
lea eax, [ebx + 0x10c]
push edx
push eax
lea ecx, [esi + 0x7c]
push 0x56e6c8
push ecx
call fcn.00412aab
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 + 0x18c]
push 0x56e574
push edx
call fcn.00412aab
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 + 0x17c]
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 + 0x19e]
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 + 0x1ae]
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, 0x1be
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 0x408165
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x248
push ecx
push ebx
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, 0x6f
jne 0x4080c7
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 0x408165
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 0x408156
lea edi, [ebx + 0x110]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esi + 0x1ce]
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 0x40813a
mov ecx, dword [esp + 0x14]
lea edi, [eax + 4]
xor eax, eax
lea edx, [ecx + 0x1de]
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 0x408165
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 0x56f730
call fcn.00413704
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret