Function at 0x4ae2ac
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
lea rdx, str.rescaning
mov r12, rcx
mov rcx, qword [0x0053cb90]
call fcn.004d0ff9
mov rcx, rax
call fcn.004d13bf
mov ecx, 2
xor r8d, r8d
mov dword [r12 + 0xac], 0xffffffff
mov r15, qword [sym.imp.WS2_32.dll_socket]
mov edx, 2
call r15
mov qword [r12 + 0x78], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x4ae31f
lea rcx, str.socket
call fcn.004ad780
jmp 0x4ae7d9
lea r8, [rsp + 0x74]
mov edx, 0x8004667e
mov dword [rsp + 0x74], 1
mov rbp, qword [sym.imp.WS2_32.dll_ioctlsocket]
call rbp
mov ecx, 0x162e
mov rdi, qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x90], 2
call rdi
mov rcx, qword [r12 + 0x78]
lea rdx, [rsp + 0x90]
mov dword [rsp + 0x94], 0
mov word [rsp + 0x92], ax
mov rax, qword [sym.imp.WS2_32.dll_bind]
mov r8d, 0x10
mov qword [rsp + 0x38], rax
call rax
inc eax
jne 0x4ae3ec
lea rcx, str.bind
call fcn.004ad780
mov rcx, qword [r12 + 0x78]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rax, [fcn.004ae2ac]
lea rdx, [rsp + 0x60]
mov rcx, r12
mov qword [r12 + 0x78], 0xffffffffffffffff
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
call fcn.004d6830
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x1f4
mov rdx, rax
call sym.winbox.exe_addTimer_unsigned_int__EventListener__void__bool_
mov dword [r12 + 0xac], eax
jmp 0x4ae7d9
mov rcx, qword [r12 + 0x78]
lea r13, [rsp + 0x80]
mov edx, 0xffff
lea r14, [rsp + 0xb4]
mov r9, r14
mov r8d, 0x20
mov rsi, qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0xb4], 1
mov dword [rsp + 0x20], 4
call rsi
mov rcx, r13
call fcn.004cf720
mov rcx, r13
call fcn.004ade60
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x50], rsi
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov edx, 2
cmp rbx, qword [rsp + 0x48]
je 0x4ae60f
mov ecx, 2
call r15
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x4ae48a
lea rcx, str.socket
call fcn.004ad780
jmp 0x4ae606
lea r8, [rsp + 0x78]
mov edx, 0x8004667e
mov rcx, rax
mov dword [rsp + 0x78], 1
call rbp
lea r9, [rsp + 0x7c]
mov r8d, 0x20
mov rcx, r13
mov edx, 0xffff
mov dword [rsp + 0x7c], 1
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x20], 4
call rax
mov ecx, 0x162e
mov word [rsp + 0xb4], 2
call rdi
mov rcx, qword [0x0053cb90]
lea rdx, str.connecting_to
mov word [rsp + 0xb6], ax
mov eax, dword [rbx]
mov dword [rsp + 0xb8], eax
call fcn.004d0ff9
lea r8, [rsp + 0xa0]
mov rdx, rbx
mov rcx, r8
mov rsi, rax
mov qword [rsp + 0x58], r8
call fcn.004d24c6
mov rax, qword [rsp + 0xa0]
mov ecx, 0xffffffff
shl rcx, 0x20
and rcx, qword [rsp + 0x40]
lea rdx, [rax + 4]
mov eax, dword [rax]
mov qword [rsp + 0x60], rdx
lea rdx, [rsp + 0x60]
or rcx, rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x68], rcx
mov rcx, rsi
call fcn.004d1018
mov r8, qword [rsp + 0x58]
mov rsi, rax
mov rcx, r8
call fcn.004cea4a
mov rcx, rsi
call fcn.004d13bf
mov r8d, 0x10
mov rdx, r14
mov rcx, r13
call qword [sym.imp.WS2_32.dll_connect]
inc eax
jne 0x4ae59b
lea rcx, str.connect
call fcn.004ad780
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4ae606
mov rcx, qword [r12 + 0x88]
mov rsi, qword [r12 + 0x90]
sub rsi, rcx
call fcn.004d20e2
sar rsi, 3
shr eax, 3
cmp esi, eax
jne 0x4ae5f2
mov rdx, qword [r12 + 0x90]
sub rdx, qword [r12 + 0x88]
mov eax, 1
lea rcx, [r12 + 0x88]
sar rdx, 3
mov r8d, 8
add edx, edx
cmove edx, eax
shl edx, 3
call fcn.004cf756
mov rax, qword [r12 + 0x90]
mov qword [rax], r13
add qword [r12 + 0x90], 8
add rbx, 4
jmp 0x4ae455
mov ecx, 0x17
call r15
mov qword [r12 + 0x80], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x4ae710
lea r8, [rsp + 0x7c]
mov edx, 0x8004667e
mov dword [rsp + 0x7c], 1
call rbp
mov ecx, 0x162e
mov word [rsp + 0xb4], 0x17
call rdi
mov rcx, qword [r12 + 0x80]
mov r8d, 0x1c
mov rdx, r14
mov word [rsp + 0xb6], ax
mov rax, qword [rsp + 0x38]
mov dword [rsp + 0xcc], 0
mov qword [rsp + 0xbc], 0
mov qword [rsp + 0xc4], 0
call rax
lea rcx, str.bind6
inc eax
je 0x4ae6f1
lea r9, [rsp + 0xa0]
xor eax, eax
mov ecx, 5
mov r8d, 0xc
mov rdi, r9
mov edx, 0x29
rep stosd dword [rdi], eax
mov rcx, qword [r12 + 0x80]
mov word [rsp + 0xa0], 0x2ff
mov byte [rsp + 0xaf], 1
mov dword [rsp + 0x20], 0x14
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4ae710
lea rcx, str.IPV6_ADD_MEMBERSHIP
call fcn.004ad780
mov rcx, qword [r12 + 0x80]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r12 + 0x80], 0xffffffffffffffff
mov rcx, qword [r12 + 0x98]
call method.IWindow.getHandle__
mov rcx, qword [r12 + 0x78]
mov rbx, qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov r9d, 1
mov rdx, rax
mov r8d, 0x8001
call rbx
cmp qword [r12 + 0x80], 0xffffffffffffffff
je 0x4ae76b
mov rcx, qword [r12 + 0xa0]
call method.IWindow.getHandle__
mov rcx, qword [r12 + 0x80]
mov r9d, 1
mov r8d, 0x8001
mov rdx, rax
call rbx
mov rcx, r12
lea rax, [fcn.004ae004]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], rax
call fcn.004d6830
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x960
mov rdx, rax
call sym.winbox.exe_addTimer_unsigned_int__EventListener__void__bool_
mov rcx, r12
mov dword [r12 + 0xb0], eax
lea r12, [rsp + 0x80]
call fcn.004ae0f6
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, r12
call fcn.004cf806
mov rcx, r12
call fcn.004cf730
nop
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret