Function at 0x40a130
Capabilities:
Convert ip address from string
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503f28
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x541074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x6c], ebx
cmp byte [0x548208], 0
mov dword [ebp - 0x7c], 0
jne 0x40a35d
lea eax, [ebp - 0x78]
push eax
push str.0.0.0.0
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0
push eax
push dword [ebp - 0x78]
call dword [sym.imp.IPHLPAPI.DLL_GetBestInterface]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
mov dword [ebp - 4], 0
push 0x288
mov dword [ebp - 0x70], 0x288
call fcn.004e7902
mov edi, eax
add esp, 4
test edi, edi
je 0x40a348
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x70]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x40a200
push edi
call fcn.004e7744
add esp, 4
push dword [ebp - 0x70]
call fcn.004e7902
mov edi, eax
add esp, 4
test edi, edi
je 0x40a348
lea eax, [ebp - 0x70]
push eax
push edi
call esi
test eax, eax
jne 0x40a348
mov esi, edi
test edi, edi
je 0x40a348
mov eax, dword [ebp - 0x74]
nop dword [eax]
cmp dword [esi + 0x19c], eax
je 0x40a233
mov esi, dword [esi]
test esi, esi
jne 0x40a220
jmp 0x40a348
lea edx, [esi + 0x1b0]
mov byte [0x548208], 1
cmp byte [edx], 0
jne 0x40a249
xor ecx, ecx
jmp 0x40a25b
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x6c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a251
sub ecx, dword [ebp - 0x6c]
push ecx
push edx
mov ecx, 0x54820c
call fcn.00403160
cmp byte [esi + 0x1c0], 0
lea edx, [esi + 0x1c0]
jne 0x40a27a
xor ecx, ecx
jmp 0x40a28c
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x6c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a282
sub ecx, dword [ebp - 0x6c]
push ecx
push edx
mov ecx, 0x54823c
call fcn.00403160
cmp byte [esi + 0x1d8], 0
lea edx, [esi + 0x1d8]
jne 0x40a2ab
xor ecx, ecx
jmp 0x40a2bd
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x6c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a2b3
sub ecx, dword [ebp - 0x6c]
push ecx
push edx
mov ecx, 0x548254
call fcn.00403160
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004e2480
movzx eax, byte [esi + 0x199]
add esp, 0xc
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._02X__02X__02X__02X__02X__02X
lea eax, [ebp - 0x50]
push 0x40
push eax
call fcn.00409e40
add esp, 0x24
cmp byte [ebp - 0x50], 0
jne 0x40a326
xor ecx, ecx
jmp 0x40a339
lea ecx, [ebp - 0x50]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a330
sub ecx, edx
push ecx
lea eax, [ebp - 0x50]
mov ecx, 0x548224
push eax
call fcn.00403160
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x40a35b
push edi
call fcn.004e7744
add esp, 4
mov ecx, ebx
push 0x548208
call fcn.0040a390
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c8882
mov esp, ebp
pop ebp
ret