Function at 0x406e90
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 0x4075a0
push ebp
push esi
xor eax, eax
push 0x206
lea ecx, [esp + 0x5e]
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
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.00453a00
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov eax, dword [esp + 0x14]
push eax
call fcn.0041206b
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
push ebx
push esi
call fcn.00453a00
add esp, 0x10
lea edx, [esp + 0x14]
push edx
push esi
push ebx
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
je 0x406f44
cmp esi, ebx
je 0x407234
push esi
call fcn.0045141a
add esp, 4
jmp 0x407234
cmp esi, ebx
je 0x407234
lea esp, [esp]
mov ebp, dword [esi + 0xc]
push 1
push ebp
mov dword [esp + 0x28], ebp
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x406fbe
push eax
push eax
push 0xffffffffffffffff
push ebp
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebp, eax
test ebp, ebp
je 0x406fbe
xor ecx, ecx
lea eax, [ebp + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041206b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x406fbe
lea eax, [ebp + 2]
push eax
push 0
push ebx
call fcn.00453a00
mov eax, dword [esp + 0x2c]
add esp, 0xc
push ebp
push ebx
push 0xffffffffffffffff
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
lea ecx, [esp + 0x5c]
push str.._s
push ecx
mov edx, 0x104
call fcn.00401360
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 ebp, eax
cmp ebp, 0xffffffff
jne 0x40700f
test ebx, ebx
je 0x407007
push ebx
call fcn.0045141a
add esp, 4
mov esi, dword [esi + 8]
jmp 0x40722c
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x170002
push ebp
mov dword [esp + 0x2c], 0x10114
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x407225
cmp dword [esp + 0x1c], 0
jne 0x407225
mov eax, dword [edi]
add eax, 0xc2
shl eax, 4
add eax, edi
push eax
push ebx
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.0045261f
mov eax, dword [edi]
mov ecx, dword [esp + 0x58]
mov ebx, 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]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x64]
add esp, 0x20
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 + 0x20]
push ecx
push 0x170002
push ebp
mov dword [esp + 0x2c], 0x1010101
call ebx
test eax, eax
je 0x40714f
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.0045261f
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 + 0x20]
push ecx
push 0x170002
push ebp
mov dword [esp + 0x2c], 0x1010102
call ebx
test eax, eax
je 0x4071f7
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.0045261f
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]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x407206
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [edi]
mov esi, dword [esi + 8]
jmp 0x40722c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x406f50
cmp dword [edi], 0
ja 0x40759e
lea eax, [esp + 0x18]
push eax
push 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041206b
mov edx, dword [esp + 0x1c]
push edx
mov esi, eax
push 0
push esi
call fcn.00453a00
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x40728a
test esi, esi
je 0x40759e
push esi
call fcn.0045141a
add esp, 4
jmp 0x40759e
test esi, esi
je 0x40759e
push 1
lea ebp, [esi + 8]
push ebp
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4072fb
push eax
push eax
push 0xffffffffffffffff
push ebp
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebp, eax
test ebp, ebp
je 0x4072fb
xor ecx, ecx
lea eax, [ebp + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041206b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4072fb
lea eax, [ebp + 2]
push eax
push 0
push ebx
call fcn.00453a00
add esp, 0xc
push ebp
push ebx
push 0xffffffffffffffff
lea eax, [esi + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
lea eax, [esp + 0x5c]
push str.._s
push eax
mov edx, 0x104
call fcn.00401360
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 ebp, eax
cmp ebp, 0xffffffff
jne 0x40734b
test ebx, ebx
je 0x407344
push ebx
call fcn.0045141a
add esp, 4
mov esi, dword [esi]
jmp 0x407596
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x28]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x170002
push ebp
mov dword [esp + 0x2c], 0x10114
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40758f
cmp dword [esp + 0x1c], 0
jne 0x40758f
mov edx, dword [edi]
add edx, 0xc2
shl edx, 4
add edx, edi
push edx
push ebx
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.0045261f
mov eax, dword [edi]
mov edx, dword [esp + 0x58]
lea ecx, [eax + eax*8]
mov dword [edi + ecx*2 + 0x16c], edx
lea eax, [edi + ecx*2 + 0x16c]
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]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov byte [eax + 0x10], dl
add esp, 0x20
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 + 0x20]
push edx
push 0x170002
push ebp
mov dword [esp + 0x2c], 0x1010101
call ebx
test eax, eax
je 0x4074b7
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.0045261f
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 + 0x20]
push edx
push 0x170002
push ebp
mov dword [esp + 0x2c], 0x1010102
call ebx
test eax, eax
je 0x40755a
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.0045261f
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 ebx, [esi + 0x10c]
call fcn.00403390
mov ecx, dword [edi]
shl ecx, 8
lea edx, [ecx + edi + 0x220]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x407571
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [edi]
mov esi, dword [esi]
jmp 0x407596
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x407292
pop esi
pop ebp
mov ecx, dword [esp + 0x258]
mov eax, dword [edi]
pop ebx
xor ecx, esp
call fcn.00451380
add esp, 0x258
ret