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

Disassembly:
sub esp, 0x64
mov eax, dword [0x4b3774]
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 0x409336
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x409344
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, edi
je 0x409359
push ebx
mov ebx, dword [esi + 8]
mov eax, edi
call fcn.00404cb0
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 0x4093d5
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 0x4093ed
call sub.Comn.dll_GetObjectLogPXE
mov edi, eax
mov esi, dword [edi]
push 0x1f
add esi, 0xc
call fcn.00409230
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.0042c614
add esp, 0x64
ret
test edi, edi
je 0x4094f0
cmp dword [edi + 0x44], 1
jne 0x4094e5
mov eax, dword [edi + 0x40]
cmp eax, 6
je 0x409410
cmp eax, 0x47
jne 0x4094e5
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 0x40955e
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 dword [sym.imp.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 0x4094e5
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
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 ebp
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
call fcn.00403a90
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4094b4
mov edi, dword [edi + 8]
test edi, edi
jne 0x4093f5
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 0x40956c
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 0x409586
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.0042c614
add esp, 0x64
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
call fcn.00403b30
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0042c614
add esp, 0x64
ret
mov ecx, esi
call fcn.00403a40
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 0x40964e
mov dword [esp + 0x10], edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4095ca
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 0x4095d0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esi + 4]
add ebx, dword [esp + 0x10]
test ebp, ebp
jbe 0x409634
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 dword [sym.imp.WS2_32.dll_ntohl]
cmp dword [ebx + 8], eax
jne 0x40961e
cmp dword [ebx + 0x20], esi
jne 0x40961e
push ebp
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebx + 0xc], eax
add edi, 0x18
sub dword [esp + 0x20], 1
jne 0x4095e6
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
add dword [esp + 0x10], 0x2c
add edi, 1
cmp edi, dword [esp + 0x5c]
mov dword [esp + 0x1c], edi
jb 0x4095a9
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
push esi
call fcn.00409680
push esi
call fcn.0040a050
mov ecx, esi
call fcn.00409820
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c614
add esp, 0x64
ret