Function at 0x407d08
Capabilities:
Get local ipv4 addresses
Get mac address on windows
Get networking parameters
Set socket configuration

Disassembly:
mov eax, 0x40f580
call fcn.0040ea50
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
push esi
push edi
mov edi, 0x280
mov esi, ecx
push edi
call ebx
pop ecx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push ecx
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x407d51
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_free]
push dword [ebp - 0x14]
call ebx
pop ecx
mov dword [ebp - 0x18], eax
pop ecx
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call sub.iphlpapi.dll_GetAdaptersInfo
mov ebx, dword [sym.imp.WSOCK32.dll_inet_addr]
test eax, eax
jne 0x407df0
lea eax, [esi + 0xa4]
push eax
call sub.MSVCRT.dll_strlen
mov edi, dword [ebp - 0x18]
lea eax, [eax + esi + 0x7e]
test edi, edi
pop ecx
mov dword [ebp - 0x20], eax
je 0x407df0
lea eax, [edi + 8]
push eax
push dword [ebp - 0x20]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x407da4
mov edi, dword [edi]
test edi, edi
jne 0x407d8a
jmp 0x407df0
lea eax, [edi + 0x194]
push 6
push eax
lea eax, [esi + 0x318]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [edi + 0x1b0]
push eax
call ebx
mov dword [esi + 0x9c], eax
lea eax, [edi + 0x1c0]
push eax
call ebx
add edi, 0x1d8
mov dword [esi + 0x320], eax
push edi
call ebx
mov dword [esi + 0xa0], eax
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_free]
cmp dword [ebp - 0x1c], 0
pop ecx
jne 0x407e37
lea eax, [ebp - 0x20]
push 0x8e
push eax
call fcn.00403db7
pop ecx
pop ecx
mov eax, dword [eax]
mov ecx, dword [0x41a768]
and dword [ebp - 4], 0
push 0x30
push eax
call fcn.0040469e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040e5c2
xor eax, eax
jmp 0x408113
push 0x248
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x248
push eax
push edi
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, 0x6f
jne 0x407e6f
push edi
call dword [sym.imp.MSVCRT.dll_free]
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov edi, eax
pop ecx
lea eax, [ebp - 0x14]
push eax
push edi
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
jne 0x407e8c
lea eax, [edi + 0x110]
push eax
call ebx
mov dword [esi + 0x324], eax
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
push 1
lea eax, [ebp - 0x20]
pop edi
push 0x91
push eax
mov dword [ebp - 4], edi
call fcn.00403db7
movzx ecx, byte [esi + 0x31d]
push 2
mov eax, dword [eax]
pop ebx
push ecx
mov byte [ebp - 4], bl
movzx ecx, byte [esi + 0x31c]
push ecx
movzx ecx, byte [esi + 0x31b]
push ecx
movzx ecx, byte [esi + 0x31a]
push ecx
movzx ecx, byte [esi + 0x319]
push ecx
movzx ecx, byte [esi + 0x318]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x28
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040e5c2
mov ecx, dword [0x41a768]
push ebx
push dword [ebp - 0x10]
call fcn.004047be
lea eax, [ebp - 0x20]
push 0x92
push eax
call fcn.00403db7
movzx ecx, byte [esi + 0x9f]
push ecx
mov eax, dword [eax]
movzx ecx, byte [esi + 0x9e]
push ecx
mov byte [ebp - 4], 3
movzx ecx, byte [esi + 0x9d]
push ecx
movzx ecx, byte [esi + 0x9c]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x20
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040e5c2
mov ecx, dword [0x41a768]
push ebx
push dword [ebp - 0x10]
call fcn.004047be
cmp dword [esi + 0xf4], 0
jne 0x407fe5
mov eax, dword [esi + 0x98]
test eax, eax
je 0x407fe5
cmp eax, dword [esi + 0x9c]
je 0x407fe5
lea eax, [ebp - 0x20]
push 0x93
push eax
call fcn.00403db7
movzx ecx, byte [esi + 0x9b]
push ecx
mov eax, dword [eax]
movzx ecx, byte [esi + 0x9a]
push ecx
mov byte [ebp - 4], 4
movzx ecx, byte [esi + 0x99]
push ecx
movzx ecx, byte [esi + 0x98]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x20
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040e5c2
mov ecx, dword [0x41a768]
push ebx
push dword [ebp - 0x10]
call fcn.004047be
jmp 0x407ff1
mov eax, dword [esi + 0x9c]
mov dword [esi + 0x98], eax
lea eax, [ebp - 0x20]
push 0x94
push eax
call fcn.00403db7
movzx ecx, byte [esi + 0x323]
push ecx
mov eax, dword [eax]
movzx ecx, byte [esi + 0x322]
push ecx
mov byte [ebp - 4], 5
movzx ecx, byte [esi + 0x321]
push ecx
movzx ecx, byte [esi + 0x320]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x20
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040e5c2
mov ecx, dword [0x41a768]
push ebx
push dword [ebp - 0x10]
call fcn.004047be
lea eax, [ebp - 0x20]
push 0x95
push eax
call fcn.00403db7
movzx ecx, byte [esi + 0xa3]
push ecx
mov eax, dword [eax]
movzx ecx, byte [esi + 0xa2]
push ecx
mov byte [ebp - 4], 6
movzx ecx, byte [esi + 0xa1]
push ecx
movzx ecx, byte [esi + 0xa0]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x20
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040e5c2
mov ecx, dword [0x41a768]
push ebx
push dword [ebp - 0x10]
call fcn.004047be
lea eax, [ebp - 0x1c]
push 0x96
push eax
call fcn.00403db7
movzx ecx, byte [esi + 0x327]
push ecx
mov eax, dword [eax]
movzx ecx, byte [esi + 0x326]
push ecx
mov byte [ebp - 4], 7
movzx ecx, byte [esi + 0x325]
push ecx
movzx ecx, byte [esi + 0x324]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x20
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040e5c2
mov ecx, dword [0x41a768]
push ebx
push dword [ebp - 0x10]
call fcn.004047be
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040e5c2
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret