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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], eax
test edi, edi
je 0x406575
cmp byte [edi], 0
je 0x406575
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
jmp 0x406578
or esi, 0xffffffff
push 0x5e00
xor bl, bl
mov dword [ebp - 0x11c], 0x5e00
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x11c]
push ecx
push eax
push 0
push 0x86
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edx, dword [ebp - 0x118]
mov ecx, edx
mov dword [ebp - 0x108], ecx
test eax, eax
jne 0x406763
test ecx, ecx
je 0x40675d
test bl, bl
jne 0x40675d
cmp dword [ecx + 0xd8], 0xe
je 0x4066ad
cmp dword [ecx + 0x44], 1
jne 0x4066ad
push 0x100
push dword [ecx + 0x28]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
add esp, 0xc
cmp esi, 0xffffffff
jne 0x4066bb
test edi, edi
je 0x40662e
cmp byte [edi], bl
je 0x40662e
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x406749
mov ecx, dword [ebp - 0x108]
mov edi, dword [ecx + 0x10]
test edi, edi
je 0x4066a7
nop dword [eax + eax]
test bl, bl
jne 0x4066a7
cmp dword [ecx + 0xa4], 0
je 0x4066a0
mov eax, dword [edi + 0xc]
cmp word [eax], 2
jne 0x4066a0
mov ebx, dword [ebp - 0x110]
mov esi, dword [eax + 4]
test ebx, ebx
je 0x40667c
movzx eax, byte [edi + 0x2c]
mov ecx, 0x20
sub ecx, eax
or eax, 0xffffffff
shl eax, cl
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x114]
test ebx, ebx
je 0x406698
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [ebx], eax
mov ecx, dword [ebp - 0x108]
mov bl, 1
mov edi, dword [edi + 8]
test edi, edi
jne 0x406640
mov edi, dword [ebp - 0x10c]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x108], ecx
jmp 0x4065c5
mov ecx, dword [ebp - 0x108]
mov edi, dword [ecx + 0x10]
test edi, edi
je 0x4066a7
test bl, bl
jne 0x4066a7
cmp dword [ecx + 0xa4], 0
je 0x40672e
mov eax, dword [edi + 0xc]
cmp word [eax], 2
jne 0x40672e
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x40672e
mov ebx, dword [ebp - 0x110]
mov esi, eax
test ebx, ebx
je 0x40670a
movzx eax, byte [edi + 0x2c]
mov ecx, 0x20
sub ecx, eax
or eax, 0xffffffff
shl eax, cl
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x114]
test ebx, ebx
je 0x406726
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [ebx], eax
mov ecx, dword [ebp - 0x108]
mov bl, 1
mov edi, dword [edi + 8]
test edi, edi
jne 0x4066c8
mov ecx, dword [ecx + 8]
mov edi, dword [ebp - 0x10c]
mov dword [ebp - 0x108], ecx
jmp 0x4065c5
mov ecx, dword [ebp - 0x108]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x108], ecx
jmp 0x4065c5
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0054f742
mov esp, ebp
pop ebp
ret