Function at 0x4ad69c
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 [0x0053bb30]
call fcn.004d0399
mov rcx, rax
call fcn.004d075f
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 0x4ad70f
lea rcx, str.socket
call fcn.004acb70
jmp 0x4adbc9
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 0x4ad7dc
lea rcx, str.bind
call fcn.004acb70
mov rcx, qword [r12 + 0x78]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rax, [fcn.004ad69c]
lea rdx, [rsp + 0x60]
mov rcx, r12
mov qword [r12 + 0x78], 0xffffffffffffffff
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
call fcn.004d5bc0
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 0x4adbc9
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.004ceac0
mov rcx, r13
call fcn.004ad250
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 0x4ad9ff
mov ecx, 2
call r15
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x4ad87a
lea rcx, str.socket
call fcn.004acb70
jmp 0x4ad9f6
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 [0x0053bb30]
lea rdx, str.connecting_to
mov word [rsp + 0xb6], ax
mov eax, dword [rbx]
mov dword [rsp + 0xb8], eax
call fcn.004d0399
lea r8, [rsp + 0xa0]
mov rdx, rbx
mov rcx, r8
mov rsi, rax
mov qword [rsp + 0x58], r8
call fcn.004d1866
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.004d03b8
mov r8, qword [rsp + 0x58]
mov rsi, rax
mov rcx, r8
call fcn.004cddea
mov rcx, rsi
call fcn.004d075f
mov r8d, 0x10
mov rdx, r14
mov rcx, r13
call qword [sym.imp.WS2_32.dll_connect]
inc eax
jne 0x4ad98b
lea rcx, str.connect
call fcn.004acb70
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4ad9f6
mov rcx, qword [r12 + 0x88]
mov rsi, qword [r12 + 0x90]
sub rsi, rcx
call fcn.004d1482
sar rsi, 3
shr eax, 3
cmp esi, eax
jne 0x4ad9e2
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.004ceaf6
mov rax, qword [r12 + 0x90]
mov qword [rax], r13
add qword [r12 + 0x90], 8
add rbx, 4
jmp 0x4ad845
mov ecx, 0x17
call r15
mov qword [r12 + 0x80], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x4adb00
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 0x4adae1
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 0x4adb00
lea rcx, str.IPV6_ADD_MEMBERSHIP
call fcn.004acb70
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 0x4adb5b
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.004ad3f4]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], rax
call fcn.004d5bc0
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.004ad4e6
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, r12
call fcn.004ceba6
mov rcx, r12
call fcn.004cead0
nop
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret