Function at 0x140001b70
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor r12d, r12d
mov r13d, 0x1c200
nop dword [rax + rax]
mov dword [rbp - 0x19], r12d
lea rcx, str.mouse_device_testing_program__options____1:_find_mouse_device_port__2:_test_mouse_movement_n
call fcn.140001310
lea rdx, [rbp - 0x19]
mov rcx, qword [0x140005140]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
mov eax, dword [rbp - 0x19]
cmp eax, 1
je 0x140001da0
cmp eax, 2
je 0x140001bfd
lea rcx, [0x14000559c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.invalid_option__please_use_numerical_values_only_n_n
call fcn.1400013e0
jmp 0x140001bb0
lea rcx, str.please_input_what_device_you_are_trying_to_test__1:_lurker_hid__2:_kmbox_n
call fcn.140001310
lea rdx, [rbp - 0x19]
mov rcx, qword [0x140005140]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
mov eax, dword [rbp - 0x19]
cmp eax, 1
jne 0x140001c32
mov dword [0x140008710], r12d
lea rcx, str.set_device_mode_to_lurker_hid_n
jmp 0x140001c48
cmp eax, 2
jne 0x140001c4d
mov dword [0x140008710], 1
lea rcx, str.set_device_mode_to_kmbox_n
call fcn.140001310
lea rcx, str.please_input_the_COM_port_for_the_device__example____COM1_n
call fcn.140001310
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0x27], 0xf
mov byte [rbp + 0xf], 0
lea rdx, [rbp + 0xf]
mov rcx, qword [0x140005140]
call fcn.140002560
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rcx, qword [rbp + 0xf]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x140008718], rax
cmp rax, 0xffffffffffffffff
je 0x140001d35
xorps xmm0, xmm0
movdqu xmmword [rbp - 0xd], xmm0
mov qword [rbp + 3], r12
mov dword [rbp - 0x11], 0x1c
lea rdx, [rbp - 0x11]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetCommState]
test eax, eax
je 0x140001d28
mov ecx, dword [0x140008710]
test ecx, ecx
jne 0x140001cf8
mov dword [rbp - 0xd], 0xe100
jmp 0x140001d05
mov eax, dword [rbp - 0xd]
cmp ecx, 1
cmove eax, r13d
mov dword [rbp - 0xd], eax
mov word [rbp + 1], 8
mov byte [rbp + 3], 0
lea rdx, [rbp - 0x11]
mov rcx, qword [0x140008718]
call qword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
jne 0x140001e56
mov rcx, qword [0x140008718]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140008714], 0
jne 0x140001e5d
lea rcx, [0x14000559c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.failed_to_connect_to_device_n_n
call fcn.1400013e0
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140001bb0
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001f3b
call fcn.140002f50
jmp 0x140001bb0
call fcn.1400016b0
mov rbx, qword [0x140008728]
mov r15, qword [0x140008730]
cmp rbx, r15
je 0x140001f47
mov rax, qword [rbx + 0x10]
mov rsi, rbx
mov r14, qword [rbx + 0x18]
cmp r14, 0x10
jb 0x140001dd0
mov rsi, qword [rbx]
cmp rax, 5
jb 0x140001e19
lea rdi, [rax + rsi]
lea r8, [rdi - 4]
sub r8, rsi
mov rcx, rsi
mov edx, 0x43
call fcn.140003d83
test rax, rax
je 0x140001e19
cmp dword [rax], 0x34334843
jne 0x140001e01
cmp byte [rax + 4], 0x30
je 0x140001e10
inc rax
lea r8, [rdi - 4]
sub r8, rax
mov rcx, rax
jmp 0x140001de4
sub rax, rsi
cmp rax, 0xffffffffffffffff
jne 0x140001e1f
add rbx, 0x40
jmp 0x140001db3
cmp r14, 0x10
jb 0x140001e28
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str.device_com_port_found_____s_n
call fcn.140001310
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x14000559c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x140001bb0
mov byte [0x140008714], 1
lea rcx, str.successfully_connected_to_device__testing_x_axis..._n_n
call fcn.140001310
mov ebx, 0x32
mov edi, ebx
mov ecx, 5
call fcn.1400014b0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rdi, 1
jne 0x140001e70
mov rdi, rbx
nop
mov ecx, 0xfffffffb
call fcn.1400014b0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rdi, 1
jne 0x140001e90
lea rcx, str.y_axis_test_complete_n
call fcn.140001310
lea rcx, str.testing_y_axis..._n_n
call fcn.140001310
mov rdi, rbx
mov ecx, 5
call fcn.1400015b0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rdi, 1
jne 0x140001ec6
mov ecx, 0xfffffffb
call fcn.1400015b0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rbx, 1
jne 0x140001ee1
lea rcx, str.test_completed__if_your_cursor_did_not_move_and_then_move_back_to_its_original_position_something_went_wrong_n
call fcn.140001310
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140001f47
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f42
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f42
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002f50
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140002f30
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret