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

Disassembly:
sub esp, 0x26c
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
push edi
jg 0x471a51
xor eax, eax
push 0x206
lea ecx, [esp + 0x76]
push ebx
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov byte [esp + 0x59], al
mov dword [esp + 0x24], ebx
mov word [esp + 0x7c], ax
call fcn.00477820
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov eax, dword [esp + 0x14]
push eax
call fcn.004776e1
mov ecx, dword [esp + 0x18]
push ecx
mov edi, eax
push ebx
push edi
call fcn.00477820
add esp, 0x10
lea edx, [esp + 0x14]
push edx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x4711d3
cmp edi, ebx
je 0x471719
push edi
call fcn.0047754e
add esp, 4
jmp 0x471719
cmp edi, ebx
je 0x471719
jmp 0x4711e0
lea eax, [edi + 8]
push eax
call fcn.00463270
mov ebp, eax
push ebp
push 0x496124
lea eax, [esp + 0x7c]
push 0x104
push eax
call fcn.00463bb0
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 3
push 0x80
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x28], ebx
cmp ebx, 0xffffffff
jne 0x471244
test ebp, ebp
je 0x47170f
push ebp
call fcn.0047754e
add esp, 4
jmp 0x47170f
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x28]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push ebx
mov dword [esp + 0x30], 0x10114
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x471704
cmp dword [esp + 0x1c], 0
jne 0x471704
mov edx, dword [esi]
add edx, 0xc2
shl edx, 4
add edx, esi
push edx
push ebp
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 + 0x68]
push 0x496134
push eax
call fcn.004786b8
mov eax, dword [esi]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
lea eax, [esi + ecx*2 + 0x16c]
mov dword [eax], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x78]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x7c]
add esp, 0x20
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x60]
push 0
mov byte [eax + 0x10], dl
lea eax, [esp + 0x1c]
push eax
push 0x12
lea ecx, [esp + 0x48]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push ebx
mov dword [esp + 0x30], 0x1010101
call ebp
test eax, eax
je 0x471398
movzx eax, byte [esp + 0x41]
movzx ecx, byte [esp + 0x40]
movzx edx, byte [esp + 0x3f]
push eax
movzx eax, byte [esp + 0x42]
push ecx
movzx ecx, byte [esp + 0x45]
push edx
movzx edx, byte [esp + 0x48]
push eax
push ecx
push edx
lea eax, [esp + 0x68]
push 0x496154
push eax
call fcn.004786b8
mov eax, dword [esi]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
lea eax, [esi + ecx*2 + 4]
mov dword [eax], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x80]
add esp, 0x20
mov byte [eax + 0x10], dl
xor eax, eax
push eax
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 + 0x1c]
push eax
push 0x12
lea ecx, [esp + 0x48]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push ebx
mov dword [esp + 0x30], 0x1010102
call ebp
test eax, eax
je 0x47143e
movzx eax, byte [esp + 0x41]
movzx ecx, byte [esp + 0x40]
movzx edx, byte [esp + 0x3f]
push eax
movzx eax, byte [esp + 0x42]
push ecx
movzx ecx, byte [esp + 0x45]
push edx
movzx edx, byte [esp + 0x48]
push eax
push ecx
push edx
lea eax, [esp + 0x68]
push 0x496174
push eax
call fcn.004786b8
mov eax, dword [esi]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
lea eax, [esi + ecx*2 + 0xb8]
mov dword [eax], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x80]
add esp, 0x20
mov byte [eax + 0x10], dl
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push ebx
mov dword [esp + 0x30], 0x1010e
call ebp
test eax, eax
je 0x47147b
test byte [esp + 0x1c], 0x20
je 0x47147b
mov eax, dword [esi]
mov dword [esi + eax*4 + 0x10d0], 1
lea ecx, [edi + 0x10c]
push ecx
call fcn.00463270
mov edx, dword [esi]
add esp, 4
shl edx, 8
lea edx, [edx + esi + 0x220]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x471496
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 ebp, [edi + 0x1c0]
mov dword [eax + 0xc], edx
mov eax, dword [esi]
mov edx, dword [edi + 0x1d8]
add eax, 0xe0
lea ebx, [edi + 0x1d8]
shl eax, 4
add eax, esi
mov dword [eax], edx
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
mov edx, dword [ebx + 0xc]
push ecx
mov dword [eax + 0xc], edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esi]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + ecx*4 + 0xea0], eax
call ebp
mov edx, dword [esi]
push ebx
mov dword [esi + edx*4 + 0xec8], eax
call ebp
mov ecx, dword [esi]
mov dword [esi + ecx*4 + 0xef0], eax
mov eax, dword [edi + 0x19c]
mov edx, dword [esi]
mov dword [esi + edx*4 + 0xf18], eax
mov edx, dword [edi + 0x1a4]
mov ecx, dword [esi]
xor eax, eax
mov dword [esi + ecx*4 + 0x1080], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [edi + 8]
xor ebx, ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.00463270
add esp, 4
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.004707f0
mov ecx, dword [esi]
mov dword [esi + ecx*4 + 0x10a8], eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebx
mov ecx, dword [edi + 0x19c]
push eax
push ecx
call sub.IPHLPAPI.DLL_GetPerAdapterInfo
cmp eax, 0x6f
jne 0x4716f5
mov edx, dword [esp + 0x14]
push edx
call fcn.004776e1
mov ebp, eax
mov eax, dword [esp + 0x18]
push eax
push ebx
push ebp
mov dword [esp + 0x30], ebp
call fcn.00477820
mov edx, dword [edi + 0x19c]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push ebp
push edx
call sub.IPHLPAPI.DLL_GetPerAdapterInfo
test eax, eax
jne 0x4716dc
lea ebx, [ebp + 0xc]
test ebx, ebx
je 0x4716dc
lea ebp, [ebx + 4]
mov ecx, 0x496013
mov eax, ebp
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x471680
test dl, dl
je 0x47167c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x471680
add eax, 2
add ecx, 2
test dl, dl
jne 0x471660
xor eax, eax
jmp 0x471685
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4716d8
mov eax, dword [esi]
mov ecx, dword [ebp]
add eax, 0xf4
shl eax, 4
add eax, esi
mov dword [eax], ecx
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebx]
test eax, eax
je 0x4716d8
mov edx, dword [eax + 4]
lea ecx, [eax + 4]
mov eax, dword [esi]
add eax, 0xfe
shl eax, 4
add eax, esi
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x4716f5
mov edx, dword [esp + 0x20]
push edx
call fcn.0047754e
add esp, 4
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esi]
jmp 0x47170f
test ebx, ebx
je 0x47170f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
test edi, edi
jne 0x4711e0
mov eax, dword [esi]
test eax, eax
jg 0x471a51
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edx, dword [esp + 0x24]
push edx
call fcn.004776e1
mov edi, eax
mov eax, dword [esp + 0x28]
push eax
push 0
push edi
call fcn.00477820
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
push edi
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
je 0x47177c
test edi, edi
je 0x471a4f
push edi
call fcn.0047754e
add esp, 4
jmp 0x471a4f
test edi, edi
je 0x471a4f
mov edx, dword [edi + 0xc]
push edx
call fcn.00463270
mov ebp, eax
push ebp
push 0x496194
lea eax, [esp + 0x7c]
push 0x104
push eax
call fcn.00463bb0
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 3
push 0x80
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4717e4
test ebp, ebp
je 0x471a44
push ebp
call fcn.0047754e
add esp, 4
jmp 0x471a44
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x28]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push ebx
mov dword [esp + 0x30], 0x10114
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x471a39
cmp dword [esp + 0x1c], 0
jne 0x471a39
mov edx, dword [esi]
add edx, 0xc2
shl edx, 4
add edx, esi
push edx
push ebp
call dword [sym.imp.ole32.dll_CLSIDFromString]
movzx eax, byte [edi + 0x31]
movzx ecx, byte [edi + 0x30]
movzx edx, byte [edi + 0x2f]
push eax
movzx eax, byte [edi + 0x2e]
push ecx
movzx ecx, byte [edi + 0x2d]
push edx
movzx edx, byte [edi + 0x2c]
push eax
push ecx
push edx
lea eax, [esp + 0x68]
push 0x4961a4
push eax
call fcn.004786b8
mov eax, dword [esi]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
lea eax, [esi + ecx*2 + 0x16c]
mov dword [eax], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x78]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x7c]
add esp, 0x20
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x60]
push 0
mov byte [eax + 0x10], dl
lea eax, [esp + 0x1c]
push eax
push 0x12
lea ecx, [esp + 0x48]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push ebx
mov dword [esp + 0x30], 0x1010101
call ebp
test eax, eax
je 0x471926
movzx eax, byte [esp + 0x41]
movzx ecx, byte [esp + 0x40]
movzx edx, byte [esp + 0x3f]
push eax
movzx eax, byte [esp + 0x42]
push ecx
movzx ecx, byte [esp + 0x45]
push edx
movzx edx, byte [esp + 0x48]
push eax
push ecx
push edx
lea eax, [esp + 0x68]
push 0x4961c4
push eax
call fcn.004786b8
mov eax, dword [esi]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
lea eax, [esi + ecx*2 + 4]
mov dword [eax], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x80]
add esp, 0x20
mov byte [eax + 0x10], dl
xor eax, eax
push eax
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 + 0x1c]
push eax
push 0x12
lea ecx, [esp + 0x48]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push ebx
mov dword [esp + 0x30], 0x1010102
call ebp
test eax, eax
je 0x4719cc
movzx eax, byte [esp + 0x41]
movzx ecx, byte [esp + 0x40]
movzx edx, byte [esp + 0x3f]
push eax
movzx eax, byte [esp + 0x42]
push ecx
movzx ecx, byte [esp + 0x45]
push edx
movzx edx, byte [esp + 0x48]
push eax
push ecx
push edx
lea eax, [esp + 0x68]
push 0x4961e4
push eax
call fcn.004786b8
mov eax, dword [esi]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
lea eax, [esi + ecx*2 + 0xb8]
mov dword [eax], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x80]
add esp, 0x20
mov byte [eax + 0x10], dl
mov eax, dword [esi]
mov ecx, dword [edi + 0x24]
shl eax, 8
lea edx, [eax + esi + 0x220]
jmp 0x4719e0
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4719e0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x28]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push 0x170002
push ebx
mov dword [esp + 0x30], 0x1010e
call ebp
test eax, eax
je 0x471a2e
test byte [esp + 0x1c], 0x20
je 0x471a2e
mov ecx, dword [esi]
mov dword [esi + ecx*4 + 0x10d0], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esi]
jmp 0x471a44
test ebx, ebx
je 0x471a44
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi + 8]
test edi, edi
jne 0x471784
mov eax, dword [esi]
mov ecx, dword [esp + 0x278]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004771de
add esp, 0x26c
ret