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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push str.Ws2_32.dll
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x290], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x2a0], esi
test esi, esi
je 0x4c7e47
push ebx
push edi
push str.inet_ntop
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
lea edx, [ebp - 0x298]
push edx
push 0
push 0
push 0
push 0
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x298], 0
call ebx
mov edi, dword [ebp - 0x298]
test edi, edi
jne 0x4c79c3
push esi
jmp 0x4c7e3f
push edi
call fcn.004e4bbb
push edi
mov esi, eax
push 0
push esi
mov dword [ebp - 0x2a4], esi
call fcn.004e8ba0
add esp, 0x10
lea eax, [ebp - 0x298]
push eax
push esi
push 0
push 2
push 0
call ebx
test eax, eax
je 0x4c7a15
mov ecx, dword [ebp - 0x298]
push ecx
push 0
push esi
call fcn.004e8ba0
push esi
call fcn.004e4b81
mov edx, dword [ebp - 0x2a0]
add esp, 0x10
push edx
jmp 0x4c7e3f
mov edi, 0x3f
push edi
lea eax, [ebp - 0x43]
push 0
push eax
mov byte [ebp - 0x44], 0
call fcn.004e8ba0
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x102]
push edx
mov word [ebp - 0x104], cx
call fcn.004e8ba0
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0x182]
push ecx
mov word [ebp - 0x184], ax
call fcn.004e8ba0
add esp, 0x24
call fcn.004bc150
mov ebx, esi
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x288], ebx
test esi, esi
je 0x4c7e20
jmp 0x4c7a86
mov ebx, dword [ebp - 0x288]
cmp dword [ebx + 0x44], 1
jne 0x4c7e0a
cmp dword [ebx + 0x168], edi
jbe 0x4c7aa0
test eax, eax
jne 0x4c7e0a
cmp dword [ebx + 0x34], edi
ja 0x4c7e0a
test eax, eax
je 0x4c7b3b
push 0x80
lea edx, [ebp - 0x104]
push 0
push edx
call fcn.004e8ba0
xor edi, edi
add esp, 0xc
cmp dword [ebx + 0x168], edi
jbe 0x4c7b17
lea eax, [ebp - 0x104]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c7ae0
movzx ecx, byte [ebx + edi + 0xe4]
sub eax, edx
push ecx
sar eax, 1
lea edx, [ebp + eax*2 - 0x104]
push str._02X_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
inc edi
add esp, 0xc
cmp edi, dword [ebx + 0x168]
jb 0x4c7ad1
lea eax, [ebp - 0x104]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c7b20
sub eax, edx
sar eax, 1
je 0x4c7b3b
xor ecx, ecx
mov word [ebp + eax*2 - 0x106], cx
push 0x80
lea edx, [ebp - 0x184]
push 0
push edx
call fcn.004e8ba0
xor edi, edi
add esp, 0xc
cmp dword [ebx + 0x34], edi
jbe 0x4c7ba1
jmp 0x4c7b60
lea eax, [ebp - 0x184]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c7b70
movzx ecx, byte [ebx + edi + 0x2c]
sub eax, edx
push ecx
sar eax, 1
lea edx, [ebp + eax*2 - 0x184]
push str._02X:
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
inc edi
add esp, 0xc
cmp edi, dword [ebx + 0x34]
jb 0x4c7b60
lea eax, [ebp - 0x184]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c7bb0
sub eax, edx
sar eax, 1
je 0x4c7bcb
xor ecx, ecx
mov word [ebp + eax*2 - 0x186], cx
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x28c], esi
test esi, esi
je 0x4c7dee
jmp 0x4c7be6
mov esi, dword [ebp - 0x28c]
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x29c], 0xdf
test edi, edi
je 0x4c7ddd
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004e8ba0
add esp, 0xc
cmp word [edi], 0x17
jne 0x4c7c35
mov eax, dword [ebp - 0x2ac]
test eax, eax
je 0x4c7c4e
push 0x40
lea ecx, [ebp - 0x44]
push ecx
add edi, 8
push edi
push 0x17
mov dword [ebp - 0x29c], 0xfb
call eax
jmp 0x4c7c4e
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [ebp - 0x44]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4c7c44
lea eax, [ebp - 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c7c54
sub eax, edx
je 0x4c7ddd
lea eax, [ebp - 0x44]
push str.127.0.0.1
push eax
call fcn.004f7095
add esp, 8
test eax, eax
je 0x4c7ddd
lea ecx, [ebp - 0x44]
push 0x54bed0
push ecx
call fcn.004f7095
add esp, 8
test eax, eax
je 0x4c7ddd
lea edx, [ebp - 0x44]
push 0x526c48
push edx
call fcn.004f7095
add esp, 8
test eax, eax
je 0x4c7ddd
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0x202]
push ecx
mov word [ebp - 0x204], ax
call fcn.004e8ba0
lea edx, [ebp - 0x204]
push edx
lea ebx, [ebp - 0x44]
call fcn.004b76c0
mov eax, dword [ebp - 0x29c]
mov esi, dword [ebp - 0x290]
mov ebx, dword [ebp - 0x294]
push eax
lea edi, [ebp - 0x204]
call fcn.004c2ef0
add esp, 0x14
cmp dword [ebp - 0x29c], 0xdf
jne 0x4c7dbe
push 0xd9
lea edi, [ebp - 0x184]
call fcn.004c2ef0
mov ecx, dword [ebp - 0x288]
mov edi, dword [ecx + 0x24]
push 0xdc
call fcn.004c2ef0
push 0x3f
lea edx, [ebp - 0x83]
push 0
push edx
mov byte [ebp - 0x84], 0
call fcn.004e8ba0
mov eax, dword [ebp - 0x288]
add esp, 0x14
test byte [eax + 0x38], 4
je 0x4c7d61
lea ecx, [ebp - 0x44]
push ecx
push str._s__DHCP_
lea edx, [ebp - 0x84]
push edx
jmp 0x4c7d71
lea eax, [ebp - 0x44]
push eax
push str._s__Fixed_
lea ecx, [ebp - 0x84]
push ecx
call fcn.004e5b0c
add esp, 0xc
xor edx, edx
push 0x7e
push edx
lea eax, [ebp - 0x282]
push eax
mov word [ebp - 0x284], dx
call fcn.004e8ba0
lea ecx, [ebp - 0x284]
push ecx
lea ebx, [ebp - 0x84]
call fcn.004b76c0
mov ebx, dword [ebp - 0x294]
push 0xf8
lea edi, [ebp - 0x284]
call fcn.004c2ef0
add esp, 0x14
jmp 0x4c7dd1
push 0xfa
lea edi, [ebp - 0x104]
call fcn.004c2ef0
add esp, 4
mov esi, dword [ebp - 0x28c]
mov ebx, dword [ebp - 0x288]
mov edx, dword [esi + 8]
mov dword [ebp - 0x28c], edx
test edx, edx
jne 0x4c7be0
mov eax, dword [ebx + 8]
mov esi, dword [ebp - 0x2a4]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x2a8]
mov edi, 0x3f
jmp 0x4c7e13
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x288], ecx
cmp dword [ebp - 0x288], 0
jne 0x4c7a80
mov edx, dword [ebp - 0x298]
push edx
push 0
push esi
call fcn.004e8ba0
push esi
call fcn.004e4b81
mov eax, dword [ebp - 0x2a0]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004e4746
mov esp, ebp
pop ebp
ret