Function at 0x140044cb0
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 [0x1401f0010]
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 0x140044d1d
cmp dword [rdi + 0x664], 0
jne 0x140044d1d
cmp dword [rdi + 0x394], 0
jne 0x140044d1d
cmp dword [rdi + 0x66c], 0
jne 0x140044d1d
xor eax, eax
jmp 0x14004582b
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 0x14004560f
mov rbx, qword [rdi + 0x3b0]
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x140044dbe
cmp dword [rbx + 0x23ec], r14d
je 0x140044dab
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.140088080
test al, al
je 0x140044dbe
mov dword [rbx + 0x23ec], r14d
mov rax, qword [0x1401fef68]
mov ecx, dword [rax + 0xd14]
mov dword [rbx + 0x23f0], ecx
lea rdx, [rbp - 0x40]
mov rcx, qword [rdi + 0x4b0]
call fcn.140034c40
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 0x140045155
cmp byte [rdi + 0x4d9], 0
je 0x140045155
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.1401348e0
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 0x140045600
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 0x140045600
cmp rcx, 8
jne 0x140044e62
call fcn.1400209d0
cmp eax, 2
je 0x140045600
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 0x140044fde
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 0x14004501c
cmp byte [rbx + 0x32], 0
jne 0x140045009
cmp byte [rbx + 0x30], 0
je 0x140045009
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x140045009
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140087b90
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.140087b90
mov rsi, qword [rdi + 0x3b0]
cmp qword [rsi + 0x10], 0xffffffffffffffff
je 0x140045107
mov r12d, reloc.WS2_32.dll_inet_ntoa
cmp byte [rsi + 0x30], 0
je 0x1400450f5
mov r15, qword [rsi + 0x20]
cmp byte [r15 + 0x39], 0
je 0x1400450f5
cmp byte [rsi + 0xb8], 0
je 0x140045081
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 0x140045107
xor eax, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x1400450ac
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 0x1400450f9
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 0x1400450f9
lea r14, [rbp - 0x60]
mov r8d, r12d
mov rdx, r14
mov rcx, rsi
call fcn.140087790
mov r8d, 4
lea rdx, [rsp + 0x3c]
mov rcx, qword [rdi + 0x3b0]
call fcn.140087a70
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x50]
mov rcx, qword [rdi + 0x3b0]
call fcn.140087a70
xor r14d, r14d
mov dword [rdi + 0x64c], r14d
mov byte [rdi + 0x4d9], r14b
lea esi, [r14 + 1]
mov dword [rdi + 0x394], r14d
jmp 0x14004581f
cmp dword [rdi + 0x648], 0
je 0x140045603
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 0x140045207
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 0x140045245
cmp byte [rbx + 0x32], 0
jne 0x140045232
cmp byte [rbx + 0x30], 0
je 0x140045232
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x140045232
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140087b90
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.140087b90
mov rsi, qword [rdi + 0x3b0]
mov r12d, reloc.WS2_32.dll_inet_ntoa
cmp qword [rsi + 0x10], 0xffffffffffffffff
je 0x140045333
mov r8d, r12d
cmp byte [rsi + 0x30], 0
je 0x14004531e
mov r15, qword [rsi + 0x20]
cmp byte [r15 + 0x39], 0
je 0x14004531e
cmp byte [rsi + 0xb8], 0
je 0x1400452ad
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 0x140045333
xor eax, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x1400452d5
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 0x140045322
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 0x140045322
lea r14, [rbp - 0x60]
mov rdx, r14
mov rcx, rsi
call fcn.140087790
mov r14d, 0x100
cmp byte [rdi + 0x4d8], 0
je 0x1400455fb
mov rcx, qword [rdi + 0x4b0]
mov rcx, qword [rcx + 0x90]
call fcn.14007ae10
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 [0x1401d5a70]
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 0x1400453a0
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.140048840
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 0x1400454c9
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 0x140045507
cmp byte [rbx + 0x32], 0
jne 0x1400454f4
cmp byte [rbx + 0x30], 0
je 0x1400454f4
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x1400454f4
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140087b90
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140087b90
mov rsi, qword [rdi + 0x3b0]
cmp qword [rsi + 0x10], 0xffffffffffffffff
je 0x1400455fb
cmp byte [rsi + 0x30], 0
je 0x1400455e9
mov r15, qword [rsi + 0x20]
cmp byte [r15 + 0x39], 0
je 0x1400455e9
cmp byte [rsi + 0xb8], 0
je 0x140045575
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 0x14004581f
xor eax, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x1400455a0
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 0x1400455ed
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 0x1400455ed
lea r14, [rbp - 0x60]
mov r8d, r12d
mov rdx, r14
mov rcx, rsi
call fcn.140087790
mov esi, 1
xor r14d, r14d
mov dword [rdi + 0x394], r14d
jmp 0x14004581f
mov r15, qword [rsp + 0x70]
sub r15, qword [rsp + 0x68]
sar r15, 4
cmp dword [rdi + 0x4a0], 0
je 0x140045642
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x50]
sar rax, 4
cmp rax, 5
jbe 0x14004563f
inc r15d
jmp 0x140045642
add r15d, eax
cmp r15d, 0xffff
je 0x1400456ba
mov rbx, qword [rbp - 0x78]
cmp rbx, qword [rbp - 0x70]
je 0x1400456ba
cmp byte [rdi + 0x460], 0
jne 0x140045679
cmp byte [rdi + 0x450], 0
jne 0x140045679
mov rcx, qword [rdi + 0x408]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
jmp 0x1400456a1
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 0x1400456b4
add r15d, eax
add rbx, 0x10
cmp rbx, qword [rbp - 0x70]
jne 0x140045655
jmp 0x1400456ba
mov r15d, 0xffff
cmp dword [rdi + 0x4a0], 0
jne 0x140045746
cmp r15d, 0xffff
je 0x140045746
mov rbx, qword [rsp + 0x50]
cmp rbx, qword [rsp + 0x58]
je 0x140045746
nop dword [rax]
cmp byte [rdi + 0x460], 0
jne 0x140045704
cmp byte [rdi + 0x450], 0
jne 0x140045704
mov rcx, qword [rdi + 0x408]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
jmp 0x14004572c
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 0x140045738
mov r15d, 0xffff
jmp 0x14004573b
add r15d, eax
add rbx, 0x10
cmp rbx, qword [rsp + 0x58]
jne 0x1400456e0
mov rax, qword [rdi + 0x408]
cmp dword [rax + 0x88], 0
jne 0x140045766
cmp dword [rax + 0x8c], 0
jne 0x140045766
mov dword [rdi + 0x664], r14d
cmp r15d, 0xffff
je 0x14004579a
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 0x140045797
mov esi, r14d
jmp 0x14004581f
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 0x14004585d
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.140045d20
mov eax, esi
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140131ef0
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 0x14004588d
cmp byte [rbx + 0x30], 0
je 0x14004588d
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x14004588d
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140087b90
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140087b90
mov r12d, reloc.WS2_32.dll_inet_ntoa
cmp dword [rdi + 0x664], 0
je 0x140045926
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.140058d20
test eax, eax
jne 0x140045920
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.140087b90
test eax, eax
jne 0x140045926
jmp 0x140045810
mov dword [rdi + 0x668], esi
cmp dword [rdi + 0x66c], 0
je 0x140045990
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.140087b90
test eax, eax
je 0x140045810
mov rbx, qword [rsp + 0x68]
cmp rbx, qword [rsp + 0x70]
je 0x140045ae7
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.140087b90
test eax, eax
je 0x140045810
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x3b0]
call fcn.140087b90
test eax, eax
je 0x140045810
add rbx, 0x10
cmp rbx, qword [rsp + 0x70]
mov eax, dword [rsp + 0x3c]
jne 0x1400459b2
mov esi, 1
xor r14d, r14d
cmp dword [rdi + 0x4a0], 0
je 0x140045c4b
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x50]
mov r9, rax
sar r9, 4
cmp r9, 5
jbe 0x140045b25
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140046320
test eax, eax
jne 0x140045c60
jmp 0x140045810
cmp rax, 0x10
jb 0x140045c60
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 0x140045c60
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.140087b90
test eax, eax
je 0x140045810
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x3b0]
call fcn.140087b90
test eax, eax
je 0x140045810
add rbx, 0x10
jmp 0x140045b4c
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140045e20
test eax, eax
je 0x140045810
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.140045e20
test eax, eax
je 0x140045810
cmp r15d, 0xffff
jne 0x140045cbb
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.140087b90
test eax, eax
je 0x140045810
mov rbx, qword [rdi + 0x3b0]
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x140045814
cmp dword [rbx + 0x23ec], 0
je 0x140045d05
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.140088080
test al, al
je 0x140045814
mov dword [rbx + 0x23ec], r14d
mov rax, qword [0x1401fef68]
mov ecx, dword [rax + 0xd14]
mov dword [rbx + 0x23f0], ecx
jmp 0x140045814