Function at 0x14004a180
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xc0
mov r8, qword [rbp + 0x7f]
mov rdx, qword [rbp + 0x77]
mov rcx, qword [rbp + 0x6f]
mov rdi, r9
mov r9, qword [rbp + 0x87]
call fcn.1400678c0
mov r12, rax
mov qword [rbp - 0x59], rax
test rax, rax
je 0x14004a3cf
mov rsi, qword [rbp + 0x67]
mov r14d, 2
xor r13b, r13b
cmp word [rdi], 0
mov byte [rsp + 0x31], 1
mov dword [rsp + 0x38], 0x80000000
lea r15d, [r14 - 1]
mov qword [rbp - 0x71], r14
mov dword [rbp - 0x61], r14d
mov dword [rbp - 0x7d], 0x80000000
je 0x14004a2f2
lea r12, [rdi + 2]
xor esi, esi
movzx ebx, word [rdi]
test ebx, 0xffffff80
jne 0x14004a22e
mov edx, r14d
mov ecx, ebx
call fcn.1400cadb8
test eax, eax
je 0x14004a22e
and ebx, 0xffffffdf
movzx eax, bx
add eax, 0xffffffbc
cmp eax, 0x15
ja case.0x14004a258.69
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x4ac18]
mov ecx, dword [rdx + rax*4 + 0x4abfc]
add rcx, rdx
jmp rcx
mov dword [rbp - 0x61], esi
jmp case.0x14004a258.69
mov dword [rbp - 0x61], r15d
jmp case.0x14004a258.69
movzx ebx, word [r12]
test ebx, 0xffffff80
jne 0x14004a283
mov edx, r14d
mov ecx, ebx
call fcn.1400cadb8
test eax, eax
je 0x14004a283
and ebx, 0xffffffdf
cmp bx, 0x41
jne case.0x14004a258.69
add rdi, r14
mov byte [rsp + 0x31], sil
add r12, r14
jmp case.0x14004a258.69
lea rdx, [0x1400ec310]
mov r8d, 3
mov rcx, rdi
call fcn.1400c9ac4
test eax, eax
jne case.0x14004a258.69
add rdi, 4
movzx r13d, r15b
add r12, 4
jmp case.0x14004a258.69
mov rcx, r12
call fcn.1400caddc
mov dword [rsp + 0x38], eax
jmp case.0x14004a258.69
mov rcx, r12
call fcn.1400caddc
mov dword [rbp - 0x7d], eax
add rdi, r14
add r12, r14
cmp word [rdi], si
jne 0x14004a212
mov rsi, qword [rbp + 0x67]
mov r12, qword [rbp - 0x59]
test r13b, r13b
jne 0x14004a30d
mov rdx, rsi
mov rcx, r12
call fcn.1400b2c40
mov r14, rax
test rax, rax
jne 0x14004a484
lea r14d, [rax + 2]
xor edi, edi
lea rcx, [rbp - 0x3d]
xor edx, edx
lea r8d, [rdi + 0x2c]
mov dword [rbp - 0x41], edi
call fcn.1400d0130
mov byte [rbp - 0x19], r15b
movzx eax, word [rsi]
cmp ax, 0x20
je 0x14004a334
cmp ax, 9
jne 0x14004a33a
add rsi, 2
jmp 0x14004a325
movzx ebx, word [rsi]
test ebx, 0xffffff80
jne 0x14004a356
mov edx, r14d
mov ecx, ebx
call fcn.1400cadb8
test eax, eax
je 0x14004a356
and ebx, 0xffffffdf
cmp bx, 0x58
jne 0x14004a3cf
cmp word [rsi + 2], di
lea rbx, [rsi + 2]
je 0x14004a3cf
mov rcx, rbx
call fcn.140014950
mov rcx, rbx
test al, al
je 0x14004a382
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400cb340
jmp 0x14004a387
call fcn.1400caddc
movzx edx, word [rbx]
mov dword [rbp - 0x41], eax
test dx, dx
je 0x14004a3cf
nop word [rax + rax]
lea rcx, [0x1400e56d0]
mov eax, SafeArrayAllocDescriptor
nop dword [rax]
cmp dx, ax
je 0x14004a3f5
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14004a3b0
movzx edx, word [rbx + 2]
add rbx, 2
test dx, dx
jne 0x14004a3a0
mov rcx, qword [rbp + 0x47]
mov dl, 1
call fcn.14003ef50
mov rbx, qword [rsp + 0x118]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x20
je 0x14004a3f5
cmp ax, 9
je 0x14004a3f5
movzx ecx, ax
test ax, ax
je 0x14004a3cf
call fcn.1400cbccc
cmp ax, 0x59
jne 0x14004a3cf
cmp word [rbx + 2], di
lea rcx, [rbx + 2]
je 0x14004a3cf
call fcn.1400149c0
lea rdx, [rbp - 0x11]
mov rcx, r12
mov dword [rbp - 0x3d], eax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r11d, dword [rbp - 0x11]
mov eax, dword [rbp - 0xd]
add dword [rbp - 0x41], r11d
lea r8, [rbp - 0x41]
add dword [rbp - 0x3d], eax
lea rdx, [0x140058fd0]
mov rcx, r12
call qword [sym.imp.USER32.dll_EnumChildWindows]
mov rax, qword [rbp - 0x29]
mov r14, r12
test rax, rax
lea rdx, [rsp + 0x38]
cmovne r14, rax
mov rax, qword [rbp - 0x41]
mov rcx, r14
mov qword [rsp + 0x38], rax
call qword [sym.imp.USER32.dll_ScreenToClient]
jmp 0x14004a486
xor edi, edi
mov edx, dword [rbp + 0x57]
cmp edx, r15d
jge 0x14004a747
mov rdi, qword [0x140118280]
movzx eax, byte [rdi + 0x23]
test al, al
jne 0x14004a4c5
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400e24fc]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], r15b
call fcn.1400b04d0
mov r15d, eax
jmp 0x14004a3da
lea r12, [0x1400e24fc]
cmp qword [rdi + 8], r12
jne 0x14004a4db
mov r13, qword [rdi + 0x10]
shr r13, 1
jmp 0x14004a4de
mov r13, r15
lea rcx, [r13 + 1]
lea rsi, [rcx + rcx]
cmp al, 2
jne 0x14004a4fd
mov rdx, r13
mov rcx, r12
call fcn.140006120
mov r15d, eax
jmp 0x14004a3da
mov r8, qword [0x140112460]
cmp rsi, r8
jbe 0x14004a531
cmp rsi, qword [rdi + 0x18]
jbe 0x14004a531
lea r8, [0x1400e245c]
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x140119150]
call fcn.1400404f0
mov r15d, eax
jmp 0x14004a3da
cmp rcx, 2
jae 0x14004a54e
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 4]
call fcn.1400b0b80
mov eax, r15d
jmp 0x14004a3da
movzx eax, byte [rdi + 0x21]
test al, 2
je 0x14004a56b
mov rcx, qword [rdi]
and al, 0x3d
mov byte [rdi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r8, qword [0x140112460]
mov r9, qword [rdi + 0x18]
and byte [rdi + 0x21], 0x82
cmp rsi, r9
jbe 0x14004a6e9
movzx r10d, byte [rdi + 0x20]
movzx eax, r10b
cmp r10b, r15b
jbe 0x14004a59b
cmp al, 2
je 0x14004a5dc
mov rbx, qword [rbp - 0x69]
mov rax, qword [rbp - 0x69]
jmp 0x14004a6dd
mov ebx, 0x80
cmp rsi, rbx
ja 0x14004a5dc
cmp rsi, 8
ja 0x14004a5b2
mov ebx, 8
jmp 0x14004a5bf
cmp rsi, 0x10
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400a9650
test rax, rax
jne 0x14004aad8
xor edx, edx
mov r15d, edx
mov eax, edx
jmp 0x14004a3da
cmp rsi, 0x20
jae 0x14004a5ec
mov ebx, SafeArrayAllocDescriptor
jmp 0x14004a69b
cmp rsi, 0x208
jae 0x14004a5ff
mov ebx, 0x208
jmp 0x14004a69b
cmp rsi, 0x50000
jae 0x14004a657
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x14004a61e
addsd xmm0, qword [0x140100da8]
mulsd xmm0, qword [0x140100de0]
movsd xmm1, qword [0x140100dd8]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14004a64d
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004a64d
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14004a69b
cmp rsi, 0x320000
jae 0x14004a669
lea rbx, [rsi + 0x8000]
jmp 0x14004a69b
cmp rsi, 0xc80000
jae 0x14004a694
movabs rax, 0x47ae147ae147ae15
mov rbx, rsi
mul rsi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rsi
jmp 0x14004a69b
lea rbx, [rsi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14004a6bc
test r9, r9
je 0x14004a6bc
mov rcx, qword [rdi + 8]
movzx esi, r15b
call fcn.1400ca390
jmp 0x14004a6bf
xor sil, sil
test rbx, rbx
js 0x14004abda
mov rcx, rbx
call fcn.1400c98f4
test rax, rax
je 0x14004abda
mov byte [rdi + 0x20], 2
mov qword [rdi + 8], rax
mov qword [rdi + 0x18], rbx
and byte [rdi + 0x21], 0x7f
mov rcx, qword [rdi + 8]
cmp rcx, r12
je 0x14004a6ff
lea r8, [r13 + r13]
mov rdx, r12
call fcn.1400ca550
mov rax, qword [rdi + 8]
lea rcx, [r13 + r13]
xor edx, edx
mov word [rcx + rax], dx
mov qword [rdi + 0x10], rcx
mov eax, r15d
jmp 0x14004a3da
mov rax, qword [rdi + 8]
mov word [rax], dx
mov qword [rdi + 0x10], rdx
lea r8, [0x1400e245c]
lea rcx, [0x140119150]
lea rdx, [0x1400e5580]
call fcn.1400404f0
mov r15d, eax
jmp 0x14004a3da
cmp dword [rsp + 0x38], 0x80000000
je 0x14004a75a
cmp dword [rbp - 0x7d], 0x80000000
jne 0x14004a7a2
lea rdx, [rbp - 0x51]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x14004a3cf
cmp dword [rsp + 0x38], 0x80000000
jne 0x14004a788
mov eax, dword [rbp - 0x49]
sub eax, dword [rbp - 0x51]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x38], eax
cmp dword [rbp - 0x7d], 0x80000000
jne 0x14004a79f
mov eax, dword [rbp - 0x45]
sub eax, dword [rbp - 0x4d]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp - 0x7d], eax
mov edx, dword [rbp + 0x57]
movzx esi, byte [rbp + 0x4f]
mov qword [rbp - 0x69], rdi
cmp sil, 0x9f
je 0x14004a7bb
cmp sil, 0x9e
je 0x14004a7bb
xor dil, dil
jmp 0x14004a7bf
movzx edi, r15b
cmp sil, 0x9c
je 0x14004a7cf
cmp sil, 0x9d
je 0x14004a7cf
xor bl, bl
jmp 0x14004a7d3
movzx ebx, r15b
test dil, dil
je 0x14004a819
lea rdx, [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp + 0x57]
mov r12d, dword [rbp - 0x79]
cmp sil, 0x9f
mov eax, 0x78
mov r11d, 0xffffff88
cmove r11d, eax
mov esi, 0x20a
imul r11d, edx
shl r11d, 0x10
movsxd rcx, r11d
mov qword [rbp - 0x71], rcx
jmp 0x14004a8c7
test bl, bl
je 0x14004a848
mov r12d, dword [rbp - 0x79]
cmp sil, 0x9c
mov eax, 0x78
mov r11d, 0xffffff88
mov esi, 0x20e
cmove eax, r11d
imul eax, edx
shl eax, 0x10
movsxd rcx, eax
mov qword [rbp - 0x71], rcx
jmp 0x14004a8c7
movzx ecx, sil
dec ecx
je 0x14004a8ba
dec ecx
je 0x14004a8af
sub ecx, 2
je 0x14004a89b
dec ecx
je 0x14004a880
dec ecx
jne 0x14004a3cf
mov esi, 0x20b
mov qword [rbp - 0x69], 0x20000
mov qword [rbp - 0x71], 0x20040
lea r12d, [rsi + 1]
jmp 0x14004a8c7
mov esi, 0x20b
mov qword [rbp - 0x69], 0x10000
mov qword [rbp - 0x71], 0x10020
lea r12d, [rsi + 1]
jmp 0x14004a8c7
mov esi, 0x207
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r12d, [rsi + 1]
mov qword [rbp - 0x71], rax
jmp 0x14004a8c7
mov esi, 0x204
lea r12d, [rsi + 1]
jmp 0x14004a8c7
mov esi, 0x201
mov qword [rbp - 0x71], r15
lea r12d, [rsi + 1]
movzx r13d, word [rbp - 0x7d]
movzx eax, word [rsp + 0x38]
mov byte [rsp + 0x30], 0
shl r13d, 0x10
or r13, rax
cmp byte [rsp + 0x31], 0
je 0x14004a934
mov rcx, qword [rbp - 0x59]
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rbp - 0x79], eax
test eax, eax
je 0x14004a925
cmp eax, dword [0x140119128]
je 0x14004a925
mov rcx, qword [rbp - 0x59]
call fcn.1400b3270
test al, al
jne 0x14004a925
mov edx, dword [rbp - 0x79]
mov ecx, dword [0x140119128]
mov r8d, r15d
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [rsp + 0x30]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [rbp + 0x57]
jmp 0x14004a93a
mov eax, dword [rbp - 0x79]
mov dword [rbp - 0x79], eax
test dil, dil
jne 0x14004a9b7
test bl, bl
jne 0x14004a9b7
movsxd rbx, dword [rbp - 0x61]
test edx, edx
jle 0x14004a9e1
mov edi, edx
cmp rbx, r15
je 0x14004a980
mov r8, qword [rbp - 0x71]
mov r9, r13
mov edx, esi
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
mov r11, qword [0x140112488]
mov ecx, dword [r11 + 0x78]
cmp ecx, 0xffffffff
jle 0x14004a980
mov edx, r15d
call fcn.140001ac0
test rbx, rbx
je 0x14004a9b0
mov r8, qword [rbp - 0x69]
mov r9, r13
mov edx, r12d
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
mov r11, qword [0x140112488]
mov ecx, dword [r11 + 0x78]
cmp ecx, 0xffffffff
jle 0x14004a9b0
mov edx, r15d
call fcn.140001ac0
dec rdi
jne 0x14004a951
jmp 0x14004a9e1
mov r8, qword [rbp - 0x71]
mov r9, r13
mov edx, esi
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
mov r11, qword [0x140112488]
mov ecx, dword [r11 + 0x78]
cmp ecx, 0xffffffff
jle 0x14004a9e1
mov edx, r15d
call fcn.140001ac0
cmp byte [rsp + 0x30], 0
je 0x14004a9fa
mov edx, dword [rbp - 0x79]
mov ecx, dword [0x140119128]
xor r8d, r8d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rdi, qword [0x140118280]
movzx eax, byte [rdi + 0x23]
test al, al
je 0x14004a4a1
lea r12, [0x1400e24fc]
cmp qword [rdi + 8], r12
jne 0x14004aa23
mov r13, qword [rdi + 0x10]
shr r13, 1
jmp 0x14004aa26
mov r13, r15
lea rcx, [r13 + 1]
lea rsi, [rcx + rcx]
cmp al, 2
je 0x14004a4ea
mov r8, qword [0x140112460]
cmp rsi, r8
jbe 0x14004aa4c
cmp rsi, qword [rdi + 0x18]
ja 0x14004a50f
cmp rcx, 2
jb 0x14004a537
movzx eax, byte [rdi + 0x21]
test al, 2
je 0x14004aa73
mov rcx, qword [rdi]
and al, 0x3d
mov byte [rdi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r8, qword [0x140112460]
mov r9, qword [rdi + 0x18]
and byte [rdi + 0x21], 0x82
cmp rsi, r9
jbe 0x14004a6e9
movzx r10d, byte [rdi + 0x20]
movzx eax, r10b
cmp r10b, r15b
jbe 0x14004aaa3
cmp al, 2
je 0x14004aae1
mov rbx, qword [rbp - 0x69]
mov rax, qword [rbp - 0x69]
jmp 0x14004a6dd
mov ebx, 0x80
cmp rsi, rbx
ja 0x14004aae1
cmp rsi, 8
ja 0x14004aaba
mov ebx, 8
jmp 0x14004aac7
cmp rsi, 0x10
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400a9650
test rax, rax
je 0x14004a5d0
mov byte [rdi + 0x20], r15b
jmp 0x14004a6dd
cmp rsi, 0x20
jae 0x14004aaf1
mov ebx, SafeArrayAllocDescriptor
jmp 0x14004aba0
cmp rsi, 0x208
jae 0x14004ab04
mov ebx, 0x208
jmp 0x14004aba0
cmp rsi, 0x50000
jae 0x14004ab5c
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x14004ab23
addsd xmm0, qword [0x140100da8]
mulsd xmm0, qword [0x140100de0]
movsd xmm1, qword [0x140100dd8]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x14004ab52
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004ab52
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14004aba0
cmp rsi, 0x320000
jae 0x14004ab6e
lea rbx, [rsi + 0x8000]
jmp 0x14004aba0
cmp rsi, 0xc80000
jae 0x14004ab99
movabs rax, 0x47ae147ae147ae15
mov rbx, rsi
mul rsi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rsi
jmp 0x14004aba0
lea rbx, [rsi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14004abc1
test r9, r9
je 0x14004abc1
mov rcx, qword [rdi + 8]
movzx esi, r15b
call fcn.1400ca390
jmp 0x14004abc4
xor sil, sil
test rbx, rbx
js 0x14004abda
mov rcx, rbx
call fcn.1400c98f4
test rax, rax
jne 0x14004a6d9
xor edx, edx
test sil, sil
je 0x14004a71a
lea rax, [0x140119108]
mov qword [rdi + 0x18], rdx
mov qword [rdi + 8], rax
jmp 0x14004a721