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

Disassembly:
sub esp, 0x64
mov eax, dword [0x4c3740]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
mov dword [esp + 0x2c], esi
jbe 0x40cdc6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x40cdd4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, edi
je 0x40cde9
push ebx
mov ebx, dword [esi + 8]
mov eax, edi
call fcn.00405120
add esp, 4
mov dword [esi + 8], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 6
push 2
mov dword [esp + 0x28], 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x40ce65
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR80.dll_malloc]
mov edx, dword [esp + 0x18]
add esp, 4
push edx
mov edi, eax
push 0
push edi
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push edi
push 0
push 6
push 2
mov dword [esp + 0x24], edi
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
je 0x40ce7d
call sub.Comn.dll_GetObjectLogPXE
mov edi, eax
mov esi, dword [edi]
push 0x1f
add esi, 0xc
call fcn.0040ccc0
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:__DHCP_GetAdaptersAddresses_Fail.
push edi
call ecx
add esp, 0xc
mov eax, 0xfa3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00437634
add esp, 0x64
ret
test edi, edi
je 0x40cf7f
cmp dword [edi + 0x44], 1
jne 0x40cf74
mov eax, dword [edi + 0x40]
cmp eax, 6
je 0x40cea0
cmp eax, 0x47
jne 0x40cf74
push 0x2c
lea edx, [esp + 0x34]
push 0
push edx
call sub.MSVCR80.dll_memset
movzx eax, byte [edi + 0x2c]
movzx ecx, byte [edi + 0x2d]
movzx edx, byte [edi + 0x2e]
mov ebx, dword [edi + 0x10]
mov byte [esp + 0x3c], al
movzx eax, byte [edi + 0x2f]
mov byte [esp + 0x3f], al
mov eax, dword [edi + 0x38]
mov byte [esp + 0x3d], cl
movzx ecx, byte [edi + 0x30]
shr eax, 2
and al, 1
mov byte [esp + 0x3e], dl
movzx edx, byte [edi + 0x31]
mov byte [esp + 0x40], cl
mov ecx, dword [edi]
mov byte [esp + 0x5a], al
mov eax, dword [edi + 4]
add esp, 0xc
test ebx, ebx
mov byte [esp + 0x35], dl
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x50], eax
je 0x40cfed
mov eax, dword [ebx + 0xc]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
call sub.WS2_32.dll_ntohl
push eax
call dword [sym.imp.WS2_32.dll_htonl]
push str.127.0.0.1
mov ebp, eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp ebp, eax
je 0x40cf74
lea ecx, [ecx]
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
push ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
call sub.WS2_32.dll_ntohl
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
call fcn.00403f00
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40cf40
mov edi, dword [edi + 8]
test edi, edi
jne 0x40ce85
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCR80.dll_free]
push edx
call edi
add esp, 4
push 0
lea eax, [esp + 0x1c]
push eax
push 0
mov dword [esp + 0x24], 0
call sub.IPHLPAPI.DLL_GetIpAddrTable
cmp eax, 0x7a
jne 0x40cffb
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
push 0
lea edx, [esp + 0x1c]
mov ebx, eax
push edx
push ebx
mov dword [esp + 0x30], ebx
call sub.IPHLPAPI.DLL_GetIpAddrTable
test eax, eax
je 0x40d015
push ebx
call edi
add esp, 4
mov eax, 0xfa3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00437634
add esp, 0x64
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
call fcn.00403fa0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00437634
add esp, 0x64
ret
mov ecx, esi
call fcn.00403eb0
mov ebp, dword [ebx]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], edi
jbe 0x40d0db
mov dword [esp + 0x10], edi
mov eax, dword [esi + 4]
test eax, eax
je 0x40d059
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40d05f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esi + 4]
add ebx, dword [esp + 0x10]
test ebp, ebp
jbe 0x40d0c1
mov edi, dword [esp + 0x24]
add edi, 4
mov dword [esp + 0x20], ebp
mov ecx, dword [edi + 0xc]
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
mov esi, dword [edi + 4]
mov ebp, dword [edi + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0x14]
push eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
call sub.WS2_32.dll_ntohl
cmp dword [ebx + 8], eax
jne 0x40d0ab
cmp dword [ebx + 0x20], esi
jne 0x40d0ab
push ebp
call sub.WS2_32.dll_ntohl
mov dword [ebx + 0xc], eax
add edi, 0x18
sub dword [esp + 0x20], 1
jne 0x40d075
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
add dword [esp + 0x10], 0x2c
add edi, 1
cmp edi, dword [esp + 0x5c]
mov dword [esp + 0x1c], edi
jb 0x40d038
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
push esi
call fcn.0040d110
mov ecx, esi
call fcn.0040d2b0
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00437634
add esp, 0x64
ret