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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x44b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x41524a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor eax, eax
push esi
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
xor esi, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
nop word [eax + eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0
push 0
push 0
call edi
cmp eax, 0x6f
jne 0x4150cf
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4150a9
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4150c9
inc esi
cmp esi, 5
jb 0x415080
jmp 0x415222
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov eax, dword [ebp - 0x24]
jne 0x415222
mov esi, eax
mov dword [ebp - 0x2c], esi
test eax, eax
je 0x415236
mov edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x40]
cmp eax, 6
je 0x415105
cmp eax, 0x47
jne 0x41520f
cmp dword [esi + 0x34], 0
jbe 0x41520f
push 0x4460b8
push dword [esi + 0x24]
call fcn.004179d9
add esp, 8
test eax, eax
jne 0x41520f
mov word [ebp - 0x1c], ax
xorps xmm0, xmm0
mov byte [ebp - 0x1a], al
mov word [ebp - 8], ax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x34], eax
movups xmmword [ebp - 0x18], xmm0
cmp eax, 0x12
jbe 0x41514d
mov dword [ebp - 0x34], 0x12
jmp 0x415151
test eax, eax
je 0x4151a2
xor ebx, ebx
movzx eax, byte [esi + ebx + 0x2c]
push eax
lea eax, [ebp - 0x1c]
push str._02X
push eax
call fcn.00415000
lea edx, [ebp - 0x1c]
add esp, 0xc
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x415170
lea edi, [ebp - 0x18]
sub edx, esi
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415180
mov ecx, edx
inc ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x2c]
cmp ebx, dword [ebp - 0x34]
jb 0x415153
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x30]
xor esi, esi
test ebx, ebx
je 0x4151ec
nop dword [eax + eax]
lea eax, [ebp - 0x18]
mov ecx, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4151d5
test dl, dl
je 0x4151d1
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4151d5
add ecx, 2
add eax, 2
test dl, dl
jne 0x4151b5
xor eax, eax
jmp 0x4151da
sbb eax, eax
or eax, 1
test eax, eax
je 0x4151e8
inc esi
add edi, 0x12
cmp esi, ebx
jb 0x4151b0
jmp 0x4151ec
cmp esi, ebx
jb 0x415209
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x18]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4151f2
inc ebx
add edx, 0x12
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], edx
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi + 8]
mov esi, eax
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4150f4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x415236
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041525a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0041525a
mov esp, ebp
pop ebp
ret