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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x288
push 0
mov dword [ebp - 0xc], 0x288
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 4], eax
call esi
cmp eax, 0x6f
jne 0x40d58f
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push edi
call esi
test eax, eax
jne 0x40d703
mov esi, edi
mov dword [ebp - 8], esi
test edi, edi
je 0x40d717
jmp 0x40d5b3
mov esi, dword [ebp - 8]
lea edi, [esi + 0x1b0]
test edi, edi
je 0x40d61f
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [eax - 1]
test esi, esi
jle 0x40d61c
mov eax, dword [ebx]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or edx, eax
jge 0x40d5f0
push esi
mov ecx, ebx
call fcn.00401b40
mov ecx, dword [ebx]
push esi
push ecx
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x40d6b5
mov dword [eax - 0xc], esi
mov edx, dword [ebx]
xor eax, eax
mov word [edx + esi*2], ax
mov esi, dword [ebp - 8]
jmp 0x40d670
mov esi, dword [ebp - 8]
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
mov edi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x40d670
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x40d64c
cmp dword [ecx - 8], 0
jl 0x40d6b5
mov dword [ecx - 0xc], 0
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx], dx
jmp 0x40d670
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d662
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebx]
mov ecx, str.0.0.0.0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d69d
test dx, dx
je 0x40d699
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d69d
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d677
xor eax, eax
jmp 0x40d6a2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40d6bf
mov eax, dword [esi]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40d5b0
jmp 0x40d700
push 0x80070057
call fcn.00401be0
movzx ecx, byte [esi + 0x199]
movzx edx, byte [esi + 0x198]
movzx eax, byte [esi + 0x197]
push ecx
movzx ecx, byte [esi + 0x196]
push edx
movzx edx, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push str._02hx__02hx__02hx__02hx__02hx__02hx
push ecx
call fcn.004041e0
add esp, 0x20
mov edi, dword [ebp - 4]
test edi, edi
je 0x40d717
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov esp, ebp
pop ebp
ret