Function at 0x10122410
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x1c0
mov eax, dword [0x101fd700]
xor eax, esp
mov dword [esp + 0x1bc], eax
push ebx
mov ebx, dword [esp + 0x1c8]
lea eax, [esp + 0x91]
push ebp
mov ebp, dword [esp + 0x1d0]
push 0x2d
push 0
push eax
mov byte [esp + 0xa0], 0
call fcn.10178d50
add esp, 0xc
mov dword [esp + 0xc], 0xffffffff
cmp dword [ebp + 0x58], 3
jne 0x101225e9
cmp byte [ebp + 0x267], 0
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov edi, dword [esp + 0x1dc]
jne 0x10122542
cmp byte [ebp + 0x279], 0
jne 0x10122542
push 0x80
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.10178d50
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x101224e2
call esi
mov esi, eax
lea eax, [esp + 0xcc]
push 0x100
push eax
push esi
call fcn.10128e80
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.10120da0
jmp 0x10122539
lea eax, [esp + 0x18]
push eax
lea eax, [ebp + 0xd2]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
call fcn.10121630
add esp, 0x10
test al, al
jne 0x10122542
call fcn.1017cc59
mov esi, dword [eax]
call fcn.1017cc59
mov edi, eax
lea eax, [esp + 0xcc]
push 0x100
push eax
push esi
call fcn.10128e80
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10120da0
mov edi, dword [esp + 0x1f8]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 0x1c
push 0x80
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.10178d50
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10122593
call esi
mov esi, eax
lea eax, [esp + 0xcc]
push 0x100
push eax
push esi
call fcn.10128e80
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x101225de
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xa0]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
call fcn.10121630
add esp, 0x10
test al, al
jne 0x101225e7
call fcn.1017cc59
mov esi, dword [eax]
call fcn.1017cc59
mov edi, eax
lea eax, [esp + 0xcc]
push 0x100
push eax
push esi
call fcn.10128e80
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10120da0
add esp, 0x1c
pop edi
pop esi
cmp byte [esp + 0x94], 0
movups xmm0, xmmword [ebp + 0xd2]
movups xmmword [ebx + 0xd80], xmm0
movups xmm0, xmmword [ebp + 0xe2]
movups xmmword [ebx + 0xd90], xmm0
movq xmm0, qword [ebp + 0xf2]
movq qword [ebx + 0xda0], xmm0
mov eax, dword [ebp + 0xfa]
mov dword [ebx + 0xda8], eax
mov ax, word [ebp + 0xfe]
mov word [ebx + 0xdac], ax
je 0x10122686
movups xmm0, xmmword [esp + 0x94]
mov eax, dword [esp + 0xbc]
movups xmmword [ebx + 0xdb8], xmm0
movups xmm0, xmmword [esp + 0xa4]
movups xmmword [ebx + 0xdc8], xmm0
movq xmm0, qword [esp + 0xb4]
movq qword [ebx + 0xdd8], xmm0
mov dword [ebx + 0xde0], eax
mov ax, word [esp + 0xc0]
mov word [ebx + 0xde4], ax
jmp 0x1012268d
mov byte [ebx + 0xdb8], 0
mov eax, dword [ebp + 0x2a8]
mov ecx, dword [esp + 0x1c4]
mov eax, dword [eax]
mov dword [ebx + 0xdec], eax
mov eax, dword [ebp + 0x2a8]
mov eax, dword [eax + 0x44]
mov dword [ebx + 0xdf0], eax
mov eax, dword [ebp + 0xc4]
mov dword [ebx + 0xdb0], eax
mov eax, dword [ebp + 0xc8]
mov dword [ebx + 0xdb4], eax
mov eax, dword [esp + 0xc]
pop ebp
mov dword [ebx + 0xde8], eax
pop ebx
xor ecx, esp
call fcn.10176e3f
add esp, 0x1c0
ret