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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437d66
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x454288]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x134], eax
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [eax + 0x11800], 0
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push 0xa6
push 2
mov dword [0x455540], 0
mov dword [ebp - 0x130], 0
call esi
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x140], ecx
lea ecx, [ebp - 0x144]
push ecx
mov dword [ebp - 0x13c], ecx
lea ecx, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], eax
call fcn.00401400
test al, al
jne 0x405b4d
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x6c
push str.e:workwtdhcp.._common_heapmem.h
push str.ERROR
call fcn.0040ae90
add esp, 0x14
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x140]
mov eax, dword [eax]
test eax, eax
je 0x405e40
lea ecx, [ebp - 0x130]
push ecx
push eax
push 0
push 0xa6
push 2
call esi
test eax, eax
je 0x405b88
push eax
push str.Failed_to_execute_GetAdapteraAddresses._Error:__d
push 0x67
jmp 0x405e4e
mov eax, dword [ebp - 0x140]
mov ebx, dword [eax]
test ebx, ebx
je 0x405d19
jmp 0x405ba0
mov eax, dword [ebx + 0x3c]
cmp eax, 0xffff
jae 0x405ca6
test eax, eax
je 0x405ca6
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x405ca6
mov esi, dword [edi + 0xc]
mov esi, dword [esi + 4]
test esi, esi
je 0x405c9b
cmp esi, 0xffffffff
je 0x405c9b
mov ecx, 0x7f000001
call fcn.00404eb0
cmp esi, eax
je 0x405c9b
cmp si, 0xfea9
je 0x405c9b
xor eax, eax
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x11e], eax
lea ecx, [ebp - 0x11e]
mov word [ebp - 0x11a], ax
mov ax, word [ebx + 0x3c]
mov word [ebp - 0x120], ax
lea eax, [ebx + 0x2c]
push eax
call fcn.00407760
push dword [ebx + 0x24]
mov edx, 0x80
lea ecx, [ebp - 0x118]
call fcn.00404cd0
mov eax, dword [ebx + 0xa4]
add esp, 4
mov dword [ebp - 0x124], 0xffffff
test eax, eax
je 0x405c59
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
jmp 0x405c5c
mov dword [ebp - 0x18], esi
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x128]
push eax
call fcn.00407470
test al, al
jne 0x405c9b
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x90
push str.....common_netInterfaces.cpp
push str.ERROR
call fcn.0040ae90
add esp, 0x14
mov edi, dword [edi + 8]
test edi, edi
jne 0x405bc1
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x405d0e
lea ecx, [ecx]
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x12c], eax
cmp eax, 0x100007f
je 0x405d07
lea eax, [ebp - 0x12c]
push eax
call fcn.00407730
cmp eax, 0xffffffff
jne 0x405d07
lea eax, [ebp - 0x12c]
push eax
call fcn.004075b0
test al, al
jne 0x405d07
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0xab
push str.....common_netInterfaces.cpp
push str.ERROR
call fcn.0040ae90
add esp, 0x14
mov esi, dword [esi + 8]
test esi, esi
jne 0x405cb0
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x405ba0
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIpAddrTable]
lea eax, [ebp - 0x138]
push 0
push eax
push 0
mov dword [ebp - 0x138], 0
call esi
push ecx
push dword [ebp - 0x138]
lea ecx, [ebp - 0x15c]
call fcn.00407640
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x154]
mov eax, dword [eax]
test eax, eax
jne 0x405d79
push str.pIPAddrTable_not_allocated.
push 0xbd
push str.....common_netInterfaces.cpp
push str.ERROR
call fcn.0040ae90
add esp, 0x10
jmp 0x405e17
push 0
lea ecx, [ebp - 0x138]
push ecx
push eax
call esi
test eax, eax
je 0x405da8
push eax
push str.GetIpAddrTable_failed_with_error__d
push 0xc4
push str.....common_netInterfaces.cpp
push str.ERROR
call fcn.0040ae90
add esp, 0x14
jmp 0x405e17
mov eax, dword [ebp - 0x154]
xor edi, edi
mov eax, dword [eax]
mov dword [ebp - 0x14c], eax
cmp dword [eax], edi
jbe 0x405e17
lea esi, [eax + 0xc]
nop
mov eax, dword [esi - 8]
mov ecx, dword [ebp - 0x134]
mov ebx, dword [esi]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004076f0
cmp eax, 0xffffffff
je 0x405e09
mov ecx, dword [ebp - 0x134]
push eax
call fcn.004074d0
mov edx, dword [eax]
mov ecx, dword [eax + 0x110]
and edx, ebx
and ecx, ebx
mov dword [eax + 4], ebx
cmp edx, ecx
je 0x405e09
mov ecx, dword [eax]
mov dword [eax + 0x110], ecx
mov eax, dword [ebp - 0x14c]
inc edi
add esi, 0x18
cmp edi, dword [eax]
jb 0x405dc0
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x405e34
push eax
call fcn.00426cde
add esp, 4
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
jmp 0x405e60
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x62
push str.....common_netInterfaces.cpp
push str.ERROR
call fcn.0040ae90
add esp, 0x14
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x405e73
push eax
call fcn.00426cde
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426c47
mov esp, ebp
pop ebp
ret