Function at 0x406c10
Capabilities:
Get local ipv4 addresses
Get mac address on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x270
mov eax, dword [0x57f970]
xor eax, esp
mov dword [esp + 0x26c], eax
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jg 0x407544
xor eax, eax
push 0x206
lea ecx, [esp + 0x6e]
push ebx
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x40], bl
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov byte [esp + 0x51], al
mov dword [esp + 0x24], ebx
mov word [esp + 0x74], ax
call fcn.00508a80
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov eax, dword [esp + 0x10]
push eax
call fcn.00408cb2
mov ecx, dword [esp + 0x14]
push ecx
mov edi, eax
push ebx
push edi
call fcn.00508a80
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x406cc5
cmp edi, ebx
je 0x40722a
push edi
call fcn.00408cec
add esp, 4
jmp 0x40722a
cmp edi, ebx
je 0x40722a
lea eax, [edi + 8]
push 1
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x406d43
push eax
push eax
push 0xffffffffffffffff
lea eax, [edi + 8]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0xc], eax
test eax, eax
je 0x406d43
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408cb2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x406d43
mov eax, dword [esp + 0xc]
add eax, 2
push eax
push 0
push ebx
call fcn.00508a80
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
push ebx
push 0xffffffffffffffff
lea eax, [edi + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
lea ecx, [esp + 0x6c]
push 0x55b9e4
push ecx
mov edx, 0x104
call fcn.004017a0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0x80
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x406d9a
test ebx, ebx
je 0x407220
push ebx
call fcn.00408cec
add esp, 4
jmp 0x407220
push 0
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x2c]
push edx
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x170002
push eax
mov dword [esp + 0x28], 0x10114
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x407211
cmp dword [esp + 0x20], 0
jne 0x407211
mov edx, dword [esi]
add edx, 0xc2
shl edx, 4
add edx, esi
push edx
push ebx
call dword [sym.imp.ole32.dll_CLSIDFromString]
movzx eax, byte [edi + 0x199]
movzx ecx, byte [edi + 0x198]
movzx edx, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push ecx
movzx ecx, byte [edi + 0x195]
push edx
movzx edx, byte [edi + 0x194]
push eax
push ecx
push edx
lea eax, [esp + 0x60]
push 0x55b9f4
push eax
call fcn.005075f6
mov eax, dword [esi]
mov edx, dword [esp + 0x68]
lea ecx, [eax + eax*8]
lea eax, [esi + ecx*2 + 0x16c]
mov dword [eax], edx
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x74]
add esp, 0x20
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x58]
push 0
mov byte [eax + 0x10], dl
lea eax, [esp + 0x1c]
push eax
push 0x12
lea ecx, [esp + 0x40]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push 0x170002
push ebx
mov dword [esp + 0x28], 0x1010101
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x406eed
movzx eax, byte [esp + 0x39]
movzx ecx, byte [esp + 0x38]
movzx edx, byte [esp + 0x37]
push eax
movzx eax, byte [esp + 0x3a]
push ecx
movzx ecx, byte [esp + 0x3d]
push edx
movzx edx, byte [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0x60]
push 0x55ba14
push eax
call fcn.005075f6
mov eax, dword [esi]
mov edx, dword [esp + 0x68]
lea ecx, [eax + eax*8]
lea eax, [esi + ecx*2 + 4]
mov dword [eax], edx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x78]
add esp, 0x20
mov byte [eax + 0x10], dl
xor eax, eax
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x1c]
push eax
push 0x12
lea ecx, [esp + 0x40]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push 0x170002
push ebx
mov dword [esp + 0x28], 0x1010102
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x406f94
movzx eax, byte [esp + 0x39]
movzx ecx, byte [esp + 0x38]
movzx edx, byte [esp + 0x37]
push eax
movzx eax, byte [esp + 0x3a]
push ecx
movzx ecx, byte [esp + 0x3d]
push edx
movzx edx, byte [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0x60]
push 0x55ba34
push eax
call fcn.005075f6
mov eax, dword [esi]
mov edx, dword [esp + 0x68]
lea ecx, [eax + eax*8]
lea eax, [esi + ecx*2 + 0xb8]
mov dword [eax], edx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x78]
add esp, 0x20
mov byte [eax + 0x10], dl
lea ebx, [edi + 0x10c]
call fcn.004017e0
mov ecx, dword [esi]
shl ecx, 8
lea edx, [ecx + esi + 0x220]
jmp 0x406fb0
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x406fb0
mov eax, dword [esi]
mov edx, dword [edi + 0x1b0]
add eax, 0xcc
shl eax, 4
mov dword [eax + esi], edx
mov edx, dword [edi + 0x1b4]
mov dword [eax + esi + 4], edx
mov edx, dword [edi + 0x1b8]
mov dword [eax + esi + 8], edx
mov edx, dword [edi + 0x1bc]
mov dword [eax + esi + 0xc], edx
mov edx, dword [edi + 0x1c0]
add eax, esi
mov eax, dword [esi]
lea ecx, [edi + 0x1b0]
add eax, 0xd6
shl eax, 4
mov dword [eax + esi], edx
mov edx, dword [edi + 0x1c4]
mov dword [eax + esi + 4], edx
mov edx, dword [edi + 0x1c8]
add eax, esi
mov dword [eax + 8], edx
mov edx, dword [edi + 0x1cc]
lea ebx, [edi + 0x1c0]
mov dword [eax + 0xc], edx
mov eax, dword [esi]
mov edx, dword [edi + 0x1d8]
add eax, 0xe0
shl eax, 4
add eax, esi
mov dword [eax], edx
mov edx, dword [edi + 0x1dc]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x1e0]
mov dword [eax + 8], edx
mov edx, dword [edi + 0x1e4]
push ecx
mov dword [eax + 0xc], edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esi]
push ebx
mov dword [esi + ecx*4 + 0xea0], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [esi]
mov dword [esi + edx*4 + 0xec8], eax
mov ecx, dword [edi + 0x19c]
mov eax, dword [esi]
mov dword [esi + eax*4 + 0xef0], ecx
mov eax, dword [edi + 0x1a4]
mov edx, dword [esi]
mov dword [esi + edx*4 + 0x1058], eax
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
lea ebx, [edi + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.004017e0
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.00406280
mov edx, dword [esi]
mov ecx, dword [esp + 0x14]
mov dword [esi + edx*4 + 0x1080], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
push ecx
mov edx, dword [edi + 0x19c]
push edx
call sub.IPHLPAPI.DLL_GetPerAdapterInfo
cmp eax, 0x6f
jne 0x407202
mov eax, dword [esp + 0x10]
push eax
call fcn.00408cb2
mov ecx, dword [esp + 0x14]
push ecx
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x24], ebx
call fcn.00508a80
mov eax, dword [edi + 0x19c]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push ebx
push eax
call sub.IPHLPAPI.DLL_GetPerAdapterInfo
test eax, eax
jne 0x4071e9
lea eax, [ebx + 0xc]
test eax, eax
je 0x4071e9
lea ebx, [eax + 4]
mov ecx, 0x55b8d3
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407188
test dl, dl
je 0x407184
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407188
add eax, 2
add ecx, 2
test dl, dl
jne 0x407168
xor eax, eax
jmp 0x40718d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4071e5
mov ecx, dword [esi]
mov edx, dword [ebx]
shl ecx, 4
lea eax, [ecx + esi + 0xf18]
mov dword [eax], edx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ebx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x14]
add eax, 0xc
mov eax, dword [eax]
test eax, eax
je 0x4071e5
mov edx, dword [esi]
add eax, 4
shl edx, 4
lea ecx, [edx + esi + 0xfb8]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x407202
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00408cec
add esp, 4
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esi]
jmp 0x407220
mov eax, dword [esp + 0xc]
test eax, eax
je 0x407220
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
test edi, edi
jne 0x406ccd
mov eax, dword [esi]
test eax, eax
jg 0x407544
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00408cb2
mov edx, dword [esp + 0x20]
push edx
mov edi, eax
push 0
push edi
call fcn.00508a80
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
push edi
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
je 0x40729e
test edi, edi
je 0x407542
push edi
call fcn.00408cec
mov eax, dword [esi]
add esp, 4
pop edi
pop ebx
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.005072ec
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x407542
mov ebx, dword [edi + 0xc]
call fcn.004017e0
push eax
lea ecx, [esp + 0x6c]
push 0x55ba54
push ecx
mov edx, 0x104
mov dword [esp + 0x18], eax
call fcn.004017a0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0x80
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40730b
mov eax, dword [esp + 0xc]
test eax, eax
je 0x407537
push eax
call fcn.00408cec
add esp, 4
jmp 0x407537
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push 0x170002
push ebx
mov dword [esp + 0x28], 0x10114
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40752c
cmp dword [esp + 0x20], 0
jne 0x40752c
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
add eax, 0xc2
shl eax, 4
add eax, esi
push eax
push ecx
call dword [sym.imp.ole32.dll_CLSIDFromString]
movzx edx, byte [edi + 0x31]
movzx eax, byte [edi + 0x30]
movzx ecx, byte [edi + 0x2f]
push edx
movzx edx, byte [edi + 0x2e]
push eax
movzx eax, byte [edi + 0x2d]
push ecx
movzx ecx, byte [edi + 0x2c]
push edx
push eax
push ecx
lea edx, [esp + 0x60]
push 0x55ba64
push edx
call fcn.005075f6
mov eax, dword [esi]
mov ecx, dword [esp + 0x68]
lea eax, [eax + eax*8]
mov dword [esi + eax*2 + 0x16c], ecx
mov edx, dword [esp + 0x6c]
lea eax, [esi + eax*2 + 0x16c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
add esp, 0x20
push 0
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x5c]
lea edx, [esp + 0x1c]
push edx
push 0x12
mov byte [eax + 0x10], cl
lea eax, [esp + 0x40]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x170002
push ebx
mov dword [esp + 0x28], 0x1010101
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x407452
movzx edx, byte [esp + 0x39]
movzx eax, byte [esp + 0x38]
movzx ecx, byte [esp + 0x37]
push edx
movzx edx, byte [esp + 0x3a]
push eax
movzx eax, byte [esp + 0x3d]
push ecx
movzx ecx, byte [esp + 0x40]
push edx
push eax
push ecx
lea edx, [esp + 0x60]
push 0x55ba84
push edx
call fcn.005075f6
mov eax, dword [esi]
mov ecx, dword [esp + 0x68]
lea eax, [eax + eax*8]
mov dword [esi + eax*2 + 4], ecx
mov edx, dword [esp + 0x6c]
lea eax, [esi + eax*2 + 4]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x78]
add esp, 0x20
mov byte [eax + 0x10], cl
xor eax, eax
push eax
lea edx, [esp + 0x1c]
push edx
push 0x12
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x40]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x170002
push ebx
mov dword [esp + 0x28], 0x1010102
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4074fe
movzx edx, byte [esp + 0x39]
movzx eax, byte [esp + 0x38]
movzx ecx, byte [esp + 0x37]
push edx
movzx edx, byte [esp + 0x3a]
push eax
movzx eax, byte [esp + 0x3d]
push ecx
movzx ecx, byte [esp + 0x40]
push edx
push eax
push ecx
lea edx, [esp + 0x60]
push 0x55baa4
push edx
call fcn.005075f6
mov eax, dword [esi]
mov ecx, dword [esp + 0x68]
lea eax, [eax + eax*8]
mov dword [esi + eax*2 + 0xb8], ecx
mov edx, dword [esp + 0x6c]
lea eax, [esi + eax*2 + 0xb8]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x78]
add esp, 0x20
mov byte [eax + 0x10], cl
mov edx, dword [esi]
mov ecx, dword [edi + 0x24]
shl edx, 8
lea edx, [edx + esi + 0x220]
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x407510
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esi]
jmp 0x407537
test ebx, ebx
je 0x407537
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi + 8]
test edi, edi
jne 0x4072a6
mov eax, dword [esi]
mov ecx, dword [esp + 0x274]
pop edi
pop ebx
xor ecx, esp
call fcn.005072ec
mov esp, ebp
pop ebp
ret