Function at 0x14003ad30
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0x24560]
mov rbx, rcx
mov rcx, qword [rdi + 0x20]
xor esi, esi
add rcx, 8
mov rax, qword [rcx + 8]
test rax, rax
je 0x14003ad7d
nop dword [rax]
cmp rdi, qword [rax + 0x10]
je 0x14003ad70
mov rax, qword [rax]
test rax, rax
jne 0x14003ad60
jmp 0x14003ad7d
mov qword [rax + 0x10], rsi
mov byte [rcx + 4], 1
call fcn.140001b00
lea rcx, [rbx + 0x245a0]
mov byte [rdi + 0x2a], sil
call fcn.140049c00
mov rcx, qword [rbx + 0x24590]
test rcx, rcx
je 0x14003adb1
mov dword [rbx + 0x24598], esi
call fcn.14005aed0
mov qword [rbx + 0x24590], rsi
mov dword [rbx + 0x2459c], esi
mov byte [rbx + 0x24589], sil
cmp byte [rbx + 0x2463d], sil
je 0x14003adf2
mov edx, 2
mov dword [rbx + 0x24644], 1
lea rcx, [rbx + 0x24640]
mov dword [rbx + 0x24654], 1
lea r8d, [rdx + 0xe]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
mov byte [rbx + 0x2463d], sil
lea rcx, [rbx + 0x68]
mov byte [rbx + 0x24660], sil
mov byte [rbx + 0x245d0], sil
call fcn.140037d50
mov byte [rbx + 0x24680], sil
mov rax, qword [rbx + 0x248c0]
test rax, rax
je 0x14003ae60
nop dword [rax]
mov rcx, qword [rbx + 0x248c8]
cmp rcx, rax
jne 0x14003ae3c
mov qword [rbx + 0x248c8], rsi
mov qword [rbx + 0x248c0], rsi
jmp 0x14003ae4a
mov rax, qword [rcx + 8]
mov qword [rbx + 0x248c8], rax
mov qword [rax], rsi
test rcx, rcx
je 0x14003ae54
call fcn.140002100
mov rax, qword [rbx + 0x248c0]
test rax, rax
jne 0x14003ae20
mov byte [rbx + 0x248b8], sil
mov rax, qword [0x1400c4fa0]
test rax, rax
je 0x14003aea7
lea rcx, [rbx + 0x24990]
nop word [rax + rax]
cmp rcx, qword [rax + 0x10]
je 0x14003ae90
mov rax, qword [rax]
test rax, rax
jne 0x14003ae80
jmp 0x14003aea7
mov qword [rax + 0x10], rsi
lea rcx, [0x1400c4f98]
mov byte [0x1400c4f9c], 1
call fcn.140001b00
lea rcx, [rbx + 0x24960]
call fcn.14000c490
lea rcx, [rbx + 0x249a0]
mov byte [rbx + 0x24958], sil
mov rax, qword [rcx]
call qword [rax + 0x60]
lea rcx, [rbx + 0x244e8]
call fcn.14004fa20
mov rcx, qword [0x1400a05d0]
mov qword [rbx + 0x244e0], rsi
test rcx, rcx
je 0x14003aef3
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [0x1400a05d0], rsi
cmp qword [rbx + 0x48], rsi
je 0x14003af0d
lea rcx, [rbx + 0x48]
call fcn.140041170
mov qword [rbx + 0x54], rsi
mov dword [rbx + 0x50], esi
mov qword [rbx + 0x48], rsi
cmp byte [0x1400a05cc], sil
mov byte [rbx + 0x40], sil
je 0x14003af20
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rcx, qword [0x1400a05b8]
test rcx, rcx
je 0x14003af39
mov qword [0x1400a05b0], rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [0x1400a05d8]
test rcx, rcx
je 0x14003af52
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400a05d8], rsi
call qword [sym.imp.ole32.dll_CoUninitialize]
call fcn.140054640
test eax, eax
jne 0x14003af8b
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.140054bc0
test eax, eax
jne 0x14003af86
lea rdx, [0x14003c050]
lea rcx, [0x1400a05c0]
call fcn.140054210
call fcn.1400546e0
mov byte [rbx + 0x3c], sil
mov byte [rbx + 0x18], sil
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret