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

Disassembly:
sub esp, 0x258
mov eax, dword [0x487fb0]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
xor ebx, ebx
cmp dword [edi], ebx
ja 0x40585a
push ebp
push esi
xor eax, eax
push 0x206
lea ecx, [esp + 0x5e]
push ebx
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], 0x1010101
mov dword [esp + 0x28], 0x1010102
mov byte [esp + 0x30], bl
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov byte [esp + 0x41], al
mov dword [esp + 0x1c], ebx
mov word [esp + 0x64], ax
call fcn.00451da0
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov eax, dword [esp + 0x18]
push eax
call fcn.0041005d
mov ecx, dword [esp + 0x1c]
push ecx
mov esi, eax
push ebx
push esi
call fcn.00451da0
add esp, 0x10
lea edx, [esp + 0x18]
push edx
push esi
push ebx
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
je 0x405244
cmp esi, ebx
je 0x4054e5
push esi
call fcn.0044f44a
add esp, 4
jmp 0x4054e5
cmp esi, ebx
je 0x4054e5
lea esp, [esp]
mov ebx, dword [esi + 0xc]
push 1
push ebx
mov dword [esp + 0x1c], ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4052c0
push eax
push eax
push 0xffffffffffffffff
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
je 0x4052c0
xor ecx, ecx
lea ebp, [ebx + 2]
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4052c0
lea eax, [ebx + 2]
push eax
push 0
push ebp
call fcn.00451da0
mov eax, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebp
push 0xffffffffffffffff
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
lea ecx, [esp + 0x5c]
push str.._s
push ecx
mov edx, 0x104
call fcn.00401330
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0x80
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405312
test ebp, ebp
je 0x4054da
push ebp
call fcn.0044f44a
add esp, 4
jmp 0x4054da
mov eax, dword [edi]
add eax, 0xc2
shl eax, 4
add eax, edi
push eax
push ebp
call dword [sym.imp.ole32.dll_CLSIDFromString]
movzx ecx, byte [esi + 0x31]
movzx edx, byte [esi + 0x30]
movzx eax, byte [esi + 0x2f]
push ecx
movzx ecx, byte [esi + 0x2e]
push edx
movzx edx, byte [esi + 0x2d]
push eax
movzx eax, byte [esi + 0x2c]
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
push str._02X__02X__02X__02X__02X__02X
push ecx
call fcn.00450247
mov eax, dword [edi]
mov ecx, dword [esp + 0x58]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea edx, [eax + eax*8]
lea eax, [edi + edx*2 + 0x16c]
mov dword [eax], ecx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x60]
add esp, 0x20
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x44]
push 0
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x4c]
lea edx, [esp + 0x14]
push edx
push 0x12
mov byte [eax + 0x10], cl
lea eax, [esp + 0x30]
push eax
push 4
lea ecx, [esp + 0x34]
push ecx
push 0x170002
push ebx
call ebp
test eax, eax
je 0x40540e
movzx edx, byte [esp + 0x29]
movzx eax, byte [esp + 0x28]
movzx ecx, byte [esp + 0x27]
push edx
movzx edx, byte [esp + 0x2a]
push eax
movzx eax, byte [esp + 0x2d]
push ecx
movzx ecx, byte [esp + 0x30]
push edx
push eax
push ecx
lea edx, [esp + 0x50]
push str._02X__02X__02X__02X__02X__02X
push edx
call fcn.00450247
mov eax, dword [edi]
mov ecx, dword [esp + 0x58]
lea eax, [eax + eax*8]
mov dword [edi + eax*2 + 4], ecx
mov edx, dword [esp + 0x5c]
lea eax, [edi + eax*2 + 4]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x68]
add esp, 0x20
mov byte [eax + 0x10], cl
xor eax, eax
push eax
lea edx, [esp + 0x14]
push edx
push 0x12
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov word [esp + 0x40], ax
lea eax, [esp + 0x30]
push eax
push 4
lea ecx, [esp + 0x30]
push ecx
push 0x170002
push ebx
call ebp
test eax, eax
je 0x4054ae
movzx edx, byte [esp + 0x29]
movzx eax, byte [esp + 0x28]
movzx ecx, byte [esp + 0x27]
push edx
movzx edx, byte [esp + 0x2a]
push eax
movzx eax, byte [esp + 0x2d]
push ecx
movzx ecx, byte [esp + 0x30]
push edx
push eax
push ecx
lea edx, [esp + 0x50]
push str._02X__02X__02X__02X__02X__02X
push edx
call fcn.00450247
mov eax, dword [edi]
mov ecx, dword [esp + 0x58]
lea eax, [eax + eax*8]
mov dword [edi + eax*2 + 0xb8], ecx
mov edx, dword [esp + 0x5c]
lea eax, [edi + eax*2 + 0xb8]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x68]
add esp, 0x20
mov byte [eax + 0x10], cl
mov edx, dword [edi]
mov ecx, dword [esi + 0x24]
shl edx, 8
lea edx, [edx + edi + 0x220]
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4054c0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [edi]
mov esi, dword [esi + 8]
test esi, esi
jne 0x405250
cmp dword [edi], 0
ja 0x405858
lea eax, [esp + 0xc]
push eax
push 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0041005d
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
push 0
push esi
call fcn.00451da0
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x40553b
test esi, esi
je 0x405858
push esi
call fcn.0044f44a
add esp, 4
jmp 0x405858
test esi, esi
je 0x405858
push 1
lea ebx, [esi + 8]
push ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4055ae
push eax
push eax
push 0xffffffffffffffff
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
je 0x4055ae
xor ecx, ecx
lea ebp, [ebx + 2]
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4055ae
lea eax, [ebx + 2]
push eax
push 0
push ebp
call fcn.00451da0
add esp, 0xc
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esi + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
lea eax, [esp + 0x5c]
push str.._s
push eax
mov edx, 0x104
call fcn.00401330
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0x80
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
jne 0x405604
test ebp, ebp
je 0x40584e
push ebp
call fcn.0044f44a
add esp, 4
jmp 0x40584e
mov edx, dword [edi]
add edx, 0xc2
shl edx, 4
add edx, edi
push edx
push ebp
call dword [sym.imp.ole32.dll_CLSIDFromString]
movzx eax, byte [esi + 0x199]
movzx ecx, byte [esi + 0x198]
movzx edx, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push ecx
movzx ecx, byte [esi + 0x195]
push edx
movzx edx, byte [esi + 0x194]
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.00450247
mov eax, dword [edi]
mov edx, dword [esp + 0x58]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*2 + 0x16c]
mov dword [eax], edx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x60]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x64]
add esp, 0x20
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x48]
push 0
mov byte [eax + 0x10], dl
lea eax, [esp + 0x14]
push eax
push 0x12
lea ecx, [esp + 0x30]
push ecx
push 4
lea edx, [esp + 0x34]
push edx
push 0x170002
push ebx
call ebp
test eax, eax
je 0x405711
movzx eax, byte [esp + 0x29]
movzx ecx, byte [esp + 0x28]
movzx edx, byte [esp + 0x27]
push eax
movzx eax, byte [esp + 0x2a]
push ecx
movzx ecx, byte [esp + 0x2d]
push edx
movzx edx, byte [esp + 0x30]
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.00450247
mov eax, dword [edi]
mov edx, dword [esp + 0x58]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*2 + 4]
mov dword [eax], edx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x68]
add esp, 0x20
mov byte [eax + 0x10], dl
xor eax, eax
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x14]
push eax
push 0x12
lea ecx, [esp + 0x30]
push ecx
push 4
lea edx, [esp + 0x30]
push edx
push 0x170002
push ebx
call ebp
test eax, eax
je 0x4057ac
movzx eax, byte [esp + 0x29]
movzx ecx, byte [esp + 0x28]
movzx edx, byte [esp + 0x27]
push eax
movzx eax, byte [esp + 0x2a]
push ecx
movzx ecx, byte [esp + 0x2d]
push edx
movzx edx, byte [esp + 0x30]
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.00450247
mov eax, dword [edi]
mov edx, dword [esp + 0x58]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*2 + 0xb8]
mov dword [eax], edx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x68]
add esp, 0x20
mov byte [eax + 0x10], dl
lea eax, [esi + 0x10c]
push 1
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x405827
push eax
push eax
push 0xffffffffffffffff
lea eax, [esi + 0x10c]
push eax
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
je 0x405823
xor ecx, ecx
lea ebp, [ebx + 2]
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x405823
lea eax, [ebx + 2]
push eax
push 0
push ebp
call fcn.00451da0
add esp, 0xc
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esi + 0x10c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [esp + 0x14]
mov eax, dword [edi]
shl eax, 8
lea ecx, [eax + edi + 0x220]
movzx eax, word [ebp]
mov word [ecx], ax
add ebp, 2
add ecx, 2
test ax, ax
jne 0x405833
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [edi]
mov esi, dword [esi]
test esi, esi
jne 0x405543
pop esi
pop ebp
mov ecx, dword [esp + 0x258]
mov eax, dword [edi]
pop ebx
xor ecx, esp
call fcn.0044f3b0
add esp, 0x258
ret