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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xe0
mov dword [esp + 0x14], 0
xor ecx, ecx
mov esi, 0x17
lea ebx, [esp + 0x14]
xor eax, eax
xor ebp, ebp
mov edi, 0x4fa513
test ecx, ecx
je 0x47cfba
nop word [eax + eax]
push ecx
push eax
call sym._realloc
add esp, 8
mov ecx, dword [esp + 0xf4]
mov ecx, dword [ecx + 0x48]
mov edx, ecx
not edx
shr edx, 1
and edx, 2
test cl, 2
cmove edx, esi
push ebx
mov dword [esp + 0x10], eax
push eax
push 0
push 0xe
push edx
call sym._GetAdaptersAddresses_20
test eax, eax
je 0x47d000
cmp eax, 0x6f
jne 0x47d02f
cmp ebp, 3
mov eax, dword [esp + 0xc]
ja 0x47d033
inc ebp
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x47cfb0
jmp 0x47cfba
mov eax, dword [0x50522c]
mov dword [esp + 4], eax
cmp eax, 0xffffffff
jne 0x47d052
push 0x50522c
push 0x506278
call dbg.ffNetifGetDefaultRouteImpl
add esp, 8
test al, al
je 0x47d040
mov eax, dword [0x50522c]
mov dword [esp + 4], eax
jmp 0x47d052
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x47d3d1
jmp 0x47d3de
mov dword [0x50522c], 0xfffffffe
mov dword [esp + 4], 0xfffffffe
mov eax, dword [esp + 0xc]
test eax, eax
je 0x47d3dc
lea edi, [esp + 0x1f]
mov edx, eax
jmp 0x47d083
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edx, dword [edx + 8]
test edx, edx
je 0x47d3cb
mov ecx, dword [edx + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xf4]
cmp byte [ecx + 0x58], 0
je 0x47d0a1
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 4]
jne 0x47d078
cmp dword [edx + 0x40], 0x18
jne 0x47d0b4
mov ecx, dword [esp + 0xf4]
test byte [ecx + 0x48], 1
je 0x47d078
push 0
push 0
push 0x80
lea eax, [esp + 0x6c]
push eax
push 0xffffffffffffffff
mov dword [esp + 0x1c], edx
push dword [edx + 0x28]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0xf4]
mov eax, dword [eax + 0x50]
test eax, eax
je 0x47d106
push eax
mov eax, dword [esp + 0xf8]
push dword [eax + 0x54]
lea eax, [esp + 0x68]
push eax
call sym._strncmp
add esp, 0xc
test eax, eax
jne 0x47d070
mov dl, 1
mov eax, dword [esp + 0xf4]
test byte [eax + 0x48], 8
je 0x47d2d2
mov eax, dword [esp + 8]
cmp dword [eax + 0x34], 6
jne 0x47d2d6
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 4]
sete byte [esp]
movzx esi, byte [eax + 0x2c]
movzx ecx, byte [eax + 0x2d]
movzx edx, byte [eax + 0x2e]
movzx edi, byte [eax + 0x2f]
movzx ebx, byte [eax + 0x30]
movzx eax, byte [eax + 0x31]
push eax
push ebx
push edi
lea edi, [esp + 0x2b]
push edx
push ecx
push esi
push str._02x:_02x:_02x:_02x:_02x:_02x
push 0x20
push edi
call sym._snprintf_3
add esp, 0x24
mov ecx, dword [esp + 0xf8]
mov esi, dword [ecx]
mov ebx, dword [ecx + 8]
cmp ebx, dword [ecx + 0xc]
jne 0x47d1a2
lea eax, [ebx + ebx]
test ebx, ebx
mov edx, 0x10
cmove eax, edx
mov dword [ecx + 0xc], eax
imul eax, dword [ecx + 4]
push eax
push esi
call sym._realloc
mov ecx, dword [esp + 0x100]
add esp, 8
mov esi, eax
mov dword [ecx], eax
mov ebx, dword [ecx + 8]
lea eax, [ebx + 1]
mov dword [ecx + 8], eax
imul ebx, dword [ecx + 4]
mov dword [esi + ebx], 0
mov dword [esi + ebx + 4], 0
mov eax, dword [0x5052b0]
mov dword [esi + ebx + 8], eax
lea eax, [esp + 0x60]
push eax
call sym._strlen
add esp, 4
test eax, eax
je 0x47d224
mov dword [esp + 0x18], eax
inc eax
mov ecx, 0x20
nop
mov edi, ecx
add ecx, ecx
cmp eax, edi
ja 0x47d1e0
push edi
call sym._malloc
add esp, 4
mov byte [eax], 0
mov dword [esi + ebx + 8], eax
mov dword [esi + ebx], edi
mov edi, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x64]
push ecx
push eax
call sym._memcpy
add esp, 0xc
mov eax, dword [esi + ebx + 4]
add eax, edi
mov dword [esi + ebx + 4], eax
mov ecx, dword [esi + ebx + 8]
mov byte [ecx + eax], 0
lea edi, [esp + 0x1f]
mov eax, dword [0x5052b0]
mov dword [esi + ebx + 0xc], 0
mov dword [esi + ebx + 0x10], 0
mov dword [esi + ebx + 0x14], eax
mov dword [esi + ebx + 0x18], 0
mov dword [esi + ebx + 0x1c], 0
mov dword [esi + ebx + 0x20], eax
mov dword [esi + ebx + 0x24], 0
mov dword [esi + ebx + 0x2c], eax
movzx eax, byte [esp]
mov byte [esi + ebx + 0x30], al
mov eax, dword [0x5052b0]
mov dword [esi + ebx + 0x2c], eax
mov dword [esi + ebx + 0x28], 0
push edi
call sym._strlen
add esp, 4
test eax, eax
je 0x47d2d0
mov dword [esp], eax
inc eax
mov ecx, 0x20
nop dword [eax]
mov edi, ecx
add ecx, ecx
cmp eax, edi
ja 0x47d290
push edi
call sym._malloc
add esp, 4
mov byte [eax], 0
mov dword [esi + ebx + 0x2c], eax
mov dword [esi + ebx + 0x24], edi
push dword [esp]
lea edi, [esp + 0x23]
push edi
push eax
call sym._memcpy
add esp, 0xc
mov eax, dword [esi + ebx + 0x28]
add eax, dword [esp]
mov dword [esi + ebx + 0x28], eax
mov ecx, dword [esi + ebx + 0x2c]
mov byte [ecx + eax], 0
xor edx, edx
mov eax, dword [esp + 8]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x47d340
jmp 0x47d070
mov ebp, edx
xor edx, edx
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 4]
sete dl
mov dword [esp], edx
add eax, 8
push 0x41
push edi
push eax
push 0x17
mov eax, dword [sym.imp.WS2_32.dll_inet_ntop]
call eax
mov eax, ebp
and al, 1
movzx eax, al
mov ecx, dword [esp + 0xf8]
lea edx, [esp + 0x60]
push dword [esp]
push eax
push 0x17
push edi
call sym._addNewIp
add esp, 0x10
xor edx, edx
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x47d070
mov eax, dword [ebx + 0xc]
movzx ecx, word [eax]
cmp ecx, 0x17
je 0x47d2f0
cmp ecx, 2
jne 0x47d335
mov esi, edx
add eax, 4
push 0x16
push edi
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_ntop]
mov ebp, edi
movzx edi, byte [ebx + 0x2c]
test edi, edi
je 0x47d38a
push ebp
call sym._strlen
add esp, 4
add eax, esp
add eax, 0x1f
push edi
push 0x4fa54f
push 4
push eax
call sym._snprintf_3
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 4]
sete al
mov ecx, esi
and cl, 1
movzx edi, cl
mov ecx, dword [esp + 0xf8]
lea edx, [esp + 0x60]
push eax
push edi
push 2
push ebp
call sym._addNewIp
add esp, 0x10
xor edx, edx
mov edi, ebp
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x47d340
jmp 0x47d070
xor edi, edi
test eax, eax
je 0x47d3de
push eax
call sym._free
add esp, 4
jmp 0x47d3de
xor edi, edi
mov eax, edi
add esp, 0xe0
pop esi
pop edi
pop ebx
pop ebp
ret