Function at 0x1400050d0
Capabilities:
Log keystrokes
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
movaps xmmword [rsp + 0x110], xmm6
mov r12, rdx
mov rdi, rcx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x3c], r9d
mov rsi, qword [0x1400c7020]
mov rax, qword [rsi]
cmp rax, 4
jb 0x1400051e0
lea rax, [rsp + 0x38]
mov qword [rsp + 0xb8], rax
lea rax, [fcn.140006ac0]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x190]
mov qword [rsp + 0xc8], rax
lea rax, [sym.__enigo::Direction_as_core::fmt::Debug_::fmt::h04d2a16d7d3711e8]
mov qword [rsp + 0xd0], rax
lea rax, [0x1400c8fd8]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 3
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 2
lea rcx, [0x1400c9008]
call sym.log::__private_api::loc::hc36f68eaf34be5e2
lea rcx, str.enigo::platform::win_impl_home_daniilskli_.cargo_registry_src_index.crates.io_6f17d22bba15001f_enigo_0.2.1_src_win_win_impl.rs
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], 0x19
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0x19
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x88]
lea r8, [rsp + 0x58]
mov edx, 4
xor r9d, r9d
call sym.log::__private_api::log_impl::hd0e26abb112e3348
mov r8d, dword [rsp + 0x38]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 8
mov qword [rsp + 0x50], 0
cmp r8d, 0xfc
jne 0x14000526c
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x140005468
cmp eax, 9
je 0x14000540a
mov r8d, 0xe5
cmp eax, 0xa
je 0x140005410
mov dword [rsp + 0x84], 0
cmp eax, 0xffff
jbe 0x1400054fa
lea ecx, [rax + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and eax, 0x3ff
or eax, 0xdc00
mov word [rsp + 0x86], ax
mov r13d, 2
mov eax, ecx
jmp 0x140005500
mov eax, dword [rsp + 0x3c]
lea rcx, [rsp + 0x58]
mov edx, r8d
mov r8d, eax
call sym._ZN5enigo8keycodes137__LT_impl_u20_core..convert..TryFrom_LT_enigo..keycodes..Key_GT__u20_for_u20_windows..Win32..UI..Input..K
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x140005d1b
movzx r14d, word [rsp + 0x60]
xor ebp, ebp
lea eax, [r14 - 0x21]
cmp eax, 0x84
ja case.0x1400052b3.41
lea rcx, [0x1400c84c0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov rax, qword [rsi]
mov ebp, 1
cmp rax, 4
jb case.0x1400052b3.41
lea rax, [0x1400c9328]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x98], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
lea rcx, [0x1400c9338]
call sym.log::__private_api::loc::hc36f68eaf34be5e2
lea rcx, str.enigo::platform::win_impl_home_daniilskli_.cargo_registry_src_index.crates.io_6f17d22bba15001f_enigo_0.2.1_src_win_win_impl.rs
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], 0x19
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0x19
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x88]
lea r8, [rsp + 0x58]
mov edx, 4
xor r9d, r9d
call sym.log::__private_api::log_impl::hd0e26abb112e3348
movzx eax, byte [rsp + 0x190]
mov rbx, qword [rsp + 0x50]
test al, 1
jne 0x1400053ac
mov r15, qword [r12 + 0x30]
cmp rbx, qword [rsp + 0x40]
jne 0x140005376
lea rcx, [rsp + 0x40]
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::h6028888fe3a3d93d
movzx eax, byte [rsp + 0x190]
mov rcx, qword [rsp + 0x48]
lea rdx, [rbx + rbx*4]
mov dword [rcx + rdx*8], 1
mov word [rcx + rdx*8 + 8], r14w
mov word [rcx + rdx*8 + 0xa], 0
mov dword [rcx + rdx*8 + 0xc], ebp
mov dword [rcx + rdx*8 + 0x10], 0
mov qword [rcx + rdx*8 + 0x18], r15
inc rbx
mov qword [rsp + 0x50], rbx
dec al
cmp al, 1
ja 0x140005abc
mov r15, qword [r12 + 0x30]
cmp rbx, qword [rsp + 0x40]
jne 0x1400053cc
lea rcx, [rsp + 0x40]
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::h6028888fe3a3d93d
or ebp, 2
mov rax, qword [rsp + 0x48]
lea rcx, [rbx + rbx*4]
mov dword [rax + rcx*8], 1
mov word [rax + rcx*8 + 8], r14w
mov word [rax + rcx*8 + 0xa], 0
mov dword [rax + rcx*8 + 0xc], ebp
mov dword [rax + rcx*8 + 0x10], 0
mov qword [rax + rcx*8 + 0x18], r15
inc rbx
mov qword [rsp + 0x50], rbx
jmp 0x140005abc
mov r8d, 0xf3
movzx eax, byte [rsp + 0x190]
mov byte [rsp + 0x20], al
mov rcx, rdi
mov rdx, r12
call sym.__enigo::platform::win_impl::Enigo_as_enigo::Keyboard_::key::hfff48b4cd8ed201e
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140005449
mov rcx, qword [rsp + 0x48]
shl rax, 3
lea rdx, [rax + rax*4]
mov r8d, 8
call sym.__rust_dealloc
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi]
cmp rax, 4
jb 0x140005c03
lea rax, str.entering_Key::Unicode_0__is_a_noop
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x98], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
lea rcx, [0x1400c9058]
call sym.log::__private_api::loc::hc36f68eaf34be5e2
lea rcx, str.enigo::platform::win_impl_home_daniilskli_.cargo_registry_src_index.crates.io_6f17d22bba15001f_enigo_0.2.1_src_win_win_impl.rs
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], 0x19
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0x19
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x88]
lea r8, [rsp + 0x58]
mov edx, 4
xor r9d, r9d
call sym.log::__private_api::log_impl::hd0e26abb112e3348
jmp 0x140005c03
mov r13d, 1
mov word [rsp + 0x84], ax
lea esi, [r13*2]
mov rax, qword [0x1400f56e8]
movzx eax, byte [rax]
mov edx, 2
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x140005d5e
mov r14, rax
lea rdx, [rsp + 0x84]
mov rcx, rax
mov qword [rsp + 0x30], rsi
mov r8, rsi
call sym.memcpy
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 2
mov qword [rsp + 0xe8], 0
add r13d, r13d
xor ebx, ebx
lea r15, [rsp + 0xd8]
jmp 0x1400055a4
mov rax, qword [rsp + 0xe0]
mov word [rax + rsi*2], bp
inc rsi
mov qword [rsp + 0xe8], rsi
add rbx, 2
cmp r13, rbx
je 0x1400058cf
movzx ecx, word [r14 + rbx]
call sub.user32.dll_VkKeyScanW
test ax, ax
js 0x1400055ef
movzx ecx, ax
xor edx, edx
call sub.user32.dll_MapVirtualKeyW
mov ebp, eax
cmp eax, 0xffff
ja 0x1400056d1
test bp, bp
je 0x1400057b8
mov rsi, qword [rsp + 0xe8]
cmp rsi, qword [rsp + 0xd8]
jne 0x140005580
mov rcx, r15
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::h791c7eb605717838
jmp 0x140005580
mov rax, qword [0x1400c7020]
mov rax, qword [rax]
test rax, rax
je 0x1400056af
lea rax, [rsp + 0x2f]
mov qword [rsp + 0xf8], rax
lea rax, [fcn.1400040f0]
mov qword [rsp + 0x100], rax
lea rax, [0x1400c8b48]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rcx, [0x1400c9228]
call sym.log::__private_api::loc::hc36f68eaf34be5e2
lea rcx, str.enigo::platform::win_impl_home_daniilskli_.cargo_registry_src_index.crates.io_6f17d22bba15001f_enigo_0.2.1_src_win_win_impl.rs
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], 0x19
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0x19
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x88]
lea r8, [rsp + 0x58]
mov edx, 1
xor r9d, r9d
call sym.log::__private_api::log_impl::hd0e26abb112e3348
mov qword [rsp + 0xb8], 4
mov ebx, 0x27
mov ecx, 0x10
lea rax, str.key_state_could_not_be_converted_to_u32Could_not_translate_the_character_to_the_corresponding_virtual_key_code_and_shift_state_for_the_current_keyboard
jmp 0x1400057ae
mov rax, qword [0x1400c7020]
mov rax, qword [rax]
test rax, rax
je 0x140005791
lea rax, [rsp + 0x2f]
mov qword [rsp + 0xf8], rax
lea rax, [fcn.1400040f0]
mov qword [rsp + 0x100], rax
lea rax, [0x1400c8b48]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rcx, [0x1400c92d8]
call sym.log::__private_api::loc::hc36f68eaf34be5e2
lea rcx, str.enigo::platform::win_impl_home_daniilskli_.cargo_registry_src_index.crates.io_6f17d22bba15001f_enigo_0.2.1_src_win_win_impl.rs
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], 0x19
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0x19
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x88]
lea r8, [rsp + 0x58]
mov edx, 1
xor r9d, r9d
call sym.log::__private_api::log_impl::hd0e26abb112e3348
mov qword [rsp + 0xb8], 4
mov ebx, 0x1e
mov ecx, 0x10
lea rax, str.scan_code_did_not_fit_into_u16extended_key_detected
mov edx, 8
jmp 0x14000584d
mov rax, qword [0x1400f56e8]
movzx eax, byte [rax]
mov ebx, 0x70
mov ecx, 0x70
mov edx, 1
call sym.__rust_alloc
test rax, rax
je 0x140005d6d
movups xmm0, xmmword [0x1400c92c7]
movups xmmword [rax + 0x60], xmm0
movups xmm0, xmmword [0x1400c92b7]
movups xmmword [rax + 0x50], xmm0
movups xmm0, xmmword [0x1400c92a7]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [0x1400c9297]
movups xmmword [rax + 0x30], xmm0
movups xmm0, xmmword [0x1400c9287]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [0x1400c9277]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [0x1400c9267]
movups xmmword [rax], xmm0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0x70
mov ecx, 0x18
mov edx, 0x10
mov qword [rsp + rdx + 0xb8], rax
mov qword [rsp + rcx + 0xb8], rbx
mov rdx, qword [rsp + 0xd8]
test rdx, rdx
je 0x140005880
mov rcx, qword [rsp + 0xe0]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
mov r8d, 2
mov rcx, r14
mov rdx, qword [rsp + 0x30]
call sym.__rust_dealloc
mov rax, qword [rsp + 0xb8]
cmp rax, 5
je 0x140005902
movups xmm0, xmmword [rsp + 0xc0]
mov rcx, qword [rsp + 0xd0]
movups xmmword [rdi + 8], xmm0
mov qword [rdi + 0x18], rcx
mov qword [rdi], rax
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x140005431
jmp 0x140005449
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xd0], rax
movups xmm0, xmmword [rsp + 0xd8]
movups xmmword [rsp + 0xc0], xmm0
mov r8d, 2
mov rcx, r14
mov rdx, qword [rsp + 0x30]
call sym.__rust_dealloc
mov r13, r12
mov qword [rsp + 0x108], rdi
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xf0], rax
mov r14, qword [rsp + 0xc8]
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
movzx eax, byte [rsp + 0x190]
test al, 1
jne 0x1400059df
cmp qword [rsp + 0x30], 0
je 0x140005a87
mov rbp, qword [rsp + 0x50]
lea rax, [rbp*4]
add rax, rbp
lea rbx, [rax*4 + 0xc]
mov rax, qword [rsp + 0x30]
lea r12, [rax + rax]
xor r15d, r15d
jmp 0x1400059bb
mov rax, qword [rsp + 0x48]
mov dword [rax + rbx*2 - 0x18], 1
mov word [rax + rbx*2 - 0x10], 0
mov word [rax + rbx*2 - 0xe], di
mov qword [rax + rbx*2 - 0xc], 8
mov qword [rax + rbx*2], rsi
inc rbp
mov qword [rsp + 0x50], rbp
add rbx, 0x14
add r15, 2
cmp r12, r15
je 0x1400059d7
movzx edi, word [r14 + r15]
mov rsi, qword [r13 + 0x30]
cmp rbp, qword [rsp + 0x40]
jne 0x140005980
lea rcx, [rsp + 0x40]
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::h6028888fe3a3d93d
jmp 0x140005980
movzx eax, byte [rsp + 0x190]
dec al
cmp al, 2
jae 0x140005a87
cmp qword [rsp + 0x30], 0
je 0x140005a87
mov rbp, qword [rsp + 0x50]
lea rax, [rbp*4]
add rax, rbp
lea rbx, [rax*4 + 0xc]
mov rax, qword [rsp + 0x30]
add rax, rax
mov qword [rsp + 0x30], rax
xor r12d, r12d
lea r15, [rsp + 0x40]
jmp 0x140005a6d
mov rax, qword [rsp + 0x48]
mov dword [rax + rbx*2 - 0x18], 1
mov word [rax + rbx*2 - 0x10], 0
mov word [rax + rbx*2 - 0xe], di
mov qword [rax + rbx*2 - 0xc], 0xa
mov qword [rax + rbx*2], rsi
inc rbp
mov qword [rsp + 0x50], rbp
add rbx, 0x14
add r12, 2
cmp qword [rsp + 0x30], r12
je 0x140005a87
movzx edi, word [r14 + r12]
mov rsi, qword [r13 + 0x30]
cmp rbp, qword [rsp + 0x40]
jne 0x140005a30
mov rcx, r15
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::h6028888fe3a3d93d
jmp 0x140005a30
mov rdx, qword [rsp + 0xf0]
test rdx, rdx
je 0x140005aa5
add rdx, rdx
mov r8d, 2
mov rcx, r14
call sym.__rust_dealloc
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x108]
mov r12, r13
mov rsi, qword [0x1400c7020]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x88]
mov r8, rbx
call sym.enigo::platform::win_impl::send_input::h54b3e4447f77e7fe
cmp dword [rsp + 0x88], 5
jne 0x140005bd9
movzx eax, byte [rsp + 0x190]
test eax, eax
je 0x140005c1d
cmp eax, 1
jne 0x140005c03
mov rax, qword [rsi]
cmp rax, 4
jb 0x140005bb2
lea rax, [rsp + 0x38]
mov qword [rsp + 0xb8], rax
lea rax, [fcn.140006ac0]
mov qword [rsp + 0xc0], rax
lea rax, str.removed_the_key__from_the_held_keys
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rcx, [0x1400c9128]
call sym.log::__private_api::loc::hc36f68eaf34be5e2
lea rcx, str.enigo::platform::win_impl_home_daniilskli_.cargo_registry_src_index.crates.io_6f17d22bba15001f_enigo_0.2.1_src_win_win_impl.rs
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], 0x19
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0x19
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x88]
lea r8, [rsp + 0x58]
mov edx, 4
xor r9d, r9d
call sym.log::__private_api::log_impl::hd0e26abb112e3348
lea rdx, [rsp + 0x38]
mov rcx, r12
call sym.alloc::vec::Vec_T_A_::retain::hca45b49e9d6aeefa
mov qword [rdi], 5
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x140005431
jmp 0x140005449
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x140005431
jmp 0x140005449
mov qword [rdi], 5
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x140005431
jmp 0x140005449
mov rax, qword [rsi]
cmp rax, 4
jb 0x140005cd7
lea rax, [rsp + 0x38]
mov qword [rsp + 0xb8], rax
lea rax, [fcn.140006ac0]
mov qword [rsp + 0xc0], rax
lea rax, str.added_the_key__to_the_held_keys
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rcx, [0x1400c90c8]
call sym.log::__private_api::loc::hc36f68eaf34be5e2
lea rcx, str.enigo::platform::win_impl_home_daniilskli_.cargo_registry_src_index.crates.io_6f17d22bba15001f_enigo_0.2.1_src_win_win_impl.rs
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], 0x19
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0x19
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x88]
lea r8, [rsp + 0x58]
mov edx, 4
xor r9d, r9d
call sym.log::__private_api::log_impl::hd0e26abb112e3348
movsd xmm6, qword [rsp + 0x38]
mov rsi, qword [r12 + 0x10]
cmp rsi, qword [r12]
jne 0x140005cf0
mov rcx, r12
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::h50f0874bfed03306
mov rax, qword [r12 + 8]
movlps qword [rax + rsi*8], xmm6
inc rsi
mov qword [r12 + 0x10], rsi
mov qword [rdi], 5
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x140005431
jmp 0x140005449
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rcx
lea rax, [0x1400c9070]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400c8acc]
lea r9, sym.core::ptr::drop_in_place_str_::h19e68b204dc6f12d
lea r8, [rsp + 0x88]
mov edx, 0x2b
call sym.core::result::unwrap_failed::h4f8e79ec55d0e8f1
jmp 0x140005d7c
mov ecx, 2
mov rdx, rsi
call sym.alloc::raw_vec::handle_error::hb4a2c97b2f2cc7c5
jmp 0x140005d7c
mov ecx, 1
mov edx, 0x70
call sym.alloc::raw_vec::handle_error::hb4a2c97b2f2cc7c5
ud2