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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x55ca98]
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 0x4016b5
cmp byte [edi], 0
je 0x4016b5
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
jmp 0x4016b8
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 0x4018a3
test ecx, ecx
je 0x40189d
test bl, bl
jne 0x40189d
cmp dword [ecx + 0xd8], 0xe
je 0x4017ed
cmp dword [ecx + 0x44], 1
jne 0x4017ed
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 0x4017fb
test edi, edi
je 0x40176e
cmp byte [edi], bl
je 0x40176e
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 0x401889
mov ecx, dword [ebp - 0x108]
mov edi, dword [ecx + 0x10]
test edi, edi
je 0x4017e7
nop dword [eax + eax]
test bl, bl
jne 0x4017e7
cmp dword [ecx + 0xa4], 0
je 0x4017e0
mov eax, dword [edi + 0xc]
cmp word [eax], 2
jne 0x4017e0
mov ebx, dword [ebp - 0x110]
mov esi, dword [eax + 4]
test ebx, ebx
je 0x4017bc
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 0x4017d8
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 0x401780
mov edi, dword [ebp - 0x10c]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x108], ecx
jmp 0x401705
mov ecx, dword [ebp - 0x108]
mov edi, dword [ecx + 0x10]
test edi, edi
je 0x4017e7
test bl, bl
jne 0x4017e7
cmp dword [ecx + 0xa4], 0
je 0x40186e
mov eax, dword [edi + 0xc]
cmp word [eax], 2
jne 0x40186e
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x40186e
mov ebx, dword [ebp - 0x110]
mov esi, eax
test ebx, ebx
je 0x40184a
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 0x401866
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 0x401808
mov ecx, dword [ecx + 8]
mov edi, dword [ebp - 0x10c]
mov dword [ebp - 0x108], ecx
jmp 0x401705
mov ecx, dword [ebp - 0x108]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x108], ecx
jmp 0x401705
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.005091c5
mov esp, ebp
pop ebp
ret