Function at 0x140056d40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov rdi, rcx
lea rax, vtable.ui::RichEdit.0
mov qword [rcx - 0x9b0], rax
mov rax, qword [rcx - 0x9a8]
movsxd rdx, dword [rax + 4]
lea rax, vtable.ui::RichEdit.1.0
mov qword [rdx + rcx - 0x9a8], rax
mov rcx, qword [rcx - 0x290]
test rcx, rcx
je 0x140056dbc
mov rax, qword [rcx]
mov rdx, qword [rax + 0x10]
lea r8, vtable.ui::CTxtWinHost.0
cmp rax, r8
jne 0x1400572cf
add dword [rcx + 0x10], 0xffffffff
jne 0x140056dbc
mov edx, 1
call qword [rax + 0x150]
nop
mov rbx, qword [rdi - 0x18]
mov esi, 0xffffffff
test rbx, rbx
je 0x140056df5
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140056df5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
nop
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140056df5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
lea rcx, [rdi - 0xa0]
call fcn.140008f30
nop
mov rcx, qword [rdi - 0xb8]
xor ebp, ebp
test rcx, rcx
je 0x140056e98
mov rdx, qword [rdi - 0xb0]
call fcn.14005d490
nop
mov r8, qword [rdi - 0xb8]
mov rcx, qword [rdi - 0xa8]
sub rcx, r8
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
cmp rdx, 0x1000
jb 0x140056e7a
add rdx, 0x27
mov rcx, qword [r8 - 8]
sub r8, rcx
lea rax, [r8 - 8]
cmp rax, 0x1f
ja 0x1400572d7
mov r8, rcx
mov rcx, r8
call fcn.14017b7ac
nop
mov qword [rdi - 0xb8], rbp
mov qword [rdi - 0xb0], rbp
mov qword [rdi - 0xa8], rbp
mov r9, qword [rdi - 0xc8]
mov r8, qword [r9]
lea rdx, [rsp + 0x50]
lea rcx, [rdi - 0xc8]
call fcn.14005d150
nop
mov edx, 0x40
mov rcx, qword [rdi - 0xc8]
call fcn.14017b7ac
nop
lea rbx, [rdi - 0x108]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140056ee7
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
nop
mov qword [rbx + 0x38], rbp
mov rcx, qword [rdi - 0x110]
test rcx, rcx
je 0x140056f06
mov eax, esi
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x140056f06
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rax, vtable.nbase::SupportWeakCallback.0
mov qword [rdi - 0x130], rax
mov rbx, qword [rdi - 0x120]
test rbx, rbx
je 0x140056f49
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140056f49
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
nop
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140056f49
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
mov rdx, qword [rdi - 0x138]
cmp rdx, 8
jb 0x140056f90
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi - 0x150]
cmp rdx, 0x1000
jb 0x140056f8a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400572dd
mov rcx, r8
call fcn.14017b7ac
nop
mov qword [rdi - 0x140], rbp
mov qword [rdi - 0x138], 7
mov word [rdi - 0x150], bp
mov rdx, qword [rdi - 0x158]
cmp rdx, 8
jb 0x140056ff0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi - 0x170]
cmp rdx, 0x1000
jb 0x140056fea
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400572e3
mov rcx, r8
call fcn.14017b7ac
nop
mov qword [rdi - 0x160], rbp
mov qword [rdi - 0x158], 7
mov word [rdi - 0x170], bp
mov rdx, qword [rdi - 0x178]
cmp rdx, 8
jb 0x140057050
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi - 0x190]
cmp rdx, 0x1000
jb 0x14005704a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400572e9
mov rcx, r8
call fcn.14017b7ac
nop
mov qword [rdi - 0x180], rbp
mov qword [rdi - 0x178], 7
mov word [rdi - 0x190], bp
mov rdx, qword [rdi - 0x198]
cmp rdx, 8
jb 0x1400570b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi - 0x1b0]
cmp rdx, 0x1000
jb 0x1400570aa
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400572ef
mov rcx, r8
call fcn.14017b7ac
nop
mov qword [rdi - 0x1a0], rbp
mov qword [rdi - 0x198], 7
mov word [rdi - 0x1b0], bp
mov rdx, qword [rdi - 0x1b8]
cmp rdx, 8
jb 0x140057110
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi - 0x1d0]
cmp rdx, 0x1000
jb 0x14005710a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400572f5
mov rcx, r8
call fcn.14017b7ac
nop
mov qword [rdi - 0x1c0], rbp
mov qword [rdi - 0x1b8], 7
mov word [rdi - 0x1d0], bp
mov rdx, qword [rdi - 0x1d8]
cmp rdx, 8
jb 0x140057170
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi - 0x1f0]
cmp rdx, 0x1000
jb 0x14005716a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400572fb
mov rcx, r8
call fcn.14017b7ac
nop
mov qword [rdi - 0x1e0], rbp
mov qword [rdi - 0x1d8], 7
mov word [rdi - 0x1f0], bp
mov rdx, qword [rdi - 0x1f8]
cmp rdx, 8
jb 0x1400571d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi - 0x210]
cmp rdx, 0x1000
jb 0x1400571ca
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140057301
mov rcx, r8
call fcn.14017b7ac
nop
mov qword [rdi - 0x200], rbp
mov qword [rdi - 0x1f8], 7
mov word [rdi - 0x210], bp
mov rdx, qword [rdi - 0x218]
cmp rdx, 8
jb 0x140057230
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi - 0x230]
cmp rdx, 0x1000
jb 0x14005722a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400572c3
mov rcx, r8
call fcn.14017b7ac
nop
mov qword [rdi - 0x220], rbp
mov qword [rdi - 0x218], 7
mov word [rdi - 0x230], bp
mov rdx, qword [rdi - 0x248]
cmp rdx, 8
jb 0x14005728c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi - 0x260]
cmp rdx, 0x1000
jb 0x140057286
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400572c9
mov rcx, r8
call fcn.14017b7ac
nop
mov qword [rdi - 0x250], rbp
mov qword [rdi - 0x248], 7
mov word [rdi - 0x260], bp
lea rcx, [rdi - 0x290]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
jmp fcn.14003f780
call fcn.1401b08a0
nop
call fcn.1401b08a0
nop
call rdx
nop
jmp 0x140056dbc
call fcn.1401b08a0
nop
call fcn.1401b08a0
nop
call fcn.1401b08a0
nop
call fcn.1401b08a0
nop
call fcn.1401b08a0
nop
call fcn.1401b08a0
nop
call fcn.1401b08a0
nop
call fcn.1401b08a0
nop
int3