Function at 0x14005ede0
Capabilities:
Register raw input devices

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xa8
mov rax, qword [0x1400e5250]
xor rax, rsp
mov qword [rbp - 1], rax
mov rsi, qword [rbp + 0x7f]
mov rbx, r9
mov qword [rbp - 0x31], rdx
mov r14d, r8d
mov r12, rdx
mov rdi, rcx
cmp r8d, 0xff
ja 0x14005fb7b
je 0x14005fa78
lea eax, [r8 - 1]
cmp eax, 0xa4
ja case.0x14006017c.522
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x603cc]
mov ecx, dword [rdx + rax*4 + 0x60388]
add rcx, rdx
jmp rcx
lea rbx, [rdi + 0x1b8]
mov rcx, rbx
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rbx + 0x4c], 0x7fffffff
jne 0x14005ee84
mov dword [rbx + 0x4c], 0x7ffffffe
jmp 0x140060334
add rdi, 0x280
lea rax, str.window_close
mov qword [rbp - 0x61], rax
mov rax, qword [rdi + 0x20]
inc rax
cmp qword [rdi + 0x10], rax
ja 0x14005eeab
mov rcx, rdi
call fcn.140060980
mov rdx, qword [rdi + 0x10]
dec rdx
and qword [rdi + 0x18], rdx
mov r8, qword [rdi + 0x18]
add r8, qword [rdi + 0x20]
mov rax, qword [rdi + 8]
and r8, rdx
lea rsi, [r8*8]
cmp qword [rsi + rax], 0
jne 0x14005eee6
mov ecx, 0x28
call fcn.1400860a0
mov rcx, qword [rdi + 8]
mov qword [rsi + rcx], rax
mov rax, qword [rdi + 8]
movups xmm0, xmmword [rbp - 0x61]
movups xmm1, xmmword [rbp - 0x51]
mov rcx, qword [rsi + rax]
movups xmmword [rcx], xmm0
movsd xmm0, qword [rbp - 0x41]
movups xmmword [rcx + 0x10], xmm1
movsd qword [rcx + 0x20], xmm0
mov rcx, rbx
inc qword [rdi + 0x20]
call fcn.140062a2c
xor eax, eax
jmp 0x14006030a
cmp byte [rdi + 0x1b0], 0
je 0x1400602f4
mov edx, 1
mov dword [rbp - 0x31], 0x20001
lea rcx, [rbp - 0x31]
mov dword [rbp - 0x2d], 0x100
mov qword [rbp - 0x29], r12
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
xor eax, eax
jmp 0x14006030a
xor esi, esi
cmp rbx, 1
lea rbx, [rdi + 0x1b8]
mov rcx, rbx
sete sil
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rbx + 0x4c], 0x7fffffff
jne 0x14005ef89
mov dword [rbx + 0x4c], 0x7ffffffe
jmp 0x140060334
add rdi, 0x280
mov dword [rbp - 0x59], esi
lea rax, str.window_activate
mov qword [rbp - 0x61], rax
mov rax, qword [rdi + 0x20]
inc rax
cmp qword [rdi + 0x10], rax
ja 0x14005efb3
mov rcx, rdi
call fcn.140060980
mov rcx, qword [rdi + 0x10]
dec rcx
and qword [rdi + 0x18], rcx
mov rax, qword [rdi + 0x20]
add rax, qword [rdi + 0x18]
and rax, rcx
lea rsi, [rax*8]
mov rax, qword [rdi + 8]
cmp qword [rsi + rax], 0
jne 0x14005efee
mov ecx, 0x28
call fcn.1400860a0
mov rcx, qword [rdi + 8]
mov qword [rsi + rcx], rax
mov rax, qword [rdi + 8]
movups xmm0, xmmword [rbp - 0x61]
movups xmm1, xmmword [rbp - 0x51]
mov rcx, qword [rsi + rax]
movups xmmword [rcx], xmm0
movsd xmm0, qword [rbp - 0x41]
movups xmmword [rcx + 0x10], xmm1
movsd qword [rcx + 0x20], xmm0
mov rcx, rbx
inc qword [rdi + 0x20]
call fcn.140062a2c
xor eax, eax
jmp 0x14006030a
cmp byte [rdi + 0x31b], 0
je 0x1400602f4
mov eax, 3
jmp 0x14006030a
lea rsi, [rdi + 0x1b8]
mov rcx, rsi
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rsi + 0x4c], 0x7fffffff
jne 0x14005f065
mov dword [rsi + 0x4c], 0x7ffffffe
jmp 0x140060334
add rdi, 0x280
mov dword [rbp - 0x59], ebx
lea rax, str.window_activate
mov qword [rbp - 0x61], rax
mov rax, qword [rdi + 0x20]
inc rax
cmp qword [rdi + 0x10], rax
ja 0x14005f08f
mov rcx, rdi
call fcn.140060980
mov rax, qword [rdi + 0x10]
dec rax
and qword [rdi + 0x18], rax
mov rcx, qword [rdi + 0x20]
add rcx, qword [rdi + 0x18]
and rcx, rax
mov rax, qword [rdi + 8]
lea rbx, [rcx*8]
cmp qword [rbx + rax], 0
jne 0x14005f0ca
mov ecx, 0x28
call fcn.1400860a0
mov rcx, qword [rdi + 8]
mov qword [rbx + rcx], rax
mov rax, qword [rdi + 8]
movups xmm0, xmmword [rbp - 0x61]
movups xmm1, xmmword [rbp - 0x51]
mov rcx, qword [rbx + rax]
movups xmmword [rcx], xmm0
movsd xmm0, qword [rbp - 0x41]
movups xmmword [rcx + 0x10], xmm1
movsd qword [rcx + 0x20], xmm0
mov rcx, rsi
inc qword [rdi + 0x20]
call fcn.140062a2c
xor eax, eax
jmp 0x14006030a
lea rcx, [rdi + 0x398]
call fcn.140062a08
test eax, eax
jne 0x14006033f
mov eax, dword [rdi + 0x3e4]
cmp eax, 0x7fffffff
je 0x14006034a
movsx eax, si
lea rdx, [rbp - 9]
mov dword [rbp - 9], eax
mov rcx, r12
shr rsi, 0x10
movsx eax, si
mov dword [rbp - 5], eax
call qword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [rbp - 9]
mov ecx, dword [rbp - 5]
cmp eax, dword [rdi + 0x40c]
jl 0x14005f180
cmp ecx, dword [rdi + 0x410]
jl 0x14005f180
cmp eax, dword [rdi + 0x414]
jge 0x14005f180
cmp ecx, dword [rdi + 0x418]
jge 0x14005f180
mov eax, 0x14
lea rcx, [rdi + 0x398]
mov esi, eax
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
cmp eax, dword [rdi + 0x41c]
jl 0x14005f1ba
cmp ecx, dword [rdi + 0x420]
jl 0x14005f1ba
cmp eax, dword [rdi + 0x424]
jge 0x14005f1ba
cmp ecx, dword [rdi + 0x428]
jge 0x14005f1ba
mov eax, 8
lea rcx, [rdi + 0x398]
mov esi, eax
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
cmp eax, dword [rdi + 0x42c]
jl 0x14005f1f4
cmp ecx, dword [rdi + 0x430]
jl 0x14005f1f4
cmp eax, dword [rdi + 0x434]
jge 0x14005f1f4
cmp ecx, dword [rdi + 0x438]
jge 0x14005f1f4
mov eax, 9
lea rcx, [rdi + 0x398]
mov esi, eax
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
cmp eax, dword [rdi + 0x3e8]
jge 0x14005f24c
mov eax, dword [rdi + 0x3ec]
add eax, 0xa
cmp ecx, eax
jl 0x14005f2cf
mov rcx, qword [rdi]
lea rdx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x25]
sub eax, dword [rdi + 0x3f4]
sub eax, dword [rbp - 0x2d]
sub eax, 0xa
cmp dword [rbp - 5], eax
jge 0x14005f36c
mov eax, 0xa
lea rcx, [rdi + 0x398]
mov esi, eax
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
mov rcx, qword [rdi]
lea rdx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x29]
sub eax, dword [rdi + 0x3f0]
sub eax, dword [rbp - 0x31]
mov edx, dword [rbp - 9]
mov ecx, dword [rdi + 0x3ec]
cmp edx, eax
jl 0x14005f2bd
lea eax, [rcx + 0xa]
cmp dword [rbp - 5], eax
jl 0x14005f30a
mov rcx, qword [rdi]
lea rdx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x25]
sub eax, dword [rdi + 0x3f4]
sub eax, dword [rbp - 0x2d]
sub eax, 0xa
cmp dword [rbp - 5], eax
jge 0x14005f3a7
mov eax, 0xb
lea rcx, [rdi + 0x398]
mov esi, eax
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
cmp dword [rbp - 5], ecx
jge 0x14005f33e
mov eax, dword [rdi + 0x3e8]
add eax, 0xa
cmp edx, eax
jge 0x14005f2e9
mov eax, 0xd
lea rcx, [rdi + 0x398]
mov esi, eax
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
mov rcx, qword [rdi]
lea rdx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x29]
sub eax, dword [rbp - 0x31]
sub eax, dword [rdi + 0x3f0]
sub eax, 0xa
cmp dword [rbp - 9], eax
jl 0x14005f324
mov eax, 0xe
lea rcx, [rdi + 0x398]
mov esi, eax
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
mov eax, 0xc
lea rcx, [rdi + 0x398]
mov esi, eax
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
mov rcx, qword [rdi]
lea rdx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x25]
sub eax, dword [rdi + 0x3f4]
sub eax, dword [rbp - 0x2d]
mov ecx, dword [rbp - 5]
cmp ecx, eax
jl 0x14005f3db
mov eax, dword [rdi + 0x3e8]
add eax, 0xa
cmp dword [rbp - 9], eax
jge 0x14005f386
mov eax, 0x10
lea rcx, [rdi + 0x398]
mov esi, eax
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
mov rcx, qword [rdi]
lea rdx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x29]
sub eax, dword [rbp - 0x31]
sub eax, dword [rdi + 0x3f0]
sub eax, 0xa
cmp dword [rbp - 9], eax
jl 0x14005f3c1
mov eax, 0x11
lea rcx, [rdi + 0x398]
mov esi, eax
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
mov eax, 0xf
lea rcx, [rdi + 0x398]
mov esi, eax
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
mov eax, dword [rbp - 9]
cmp eax, dword [rdi + 0x43c]
jl 0x14005f418
cmp ecx, dword [rdi + 0x440]
jl 0x14005f418
cmp eax, dword [rdi + 0x444]
jge 0x14005f418
cmp ecx, dword [rdi + 0x448]
jge 0x14005f418
mov eax, 3
lea rcx, [rdi + 0x398]
mov esi, eax
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
cmp eax, dword [rdi + 0x3f8]
jl 0x14005f519
cmp ecx, dword [rdi + 0x3fc]
jl 0x14005f519
mov rcx, qword [rdi]
lea rdx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x29]
sub eax, dword [rdi + 0x400]
sub eax, dword [rbp - 0x31]
cmp dword [rbp - 9], eax
jge 0x14005f519
mov rcx, qword [rdi]
lea rdx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x25]
sub eax, dword [rdi + 0x404]
sub eax, dword [rbp - 0x2d]
mov edx, dword [rbp - 5]
cmp edx, eax
jge 0x14005f519
mov eax, dword [rdi + 0x408]
add eax, dword [rdi + 0x3fc]
cmp edx, eax
jl 0x14005f4a0
mov eax, 1
lea rcx, [rdi + 0x398]
mov esi, eax
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
mov rcx, qword [rdi + 0x450]
xor esi, esi
mov r9, qword [rdi + 0x458]
sub r9, rcx
sar r9, 4
test r9, r9
je 0x14005f4e7
mov r8d, dword [rbp - 9]
add rcx, 8
cmp r8d, dword [rcx - 8]
jl 0x14005f4d9
cmp edx, dword [rcx - 4]
jl 0x14005f4d9
cmp r8d, dword [rcx]
jge 0x14005f4d9
cmp edx, dword [rcx + 4]
jl 0x14005f501
inc esi
add rcx, 0x10
movsxd rax, esi
cmp rax, r9
jb 0x14005f4c4
mov eax, 2
lea rcx, [rdi + 0x398]
mov esi, eax
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
lea rcx, [rdi + 0x398]
mov esi, 1
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
xor esi, esi
lea rcx, [rdi + 0x398]
call fcn.140062a2c
mov eax, esi
jmp 0x14006030a
cmp si, 1
jne case.0x14006017c.522
lea rcx, [rdi + 0x1b8]
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rdi + 0x204], 0x7fffffff
je 0x14006032a
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.USER32.dll_SetCursor]
lea rcx, [rdi + 0x1b8]
call fcn.140062a2c
xor eax, eax
jmp 0x14006030a
mov rax, rsi
movsx r12d, si
shr rax, 0x10
lea r15, [rdi + 0x1b8]
mov rcx, r15
movsx r13d, ax
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [r15 + 0x4c], 0x7fffffff
jne 0x14005f5b9
mov dword [r15 + 0x4c], 0x7ffffffe
jmp 0x140060334
add rdi, 0x280
mov dword [rbp - 0x59], r12d
lea rax, str.mouse_left_pressed
mov dword [rbp - 0x55], r13d
mov qword [rbp - 0x61], rax
mov rax, qword [rdi + 0x20]
inc rax
cmp qword [rdi + 0x10], rax
ja 0x14005f5e8
mov rcx, rdi
call fcn.140060980
mov rax, qword [rdi + 0x10]
dec rax
and qword [rdi + 0x18], rax
mov rcx, qword [rdi + 0x20]
add rcx, qword [rdi + 0x18]
and rcx, rax
lea r12, [rcx*8]
mov rax, qword [rdi + 8]
cmp qword [r12 + rax], 0
jne 0x14005f623
mov ecx, 0x28
call fcn.1400860a0
mov rdx, qword [rdi + 8]
mov qword [r12 + rdx], rax
mov rax, qword [rdi + 8]
mov rcx, r15
movups xmm0, xmmword [rbp - 0x61]
movups xmm1, xmmword [rbp - 0x51]
mov rdx, qword [r12 + rax]
movups xmmword [rdx], xmm0
movsd xmm0, qword [rbp - 0x41]
movups xmmword [rdx + 0x10], xmm1
movsd qword [rdx + 0x20], xmm0
inc qword [rdi + 0x20]
call fcn.140062a2c
mov rcx, qword [rbp - 0x31]
jmp 0x1400602fb
mov rax, rsi
movsx r12d, si
shr rax, 0x10
lea r15, [rdi + 0x1b8]
mov rcx, r15
movsx r13d, ax
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [r15 + 0x4c], 0x7fffffff
jne 0x14005f696
mov dword [r15 + 0x4c], 0x7ffffffe
jmp 0x140060334
lea rax, str.mouse_left_released
add rdi, 0x280
mov qword [rbp - 0x61], rax
mov dword [rbp - 0x55], r13d
mov dword [rbp - 0x59], r12d
mov rax, qword [rdi + 0x20]
inc rax
cmp qword [rdi + 0x10], rax
ja 0x14005f6c5
mov rcx, rdi
call fcn.140060980
mov rdx, qword [rdi + 0x10]
dec rdx
and qword [rdi + 0x18], rdx
mov r8, qword [rdi + 0x18]
add r8, qword [rdi + 0x20]
and r8, rdx
lea r12, [r8*8]
jmp 0x14005f606
mov rax, rsi
movsx r12d, si
shr rax, 0x10
lea r15, [rdi + 0x1b8]
mov rcx, r15
movsx r13d, ax
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [r15 + 0x4c], 0x7fffffff
jne 0x14005f725
mov dword [r15 + 0x4c], 0x7ffffffe
jmp 0x140060334
lea rax, str.mouse_right_pressed
jmp 0x14005f69d
mov rax, rsi
movsx r12d, si
shr rax, 0x10
lea r15, [rdi + 0x1b8]
mov rcx, r15
movsx r13d, ax
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [r15 + 0x4c], 0x7fffffff
jne 0x14005f76e
mov dword [r15 + 0x4c], 0x7ffffffe
jmp 0x140060334
lea rax, str.mouse_right_released
jmp 0x14005f69d
movsx r14d, si
shr rsi, 0x10
cmp byte [rdi + 0x302], 0
movsx esi, si
jne 0x14005f7d3
mov eax, dword [rdi + 0x310]
sub eax, dword [rdi + 0x308]
mov ecx, dword [rdi + 0x314]
sub ecx, dword [rdi + 0x30c]
movups xmm0, xmmword [rdi + 0x32c]
add eax, r14d
mov dword [rdi + 0x32c], r14d
mov dword [rdi + 0x334], eax
lea eax, [rcx + rsi]
mov dword [rdi + 0x330], esi
mov dword [rdi + 0x338], eax
movups xmmword [rdi + 0x31c], xmm0
lea rbx, [rdi + 0x1b8]
mov rcx, rbx
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rbx + 0x4c], 0x7fffffff
jne 0x14005f7ff
mov dword [rbx + 0x4c], 0x7ffffffe
jmp 0x140060334
lea rax, str.window_move
mov dword [rbp - 0x59], r14d
mov dword [rbp - 0x55], esi
jmp 0x14005faec
mov dword [rsi + 0x18], 0x258
xor eax, eax
mov dword [rsi + 0x1c], 0x190
jmp 0x14006030a
test byte [rsi + 0x20], 1
jne case.0x14006017c.522
mov eax, dword [rsi + 0x18]
cmp dword [rdi + 0x2a8], eax
jne 0x14005f84b
mov eax, dword [rsi + 0x1c]
cmp dword [rdi + 0x2ac], eax
je case.0x14006017c.522
cmp byte [rdi + 0x300], 0
jne case.0x14006017c.522
lea rcx, [rdi + 0x2b0]
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rdi + 0x2fc], 0x7fffffff
jne case.0x14006017c.522
mov dword [rdi + 0x2fc], 0x7ffffffe
jmp 0x140060334
movzx edx, si
mov rax, rsi
shr rax, 0x10
mov dword [rbp - 9], edx
movzx r12d, ax
cmp dword [rdi + 0x2a8], edx
jne 0x14005f8b1
cmp dword [rdi + 0x2ac], r12d
je 0x1400602f4
xor r15b, r15b
mov dword [rdi + 0x2a8], edx
mov dword [rdi + 0x2ac], r12d
mov byte [rbp - 0x39], 0
mov byte [rbp - 0x38], 0
test rbx, rbx
jne 0x14005fa4e
cmp byte [rdi + 0x302], r15b
jne 0x14005f92a
lea rdx, [rdi + 0x32c]
movups xmm0, xmmword [rdx]
movups xmmword [rdi + 0x31c], xmm0
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, qword [rdi]
lea rdx, [rdi + 0x308]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rax, [rdi + 0x304]
cmp byte [rdi + 0x303], r15b
jne 0x14005f91a
cmp byte [rax], r15b
je 0x14005f91d
mov r15b, 1
mov edx, dword [rbp - 9]
mov byte [rdi + 0x303], 0
mov byte [rax], 0
cmp rbx, 1
jne 0x14005f94a
movups xmm0, xmmword [rdi + 0x31c]
mov byte [rbp - 0x38], bl
movups xmmword [rdi + 0x32c], xmm0
mov word [rdi + 0x303], 0x100
lea rcx, [rdi + 0xd8]
mov r8d, r12d
call fcn.140060fd0
lea rcx, [rdi + 0x1b8]
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rdi + 0x204], 0x7fffffff
je 0x14006032a
lea rax, str.window_size
mov byte [rbp - 0x4f], r15b
mov qword [rbp - 0x61], rax
lea r15, [rdi + 0x280]
mov eax, dword [rbp - 9]
mov dword [rbp - 0x59], eax
movzx eax, byte [rbp - 0x39]
mov byte [rbp - 0x51], al
movzx eax, byte [rbp - 0x38]
mov byte [rbp - 0x50], al
mov rax, qword [r15 + 0x20]
inc rax
mov dword [rbp - 0x55], r12d
cmp qword [r15 + 0x10], rax
ja 0x14005f9c0
mov rcx, r15
call fcn.140060980
mov rdx, qword [r15 + 0x10]
dec rdx
and qword [r15 + 0x18], rdx
mov r8, qword [r15 + 0x18]
add r8, qword [r15 + 0x20]
mov rax, qword [r15 + 8]
and r8, rdx
lea r12, [r8*8]
cmp qword [r12 + rax], 0
jne 0x14005f9fb
mov ecx, 0x28
call fcn.1400860a0
mov rdx, qword [r15 + 8]
mov qword [r12 + rdx], rax
mov rax, qword [r15 + 8]
lea rcx, [rdi + 0x1b8]
movups xmm0, xmmword [rbp - 0x61]
movups xmm1, xmmword [rbp - 0x51]
mov rdx, qword [r12 + rax]
movups xmmword [rdx], xmm0
movsd xmm0, qword [rbp - 0x41]
movups xmmword [rdx + 0x10], xmm1
movsd qword [rdx + 0x20], xmm0
inc qword [r15 + 0x20]
call fcn.140062a2c
cmp byte [rdi + 0x300], 0
jne 0x14005f650
lea rcx, [rdi + 0x2b0]
call fcn.140062a2c
mov rcx, qword [rbp - 0x31]
jmp 0x1400602fb
cmp rbx, 2
jne 0x14005f92a
movups xmm0, xmmword [rdi + 0x31c]
mov byte [rbp - 0x39], 1
movups xmmword [rdi + 0x32c], xmm0
mov word [rdi + 0x303], 1
jmp 0x14005f94a
lea r9, [rbp - 9]
mov dword [rbp - 9], 0x30
lea r8, [0x1400f0740]
mov dword [rsp + 0x20], 0x18
mov edx, 0x10000003
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetRawInputData]
cmp dword [0x1400f0740], 0
jne 0x1400602f4
mov esi, dword [0x1400f0764]
lea rbx, [rdi + 0x1b8]
mov r14d, dword [0x1400f0768]
mov rcx, rbx
call fcn.140062a08
test eax, eax
jne 0x14006035d
cmp dword [rbx + 0x4c], 0x7fffffff
je 0x140060368
lea rax, str.input
mov dword [rbp - 0x59], esi
mov dword [rbp - 0x55], r14d
add rdi, 0x280
mov qword [rbp - 0x61], rax
mov rax, qword [rdi + 0x20]
inc rax
cmp qword [rdi + 0x10], rax
ja 0x14005fb0c
mov rcx, rdi
call fcn.140060980
mov rdx, qword [rdi + 0x10]
dec rdx
and qword [rdi + 0x18], rdx
mov r8, qword [rdi + 0x18]
add r8, qword [rdi + 0x20]
and r8, rdx
lea rsi, [r8*8]
mov rax, qword [rdi + 8]
cmp qword [rsi + rax], 0
jne 0x14005fb47
mov ecx, 0x28
call fcn.1400860a0
mov rdx, qword [rdi + 8]
mov qword [rsi + rdx], rax
mov rax, qword [rdi + 8]
mov rcx, rbx
movups xmm0, xmmword [rbp - 0x61]
movups xmm1, xmmword [rbp - 0x51]
mov rdx, qword [rsi + rax]
movups xmmword [rdx], xmm0
movsd xmm0, qword [rbp - 0x41]
movups xmmword [rdx + 0x10], xmm1
movsd qword [rdx + 0x20], xmm0
inc qword [rdi + 0x20]
call fcn.140062a2c
xor eax, eax
jmp 0x14006030a
cmp r14d, 0x202
ja 0x140060151
je 0x1400600c3
cmp r14d, 0x104
ja 0x14005fe64
je 0x14005fc8c
mov eax, r14d
sub eax, 0x100
je 0x14005fc42
sub eax, 1
je 0x14005fc00
cmp eax, 1
jne case.0x14006017c.522
mov r15, rsi
add rcx, 0x1b8
sar r15, 0x10
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rdi + 0x204], 0x7fffffff
je 0x14006032a
lea rax, str.char
mov word [rbp - 0x59], bx
mov word [rbp - 0x57], si
mov byte [rbp - 0x55], r15b
jmp 0x1400601fa
add rcx, 0x1b8
sar rsi, 0x10
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rdi + 0x204], 0x7fffffff
je 0x14006032a
lea r15, str.key_up
mov byte [rbp - 0x59], bl
mov qword [rbp - 0x61], r15
mov byte [rbp - 0x58], sil
mov byte [rbp - 0x57], al
jmp 0x1400601fe
mov r12, rsi
add rcx, 0x1b8
sar r12, 0x10
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rdi + 0x204], 0x7fffffff
je 0x14006032a
lea r15, str.key_down
mov byte [rbp - 0x59], bl
mov qword [rbp - 0x61], r15
mov word [rbp - 0x58], si
mov byte [rbp - 0x56], r12b
mov word [rbp - 0x55], ax
jmp 0x1400601fe
mov r12, rsi
lea r14, [rcx + 0x1b8]
mov rax, rsi
sar r12, 0x10
shr rax, 0xd
mov rcx, r14
test al, 1
jne 0x14005fd77
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [r14 + 0x4c], 0x7fffffff
jne 0x14005fcd0
mov dword [r14 + 0x4c], 0x7ffffffe
jmp 0x140060334
add rdi, 0x280
mov byte [rbp - 0x59], bl
lea r15, str.key_down
mov word [rbp - 0x58], si
mov qword [rbp - 0x61], r15
mov byte [rbp - 0x56], r12b
mov rax, qword [rdi + 0x20]
inc rax
mov word [rbp - 0x55], 0
cmp qword [rdi + 0x10], rax
ja 0x14005fd08
mov rcx, rdi
call fcn.140060980
mov r8, qword [rdi + 0x10]
dec r8
and qword [rdi + 0x18], r8
mov rdx, qword [rdi + 0x18]
add rdx, qword [rdi + 0x20]
mov rax, qword [rdi + 8]
and rdx, r8
lea rbx, [rdx*8]
cmp qword [rbx + rax], 0
jne 0x14005fd43
mov ecx, 0x28
call fcn.1400860a0
mov rcx, qword [rdi + 8]
mov qword [rbx + rcx], rax
mov rax, qword [rdi + 8]
movups xmm0, xmmword [rbp - 0x61]
movups xmm1, xmmword [rbp - 0x51]
mov rcx, qword [rbx + rax]
movups xmmword [rcx], xmm0
movsd xmm0, qword [rbp - 0x41]
movups xmmword [rcx + 0x10], xmm1
movsd qword [rcx + 0x20], xmm0
mov rcx, r14
inc qword [rdi + 0x20]
call fcn.140062a2c
xor eax, eax
jmp 0x14006030a
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [r14 + 0x4c], 0x7fffffff
jne 0x14005fd9b
mov dword [r14 + 0x4c], 0x7ffffffe
jmp 0x140060334
add rdi, 0x280
mov byte [rbp - 0x59], 0x12
lea r15, str.key_down
mov word [rbp - 0x58], si
mov rcx, rdi
mov qword [rbp - 0x61], r15
lea rdx, [rbp - 0x61]
mov byte [rbp - 0x56], r12b
mov word [rbp - 0x55], 0
call fcn.140060770
mov word [rbp - 0x58], si
mov byte [rbp - 0x56], r12b
mov word [rbp - 0x55], 0
mov rax, qword [rdi + 0x20]
inc rax
mov byte [rbp - 0x59], bl
mov qword [rbp - 0x61], r15
cmp qword [rdi + 0x10], rax
ja 0x14005fdf5
mov rcx, rdi
call fcn.140060980
mov rdx, qword [rdi + 0x10]
dec rdx
and qword [rdi + 0x18], rdx
mov r8, qword [rdi + 0x18]
add r8, qword [rdi + 0x20]
mov rax, qword [rdi + 8]
and r8, rdx
lea rbx, [r8*8]
cmp qword [rbx + rax], 0
jne 0x14005fe30
mov ecx, 0x28
call fcn.1400860a0
mov rdx, qword [rdi + 8]
mov qword [rbx + rdx], rax
mov rax, qword [rdi + 8]
mov rcx, r14
movups xmm0, xmmword [rbp - 0x61]
movups xmm1, xmmword [rbp - 0x51]
mov rdx, qword [rbx + rax]
movups xmmword [rdx], xmm0
movsd xmm0, qword [rbp - 0x41]
movups xmmword [rdx + 0x10], xmm1
movsd qword [rdx + 0x20], xmm0
inc qword [rdi + 0x20]
call fcn.140062a2c
xor eax, eax
jmp 0x14006030a
mov eax, r14d
sub eax, 0x105
je 0x14005fff9
sub eax, 0xfb
je 0x14005fed5
cmp eax, 1
jne case.0x14006017c.522
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_SetCapture]
movsx r14d, si
lea rbx, [rdi + 0x1b8]
shr rsi, 0x10
mov rcx, rbx
movsx esi, si
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rbx + 0x4c], 0x7fffffff
jne 0x14005fec2
mov dword [rbx + 0x4c], 0x7ffffffe
jmp 0x140060334
lea rax, str.mouse_left_pressed
mov dword [rbp - 0x59], r14d
mov dword [rbp - 0x55], esi
jmp 0x14005faec
movsx r14d, si
shr rsi, 0x10
movsx esi, si
cmp r14d, dword [rcx + 0x33c]
jne 0x14005fef5
cmp esi, dword [rcx + 0x340]
je 0x1400602f4
mov dword [rcx + 0x33c], r14d
mov dword [rcx + 0x340], esi
add rcx, 0x1b8
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rdi + 0x204], 0x7fffffff
je 0x14006032a
test r14d, r14d
js 0x14005ffb2
mov rcx, qword [rdi]
lea rdx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x29]
sub eax, dword [rbp - 0x31]
cmp r14d, eax
jge 0x14005ffb2
test esi, esi
js 0x14005ffb2
mov rcx, qword [rdi]
lea rdx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x25]
sub eax, dword [rbp - 0x2d]
cmp esi, eax
jge 0x14005ffb2
cmp byte [rdi + 0x90], 0
jne 0x14005ffc4
mov eax, 2
mov dword [rbp - 0x31], 0x18
lea rcx, [rbp - 0x31]
mov dword [rbp - 0x2d], eax
mov qword [rbp - 0x29], r12
call qword [sym.imp.USER32.dll_TrackMouseEvent]
call qword [sym.imp.USER32.dll_GetCursor]
mov qword [rdi + 0x98], rax
lea rcx, [rdi + 0x280]
lea rax, str.mouse_enter
lea rdx, [rbp - 0x61]
mov qword [rbp - 0x61], rax
call fcn.140060770
jmp 0x14005ffc4
test bl, 3
jne 0x14005ffc4
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.USER32.dll_SetCursor]
lea rax, str.mouse_move
mov dword [rbp - 0x59], r14d
lea rcx, [rdi + 0x280]
mov qword [rbp - 0x61], rax
lea rdx, [rbp - 0x61]
mov dword [rbp - 0x55], esi
call fcn.140060770
lea rcx, [rdi + 0x1b8]
call fcn.140062a2c
xor eax, eax
jmp 0x14006030a
lea r14, [rcx + 0x1b8]
mov r12, rsi
mov rcx, r14
sar r12, 0x10
shr rsi, 0xd
call fcn.140062a08
test sil, 1
jne 0x14006006d
test eax, eax
jne 0x14006037a
cmp dword [r14 + 0x4c], 0x7fffffff
jne 0x140060038
mov dword [r14 + 0x4c], 0x7ffffffe
jmp 0x140060334
lea r15, str.key_up
mov byte [rbp - 0x59], bl
lea rcx, [rdi + 0x280]
mov qword [rbp - 0x61], r15
lea rdx, [rbp - 0x61]
mov byte [rbp - 0x58], r12b
mov byte [rbp - 0x57], 0
call fcn.140060770
mov rcx, r14
call fcn.140062a2c
xor eax, eax
jmp 0x14006030a
test eax, eax
jne 0x14006037a
cmp dword [r14 + 0x4c], 0x7fffffff
jne 0x14006008c
mov dword [r14 + 0x4c], 0x7ffffffe
jmp 0x140060334
add rdi, 0x280
mov byte [rbp - 0x59], 0x12
lea r15, str.key_up
mov byte [rbp - 0x58], r12b
mov rcx, rdi
mov qword [rbp - 0x61], r15
lea rdx, [rbp - 0x61]
mov byte [rbp - 0x57], 0
call fcn.140060770
mov byte [rbp - 0x58], r12b
mov byte [rbp - 0x57], 0
jmp 0x14005fdd9
call qword [sym.imp.USER32.dll_ReleaseCapture]
movsx r14d, si
lea rbx, [rdi + 0x1b8]
shr rsi, 0x10
mov rcx, rbx
movsx esi, si
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rbx + 0x4c], 0x7fffffff
jne 0x140060100
mov dword [rbx + 0x4c], 0x7ffffffe
jmp 0x140060334
add rdi, 0x280
mov dword [rbp - 0x59], r14d
lea rax, str.mouse_left_released
mov dword [rbp - 0x55], esi
mov qword [rbp - 0x61], rax
mov rax, qword [rdi + 0x20]
inc rax
cmp qword [rdi + 0x10], rax
ja 0x14006012e
mov rcx, rdi
call fcn.140060980
mov r8, qword [rdi + 0x10]
dec r8
and qword [rdi + 0x18], r8
mov rdx, qword [rdi + 0x18]
add rdx, qword [rdi + 0x20]
and rdx, r8
lea rsi, [rdx*8]
jmp 0x14005fb2a
lea eax, [r8 - 0x204]
cmp eax, 0x9f
ja case.0x14006017c.522
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x60490]
mov ecx, dword [rdx + rax*4 + 0x60474]
add rcx, rdx
jmp rcx
lea rbx, [rdi + 0x1b8]
mov byte [rdi + 0x90], 0
mov rcx, rbx
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rbx + 0x4c], 0x7fffffff
jne 0x1400601b1
mov dword [rbx + 0x4c], 0x7ffffffe
jmp 0x140060334
lea rax, str.mouse_leave
jmp 0x14005faec
movsx r14d, si
lea rcx, [rdi + 0x1b8]
shr rsi, 0x10
movsx esi, si
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rdi + 0x204], 0x7fffffff
je 0x14006032a
lea rax, str.mouse_right_pressed
mov dword [rbp - 0x55], esi
mov dword [rbp - 0x59], r14d
mov qword [rbp - 0x61], rax
lea rcx, [rdi + 0x280]
lea rdx, [rbp - 0x61]
call fcn.140060770
lea rcx, [rdi + 0x1b8]
call fcn.140062a2c
xor eax, eax
jmp 0x14006030a
movsx r14d, si
lea rcx, [rdi + 0x1b8]
shr rsi, 0x10
movsx esi, si
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rdi + 0x204], 0x7fffffff
je 0x14006032a
lea rax, str.mouse_right_released
jmp 0x1400601f3
movsx eax, si
shr rsi, 0x10
shr rbx, 0x10
movsx ecx, si
test bx, bx
jle 0x140060275
lea rdx, str.mouse_wheel_up
jmp 0x14006027e
jns 0x1400602a2
lea rdx, str.mouse_wheel_down
movups xmm1, xmmword [rbp - 0x21]
mov qword [rbp - 0x31], rdx
mov dword [rbp - 0x29], eax
mov dword [rbp - 0x25], ecx
movups xmm0, xmmword [rbp - 0x31]
movups xmmword [rbp - 0x51], xmm1
movups xmmword [rbp - 0x61], xmm0
movsd xmm0, qword [rbp - 0x11]
movsd qword [rbp - 0x41], xmm0
lea rcx, [rdi + 0x1b8]
call fcn.140062a08
test eax, eax
jne 0x14006037a
cmp dword [rdi + 0x204], 0x7fffffff
je 0x14006032a
lea rcx, [rdi + 0x280]
lea rdx, [rbp - 0x61]
call fcn.1400608d0
lea rcx, [rdi + 0x1b8]
call fcn.140062a2c
xor eax, eax
jmp 0x14006030a
mov byte [rdi + 0x344], 1
xor eax, eax
jmp 0x14006030a
mov byte [rdi + 0x344], 0
xor eax, eax
jmp 0x14006030a
mov rcx, r12
mov r9, rsi
mov r8, rbx
mov edx, r14d
call qword [sym.imp.USER32.dll_DefWindowProcW]
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140086080
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rdi + 0x204], 0x7ffffffe
mov ecx, 6
call fcn.140061d84
int3
mov ecx, 5
call fcn.140061d84
int3
dec eax
mov ecx, 6
mov dword [rdi + 0x3e4], eax
call fcn.140061d84
int3
mov ecx, 5
call fcn.140061d84
int3
mov ecx, 6
mov dword [rbx + 0x4c], 0x7ffffffe
call fcn.140061d84
int3
mov ecx, 5
call fcn.140061d84
int3