Function at 0x140046440
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
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rbx, rdx
mov rdi, rcx
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x60]
test al, al
je 0x1400464a5
cmp dword [rdi + 0x664], 0
jne 0x1400464a5
cmp dword [rdi + 0x394], 0
jne 0x1400464a5
cmp dword [rdi + 0x66c], 0
jne 0x1400464a5
xor eax, eax
jmp 0x140046fde
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmmword [rbp - 0x80], xmm0
xor r14d, r14d
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r14
movdqa xmmword [rbp - 0x60], xmm0
mov rax, qword [rbx]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [rax + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x68]
cmp dword [rdi + 0x394], r14d
je 0x140046dc7
mov rbx, qword [rdi + 0x3b0]
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x140046545
cmp dword [rbx + 0x23ec], r14d
je 0x140046532
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.14008b380
test al, al
je 0x140046545
mov dword [rbx + 0x23ec], r14d
mov rax, qword [0x14022a710]
mov ecx, dword [rax + 0xd14]
mov dword [rbx + 0x23f0], ecx
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 0x4b0]
call fcn.140035e90
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 0x1400468e5
cmp byte [rdi + 0x4d9], 0
je 0x1400468e5
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 - 0x10]
call fcn.14014a5c0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rbp - 0x10]
lea edx, [rsi + 1]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
je 0x140046db8
xor ebx, ebx
mov ecx, ebx
lea rdx, [rbp - 0x10]
lea r8, str.Default
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140046db8
cmp rcx, 8
jne 0x1400465f0
call fcn.140021170
cmp eax, 2
je 0x140046db8
mov dword [rbp - 0x48], 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 - 0x4c], 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 - 0x4a], 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 - 0x50], ax
mov eax, dword [rdi + 0x654]
mov ecx, eax
sar ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x4e], cx
mov dword [rsp + 0x3c], esi
mov qword [rbp - 0x40], 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 - 0x38], 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 - 0x36], cx
mov dword [rbp - 0x34], 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 0x14004676c
lea r8, str.vncClient::SendRFBMsgQueue_:_failed_to_send_RFB_message_to_client_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x1400467aa
cmp byte [rbx + 0x32], 0
jne 0x140046797
cmp byte [rbx + 0x30], 0
je 0x140046797
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x140046797
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14008af60
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.14008af60
mov rsi, qword [rdi + 0x3b0]
cmp qword [rsi + 0x10], 0xffffffffffffffff
je 0x140046897
mov r12d, reloc.WS2_32.dll_inet_ntoa
cmp byte [rsi + 0x30], 0
je 0x140046885
mov r15, qword [rsi + 0x20]
cmp byte [r15 + 0x39], 0
je 0x140046885
cmp byte [rsi + 0xb8], 0
je 0x14004680f
movsxd rcx, dword [rsi + 0xbc]
mov rdx, qword [rsi + 0xb0]
movsd xmm0, qword [rbp - 0x50]
movsd qword [rdx + rcx], xmm0
mov eax, dword [rbp - 0x48]
mov dword [rdx + rcx + 8], eax
add dword [rsi + 0xbc], r12d
jmp 0x140046897
xor eax, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x14004683a
mov rax, qword [rcx]
lea r9, [rsp + 0x30]
mov r8d, r12d
lea rdx, [rbp - 0x50]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r14, rax
mov r12d, dword [rsp + 0x30]
jmp 0x140046889
lea rbx, [r15 + 0x320]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], WSAGetLastError
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rsp + 0x30]
mov edx, r12d
lea rcx, [rbp - 0x50]
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 0x140046889
lea r14, [rbp - 0x50]
mov r8d, r12d
mov rdx, r14
mov rcx, rsi
call fcn.14008ab60
mov r8d, 4
lea rdx, [rsp + 0x3c]
mov rcx, qword [rdi + 0x3b0]
call fcn.14008ae40
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x40]
mov rcx, qword [rdi + 0x3b0]
call fcn.14008ae40
xor r14d, r14d
mov dword [rdi + 0x64c], r14d
mov byte [rdi + 0x4d9], r14b
lea esi, [r14 + 1]
mov dword [rdi + 0x394], r14d
jmp 0x140046fd2
cmp dword [rdi + 0x648], 0
je 0x140046dbb
mov dword [rbp - 0x50], 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 - 0x4c], 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 - 0x4a], cx
mov dword [rbp - 0x48], 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 0x140046997
lea r8, str.vncClient::SendRFBMsgQueue_:_failed_to_send_RFB_message_to_client_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x1400469d5
cmp byte [rbx + 0x32], 0
jne 0x1400469c2
cmp byte [rbx + 0x30], 0
je 0x1400469c2
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x1400469c2
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14008af60
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.14008af60
mov rsi, qword [rdi + 0x3b0]
mov r12d, reloc.WS2_32.dll_inet_ntoa
cmp qword [rsi + 0x10], 0xffffffffffffffff
je 0x140046ac5
mov r8d, r12d
cmp byte [rsi + 0x30], 0
je 0x140046ab0
mov r15, qword [rsi + 0x20]
cmp byte [r15 + 0x39], 0
je 0x140046ab0
cmp byte [rsi + 0xb8], 0
je 0x140046a3d
movsxd rcx, dword [rsi + 0xbc]
mov rdx, qword [rsi + 0xb0]
movsd xmm0, qword [rbp - 0x50]
movsd qword [rdx + rcx], xmm0
mov eax, dword [rbp - 0x48]
mov dword [rdx + rcx + 8], eax
add dword [rsi + 0xbc], r12d
jmp 0x140046ac5
xor eax, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x140046a65
mov rax, qword [rcx]
lea r9, [rsp + 0x30]
lea rdx, [rbp - 0x50]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r14, rax
mov r8d, dword [rsp + 0x30]
jmp 0x140046ab4
lea rbx, [r15 + 0x320]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], WSAGetLastError
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rsp + 0x30]
mov edx, r12d
lea rcx, [rbp - 0x50]
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 0x140046ab4
lea r14, [rbp - 0x50]
mov rdx, r14
mov rcx, rsi
call fcn.14008ab60
mov r14d, 0x100
cmp byte [rdi + 0x4d8], 0
je 0x140046db3
mov rcx, qword [rdi + 0x4b0]
mov rcx, qword [rcx + 0x90]
call fcn.14007cd90
mov rax, qword [rdi + 0x4b0]
mov rcx, qword [rax + 0x90]
mov dword [rcx + 4], Ordinal_102
mov rax, qword [rdi + 0x4b0]
mov ebx, 1
mov dword [rax + 0xc], ebx
lea rdx, [rdi + 0xc]
xor r15d, r15d
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], recvfrom
mov byte [rbp - 0x30], r15b
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], r15b
jne 0x140046b30
lea rcx, [rbp - 0x30]
call fcn.140017150
nop
mov rax, qword [rdi + 0x4b0]
mov rcx, qword [rax + 0x90]
add rcx, 0x7d8
lea rdx, [rbp - 0x30]
call fcn.14004a140
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
mov esi, dword [rax + 0x10]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140046ba7
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046ba2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400474cb
call fcn.140147b54
mov r9d, dword [rdi + 0x854]
mov r8d, dword [rdi + 0x850]
mov eax, r9d
imul eax, dword [rsp + 0x54]
xor edx, edx
div r8d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x50], cx
mov eax, r9d
imul eax, esi
xor edx, edx
div r8d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x4e], cx
mov eax, r9d
imul eax, dword [rsp + 0x48]
xor edx, edx
div r8d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x4c], cx
imul r9d, dword [rsp + 0x4c]
xor edx, edx
mov eax, r9d
div r8d
mov ecx, eax
shr ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x4a], cx
mov dword [rbp - 0x48], 0xcdfeffff
mov dword [rsp + 0x38], r15d
mov word [rsp + 0x3a], r14w
mov byte [rsp + 0x38], 0
mov rsi, qword [rdi + 0x3b0]
cmp qword [rsi + 0x10], 0xffffffffffffffff
jne 0x140046c7f
lea r8, str.vncClient::SendRFBMsgQueue_:_failed_to_send_RFB_message_to_client_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x140046cbd
cmp byte [rsi + 0x32], 0
jne 0x140046caa
cmp byte [rsi + 0x30], 0
je 0x140046caa
mov rax, qword [rsi + 0x20]
cmp byte [rax + 0x39], 0
je 0x140046caa
mov byte [rsp + 0x30], 0
mov r8d, ebx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14008af60
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.14008af60
mov rsi, qword [rdi + 0x3b0]
cmp qword [rsi + 0x10], 0xffffffffffffffff
je 0x140046db3
cmp byte [rsi + 0x30], 0
je 0x140046da1
mov r15, qword [rsi + 0x20]
cmp byte [r15 + 0x39], 0
je 0x140046da1
cmp byte [rsi + 0xb8], 0
je 0x140046d2b
movsxd rcx, dword [rsi + 0xbc]
mov rdx, qword [rsi + 0xb0]
movsd xmm0, qword [rbp - 0x50]
movsd qword [rdx + rcx], xmm0
mov eax, dword [rbp - 0x48]
mov dword [rdx + rcx + 8], eax
add dword [rsi + 0xbc], 0xc
mov esi, 1
xor r14d, r14d
mov dword [rdi + 0x394], r14d
jmp 0x140046fd2
xor eax, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x140046d56
mov rax, qword [rcx]
lea r9, [rsp + 0x30]
mov r8d, r12d
lea rdx, [rbp - 0x50]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r14, rax
mov r12d, dword [rsp + 0x30]
jmp 0x140046da5
lea rbx, [r15 + 0x320]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], WSAGetLastError
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rsp + 0x30]
mov edx, r12d
lea rcx, [rbp - 0x50]
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 0x140046da5
lea r14, [rbp - 0x50]
mov r8d, r12d
mov rdx, r14
mov rcx, rsi
call fcn.14008ab60
mov esi, 1
xor r14d, r14d
mov dword [rdi + 0x394], r14d
jmp 0x140046fd2
mov r15, qword [rbp - 0x80]
sub r15, qword [rsp + 0x78]
sar r15, 4
cmp dword [rdi + 0x4a0], 0
je 0x140046df9
mov rax, qword [rsp + 0x68]
sub rax, qword [rsp + 0x60]
sar rax, 4
cmp rax, 5
jbe 0x140046df6
inc r15d
jmp 0x140046df9
add r15d, eax
cmp r15d, 0xffff
je 0x140046e75
mov rbx, qword [rbp - 0x68]
cmp rbx, qword [rbp - 0x60]
je 0x140046e75
nop dword [rax]
cmp byte [rdi + 0x460], 0
jne 0x140046e34
cmp byte [rdi + 0x450], 0
jne 0x140046e34
mov rcx, qword [rdi + 0x408]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
jmp 0x140046e5c
mov eax, dword [rbx + 8]
mov dword [rbp - 0x38], eax
mov eax, dword [rbx]
mov dword [rbp - 0x40], eax
mov eax, dword [rbx + 4]
mov dword [rbp - 0x3c], eax
mov eax, dword [rbx + 0xc]
mov dword [rbp - 0x34], eax
mov rcx, qword [rdi + 0x408]
mov rax, qword [rcx]
lea rdx, [rbp - 0x40]
call qword [rax + 0x18]
test eax, eax
je 0x140046e6f
add r15d, eax
add rbx, 0x10
cmp rbx, qword [rbp - 0x60]
jne 0x140046e10
jmp 0x140046e75
mov r15d, 0xffff
cmp dword [rdi + 0x4a0], 0
jne 0x140046ef9
cmp r15d, 0xffff
je 0x140046ef9
mov rbx, qword [rsp + 0x60]
cmp rbx, qword [rsp + 0x68]
je 0x140046ef9
cmp byte [rdi + 0x460], 0
jne 0x140046eb7
cmp byte [rdi + 0x450], 0
jne 0x140046eb7
mov rcx, qword [rdi + 0x408]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
jmp 0x140046edf
mov eax, dword [rbx + 8]
mov dword [rbp - 0x38], eax
mov eax, dword [rbx]
mov dword [rbp - 0x40], eax
mov eax, dword [rbx + 4]
mov dword [rbp - 0x3c], eax
mov eax, dword [rbx + 0xc]
mov dword [rbp - 0x34], eax
mov rcx, qword [rdi + 0x408]
mov rax, qword [rcx]
lea rdx, [rbp - 0x40]
call qword [rax + 0x18]
test eax, eax
jne 0x140046eeb
mov r15d, 0xffff
jmp 0x140046eee
add r15d, eax
add rbx, 0x10
cmp rbx, qword [rsp + 0x68]
jne 0x140046e93
mov rax, qword [rdi + 0x408]
cmp dword [rax + 0x88], 0
jne 0x140046f19
cmp dword [rax + 0x8c], 0
jne 0x140046f19
mov dword [rdi + 0x664], r14d
cmp r15d, 0xffff
je 0x140046f4d
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 0x140046f4a
mov esi, r14d
jmp 0x140046fd2
mov r15d, ecx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], 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 0x140047008
lea r8, str.vncClient::SendRFBMsgQueue_:_failed_to_send_RFB_message_to_client_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018d00
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 - 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x60]
call fcn.1400474e0
mov eax, esi
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140147af0
mov rbx, qword [rsp + 0x250]
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 0x140047038
cmp byte [rbx + 0x30], 0
je 0x140047038
mov rax, qword [rbx + 0x20]
cmp byte [rax + 0x39], 0
je 0x140047038
mov byte [rsp + 0x30], 0
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14008af60
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14008af60
mov r12d, reloc.WS2_32.dll_inet_ntoa
cmp dword [rdi + 0x664], 0
je 0x1400470d1
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.14005a9b0
test eax, eax
jne 0x1400470cb
mov dword [rdi + 0x668], r14d
mov rdx, qword [rdi + 0x408]
mov qword [rbp - 0x50], r14
mov eax, 0x11ffffff
mov ecx, 0x10ffffff
cmp dword [rdx + 0x88], 0
cmovne eax, ecx
mov dword [rbp - 0x48], eax
mov r8d, r12d
lea rdx, [rbp - 0x50]
mov rcx, qword [rdi + 0x3b0]
call fcn.14008af60
test eax, eax
jne 0x1400470d1
jmp 0x140046fc3
mov dword [rdi + 0x668], esi
cmp dword [rdi + 0x66c], 0
je 0x14004713b
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 - 0x50], cx
mov eax, dword [rdi + 0x678]
mov ecx, eax
sar ecx, 8
and cx, r13w
shl ax, 8
or cx, ax
mov word [rbp - 0x4e], cx
mov dword [rbp - 0x4c], r14d
mov dword [rbp - 0x48], 0x18ffffff
mov r8d, r12d
lea rdx, [rbp - 0x50]
mov rcx, qword [rdi + 0x3b0]
call fcn.14008af60
test eax, eax
je 0x140046fc3
mov rbx, qword [rsp + 0x78]
cmp rbx, qword [rbp - 0x80]
je 0x140047295
mov eax, dword [rbp - 0x6c]
neg eax
mov dword [rsp + 0x3c], eax
mov ecx, dword [rbp - 0x70]
neg ecx
mov dword [rsp + 0x34], ecx
nop dword [rax]
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 - 0x50], 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 - 0x4e], 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 - 0x4c], 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 - 0x4a], cx
mov dword [rbp - 0x48], 0x1000000
sub r11d, r9d
add r11d, dword [rsp + 0x34]
xor edx, edx
mov eax, r11d
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 - 0x50]
mov rcx, qword [rdi + 0x3b0]
call fcn.14008af60
test eax, eax
je 0x140046fc3
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x3b0]
call fcn.14008af60
test eax, eax
je 0x140046fc3
add rbx, 0x10
cmp rbx, qword [rbp - 0x80]
mov eax, dword [rsp + 0x3c]
jne 0x140047160
mov esi, 1
xor r14d, r14d
cmp dword [rdi + 0x4a0], 0
je 0x1400473f9
mov rax, qword [rsp + 0x68]
sub rax, qword [rsp + 0x60]
mov r9, rax
sar r9, 4
cmp r9, 5
jbe 0x1400472d3
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140047ae0
test eax, eax
jne 0x14004740e
jmp 0x140046fc3
cmp rax, 0x10
jb 0x14004740e
lea r8, str.vncClient::SendCacheRectangles_:__Sending__d_Cache_Rects__r_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov rbx, qword [rsp + 0x60]
cmp rbx, qword [rsp + 0x68]
je 0x14004740e
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 - 0x50], 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 - 0x4e], 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 - 0x4c], 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 - 0x4a], cx
mov dword [rbp - 0x48], 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 - 0x50]
mov rcx, qword [rdi + 0x3b0]
call fcn.14008af60
test eax, eax
je 0x140046fc3
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x3b0]
call fcn.14008af60
test eax, eax
je 0x140046fc3
add rbx, 0x10
jmp 0x1400472fa
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400475e0
test eax, eax
je 0x140046fc3
lea rdx, [rbp - 0x68]
mov rcx, rdi
call fcn.1400475e0
test eax, eax
je 0x140046fc3
cmp r15d, 0xffff
jne 0x140047469
mov rcx, qword [rdi + 0x408]
mov rax, qword [rcx]
mov rdx, qword [rdi + 0x3b0]
call qword [rax + 0x58]
mov qword [rbp - 0x50], 0
mov dword [rbp - 0x48], 0x20ffffff
mov r8d, r12d
lea rdx, [rbp - 0x50]
mov rcx, qword [rdi + 0x3b0]
call fcn.14008af60
test eax, eax
je 0x140046fc3
mov rbx, qword [rdi + 0x3b0]
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x140046fc7
cmp dword [rbx + 0x23ec], 0
je 0x1400474b3
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.14008b380
test al, al
je 0x140046fc7
mov dword [rbx + 0x23ec], r14d
mov rax, qword [0x14022a710]
mov ecx, dword [rax + 0xd14]
mov dword [rbx + 0x23f0], ecx
jmp 0x140046fc7
call fcn.14014e6c8
int3