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

Disassembly:
sub esp, 0x444
mov eax, dword [0x6dad44]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
push 0x55
xor edi, edi
mov dword [esp + 0x1c], edx
push 0x6e1550
xor eax, eax
mov dword [esp + 0x1c], ecx
inc edi
mov dword [esp + 0x28], eax
push edi
mov esi, 0x288
mov dword [esp + 0x1c], eax
push esi
mov ebx, eax
call fcn.005f5c60
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4103ba
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push eax
push ebp
call esi
test eax, eax
je 0x40ff65
push edi
push ebp
call fcn.005f5b20
pop ecx
pop ecx
cmp dword [esp + 0x10], ebx
je 0x4103ba
push 0x58
push 0x6e1568
push edi
push dword [esp + 0x1c]
call fcn.005f5c60
add esp, 0x10
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push ebp
call esi
test eax, eax
jne 0x4103b1
cmp dword [esp + 0x10], ebx
je 0x4103b1
push 0x62
push 0x6e1580
push edi
push 0x178
call fcn.005f5c60
mov esi, eax
add esp, 0x10
mov dword [esp + 0x28], esi
test esi, esi
je 0x4103b1
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
lea eax, [esp + 0x10]
push eax
push esi
xor eax, eax
mov dword [esp + 0x18], 0x178
push eax
push 0x90
push eax
call edi
test eax, eax
je 0x40ffff
push 1
push esi
call fcn.005f5b20
pop ecx
pop ecx
cmp dword [esp + 0x10], ebx
jne 0x40ffe4
test ebp, ebp
je 0x4103ba
push 1
jmp 0x4103b2
push 0x6d
push 0x6e1598
push 1
push dword [esp + 0x1c]
call fcn.005f5c60
add esp, 0x10
mov dword [esp + 0x28], eax
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
xor eax, eax
push eax
push 0x90
push eax
call edi
test eax, eax
jne 0x41039c
cmp dword [esp + 0x10], ebx
je 0x41039c
mov dword [esp + 0x1c], eax
mov edx, eax
mov dword [esp + 0x2c], eax
mov edi, ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
je 0x41037c
mov eax, esi
test esi, esi
je 0x41039c
mov ecx, dword [edi + 0x19c]
cmp dword [eax + 4], ecx
je 0x410056
mov eax, dword [eax + 8]
test eax, eax
jne 0x41004a
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41039c
mov esi, dword [esp + 0x18]
test edx, edx
je 0x410085
mov eax, esi
sub eax, ebx
push 0x6e15b0
push eax
mov eax, dword [esp + 0x1c]
add eax, ebx
push eax
call fcn.0040117f
add esp, 0xc
add ebx, eax
mov eax, esi
sub eax, ebx
push 0x6e15b4
push eax
mov eax, dword [esp + 0x1c]
add eax, ebx
push eax
call fcn.0040117f
push dword [edi + 0x1a0]
add ebx, eax
mov eax, dword [esp + 0x24]
push str._type_:_d
sub esi, ebx
add eax, ebx
push esi
push eax
call fcn.0040117f
mov esi, dword [esp + 0x38]
add esp, 0x1c
add ebx, eax
mov ecx, dword [esi + 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x4100c6
sub ecx, edx
sar ecx, 1
je 0x41012a
mov ecx, dword [esi + 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x4100df
sub ecx, edx
lea eax, [esp + 0x50]
sar ecx, 1
push ecx
push dword [esi + 0x28]
push 0x3ff
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00609cb0
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x30]
sub eax, ebx
push str.__name_:__s_
push eax
mov eax, dword [esp + 0x34]
add eax, ebx
push eax
call fcn.0040117f
add esp, 0x24
add ebx, eax
mov ecx, dword [esi + 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x410130
sub ecx, edx
sar ecx, 1
je 0x410194
mov ecx, dword [esi + 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x410149
sub ecx, edx
lea eax, [esp + 0x50]
sar ecx, 1
push ecx
push dword [esi + 0x24]
push 0x3ff
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00609cb0
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x30]
sub eax, ebx
push str.__desc_:__s_
push eax
mov eax, dword [esp + 0x34]
add eax, ebx
push eax
call fcn.0040117f
add esp, 0x24
add ebx, eax
cmp dword [edi + 0x190], 6
jne 0x4101ea
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 [esp + 0x30]
sub eax, ebx
push str.__mac_:__02x_02x_02x_02x_02x_02x_
push eax
mov eax, dword [esp + 0x34]
add eax, ebx
push eax
call fcn.0040117f
add esp, 0x24
add ebx, eax
mov ecx, dword [esi + 0x20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x4101f0
sub ecx, edx
sar ecx, 1
je 0x410254
mov ecx, dword [esi + 0x20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x410209
sub ecx, edx
lea eax, [esp + 0x50]
sar ecx, 1
push ecx
push dword [esi + 0x20]
push 0x3ff
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00609cb0
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x30]
sub eax, ebx
push str.__dnssuffix_:__s_
push eax
mov eax, dword [esp + 0x34]
add eax, ebx
push eax
call fcn.0040117f
add esp, 0x24
add ebx, eax
mov eax, dword [esp + 0x18]
add edi, 0x1b0
push edi
sub eax, ebx
push str.__v4addr_:__s_
push eax
mov eax, dword [esp + 0x20]
add eax, ebx
push eax
call fcn.0040117f
mov esi, dword [esp + 0x34]
add ebx, eax
lea eax, [esi + 0x1c0]
push eax
mov eax, dword [esp + 0x2c]
sub eax, ebx
push str.__v4mask_:__s_
push eax
mov eax, dword [esp + 0x30]
add eax, ebx
push eax
call fcn.0040117f
add ebx, eax
add esi, 0x1d8
mov eax, dword [esp + 0x38]
push esi
sub eax, ebx
push str.__v4gateway_:__s_
push eax
mov eax, dword [esp + 0x40]
add eax, ebx
push eax
call fcn.0040117f
add ebx, eax
mov edx, edi
lea eax, [esp + 0x64]
push eax
push 2
pop ecx
call fcn.0048f637
lea eax, [esp + 0x6c]
mov edx, esi
push eax
push 2
pop ecx
call fcn.0048f637
add esp, 0x38
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x44]
call dword [sym.imp.IPHLPAPI.DLL_SendARP]
cmp dword [esp + 0x3c], 6
jne 0x41033c
movzx eax, byte [esp + 0x45]
push eax
movzx eax, byte [esp + 0x48]
push eax
movzx eax, byte [esp + 0x4b]
push eax
movzx eax, byte [esp + 0x4e]
push eax
movzx eax, byte [esp + 0x51]
push eax
movzx eax, byte [esp + 0x54]
push eax
mov eax, dword [esp + 0x30]
sub eax, ebx
push str.__gatewaymac_:__02x_02x_02x_02x_02x_02x_
push eax
mov eax, dword [esp + 0x34]
add eax, ebx
push eax
call fcn.0040117f
add esp, 0x24
add ebx, eax
mov eax, dword [esp + 0x18]
sub eax, ebx
push 0x6e167c
push eax
mov eax, dword [esp + 0x1c]
add eax, ebx
push eax
call fcn.0040117f
mov edi, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x2c]
add ebx, eax
mov esi, dword [esp + 0x28]
inc edx
mov dword [esp + 0x1c], eax
mov edi, dword [edi]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], edi
test edi, edi
jne 0x41003a
push 1
push ebp
call fcn.005f5b20
push 1
push esi
call fcn.005f5b20
xor eax, eax
add esp, 0x10
cmp dword [esp + 0x1c], eax
cmovl ebx, eax
mov eax, ebx
jmp 0x4103bc
push 1
push ebp
call fcn.005f5b20
push 1
push esi
call fcn.005f5b20
add esp, 0x10
jmp 0x4103ba
push edi
push ebp
call fcn.005f5b20
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x450]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0e20
add esp, 0x444
ret