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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push esi
push edi
push eax
mov esi, ecx
mov dword [ebx], 0
push 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0xe8
je 0x40ba34
mov eax, dword [ebp - 0x18]
cmp eax, 1
jb 0x40ba34
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 0x18]
mov edi, eax
lea eax, [ebp - 8]
mov dword [ebp - 0x28], edi
push eax
mov ecx, edi
mov dword [ebp - 8], 0
call fcn.0040b780
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40ba15
test edi, edi
je 0x40ba36
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x40ba15
cmp ecx, 0x14
jae 0x40ba15
nop dword [eax + eax]
lea eax, [edi + 0x1b0]
push eax
mov eax, dword [ebx]
push 0x20
lea eax, [eax + eax*4]
shl eax, 5
add eax, esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov eax, dword [ebx]
add esp, 0xc
lea ecx, [eax + eax*4]
mov eax, str.0.0.0.0
shl ecx, 5
add ecx, esi
mov dword [ebp - 0x24], ecx
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40b910
test dl, dl
je 0x40b90c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40b910
add ecx, 2
add eax, 2
test dl, dl
jne 0x40b8f0
xor eax, eax
jmp 0x40b915
sbb eax, eax
or eax, 1
test eax, eax
je 0x40ba05
lea eax, [edi + 0x1c0]
push eax
mov eax, dword [ebp - 0x24]
add eax, 0x20
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov eax, dword [ebx]
lea esi, [edi + 0x1d8]
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0x40
lea eax, [eax + eax*4]
push esi
shl eax, 5
add eax, ecx
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push str._d._d._d._d
push esi
call fcn.0040cd60
push dword [ebp - 8]
mov eax, dword [ebx]
push dword [ebp - 0xc]
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0x10]
lea eax, [eax + eax*4]
shl eax, 5
push str._d._d._d
add eax, 0x60
add eax, esi
push 0x20
push eax
call fcn.0040afa0
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
mov eax, dword [ebx]
push str._02X_02X_02X_02X_02X_02X
push 0x14
lea eax, [eax + eax*4]
shl eax, 5
sub eax, 0xffffff80
add eax, esi
push eax
call fcn.0040afa0
add esp, 0x54
inc dword [ebx]
mov edi, dword [edi]
test edi, edi
jne 0x40b8c0
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
test edi, edi
je 0x40ba36
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418d36
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418d36
mov esp, ebp
pop ebp
ret