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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7a2d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x280
push esi
mov dword [ebp - 0x40], ecx
mov ecx, 0x524e73
push edi
mov dword [ebp - 0x14], edx
call fcn.004e6414
push 0x104
lea eax, [ebp - 0x188]
push 0
push eax
call fcn.004bc490
mov edi, 0x3a98
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x40da12
lea eax, [ebp - 0x1c]
push eax
push edi
push 0
push 0x10
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x40d748
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
inc esi
xor edi, edi
cmp esi, 3
jae 0x40da12
mov edi, dword [ebp - 0x1c]
jmp 0x40d6f4
test eax, eax
jne 0x40da12
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 1
mov edx, dword [edi + 0xc]
test edx, edx
je 0x40d9ba
cmp byte [edx], 0
je 0x40d9ba
mov ecx, edx
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d7c6
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.00403360
lea ecx, [ebp - 0x38]
call fcn.0040d030
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
cmp ecx, 0x10
jb 0x40d818
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d80e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db2f
push ecx
push edx
call fcn.004b8e2a
add esp, 8
mov eax, dword [edi + 0x34]
cmp eax, 6
jne 0x40d854
movzx eax, byte [edi + 0x31]
push eax
movzx eax, byte [edi + 0x30]
push eax
movzx eax, byte [edi + 0x2f]
push eax
movzx eax, byte [edi + 0x2e]
push eax
movzx eax, byte [edi + 0x2d]
push eax
movzx eax, byte [edi + 0x2c]
push eax
lea eax, [ebp - 0x290]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0040dc70
add esp, 0x20
jmp 0x40d895
cmp eax, 8
jne 0x40d895
movzx eax, byte [edi + 0x33]
push eax
movzx eax, byte [edi + 0x32]
push eax
movzx eax, byte [edi + 0x31]
push eax
movzx eax, byte [edi + 0x30]
push eax
movzx eax, byte [edi + 0x2f]
push eax
movzx eax, byte [edi + 0x2e]
push eax
movzx eax, byte [edi + 0x2d]
push eax
movzx eax, byte [edi + 0x2c]
push eax
lea eax, [ebp - 0x290]
push str._02X__02X__02X__02X__02X__02X__02X__02X
push eax
call fcn.0040dc70
add esp, 0x28
lea ecx, [ebp - 0x290]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d8a0
sub ecx, edx
lea eax, [ebp - 0x290]
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.00403090
mov edx, dword [edi + 0x24]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d8c1
push 0
push 0
push 0
push 0
sub ecx, esi
sar ecx, 1
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
lea esi, [eax + 1]
push esi
call fcn.004b90e1
add esp, 4
mov dword [ebp - 0x18], eax
push esi
mov esi, eax
push 0
push esi
call fcn.004bc490
mov edx, dword [edi + 0x24]
add esp, 0xc
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d910
sub ecx, dword [ebp - 0x18]
push 0
push 0
push dword [ebp - 0x20]
sar ecx, 1
push esi
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d940
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x64]
call fcn.00403090
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x34]
push 1
push esi
mov dword [ebp - 0x44], eax
call fcn.004b8e2a
mov eax, dword [ebp - 0x14]
add esp, 8
mov esi, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x40d9ae
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x20], esi
push eax
mov ecx, esi
call fcn.00407700
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
push eax
call fcn.00407700
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x14]
add dword [eax + 4], 0x3c
jmp 0x40d9ba
lea ecx, [ebp - 0x7c]
push ecx
push esi
mov ecx, eax
call fcn.0040dcd0
mov edi, dword [edi + 8]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d600
test edi, edi
jne 0x40d750
mov edi, dword [ebp - 0x3c]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x188]
mov eax, 0x50face
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40da2e
test dl, dl
je 0x40da0e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40da2e
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d9f2
xor eax, eax
jmp 0x40da33
push 4
lea eax, [ebp - 0x188]
push str.:1:_d
push eax
call fcn.0040dc70
add esp, 0xc
test edi, edi
je 0x40d9e7
jmp 0x40d9d7
sbb eax, eax
or eax, 1
test eax, eax
je 0x40dae2
push 4
lea eax, [ebp - 0x188]
push str.:2:_d
push eax
call fcn.0040dc70
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
cmp esi, edi
je 0x40da76
nop dword [eax]
mov ecx, esi
call fcn.0040d600
add esi, 0x3c
cmp esi, edi
jne 0x40da60
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov edx, ecx
lea ecx, [ebp - 0x38]
call fcn.0040d1e0
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x188]
push 0x510f74
push eax
call fcn.0040dc70
mov ecx, dword [ebp - 0x24]
add esp, 0xc
cmp ecx, 0x10
jb 0x40dad0
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40dac6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db2f
push ecx
push edx
call fcn.004b8e2a
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x188]
xorps xmm0, xmm0
lea edx, [ecx + 1]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40db02
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
mov ecx, esi
call fcn.00403360
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004c05a0
int3