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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
push ebx
push ebp
push esi
mov dword [esp + 0x4c], edx
xor edx, edx
push edi
push ecx
mov dword [esp + 0x4c], ecx
push 0
lea ecx, [edx + 6]
call fcn.00411720
add esp, 8
mov dword [esp + 0x54], eax
test eax, eax
je 0x411804
mov ebx, 0xe
jmp 0x41182d
mov edx, 1
push ecx
push 1
lea ecx, [edx + 4]
call fcn.00411720
add esp, 8
test eax, eax
jne 0x411828
mov eax, 0xfffff02f
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 0x1e
mov ebp, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
lea eax, [esp + 0x18]
push eax
xor esi, esi
mov dword [esp + 0x1c], 0
push esi
push esi
push ebx
push esi
mov dword [esp + 0x28], esi
call ebp
mov edi, eax
test edi, edi
je 0x4118bf
call fcn.0044c2cd
push dword [esp + 0x14]
mov esi, dword [eax]
call dword [0x4a2e28]
add esp, 4
call fcn.0044c2cd
mov dword [eax], esi
cmp edi, 0xe8
ja 0x41199d
je 0x411974
cmp edi, 0x57
je 0x411967
cmp edi, 0x6f
jne 0x4119a5
push dword [esp + 0x18]
call dword [0x4a2e1c]
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
je 0x41195a
lea eax, [esp + 0x18]
push eax
push esi
push 0
push ebx
push 0
call ebp
mov edi, eax
test edi, edi
jne 0x411852
mov ebp, dword [esp + 0x14]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x30], edi
test ebp, ebp
je 0x41192a
cmp dword [esi + 0x44], 1
jne 0x411923
cmp dword [esi + 0x10], 0
je 0x411923
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [esi + 0x28]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x4119c1
add edi, eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x30], edi
test eax, eax
je 0x411923
nop
mov eax, dword [eax + 8]
inc ebx
add edi, 0x48
test eax, eax
jne 0x411910
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x30], edi
mov esi, dword [esi + 8]
test esi, esi
jne 0x4118d3
push edi
call dword [0x4a2e1c]
mov edx, eax
add esp, 4
mov dword [esp + 0x3c], edx
test edx, edx
jne 0x4119ee
call fcn.0044c2cd
push ebp
mov esi, dword [eax]
call dword [0x4a2e28]
add esp, 4
call fcn.0044c2cd
mov dword [eax], esi
mov eax, 0xfffff027
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xfffff024
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call dword [0x4a2e1c]
add esp, 4
test eax, eax
je 0x41195a
mov ecx, dword [esp + 0x50]
mov dword [ecx], 0
mov ecx, dword [esp + 0x48]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x4cc
je 0x4119b4
mov ecx, edi
call fcn.0041c770
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xfffff008
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0044c2cd
push ebp
mov esi, dword [eax]
call dword [0x4a2e28]
add esp, 4
call fcn.0044c2cd
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0041c770
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx*8]
mov ebp, edx
lea ecx, [edx + eax*8]
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
test eax, eax
je 0x411c6c
mov esi, accept
cmp dword [ebx + 0x44], 1
jne 0x411c5d
cmp dword [ebx + 0x10], 0
je 0x411c5d
mov eax, edi
sub eax, ecx
push 0
add eax, edx
push 0
cmp eax, 0x7fffffff
cmova eax, esi
push eax
push ecx
push 0xffffffffffffffff
push dword [ebx + 0x28]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x5c], eax
test eax, eax
jle 0x411ca5
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x44], eax
test eax, eax
je 0x411c4d
nop word [eax + eax]
cmp dword [esp + 0x54], 0
mov esi, dword [eax + 0xc]
mov dword [esp + 0x20], esi
je 0x411a87
movzx edi, byte [eax + 0x2c]
jmp 0x411b7c
mov ebx, dword [ebx + 0x8c]
xor edi, edi
mov dword [esp + 0x1c], edi
test ebx, ebx
je 0x411b67
movzx eax, word [esi]
movzx edx, ax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
nop dword [eax]
mov ecx, dword [ebx + 0xc]
cmp word [ecx], ax
jne 0x411b54
mov ebp, dword [ebx + 0x14]
cmp ebp, edi
jbe 0x411b54
xor eax, eax
cmp dx, 0x17
mov edx, ebp
sete al
sar edx, 3
lea eax, [eax*4 + 4]
add ecx, eax
mov dword [esp + 0x40], ecx
lea ecx, [eax + esi]
xor esi, esi
mov dword [esp + 0x58], ecx
test edx, edx
jle 0x411b08
mov edi, dword [esp + 0x40]
mov eax, ecx
sub edi, ecx
mov cl, byte [eax]
cmp cl, byte [edi + eax]
jne 0x411b44
inc esi
inc eax
cmp esi, edx
jl 0x411af7
mov edi, dword [esp + 0x1c]
mov eax, ebp
and eax, reloc.WS2_32.dll_getsockopt
jns 0x411b16
dec eax
or eax, 0xfffffff8
inc eax
je 0x411b3c
mov ecx, 8
mov edx, 0xff
sub ecx, eax
mov eax, dword [esp + 0x58]
shl edx, cl
movzx eax, byte [eax + esi]
and edx, eax
mov eax, dword [esp + 0x40]
movzx eax, byte [eax + esi]
cmp eax, edx
jne 0x411b48
mov edi, ebp
mov dword [esp + 0x1c], edi
jmp 0x411b48
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x411ab0
mov ebp, dword [esp + 0x2c]
test edi, edi
jne 0x411b78
cmp word [esi], 0x17
mov edi, 0x20
mov eax, 0x80
cmove edi, eax
mov ebx, dword [esp + 0x38]
push 0x48
push 0
push ebp
call fcn.00443980
mov eax, dword [esp + 0x40]
add esp, 0xc
mov dword [ebp], eax
cmp dword [ebx + 0x34], 6
jne 0x411ba4
mov eax, dword [ebx + 0x2c]
mov dword [ebp + 4], eax
mov ax, word [ebx + 0x30]
mov word [ebp + 8], ax
xor eax, eax
cmp dword [ebx + 0x40], 0x18
sete al
mov dword [ebp + 0xc], eax
movups xmm0, xmmword [esi]
cmp word [esi], 0x17
movups xmmword [ebp + 0x10], xmm0
jne 0x411c03
movq xmm0, qword [esi + 0x10]
movq qword [ebp + 0x20], xmm0
mov eax, dword [esi + 0x18]
mov esi, edi
mov dword [ebp + 0x28], eax
mov eax, 0x17
shr esi, 3
push esi
mov word [ebp + 0x2c], ax
lea eax, [ebp + 0x34]
push 0xff
push eax
call fcn.00443980
add esp, 0xc
and edi, 7
je 0x411c2a
mov ecx, 8
or al, 0xff
sub ecx, edi
shl al, cl
mov byte [esi + ebp + 0x34], al
jmp 0x411c2a
mov eax, 2
mov word [ebp + 0x2c], ax
test edi, edi
je 0x411c25
mov ecx, 0x20
or eax, 0xffffffff
sub ecx, edi
shl eax, cl
push eax
call dword [sym.imp.WS2_32.dll_htonl]
jmp 0x411c27
xor eax, eax
mov dword [ebp + 0x30], eax
mov eax, dword [esp + 0x44]
add ebp, 0x48
mov dword [esp + 0x2c], ebp
mov eax, dword [eax + 8]
mov dword [esp + 0x44], eax
test eax, eax
jne 0x411a70
mov edi, dword [esp + 0x30]
mov esi, accept
mov ecx, dword [esp + 0x34]
add ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
mov ebx, dword [ebx + 8]
mov dword [esp + 0x38], ebx
test ebx, ebx
jne 0x411a15
call fcn.0044c2cd
push dword [esp + 0x14]
mov esi, dword [eax]
call dword [0x4a2e28]
add esp, 4
call fcn.0044c2cd
mov ecx, dword [esp + 0x48]
pop edi
mov dword [eax], esi
mov eax, dword [esp + 0x38]
mov dword [ecx], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0044c2cd
push dword [esp + 0x14]
mov esi, dword [eax]
call dword [0x4a2e28]
add esp, 4
call fcn.0044c2cd
mov dword [eax], esi
call fcn.0044c2cd
mov esi, dword [eax]
mov eax, dword [esp + 0x3c]
push eax
jmp 0x4119c9