Function at 0x180004480
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rax, qword [0x18008f100]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r12, rax
xor r13d, r13d
test rax, rax
je 0x180004715
lea rdx, str.Valid
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
lea rdx, str.Start
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x38], rax
lea rdx, str.Stop
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
lea rdx, str.Control
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
lea rdx, str.SyncTime
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x50], rax
cmp qword [rsi + 0x30], r13
je 0x180004715
cmp qword [rsi + 0x38], r13
je 0x180004715
cmp qword [rsi + 0x40], r13
je 0x180004715
cmp qword [rsi + 0x48], r13
je 0x180004715
lea rcx, [rsi + 8]
mov rdx, rdi
call fcn.18000f8c0
mov rdx, qword [0x180061968]
mov qword [rbp - 0x29], rdx
lea edx, [r13 + 0x5c]
mov rcx, rdi
call fcn.1800138a0
lea rcx, [rbp - 0x29]
test rax, rax
lea rdx, [rax + 2]
jne 0x18000458f
mov rdx, rdi
call fcn.18000f8c0
mov edx, 0x2e
lea rcx, [rbp - 0x29]
call fcn.180010740
test eax, eax
js 0x1800045cd
mov r8d, eax
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x29]
call fcn.1800108a0
nop
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.18000f850
nop
lea rcx, [rbp - 0x21]
call fcn.18000f740
mov r8, qword [rbp - 0x29]
mov r9d, dword [r8 - 8]
cmp r9d, 0x13
jle 0x18000460f
mov r8d, reloc.WS2_32.dll_send
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x29]
call fcn.1800108a0
nop
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.18000f850
nop
lea rcx, [rbp - 0x21]
call fcn.18000f740
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], r13
mov qword [rsp + 0x30], r13
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, [rsi + 0x10]
call fcn.180013d60
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, [0x180077124]
lea rcx, [rbp - 0x11]
call fcn.180014030
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.180029ba0
mov r11d, eax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsi + 0x10]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsi + 0x10]
mov ecx, r11d
call fcn.180029ba0
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, str.OCULARAGENT3
mov ecx, eax
call fcn.180029ba0
mov edi, eax
lea rcx, [rbp - 0x11]
call qword [rsi + 0x30]
cmp edi, eax
je 0x180004701
lea rcx, [rbp - 0x29]
call fcn.18000f740
jmp 0x180004715
lea rcx, [rbp - 0x29]
call fcn.18000f740
mov qword [rsi + 0x28], r12
mov eax, 1
jmp 0x18000474a
mov qword [rsi + 0x28], r13
mov qword [rsi + 0x30], r13
mov qword [rsi + 0x38], r13
mov qword [rsi + 0x40], r13
mov qword [rsi + 0x48], r13
mov qword [rsi + 0x50], r13
xor eax, eax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rax
mov dword [rsi + 0x20], eax
test r12, r12
je 0x180004748
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.180013880
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret