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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522348
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5640a8]
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 [0x56e9e0], 0
mov dword [ebp - 0x7c], 0
jne 0x42ee0d
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.00503184
mov edi, eax
add esp, 4
test edi, edi
je 0x42edf8
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x70]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x42ecb0
push edi
call fcn.004fdfef
add esp, 4
push dword [ebp - 0x70]
call fcn.00503184
mov edi, eax
add esp, 4
test edi, edi
je 0x42edf8
lea eax, [ebp - 0x70]
push eax
push edi
call esi
test eax, eax
jne 0x42edf8
mov esi, edi
test edi, edi
je 0x42edf8
mov eax, dword [ebp - 0x74]
nop dword [eax]
cmp dword [esi + 0x19c], eax
je 0x42ece3
mov esi, dword [esi]
test esi, esi
jne 0x42ecd0
jmp 0x42edf8
lea edx, [esi + 0x1b0]
mov byte [0x56e9e0], 1
cmp byte [edx], 0
jne 0x42ecf9
xor ecx, ecx
jmp 0x42ed0b
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x6c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ed01
sub ecx, dword [ebp - 0x6c]
push ecx
push edx
mov ecx, 0x56e9e4
call fcn.004081f0
cmp byte [esi + 0x1c0], 0
lea edx, [esi + 0x1c0]
jne 0x42ed2a
xor ecx, ecx
jmp 0x42ed3c
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x6c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ed32
sub ecx, dword [ebp - 0x6c]
push ecx
push edx
mov ecx, 0x56ea14
call fcn.004081f0
cmp byte [esi + 0x1d8], 0
lea edx, [esi + 0x1d8]
jne 0x42ed5b
xor ecx, ecx
jmp 0x42ed6d
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x6c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ed63
sub ecx, dword [ebp - 0x6c]
push ecx
push edx
mov ecx, 0x56ea2c
call fcn.004081f0
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004fb2d0
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.00426b20
add esp, 0x24
cmp byte [ebp - 0x50], 0
jne 0x42edd6
xor ecx, ecx
jmp 0x42ede9
lea ecx, [ebp - 0x50]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ede0
sub ecx, edx
push ecx
lea eax, [ebp - 0x50]
mov ecx, 0x56e9fc
push eax
call fcn.004081f0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test edi, edi
je 0x42ee0b
push edi
call fcn.004fdfef
add esp, 4
mov ecx, ebx
push 0x56e9e0
call fcn.0042ee40
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.004e1bb1
mov esp, ebp
pop ebp
ret