Function at 0x140045490
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 0x1400454fd
cmp dword [rdi + 0x664], 0
jne 0x1400454fd
cmp dword [rdi + 0x394], 0
jne 0x1400454fd
cmp dword [rdi + 0x66c], 0
jne 0x1400454fd
xor eax, eax
jmp 0x14004600b
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 0x140045def
mov rbx, qword [rdi + 0x3b0]
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x14004559e
cmp dword [rbx + 0x23ec], r14d
je 0x14004558b
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.140088c30
test al, al
je 0x14004559e
mov dword [rbx + 0x23ec], r14d
mov rax, qword [0x1401fdf80]
mov ecx, dword [rax + 0xd14]
mov dword [rbx + 0x23f0], ecx
lea rdx, [rbp - 0x40]
mov rcx, qword [rdi + 0x4b0]
call fcn.1400352b0
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 0x140045935
cmp byte [rdi + 0x4d9], 0
je 0x140045935
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.140135010
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 0x140045de0
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 0x140045de0
cmp rcx, 8
jne 0x140045642
call fcn.140020fe0
cmp eax, 2
je 0x140045de0
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 0x1400457be
lea r8, str.vncClient::SendRFBMsgQueue_:_failed_to_send_RFB_message_to_client_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x1400457fc
cmp byte [rbx + 0x32], 0
jne 0x1400457e9
cmp byte [rbx + 0x30], 0
je 0x1400457e9
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x1400457e9
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140088740
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.140088740
mov rsi, qword [rdi + 0x3b0]
cmp qword [rsi + 0x10], 0xffffffffffffffff
je 0x1400458e7
mov r12d, reloc.WS2_32.dll_inet_ntoa
cmp byte [rsi + 0x30], 0
je 0x1400458d5
mov r15, qword [rsi + 0x20]
cmp byte [r15 + 0x39], 0
je 0x1400458d5
cmp byte [rsi + 0xb8], 0
je 0x140045861
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 0x1400458e7
xor eax, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x14004588c
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 0x1400458d9
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 0x1400458d9
lea r14, [rbp - 0x60]
mov r8d, r12d
mov rdx, r14
mov rcx, rsi
call fcn.140088340
mov r8d, 4
lea rdx, [rsp + 0x3c]
mov rcx, qword [rdi + 0x3b0]
call fcn.140088620
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x50]
mov rcx, qword [rdi + 0x3b0]
call fcn.140088620
xor r14d, r14d
mov dword [rdi + 0x64c], r14d
mov byte [rdi + 0x4d9], r14b
lea esi, [r14 + 1]
mov dword [rdi + 0x394], r14d
jmp 0x140045fff
cmp dword [rdi + 0x648], 0
je 0x140045de3
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 0x1400459e7
lea r8, str.vncClient::SendRFBMsgQueue_:_failed_to_send_RFB_message_to_client_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x140045a25
cmp byte [rbx + 0x32], 0
jne 0x140045a12
cmp byte [rbx + 0x30], 0
je 0x140045a12
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x140045a12
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140088740
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.140088740
mov rsi, qword [rdi + 0x3b0]
mov r12d, reloc.WS2_32.dll_inet_ntoa
cmp qword [rsi + 0x10], 0xffffffffffffffff
je 0x140045b13
mov r8d, r12d
cmp byte [rsi + 0x30], 0
je 0x140045afe
mov r15, qword [rsi + 0x20]
cmp byte [r15 + 0x39], 0
je 0x140045afe
cmp byte [rsi + 0xb8], 0
je 0x140045a8d
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 0x140045b13
xor eax, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x140045ab5
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 0x140045b02
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 0x140045b02
lea r14, [rbp - 0x60]
mov rdx, r14
mov rcx, rsi
call fcn.140088340
mov r14d, 0x100
cmp byte [rdi + 0x4d8], 0
je 0x140045ddb
mov rcx, qword [rdi + 0x4b0]
mov rcx, qword [rcx + 0x90]
call fcn.14007b600
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 [0x1401d5210]
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 0x140045b80
lea rcx, [rbp - 0x40]
call fcn.140017060
nop
mov rax, qword [rdi + 0x4b0]
mov rcx, qword [rax + 0x90]
add rcx, 0x7d8
lea rdx, [rbp - 0x40]
call fcn.140049020
movups xmm6, xmmword [rax]
mov ebx, dword [rax + 0x10]
lea rcx, [rbp - 0x40]
call fcn.140017000
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 0x140045ca9
lea r8, str.vncClient::SendRFBMsgQueue_:_failed_to_send_RFB_message_to_client_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x140045ce7
cmp byte [rbx + 0x32], 0
jne 0x140045cd4
cmp byte [rbx + 0x30], 0
je 0x140045cd4
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x140045cd4
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140088740
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140088740
mov rsi, qword [rdi + 0x3b0]
cmp qword [rsi + 0x10], 0xffffffffffffffff
je 0x140045ddb
cmp byte [rsi + 0x30], 0
je 0x140045dc9
mov r15, qword [rsi + 0x20]
cmp byte [r15 + 0x39], 0
je 0x140045dc9
cmp byte [rsi + 0xb8], 0
je 0x140045d55
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 0x140045fff
xor eax, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x140045d80
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 0x140045dcd
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 0x140045dcd
lea r14, [rbp - 0x60]
mov r8d, r12d
mov rdx, r14
mov rcx, rsi
call fcn.140088340
mov esi, 1
xor r14d, r14d
mov dword [rdi + 0x394], r14d
jmp 0x140045fff
mov r15, qword [rsp + 0x70]
sub r15, qword [rsp + 0x68]
sar r15, 4
cmp dword [rdi + 0x4a0], 0
je 0x140045e22
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x50]
sar rax, 4
cmp rax, 5
jbe 0x140045e1f
inc r15d
jmp 0x140045e22
add r15d, eax
cmp r15d, 0xffff
je 0x140045e9a
mov rbx, qword [rbp - 0x78]
cmp rbx, qword [rbp - 0x70]
je 0x140045e9a
cmp byte [rdi + 0x460], 0
jne 0x140045e59
cmp byte [rdi + 0x450], 0
jne 0x140045e59
mov rcx, qword [rdi + 0x408]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
jmp 0x140045e81
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 0x140045e94
add r15d, eax
add rbx, 0x10
cmp rbx, qword [rbp - 0x70]
jne 0x140045e35
jmp 0x140045e9a
mov r15d, 0xffff
cmp dword [rdi + 0x4a0], 0
jne 0x140045f26
cmp r15d, 0xffff
je 0x140045f26
mov rbx, qword [rsp + 0x50]
cmp rbx, qword [rsp + 0x58]
je 0x140045f26
nop dword [rax]
cmp byte [rdi + 0x460], 0
jne 0x140045ee4
cmp byte [rdi + 0x450], 0
jne 0x140045ee4
mov rcx, qword [rdi + 0x408]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
jmp 0x140045f0c
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 0x140045f18
mov r15d, 0xffff
jmp 0x140045f1b
add r15d, eax
add rbx, 0x10
cmp rbx, qword [rsp + 0x58]
jne 0x140045ec0
mov rax, qword [rdi + 0x408]
cmp dword [rax + 0x88], 0
jne 0x140045f46
cmp dword [rax + 0x8c], 0
jne 0x140045f46
mov dword [rdi + 0x664], r14d
cmp r15d, 0xffff
je 0x140045f7a
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 0x140045f77
mov esi, r14d
jmp 0x140045fff
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 0x14004603d
lea r8, str.vncClient::SendRFBMsgQueue_:_failed_to_send_RFB_message_to_client_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
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.140046500
mov eax, esi
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140132620
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 0x14004606d
cmp byte [rbx + 0x30], 0
je 0x14004606d
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x14004606d
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140088740
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140088740
mov r12d, reloc.WS2_32.dll_inet_ntoa
cmp dword [rdi + 0x664], 0
je 0x140046106
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.140059500
test eax, eax
jne 0x140046100
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.140088740
test eax, eax
jne 0x140046106
jmp 0x140045ff0
mov dword [rdi + 0x668], esi
cmp dword [rdi + 0x66c], 0
je 0x140046170
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.140088740
test eax, eax
je 0x140045ff0
mov rbx, qword [rsp + 0x68]
cmp rbx, qword [rsp + 0x70]
je 0x1400462c7
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.140088740
test eax, eax
je 0x140045ff0
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x3b0]
call fcn.140088740
test eax, eax
je 0x140045ff0
add rbx, 0x10
cmp rbx, qword [rsp + 0x70]
mov eax, dword [rsp + 0x3c]
jne 0x140046192
mov esi, 1
xor r14d, r14d
cmp dword [rdi + 0x4a0], 0
je 0x14004642b
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x50]
mov r9, rax
sar r9, 4
cmp r9, 5
jbe 0x140046305
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140046b00
test eax, eax
jne 0x140046440
jmp 0x140045ff0
cmp rax, 0x10
jb 0x140046440
lea r8, str.vncClient::SendCacheRectangles_:__Sending__d_Cache_Rects__r_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rbx, qword [rsp + 0x50]
cmp rbx, qword [rsp + 0x58]
je 0x140046440
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.140088740
test eax, eax
je 0x140045ff0
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x3b0]
call fcn.140088740
test eax, eax
je 0x140045ff0
add rbx, 0x10
jmp 0x14004632c
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140046600
test eax, eax
je 0x140045ff0
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.140046600
test eax, eax
je 0x140045ff0
cmp r15d, 0xffff
jne 0x14004649b
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.140088740
test eax, eax
je 0x140045ff0
mov rbx, qword [rdi + 0x3b0]
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x140045ff4
cmp dword [rbx + 0x23ec], 0
je 0x1400464e5
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.140088c30
test al, al
je 0x140045ff4
mov dword [rbx + 0x23ec], r14d
mov rax, qword [0x1401fdf80]
mov ecx, dword [rax + 0xd14]
mov dword [rbx + 0x23f0], ecx
jmp 0x140045ff4