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

Disassembly:
sub esp, 0x444
mov eax, dword [0x6ccd44]
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 0x6d23e8
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.005e7f10
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x40ede5
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 0x40e990
push edi
push ebp
call fcn.005e7dd0
pop ecx
pop ecx
cmp dword [esp + 0x10], ebx
je 0x40ede5
push 0x58
push 0x6d2400
push edi
push dword [esp + 0x1c]
call fcn.005e7f10
add esp, 0x10
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push ebp
call esi
test eax, eax
jne 0x40eddc
cmp dword [esp + 0x10], ebx
je 0x40eddc
push 0x62
push 0x6d2418
push edi
push 0x178
call fcn.005e7f10
mov esi, eax
add esp, 0x10
mov dword [esp + 0x28], esi
test esi, esi
je 0x40eddc
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 0x40ea2a
push 1
push esi
call fcn.005e7dd0
pop ecx
pop ecx
cmp dword [esp + 0x10], ebx
jne 0x40ea0f
test ebp, ebp
je 0x40ede5
push 1
jmp 0x40eddd
push 0x6d
push 0x6d2430
push 1
push dword [esp + 0x1c]
call fcn.005e7f10
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 0x40edc7
cmp dword [esp + 0x10], ebx
je 0x40edc7
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 0x40eda7
mov eax, esi
test esi, esi
je 0x40edc7
mov ecx, dword [edi + 0x19c]
cmp dword [eax + 4], ecx
je 0x40ea81
mov eax, dword [eax + 8]
test eax, eax
jne 0x40ea75
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40edc7
mov esi, dword [esp + 0x18]
test edx, edx
je 0x40eab0
mov eax, esi
sub eax, ebx
push 0x6d2448
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 0x6d244c
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 0x40eaf1
sub ecx, edx
sar ecx, 1
je 0x40eb55
mov ecx, dword [esi + 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x40eb0a
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.005fbc80
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 0x40eb5b
sub ecx, edx
sar ecx, 1
je 0x40ebbf
mov ecx, dword [esi + 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x40eb74
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.005fbc80
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 0x40ec15
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 0x40ec1b
sub ecx, edx
sar ecx, 1
je 0x40ec7f
mov ecx, dword [esi + 0x20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x40ec34
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.005fbc80
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.0048876f
lea eax, [esp + 0x6c]
mov edx, esi
push eax
push 2
pop ecx
call fcn.0048876f
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 0x40ed67
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 0x6d2514
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 0x40ea65
push 1
push ebp
call fcn.005e7dd0
push 1
push esi
call fcn.005e7dd0
xor eax, eax
add esp, 0x10
cmp dword [esp + 0x1c], eax
cmovl ebx, eax
mov eax, ebx
jmp 0x40ede7
push 1
push ebp
call fcn.005e7dd0
push 1
push esi
call fcn.005e7dd0
add esp, 0x10
jmp 0x40ede5
push edi
push ebp
call fcn.005e7dd0
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.005b35b0
add esp, 0x444
ret