Function at 0x140044e10
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
movaps xmmword [rsp + 0x1f0], xmm6
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rbx, rdx
mov rdi, rcx
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x60]
test al, al
je 0x140044e7d
cmp dword [rdi + 0x664], 0
jne 0x140044e7d
cmp dword [rdi + 0x394], 0
jne 0x140044e7d
cmp dword [rdi + 0x66c], 0
jne 0x140044e7d
xor eax, eax
jmp 0x14004598b
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmmword [rsp + 0x70], xmm0
xor r14d, r14d
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
movdqa xmmword [rbp - 0x70], xmm0
mov rax, qword [rbx]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [rax + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x68]
cmp dword [rdi + 0x394], r14d
je 0x14004576f
mov rbx, qword [rdi + 0x3b0]
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x140044f1e
cmp dword [rbx + 0x23ec], r14d
je 0x140044f0b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x18], eax
lea rdx, [rbx + 0xc4]
mov r8d, dword [rbx + 0x23ec]
mov rcx, qword [rbx + 0x10]
call fcn.1400881e0
test al, al
je 0x140044f1e
mov dword [rbx + 0x23ec], r14d
mov rax, qword [0x1401fdf60]
mov ecx, dword [rax + 0xd14]
mov dword [rbx + 0x23f0], ecx
lea rdx, [rbp - 0x40]
mov rcx, qword [rdi + 0x4b0]
call fcn.140034ca0
movups xmm0, xmmword [rax]
movups xmmword [rdi + 0x840], xmm0
mov rax, qword [rdi + 0x4b0]
mov r9d, dword [rax + 0x14]
mov dword [rdi + 0x850], r9d
mov esi, 1
cmp dword [rdi + 0x64c], 0
je 0x1400452b5
cmp byte [rdi + 0x4d9], 0
je 0x1400452b5
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
mov rbx, rax
mov r14d, 0x100
mov r8d, r14d
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.140133cb0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rbp - 0x20]
lea edx, [rsi + 1]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
je 0x140045760
xor ebx, ebx
mov ecx, ebx
lea rdx, [rbp - 0x20]
lea r8, str.Default
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140045760
cmp rcx, 8
jne 0x140044fc2
call fcn.1400209d0
cmp eax, 2
je 0x140045760
mov dword [rbp - 0x58], 0xccfeffff
mov r8, qword [rdi + 0x4b0]
mov r9d, dword [rdi + 0x854]
mov r10d, dword [rdi + 0x850]
mov rax, qword [r8 + 0x90]
movzx eax, word [rax + 0xe460]
imul eax, r9d
xor edx, edx
div r10d
mov ecx, eax
shr ecx, 8
mov r13d, 0xff
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5c], cx
mov rax, qword [r8 + 0x90]
movzx eax, word [rax + 0xe462]
imul eax, r9d
xor edx, edx
div r10d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5a], cx
mov rax, qword [rdi + 0x4e0]
mov ecx, dword [rax + 0xd4]
mov eax, ecx
sar eax, 8
and ax, r13w
shl cx, 8
or ax, cx
mov word [rbp - 0x60], ax
mov eax, dword [rdi + 0x654]
mov ecx, eax
sar ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5e], cx
mov dword [rsp + 0x3c], esi
mov qword [rbp - 0x50], 0x1000000
mov rax, qword [r8 + 0x90]
movzx eax, word [rax + 0xe460]
imul eax, r9d
xor edx, edx
div r10d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x48], cx
mov rax, qword [r8 + 0x90]
movzx eax, word [rax + 0xe462]
imul eax, r9d
xor edx, edx
div r10d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x46], cx
mov dword [rbp - 0x44], ebx
mov dword [rsp + 0x34], ebx
mov word [rsp + 0x36], r14w
mov byte [rsp + 0x34], bl
mov rbx, qword [rdi + 0x3b0]
cmp qword [rbx + 0x10], 0xffffffffffffffff
jne 0x14004513e
lea r8, str.vncClient::SendRFBMsgQueue_:_failed_to_send_RFB_message_to_client_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14004517c
cmp byte [rbx + 0x32], 0
jne 0x140045169
cmp byte [rbx + 0x30], 0
je 0x140045169
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x140045169
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140087cf0
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.140087cf0
mov rsi, qword [rdi + 0x3b0]
cmp qword [rsi + 0x10], 0xffffffffffffffff
je 0x140045267
mov r12d, reloc.WS2_32.dll_inet_ntoa
cmp byte [rsi + 0x30], 0
je 0x140045255
mov r15, qword [rsi + 0x20]
cmp byte [r15 + 0x39], 0
je 0x140045255
cmp byte [rsi + 0xb8], 0
je 0x1400451e1
movsxd rcx, dword [rsi + 0xbc]
mov rdx, qword [rsi + 0xb0]
movsd xmm0, qword [rbp - 0x60]
movsd qword [rdx + rcx], xmm0
mov eax, dword [rbp - 0x58]
mov dword [rdx + rcx + 8], eax
add dword [rsi + 0xbc], r12d
jmp 0x140045267
xor eax, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x14004520c
mov rax, qword [rcx]
lea r9, [rsp + 0x30]
mov r8d, r12d
lea rdx, [rbp - 0x60]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r14, rax
mov r12d, dword [rsp + 0x30]
jmp 0x140045259
lea rbx, [r15 + 0x320]
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x38], WSAGetLastError
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rsp + 0x30]
mov edx, r12d
lea rcx, [rbp - 0x60]
call qword [r15 + 0x2d8]
mov r14, rax
mov qword [r15 + 0x310], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r12d, dword [rsp + 0x30]
jmp 0x140045259
lea r14, [rbp - 0x60]
mov r8d, r12d
mov rdx, r14
mov rcx, rsi
call fcn.1400878f0
mov r8d, 4
lea rdx, [rsp + 0x3c]
mov rcx, qword [rdi + 0x3b0]
call fcn.140087bd0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x50]
mov rcx, qword [rdi + 0x3b0]
call fcn.140087bd0
xor r14d, r14d
mov dword [rdi + 0x64c], r14d
mov byte [rdi + 0x4d9], r14b
lea esi, [r14 + 1]
mov dword [rdi + 0x394], r14d
jmp 0x14004597f
cmp dword [rdi + 0x648], 0
je 0x140045763
mov dword [rbp - 0x60], r14d
mov r8d, dword [rdi + 0x854]
mov eax, r8d
imul eax, dword [rdi + 0x65c]
xor edx, edx
div r9d
mov ecx, eax
shr ecx, 8
mov r13d, 0xff
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5c], cx
imul r8d, dword [rdi + 0x660]
xor edx, edx
mov eax, r8d
div r9d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5a], cx
mov dword [rbp - 0x58], 0x21ffffff
mov dword [rsp + 0x34], r14d
mov r14d, 0x100
mov word [rsp + 0x36], r14w
mov byte [rsp + 0x34], 0
mov rbx, qword [rdi + 0x3b0]
cmp qword [rbx + 0x10], 0xffffffffffffffff
jne 0x140045367
lea r8, str.vncClient::SendRFBMsgQueue_:_failed_to_send_RFB_message_to_client_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x1400453a5
cmp byte [rbx + 0x32], 0
jne 0x140045392
cmp byte [rbx + 0x30], 0
je 0x140045392
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x140045392
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140087cf0
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.140087cf0
mov rsi, qword [rdi + 0x3b0]
mov r12d, reloc.WS2_32.dll_inet_ntoa
cmp qword [rsi + 0x10], 0xffffffffffffffff
je 0x140045493
mov r8d, r12d
cmp byte [rsi + 0x30], 0
je 0x14004547e
mov r15, qword [rsi + 0x20]
cmp byte [r15 + 0x39], 0
je 0x14004547e
cmp byte [rsi + 0xb8], 0
je 0x14004540d
movsxd rcx, dword [rsi + 0xbc]
mov rdx, qword [rsi + 0xb0]
movsd xmm0, qword [rbp - 0x60]
movsd qword [rdx + rcx], xmm0
mov eax, dword [rbp - 0x58]
mov dword [rdx + rcx + 8], eax
add dword [rsi + 0xbc], r12d
jmp 0x140045493
xor eax, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x140045435
mov rax, qword [rcx]
lea r9, [rsp + 0x30]
lea rdx, [rbp - 0x60]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r14, rax
mov r8d, dword [rsp + 0x30]
jmp 0x140045482
lea rbx, [r15 + 0x320]
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x38], WSAGetLastError
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rsp + 0x30]
mov edx, r12d
lea rcx, [rbp - 0x60]
call qword [r15 + 0x2d8]
mov r14, rax
mov qword [r15 + 0x310], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8d, dword [rsp + 0x30]
jmp 0x140045482
lea r14, [rbp - 0x60]
mov rdx, r14
mov rcx, rsi
call fcn.1400878f0
mov r14d, 0x100
cmp byte [rdi + 0x4d8], 0
je 0x14004575b
mov rcx, qword [rdi + 0x4b0]
mov rcx, qword [rcx + 0x90]
call fcn.14007af70
mov rax, qword [rdi + 0x4b0]
mov rcx, qword [rax + 0x90]
mov dword [rcx + 4], Ordinal_102
mov rax, qword [rdi + 0x4b0]
mov esi, 1
mov dword [rax + 0xc], esi
lea rdx, [rdi + 0xc]
xor r15d, r15d
mov qword [rbp - 0x40], r15
movdqa xmm0, xmmword [0x1401d51f0]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], r15b
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], r15b
jne 0x140045500
lea rcx, [rbp - 0x40]
call fcn.1400172c0
nop
mov rax, qword [rdi + 0x4b0]
mov rcx, qword [rax + 0x90]
add rcx, 0x7d8
lea rdx, [rbp - 0x40]
call fcn.1400489a0
movups xmm6, xmmword [rax]
mov ebx, dword [rax + 0x10]
lea rcx, [rbp - 0x40]
call fcn.140017260
mov r9d, dword [rdi + 0x854]
mov r8d, dword [rdi + 0x850]
mov eax, r9d
movdqa xmm0, xmm6
psrldq xmm0, 0xc
movd ecx, xmm0
imul eax, ecx
xor edx, edx
div r8d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x60], cx
mov eax, r9d
imul eax, ebx
xor edx, edx
div r8d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5e], cx
mov eax, r9d
movd ecx, xmm6
imul eax, ecx
xor edx, edx
div r8d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5c], cx
psrldq xmm6, 4
movd eax, xmm6
imul eax, r9d
xor edx, edx
div r8d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5a], cx
mov dword [rbp - 0x58], 0xcdfeffff
mov dword [rsp + 0x38], r15d
mov word [rsp + 0x3a], r14w
mov byte [rsp + 0x38], 0
mov rbx, qword [rdi + 0x3b0]
cmp qword [rbx + 0x10], 0xffffffffffffffff
jne 0x140045629
lea r8, str.vncClient::SendRFBMsgQueue_:_failed_to_send_RFB_message_to_client_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x140045667
cmp byte [rbx + 0x32], 0
jne 0x140045654
cmp byte [rbx + 0x30], 0
je 0x140045654
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x140045654
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140087cf0
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140087cf0
mov rsi, qword [rdi + 0x3b0]
cmp qword [rsi + 0x10], 0xffffffffffffffff
je 0x14004575b
cmp byte [rsi + 0x30], 0
je 0x140045749
mov r15, qword [rsi + 0x20]
cmp byte [r15 + 0x39], 0
je 0x140045749
cmp byte [rsi + 0xb8], 0
je 0x1400456d5
movsxd rcx, dword [rsi + 0xbc]
mov rdx, qword [rsi + 0xb0]
movsd xmm0, qword [rbp - 0x60]
movsd qword [rdx + rcx], xmm0
mov eax, dword [rbp - 0x58]
mov dword [rdx + rcx + 8], eax
add dword [rsi + 0xbc], 0xc
mov esi, 1
xor r14d, r14d
mov dword [rdi + 0x394], r14d
jmp 0x14004597f
xor eax, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x140045700
mov rax, qword [rcx]
lea r9, [rsp + 0x30]
mov r8d, r12d
lea rdx, [rbp - 0x60]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r14, rax
mov r12d, dword [rsp + 0x30]
jmp 0x14004574d
lea rbx, [r15 + 0x320]
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x38], WSAGetLastError
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rsp + 0x30]
mov edx, r12d
lea rcx, [rbp - 0x60]
call qword [r15 + 0x2d8]
mov r14, rax
mov qword [r15 + 0x310], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r12d, dword [rsp + 0x30]
jmp 0x14004574d
lea r14, [rbp - 0x60]
mov r8d, r12d
mov rdx, r14
mov rcx, rsi
call fcn.1400878f0
mov esi, 1
xor r14d, r14d
mov dword [rdi + 0x394], r14d
jmp 0x14004597f
mov r15, qword [rsp + 0x70]
sub r15, qword [rsp + 0x68]
sar r15, 4
cmp dword [rdi + 0x4a0], 0
je 0x1400457a2
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x50]
sar rax, 4
cmp rax, 5
jbe 0x14004579f
inc r15d
jmp 0x1400457a2
add r15d, eax
cmp r15d, 0xffff
je 0x14004581a
mov rbx, qword [rbp - 0x78]
cmp rbx, qword [rbp - 0x70]
je 0x14004581a
cmp byte [rdi + 0x460], 0
jne 0x1400457d9
cmp byte [rdi + 0x450], 0
jne 0x1400457d9
mov rcx, qword [rdi + 0x408]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
jmp 0x140045801
mov eax, dword [rbx + 8]
mov dword [rbp - 0x48], eax
mov eax, dword [rbx]
mov dword [rbp - 0x50], eax
mov eax, dword [rbx + 4]
mov dword [rbp - 0x4c], eax
mov eax, dword [rbx + 0xc]
mov dword [rbp - 0x44], eax
mov rcx, qword [rdi + 0x408]
mov rax, qword [rcx]
lea rdx, [rbp - 0x50]
call qword [rax + 0x18]
test eax, eax
je 0x140045814
add r15d, eax
add rbx, 0x10
cmp rbx, qword [rbp - 0x70]
jne 0x1400457b5
jmp 0x14004581a
mov r15d, 0xffff
cmp dword [rdi + 0x4a0], 0
jne 0x1400458a6
cmp r15d, 0xffff
je 0x1400458a6
mov rbx, qword [rsp + 0x50]
cmp rbx, qword [rsp + 0x58]
je 0x1400458a6
nop dword [rax]
cmp byte [rdi + 0x460], 0
jne 0x140045864
cmp byte [rdi + 0x450], 0
jne 0x140045864
mov rcx, qword [rdi + 0x408]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
jmp 0x14004588c
mov eax, dword [rbx + 8]
mov dword [rbp - 0x48], eax
mov eax, dword [rbx]
mov dword [rbp - 0x50], eax
mov eax, dword [rbx + 4]
mov dword [rbp - 0x4c], eax
mov eax, dword [rbx + 0xc]
mov dword [rbp - 0x44], eax
mov rcx, qword [rdi + 0x408]
mov rax, qword [rcx]
lea rdx, [rbp - 0x50]
call qword [rax + 0x18]
test eax, eax
jne 0x140045898
mov r15d, 0xffff
jmp 0x14004589b
add r15d, eax
add rbx, 0x10
cmp rbx, qword [rsp + 0x58]
jne 0x140045840
mov rax, qword [rdi + 0x408]
cmp dword [rax + 0x88], 0
jne 0x1400458c6
cmp dword [rax + 0x8c], 0
jne 0x1400458c6
mov dword [rdi + 0x664], r14d
cmp r15d, 0xffff
je 0x1400458fa
lea eax, [r15 + 1]
cmp dword [rdi + 0x664], 0
cmove eax, r15d
lea ecx, [rax + 1]
cmp dword [rdi + 0x66c], 0
cmove ecx, eax
test ecx, ecx
jne 0x1400458f7
mov esi, r14d
jmp 0x14004597f
mov r15d, ecx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x48], Ordinal_102
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov dword [rsp + 0x40], r14d
mov edx, r15d
sar edx, 8
mov r13d, 0xff
and dx, r13w
movzx ecx, r15w
shl cx, 8
or dx, cx
mov word [rsp + 0x42], dx
mov byte [rsp + 0x40], 0
mov rbx, qword [rdi + 0x3b0]
cmp qword [rbx + 0x10], 0xffffffffffffffff
jne 0x1400459bd
lea r8, str.vncClient::SendRFBMsgQueue_:_failed_to_send_RFB_message_to_client_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
xor eax, eax
mov esi, eax
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x50]
call fcn.140045e80
mov eax, esi
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.1401312c0
mov rbx, qword [rsp + 0x250]
movaps xmm6, xmmword [rsp + 0x1f0]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov esi, 1
cmp byte [rbx + 0x32], 0
jne 0x1400459ed
cmp byte [rbx + 0x30], 0
je 0x1400459ed
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x1400459ed
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140087cf0
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140087cf0
mov r12d, reloc.WS2_32.dll_inet_ntoa
cmp dword [rdi + 0x664], 0
je 0x140045a86
mov dword [rdi + 0x664], r14d
mov r8, qword [rdi + 0x4b0]
mov r8, qword [r8 + 0x90]
mov rdx, qword [rdi + 0x3b0]
mov rcx, qword [rdi + 0x408]
call fcn.140058e80
test eax, eax
jne 0x140045a80
mov dword [rdi + 0x668], r14d
mov rdx, qword [rdi + 0x408]
mov qword [rbp - 0x60], r14
mov eax, 0x11ffffff
mov ecx, 0x10ffffff
cmp dword [rdx + 0x88], 0
cmovne eax, ecx
mov dword [rbp - 0x58], eax
mov r8d, r12d
lea rdx, [rbp - 0x60]
mov rcx, qword [rdi + 0x3b0]
call fcn.140087cf0
test eax, eax
jne 0x140045a86
jmp 0x140045970
mov dword [rdi + 0x668], esi
cmp dword [rdi + 0x66c], 0
je 0x140045af0
mov dword [rdi + 0x66c], r14d
mov eax, dword [rdi + 0x674]
mov ecx, eax
sar ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x60], cx
mov eax, dword [rdi + 0x678]
mov ecx, eax
sar ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5e], cx
mov dword [rbp - 0x5c], r14d
mov dword [rbp - 0x58], 0x18ffffff
mov r8d, r12d
lea rdx, [rbp - 0x60]
mov rcx, qword [rdi + 0x3b0]
call fcn.140087cf0
test eax, eax
je 0x140045970
mov rbx, qword [rsp + 0x68]
cmp rbx, qword [rsp + 0x70]
je 0x140045c47
mov eax, dword [rbp - 0x7c]
neg eax
mov dword [rsp + 0x3c], eax
mov ecx, dword [rbp - 0x80]
neg ecx
mov dword [rsp + 0x34], ecx
mov r8d, dword [rbx + 4]
lea r14d, [rax + r8]
mov r11d, dword [rbx]
mov r9d, dword [rdi + 0x380]
mov esi, dword [rdi + 0x850]
mov eax, r11d
sub eax, r9d
xor edx, edx
div esi
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x60], cx
mov r10d, dword [rdi + 0x384]
mov eax, r8d
sub eax, r10d
xor edx, edx
div esi
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5e], cx
mov eax, dword [rbx + 8]
sub eax, r11d
xor edx, edx
div esi
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5c], cx
mov eax, dword [rbx + 0xc]
sub eax, r8d
xor edx, edx
div esi
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5a], cx
mov dword [rbp - 0x58], 0x1000000
mov eax, dword [rsp + 0x34]
sub eax, r9d
add eax, r11d
xor edx, edx
div esi
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rsp + 0x38], cx
sub r14d, r10d
xor edx, edx
mov eax, r14d
div esi
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rsp + 0x3a], cx
mov r8d, r12d
lea rdx, [rbp - 0x60]
mov rcx, qword [rdi + 0x3b0]
call fcn.140087cf0
test eax, eax
je 0x140045970
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x3b0]
call fcn.140087cf0
test eax, eax
je 0x140045970
add rbx, 0x10
cmp rbx, qword [rsp + 0x70]
mov eax, dword [rsp + 0x3c]
jne 0x140045b12
mov esi, 1
xor r14d, r14d
cmp dword [rdi + 0x4a0], 0
je 0x140045dab
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x50]
mov r9, rax
sar r9, 4
cmp r9, 5
jbe 0x140045c85
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140046480
test eax, eax
jne 0x140045dc0
jmp 0x140045970
cmp rax, 0x10
jb 0x140045dc0
lea r8, str.vncClient::SendCacheRectangles_:__Sending__d_Cache_Rects__r_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rbx, qword [rsp + 0x50]
cmp rbx, qword [rsp + 0x58]
je 0x140045dc0
mov r11d, dword [rdi + 0x850]
mov eax, dword [rbx]
sub eax, dword [rdi + 0x380]
xor edx, edx
div r11d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x60], cx
mov eax, dword [rbx + 4]
sub eax, dword [rdi + 0x384]
xor edx, edx
div r11d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5e], cx
mov r10d, dword [rbx + 8]
sub r10d, dword [rbx]
xor edx, edx
mov eax, r10d
div r11d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5c], cx
mov r8d, dword [rbx + 0xc]
sub r8d, dword [rbx + 4]
xor edx, edx
mov eax, r8d
div r11d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x5a], cx
mov dword [rbp - 0x58], 0xffff
imul r8d, r10d
shl r8d, 2
add dword [rdi + 0x994], r8d
mov eax, 0xf27
mov word [rsp + 0x30], ax
mov r8d, r12d
lea rdx, [rbp - 0x60]
mov rcx, qword [rdi + 0x3b0]
call fcn.140087cf0
test eax, eax
je 0x140045970
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x3b0]
call fcn.140087cf0
test eax, eax
je 0x140045970
add rbx, 0x10
jmp 0x140045cac
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140045f80
test eax, eax
je 0x140045970
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.140045f80
test eax, eax
je 0x140045970
cmp r15d, 0xffff
jne 0x140045e1b
mov rcx, qword [rdi + 0x408]
mov rax, qword [rcx]
mov rdx, qword [rdi + 0x3b0]
call qword [rax + 0x58]
mov qword [rbp - 0x60], 0
mov dword [rbp - 0x58], 0x20ffffff
mov r8d, r12d
lea rdx, [rbp - 0x60]
mov rcx, qword [rdi + 0x3b0]
call fcn.140087cf0
test eax, eax
je 0x140045970
mov rbx, qword [rdi + 0x3b0]
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x140045974
cmp dword [rbx + 0x23ec], 0
je 0x140045e65
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x18], eax
lea rdx, [rbx + 0xc4]
mov r8d, dword [rbx + 0x23ec]
mov rcx, qword [rbx + 0x10]
call fcn.1400881e0
test al, al
je 0x140045974
mov dword [rbx + 0x23ec], r14d
mov rax, qword [0x1401fdf60]
mov ecx, dword [rax + 0xd14]
mov dword [rbx + 0x23f0], ecx
jmp 0x140045974