Function at 0x180016ac0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800cb660]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
xor r14d, r14d
test rax, rax
je 0x180016e23
lea rdx, str.Valid
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x30], rax
lea rdx, str.Start
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
lea rdx, str.Stop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
lea rdx, str.Control
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
lea rdx, str.SyncTime
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
cmp qword [rbx + 0x30], r14
je 0x180016e23
cmp qword [rbx + 0x38], r14
je 0x180016e23
cmp qword [rbx + 0x40], r14
je 0x180016e23
cmp qword [rbx + 0x48], r14
je 0x180016e23
lea rcx, [rbx + 8]
mov rdx, rdi
call fcn.1800259f0
mov rdx, qword [0x180087258]
mov qword [rbp - 0x29], rdx
lea edx, [r14 + 0x5c]
mov rcx, rdi
call fcn.18003642c
lea rcx, [rbp - 0x29]
test rax, rax
lea rdx, [rax + 2]
jne 0x180016bd1
mov rdx, rdi
call fcn.1800259f0
mov edx, 0x2e
lea rcx, [rbp - 0x29]
call fcn.180027680
test eax, eax
js 0x180016c0f
mov r8d, eax
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x29]
call fcn.1800277e0
nop
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.180025980
nop
lea rcx, [rbp - 0x21]
call fcn.180025870
mov r8, qword [rbp - 0x29]
mov r9d, dword [r8 - 8]
cmp r9d, 0x13
jle 0x180016c51
mov r8d, reloc.WS2_32.dll_send
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x29]
call fcn.1800277e0
nop
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.180025980
nop
lea rcx, [rbp - 0x21]
call fcn.180025870
mov r9d, reloc.WS2_32.dll_send
mov r8, qword [rbp - 0x29]
mov byte [rbp + 7], 0
xor eax, eax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov dword [rbp + 0x28], eax
mov word [rbp + 0x2c], ax
mov byte [rbp + 0x2e], al
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x28
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8d, reloc.WS2_32.dll_send
lea rdx, [rbp + 7]
lea rcx, [rbx + 0x10]
call fcn.180036050
mov byte [rbp - 0x11], 0
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov word [rbp], ax
mov byte [rbp + 2], al
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
lea rdx, [0x1800a87ac]
lea rcx, [rbp - 0x11]
call fcn.18003682c
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x11]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x11]
xor ecx, ecx
call fcn.18004f370
mov r11d, eax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x10]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbx + 0x10]
mov ecx, r11d
call fcn.18004f370
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, str.OCULARAGENT3
mov ecx, eax
call fcn.18004f370
mov edi, eax
lea rcx, [rbp - 0x11]
call qword [rbx + 0x30]
mov r13d, eax
cmp edi, eax
jne 0x180016d40
jmp 0x180016e06
lea rcx, [rbx + 0x10]
call fcn.180038034
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x11]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x11]
xor ecx, ecx
call fcn.18004f370
mov r11d, eax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x10]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbx + 0x10]
mov ecx, r11d
call fcn.18004f370
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, str.OCULARAGENT3
mov ecx, eax
call fcn.18004f370
cmp eax, r13d
jne 0x180016da4
jmp 0x180016e06
lea rcx, [rbx + 0x10]
call fcn.180037d88
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x11]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x11]
xor ecx, ecx
call fcn.18004f370
mov r11d, eax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x10]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbx + 0x10]
mov ecx, r11d
call fcn.18004f370
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, str.OCULARAGENT3
mov ecx, eax
call fcn.18004f370
cmp eax, r13d
jne 0x180016e1a
lea rcx, [rbp - 0x29]
call fcn.180025870
mov qword [rbx + 0x28], rsi
mov eax, 1
jmp 0x180016e58
lea rcx, [rbp - 0x29]
call fcn.180025870
mov qword [rbx + 0x28], r14
mov qword [rbx + 0x30], r14
mov qword [rbx + 0x38], r14
mov qword [rbx + 0x40], r14
mov qword [rbx + 0x48], r14
mov qword [rbx + 0x50], r14
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x20], eax
test rsi, rsi
je 0x180016e56
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1800356a0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret