Function at 0x140079238
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
xor ebx, ebx
lea r8, [rbp - 0x41]
lea rdx, str._Open___s___
mov qword [rbp - 0x41], rbx
mov dword [rbp + 0x7f], ebx
mov rdi, rcx
mov dword [rbp - 0x35], ebx
mov dword [rbp - 0x49], ebx
mov dword [rbp - 0x39], ebx
call fcn.1400b1124
mov r14, rax
test rax, rax
jne 0x1400792f5
lea rax, [rbp - 0x39]
mov rcx, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x7f]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x41]
lea rax, [rbp - 0x35]
lea rdx, str._Open___s___u__u__u__u__
mov qword [rsp + 0x20], rax
call fcn.1400b1124
mov r14, rax
test rax, rax
jne 0x1400792f5
lea rax, [rbp - 0x49]
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x7f]
lea rax, [rbp - 0x35]
lea r8, [rbp - 0x41]
mov qword [rsp + 0x20], rax
lea rdx, str._Open___s___u__u__u__
call fcn.1400b1124
mov r14, rax
test rax, rax
je 0x140079634
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
mov r9d, dword [rbp - 0x35]
lea rcx, str.HandleOpenCmd:__s__newWindow:__d__setFocus:__d__forceRefresh:__d__inCurrentTab:__d__isCtrl:__d_n
mov r8d, dword [rbp + 0x7f]
mov rdx, qword [rbp - 0x41]
shr ax, 0xf
movzx r13d, al
mov eax, dword [rbp - 0x39]
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x49]
mov dword [rsp + 0x20], eax
mov dword [rbp - 0x31], r13d
call fcn.1400b3458
cmp byte [0x14017225e], bl
je 0x140079364
lea rcx, str.HandleOpenCmd:_gIsStartup__appending_to_gDdeOpenOnStartup_n
call fcn.1400b3458
mov rdx, qword [rbp - 0x41]
lea rcx, [0x14016ed40]
or r8d, 0xffffffff
call fcn.1400bb18c
jmp 0x140079631
cmp dword [rbp + 0x7f], ebx
je 0x140079380
cmp dword [rbp - 0x39], ebx
je 0x14007937d
lea rcx, str.HandleOpenCmd:_setting_inCurrentTab_to_0_because_newWindow___0_n
mov dword [rbp - 0x39], ebx
call fcn.1400b3458
cmp dword [rbp + 0x7f], ebx
mov rsi, qword [0x14016df60]
sete r15b
mov r12, qword [0x14016df48]
mov rdi, rbx
mov byte [rbp + 0x77], r15b
lea rax, [rsi + r12*8]
mov qword [rbp - 0x21], rax
cmp rsi, rax
je 0x140079417
mov rax, qword [rsi]
xor r9d, r9d
xor r8d, r8d
mov qword [rbp - 0x29], rax
mov edx, 0x1304
mov rcx, qword [rax + 0x168]
mov rcx, qword [rcx + 0x48]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r13, rax
test eax, eax
je 0x14007942d
mov r15d, ebx
test r13d, r13d
jle 0x140079400
mov rax, qword [rbp - 0x29]
mov edx, r15d
mov rcx, qword [rax + 0x168]
call fcn.1400afe20
mov rcx, qword [rax + 0x18]
call fcn.14009f448
test al, al
je 0x14007942d
inc r15d
cmp r15d, r13d
jl 0x1400793d8
mov rdi, qword [rsi]
lea rcx, str.HandleOpenCmd:_found_empty_existing_window_n
call fcn.1400b3458
mov r13d, dword [rbp - 0x31]
mov r15b, byte [rbp + 0x77]
cmp dword [rbp + 0x7f], ebx
jle 0x14007945c
test rdi, rdi
je 0x14007943d
lea rcx, str.HandleOpenCmd:_newWindow___0__using_empty_existing_window_n
jmp 0x140079592
add rsi, 8
cmp rsi, qword [rbp - 0x21]
jne 0x1400793a6
jmp 0x14007940f
xor ecx, ecx
call fcn.140082ccc
lea rcx, str.HandleOpenCmd:_newWindow___0__created_new_window_n
mov rdi, rax
call fcn.1400b3458
test rdi, rdi
jne 0x140079597
mov rsi, qword [rbp - 0x41]
test rsi, rsi
je 0x1400794fb
mov rcx, qword [0x1401722e0]
test rcx, rcx
je 0x140079497
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rax
mov rdx, rsi
call fcn.1400b478c
test al, al
je 0x140079497
call fcn.14007fe14
mov rdi, rax
test rax, rax
jne 0x1400794a7
mov rcx, rsi
call fcn.14007fef8
mov rdi, rax
test rax, rax
je 0x1400794fb
test r15b, r15b
je 0x1400794b4
mov rcx, rdi
call fcn.140080000
mov rdi, qword [rdi + 0x10]
test rdi, rdi
je 0x1400794fb
mov rdx, qword [rbp - 0x41]
lea rcx, str.HandleOpenCmd:_found_existing_window_with_file__s_n
call fcn.1400b3458
mov rcx, rdi
call fcn.140066cf4
test al, al
jne 0x1400795f6
xor edx, edx
mov rcx, rdi
call fcn.1400822e0
lea rcx, str.HandleOpenCmd:_existing_tab_was_not_loaded__so_reloaded__set_forceRefresh__0_n
mov dword [rbp - 0x49], ebx
call fcn.1400b3458
jmp 0x1400795f6
cmp r12d, 1
jne 0x140079535
cmp qword [0x14016df48], rbx
ja 0x14007951a
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14007951a
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov rax, qword [0x14016df60]
lea rcx, str.HandleOpenCmd:_using_the_only_window_n
mov rdi, qword [rax]
call fcn.1400b3458
test rdi, rdi
jne 0x140079597
mov rcx, qword [0x1401722d8]
call fcn.140067de4
mov rdi, rax
lea rcx, str.HandleOpenCmd:_found_last_active_window_n
lea rax, str.HandleOpenCmd:_didnt_find_last_active_window_n
test rdi, rdi
cmove rcx, rax
call fcn.1400b3458
test rdi, rdi
jne 0x140079597
test r12d, r12d
jle 0x140079597
cmp qword [0x14016df48], rbx
ja 0x140079581
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140079581
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov rax, qword [0x14016df60]
lea rcx, str.HandleOpenCmd:_first_window_n
mov rdi, qword [rax]
call fcn.1400b3458
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x19]
mov r8, rdi
call fcn.14007f674
xor r13b, 1
lea rcx, str.HandleOpenCmd:_calling_LoadDocument____activateExisting:__d_n
cmp dword [rbp + 0x7f], ebx
movzx eax, r13b
cmovne eax, ebx
movzx edx, al
mov byte [rbp - 1], al
call fcn.1400b3458
lea rcx, [rbp - 0x19]
call fcn.140083b44
mov rdi, rax
test rax, rax
jne 0x1400795e8
mov rdx, qword [rbp - 0x41]
lea rcx, str.HandleOpenCmd:_LoadDocument___for__s_failed_n
call fcn.1400b3458
lea rcx, [rbp - 0x19]
call fcn.14007f82c
test rdi, rdi
je 0x14007962a
cmp dword [rbp - 0x49], ebx
je 0x140079611
lea rcx, str.HandleOpenCmd:_forceRefresh___0_so_calling_ReloadDocument___n
call fcn.1400b3458
mov dl, 1
mov rcx, rdi
call fcn.1400822e0
cmp dword [rbp - 0x35], ebx
je 0x14007962a
lea rcx, str.HandleOpenCmd:_setFocus___0_so_calling_win__Focus___n
call fcn.1400b3458
mov rcx, rdi
call fcn.140067130
mov rax, qword [rbp + 0x6f]
mov byte [rax], 1
mov rbx, r14
mov rcx, qword [rbp - 0x41]
call fcn.140107298
mov rax, rbx
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret