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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f1823
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x1012d034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x104], ecx
mov esi, dword [sym.imp.MSVCR120.dll_malloc]
push 0x178
call esi
mov ebx, eax
add esp, 4
mov dword [ebp - 0xf8], ebx
test ebx, ebx
je 0x100313e9
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
lea eax, [ebp - 0xf4]
push eax
push ebx
push 0
push 0x10
push 0
mov dword [ebp - 0xf4], 0x178
call edi
test eax, eax
je 0x100313f0
cmp eax, 0x6f
jne 0x100313f0
push ebx
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push dword [ebp - 0xf4]
call esi
mov ebx, eax
mov dword [ebp - 0xf8], eax
add esp, 4
test ebx, ebx
je 0x100313e9
lea eax, [ebp - 0xf4]
push eax
push ebx
push 0
push 0x10
push 0
call edi
test eax, eax
je 0x100313f0
mov eax, dword [sym.imp.MSVCR120.dll_free]
push ebx
call eax
add esp, 4
xor al, al
jmp 0x100318f0
mov esi, dword [sym.imp.WS2_32.dll_inet_ntop]
mov edi, ebx
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0xfc], edi
cmp dword [edi + 0x44], 1
jne 0x100318cd
xor eax, eax
mov dword [ebp - 0xdc], 7
mov dword [ebp - 0xe0], 0
mov word [ebp - 0xf0], ax
mov dword [ebp - 0xc4], 7
mov dword [ebp - 0xc8], eax
mov word [ebp - 0xd8], ax
mov dword [ebp - 0xac], 7
mov dword [ebp - 0xb0], eax
mov word [ebp - 0xc0], ax
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], eax
mov word [ebp - 0xa8], ax
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], eax
mov word [ebp - 0x90], ax
mov dword [ebp - 4], eax
mov edx, dword [edi + 0x28]
cmp word [edx], ax
jne 0x10031490
xor ecx, ecx
jmp 0x100314aa
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031495
sub ecx, esi
mov esi, dword [sym.imp.WS2_32.dll_inet_ntop]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xd8]
call fcn.10001e10
mov edi, dword [edi + 0x10]
test edi, edi
je 0x100316e0
mov eax, dword [edi + 0xc]
movzx ecx, word [eax]
cmp ecx, 2
jne 0x100315c5
push 0x16
lea ecx, [ebp - 0x58]
add eax, 4
push ecx
push eax
push 2
call esi
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x58], 0
jne 0x100314ff
xor ecx, ecx
jmp 0x1003150e
lea ecx, [ebp - 0x58]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031505
sub ecx, esi
push ecx
lea eax, [ebp - 0x58]
mov ecx, edx
push eax
call fcn.100080d0
lea ecx, [ebp - 0x11c]
call fcn.1003a1d0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0xc0]
cmp eax, esi
je 0x100316bb
cmp dword [ebp - 0xac], 8
jb 0x1003154c
push dword [ebp - 0xc0]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0xac], 7
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc0], ax
cmp dword [esi + 0x14], 8
jae 0x100315a0
mov eax, dword [esi + 0x10]
inc eax
je 0x100315ae
add eax, eax
push eax
lea eax, [ebp - 0xc0]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
mov eax, dword [esi + 0x10]
add esp, 0xc
mov dword [ebp - 0xb0], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xac], eax
jmp 0x100316a8
mov eax, dword [esi]
mov dword [ebp - 0xc0], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xb0], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xac], eax
jmp 0x100316a8
cmp ecx, 0x17
jne 0x100316cf
push 0x41
lea ecx, [ebp - 0x58]
add eax, 8
push ecx
push eax
push 0x17
call esi
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x58], 0
jne 0x100315fc
xor eax, eax
jmp 0x1003160b
lea eax, [ebp - 0x58]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10031602
sub eax, esi
push eax
lea eax, [ebp - 0x58]
mov ecx, edx
push eax
call fcn.100080d0
lea ecx, [ebp - 0x11c]
call fcn.1003a1d0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0xa8]
cmp eax, esi
je 0x100316bb
cmp dword [ebp - 0x94], 8
jb 0x10031649
push dword [ebp - 0xa8]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], 0
mov word [ebp - 0xa8], ax
cmp dword [esi + 0x14], 8
jae 0x10031688
mov eax, dword [esi + 0x10]
inc eax
je 0x10031696
add eax, eax
push eax
lea eax, [ebp - 0xa8]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x10031696
mov eax, dword [esi]
mov dword [ebp - 0xa8], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x98], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x94], eax
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x108], 8
jb 0x100316cf
push dword [ebp - 0x11c]
call ebx
add esp, 4
mov edi, dword [edi + 8]
mov esi, dword [sym.imp.WS2_32.dll_inet_ntop]
test edi, edi
jne 0x100314c2
push 0
push 0x100f97f6
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
call fcn.100080d0
mov edi, dword [ebp - 0xfc]
xor esi, esi
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x34]
test eax, eax
je 0x100317b7
dec eax
cmp esi, eax
jne 0x10031760
xor eax, eax
mov byte [ebp - 0x5c], 0
mov word [ebp - 0x5b], ax
movzx eax, byte [edi + esi + 0x2c]
push eax
lea eax, [ebp - 0x5c]
push str._.2X
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [ebp - 0x5c], 0
jne 0x1003174c
xor ecx, ecx
lea eax, [ebp - 0x5c]
jmp 0x100317a1
lea ecx, [ebp - 0x5c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031752
sub ecx, edx
lea eax, [ebp - 0x5c]
jmp 0x100317a1
xor eax, eax
mov byte [ebp - 0x60], 0
mov word [ebp - 0x5f], ax
mov byte [ebp - 0x5d], al
movzx eax, byte [edi + esi + 0x2c]
push eax
lea eax, [ebp - 0x60]
push str._.2X_
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [ebp - 0x60], 0
jne 0x1003178f
xor ecx, ecx
jmp 0x1003179e
lea ecx, [ebp - 0x60]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031795
sub ecx, edx
lea eax, [ebp - 0x60]
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.10007a50
mov eax, dword [edi + 0x34]
inc esi
cmp esi, eax
jb 0x10031718
sub esp, 0x18
lea eax, [ebp - 0x78]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10007d40
lea ecx, [ebp - 0x11c]
call fcn.1003a1d0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x90]
cmp eax, esi
je 0x1003186f
cmp dword [ebp - 0x7c], 8
jb 0x10031809
push dword [ebp - 0x90]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
cmp dword [esi + 0x14], 8
jae 0x10031842
mov eax, dword [esi + 0x10]
inc eax
je 0x10031850
add eax, eax
push eax
lea eax, [ebp - 0x90]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x10031850
mov eax, dword [esi]
mov dword [ebp - 0x90], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x7c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x108], 8
jb 0x10031883
push dword [ebp - 0x11c]
call ebx
add esp, 4
mov ecx, dword [ebp - 0x104]
lea eax, [ebp - 0xf0]
push eax
call fcn.10031910
cmp dword [ebp - 0x64], 0x10
jb 0x100318a3
push dword [ebp - 0x78]
call ebx
add esp, 4
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
mov dword [ebp - 4], 0xffffffff
call fcn.10026c50
mov esi, dword [sym.imp.WS2_32.dll_inet_ntop]
mov edi, dword [edi + 8]
mov dword [ebp - 0xfc], edi
test edi, edi
jne 0x10031404
push dword [ebp - 0xf8]
mov eax, dword [sym.imp.MSVCR120.dll_free]
call eax
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ebd7b
mov esp, ebp
pop ebp
ret