Function at 0x140057870
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp edx, 0x34003
jne 0x1400543ad
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp qword [rbx + 0x348], rax
jne 0x1400543d6
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400554a0
cmp qword [0x14009b698], rbx
jne 0x1400543c0
add rsp, 0x20
pop rbx
jmp fcn.140055590
call fcn.140055400
test eax, eax
je 0x1400543d6
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140055a00
add rsp, 0x20
pop rbx
ret
sub rsp, 0x38
cmp qword [0x14009b698], rcx
jne 0x1400544ba
mov r8d, 0x10
test edx, edx
lea edx, [r8 - 0xf]
je 0x140054485
mov rax, qword [rcx + 0x348]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x20001
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400544ba
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140058710
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x20001
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400544ba
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140058710
add rsp, 0x38
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400999a0], 0
mov edi, r8d
mov rbx, rcx
jne 0x14005789f
xor edx, edx
mov ecx, 0x10001
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140053070
cmp edx, 0x33001
jne 0x1400578f2
lea eax, [r8 - 0x34001]
cmp eax, 2
jbe 0x1400578bf
lea rdx, str.Invalid_cursor_mode_0x_08X
jmp 0x140057a33
cmp dword [rcx + 0x74], edi
je 0x140057a3d
lea r8, [rcx + 0x1e8]
mov dword [rcx + 0x74], edi
lea rdx, [rcx + 0x1e0]
call fcn.140053ce0
mov edx, edi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140054380
cmp edx, 0x33002
jne 0x14005793f
xor edx, edx
test edi, edi
setne dl
cmp dword [rcx + 0x68], edx
je 0x140057a3d
test edi, edi
jne 0x140057931
lea rax, [rcx + 0x80]
mov ecx, 0x15d
nop word [rax + rax]
cmp byte [rax], 3
jne 0x140057928
mov byte [rax], 0
inc rax
sub rcx, 1
jne 0x140057920
mov dword [rbx + 0x68], edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp edx, 0x33003
jne 0x1400579b9
xor edx, edx
test edi, edi
setne dl
cmp dword [rcx + 0x6c], edx
je 0x140057a3d
test edi, edi
jne 0x1400579ab
cmp byte [rcx + 0x78], 3
jne 0x140057965
mov byte [rcx + 0x78], dil
cmp byte [rcx + 0x79], 3
jne 0x14005796f
mov byte [rcx + 0x79], 0
cmp byte [rcx + 0x7a], 3
jne 0x140057979
mov byte [rcx + 0x7a], 0
cmp byte [rcx + 0x7b], 3
jne 0x140057983
mov byte [rcx + 0x7b], 0
cmp byte [rcx + 0x7c], 3
jne 0x14005798d
mov byte [rcx + 0x7c], 0
cmp byte [rcx + 0x7d], 3
jne 0x140057997
mov byte [rcx + 0x7d], 0
cmp byte [rcx + 0x7e], 3
jne 0x1400579a1
mov byte [rcx + 0x7e], 0
cmp byte [rcx + 0x7f], 3
jne 0x1400579ab
mov byte [rcx + 0x7f], 0
mov dword [rcx + 0x6c], edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp edx, 0x33004
jne 0x1400579d6
xor edx, edx
test edi, edi
setne dl
mov dword [rcx + 0x70], edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp edx, 0x33005
jne 0x140057a29
call fcn.1400541e0
test eax, eax
jne 0x140057a02
lea rdx, str.Raw_mouse_motion_is_not_supported_on_this_system
mov ecx, 0x10008
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140053070
xor edx, edx
test edi, edi
setne dl
cmp dword [rbx + 0x1f0], edx
je 0x140057a3d
mov rcx, rbx
mov dword [rbx + 0x1f0], edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140054430
mov r8d, edx
lea rdx, str.Invalid_input_mode_0x_08X
mov ecx, 0x10003
call fcn.140053070
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret