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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov esi, edx
mov dword [esp + 0xc], ecx
push 0xc
pop ecx
push 4
pop edx
call fcn.00488456
mov ebx, eax
xor eax, eax
mov ecx, esi
inc eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov byte [ebx + 8], 0
call fcn.0048ba63
mov eax, dword [eax]
lea ecx, [esp + 8]
lea edi, [esp + 0x50]
xorps xmm0, xmm0
movaps xmmword [edi + 0x70], xmm0
movaps xmmword [edi + 0x60], xmm0
movaps xmmword [edi + 0x50], xmm0
movaps xmmword [edi + 0x40], xmm0
movaps xmmword [edi + 0x30], xmm0
movaps xmmword [edi + 0x20], xmm0
movaps xmmword [edi + 0x10], xmm0
movaps xmmword [edi], xmm0
mov dword [ecx], 0x80
push ecx
push edi
push eax
call dword [sym.imp.ws2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x42f30b
movzx ecx, word [esp + 0x50]
mov eax, dword [esp + 8]
cmp ecx, 2
je 0x42f327
cmp ecx, 0x17
jne 0x42f356
cmp eax, 0x1b
jbe 0x42f538
movzx eax, word [esp + 0x52]
movups xmm0, xmmword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x68]
mov word [esp + 0x10], 1
rol ax, 8
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov word [esp + 0x2c], ax
xor eax, eax
inc eax
jmp 0x42f36e
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esp + 0x14], cl
and word [esp + 0x15], 0
mov byte [esp + 0x17], cl
mov dword [esp + 0x18], eax
jmp 0x42f363
cmp eax, 0xf
jbe 0x42f547
movzx ecx, word [esp + 0x52]
mov eax, dword [esp + 0x54]
and word [esp + 0x10], 0
mov dword [esp + 4], 0
rol cx, 8
mov dword [esp + 0x12], eax
mov word [esp + 0x16], cx
jmp 0x42f372
mov byte [esp + 0x14], 2
mov dword [esp + 0x18], 0x4c7efc
mov word [esp + 0x10], 2
mov ax, 2
mov dword [esp + 4], eax
mov ecx, esi
call fcn.0048ba63
mov eax, dword [eax]
xorps xmm0, xmm0
lea ecx, [esp + 8]
mov dword [esp + 8], 0x80
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
push ecx
push edi
push eax
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x42f420
movzx ecx, word [esp + 0x50]
mov eax, dword [esp + 8]
cmp ecx, 2
je 0x42f43f
cmp ecx, 0x17
jne 0x42f4fa
cmp eax, 0x1b
jbe 0x42f538
movzx eax, word [esp + 0x52]
movups xmm0, xmmword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x68]
mov word [esp + 0x30], 1
rol ax, 8
movups xmmword [esp + 0x34], xmm0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov word [esp + 0x4c], ax
jmp 0x42f464
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esp + 0x34], cl
and word [esp + 0x35], 0
mov byte [esp + 0x37], cl
mov dword [esp + 0x38], eax
jmp 0x42f507
cmp eax, 0xf
jbe 0x42f547
movzx ecx, word [esp + 0x52]
mov eax, dword [esp + 0x54]
and word [esp + 0x30], 0
rol cx, 8
mov dword [esp + 0x32], eax
mov word [esp + 0x36], cx
cmp word [esp + 4], 2
je 0x42f50e
movsd xmm1, qword [esp + 0x20]
lea esi, [esp + 0x50]
lea eax, [esp + 0x30]
movsd xmm0, qword [esp + 0x28]
movsd xmm2, qword [esp + 0x10]
movsd xmm3, qword [eax]
movsd qword [esi + 0x10], xmm1
movsd xmm1, qword [esp + 0x18]
movsd qword [esi], xmm2
movsd qword [esi + 0x18], xmm0
movsd xmm2, qword [eax + 0x10]
movsd qword [esi + 8], xmm1
movsd xmm1, qword [eax + 8]
movsd qword [esi + 0x20], xmm3
movsd qword [esi + 0x30], xmm2
movsd qword [esi + 0x28], xmm1
movsd xmm1, qword [eax + 0x18]
movsd qword [esi + 0x38], xmm1
push 0x40
pop ecx
push 4
pop edx
call fcn.00488456
mov dword [esp + 4], eax
push 0x10
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
call fcn.0042d677
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov dword [eax + 4], 0x4affbc
jmp 0x42f515
mov byte [esp + 0x34], 2
mov dword [esp + 0x38], 0x4c7efc
mov word [esp + 0x30], 2
mov eax, dword [esp + 0xc]
and dword [eax], 0
lea ecx, [esp + 0x10]
mov dword [eax + 8], ebx
mov word [eax + 0xc], 1
call fcn.0042f55c
lea ecx, [esp + 0x30]
call fcn.0042f55c
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x43
pop edx
mov ecx, 0x4c7e98
push 0x4c7edc
jmp 0x42f554
push 0x42
pop edx
mov ecx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
push 0x4c7e88
call fcn.0049a440
pop eax
ud2