Function at 0x140020760
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x340
mov rax, qword [0x1403f4280]
xor rax, rsp
mov qword [rsp + 0x338], rax
call fcn.140020740
nop
lea rcx, [0x1403f4e80]
call fcn.140021290
movzx eax, al
test eax, eax
jne 0x1400207d9
lea rcx, [0x1403f4e80]
call fcn.14005ca00
nop
lea rcx, [0x1403f4e80]
call fcn.140021290
movzx eax, al
test eax, eax
jne 0x1400207d7
mov dword [rsp + 0x50], 5
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x198]
call fcn.140019af0
mov rcx, rax
call fcn.14001def0
nop
jmp 0x140020781
lea rcx, [0x1403f4e80]
call fcn.140020720
mov ecx, eax
call fcn.1400f8210
call fcn.1400f7dd0
nop
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x1d8]
call fcn.14001a250
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.140022fb0
nop
lea rcx, [rsp + 0x1d8]
call fcn.14001fed0
nop
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x41]
lea rcx, [rsp + 0x1e8]
call fcn.14001a280
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xe0]
call fcn.140022fb0
nop
lea rcx, [rsp + 0x1e8]
call fcn.14001fed0
nop
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x42]
lea rcx, [rsp + 0x1f8]
call fcn.14001a2b0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xf0]
call fcn.140022fb0
nop
lea rcx, [rsp + 0x1f8]
call fcn.14001fed0
nop
lea rax, [rsp + 0x43]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x43]
lea rcx, [rsp + 0x208]
call fcn.14001a2e0
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rcx, qword [rsp + 0x100]
call fcn.140022fb0
nop
lea rcx, [rsp + 0x208]
call fcn.14001fed0
nop
call fcn.1400f8200
movzx eax, al
test eax, eax
je 0x14002126d
mov edx, 0x28
lea rcx, [rsp + 0x2c8]
call fcn.140016bb0
call fcn.1400f8610
mov qword [rsp + 0x108], rax
call fcn.1400f8600
mov qword [rsp + 0x110], rax
call fcn.1400f7da0
mov qword [rsp + 0x118], rax
call fcn.1400f7d90
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x110]
mov r8, qword [rsp + 0x118]
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x2c8]
call fcn.14001ed80
nop
lea rcx, [rsp + 0x2c8]
call fcn.1400f1e60
nop
lea rax, [rsp + 0x270]
mov qword [rsp + 0x138], rax
lea rax, [rsp + 0x2c8]
mov qword [rsp + 0x128], rax
lea rax, [0x1400f3590]
mov qword [rsp + 0x130], rax
lea rax, [0x140115554]
mov qword [rsp + 0x30], rax
lea rax, [0x140115553]
mov qword [rsp + 0x28], rax
lea rax, [0x140115552]
mov qword [rsp + 0x20], rax
lea r9, [0x140115551]
lea r8, [rsp + 0x128]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x258]
call fcn.14001c900
mov rdx, rax
mov rcx, qword [rsp + 0x138]
call fcn.14001a310
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x140]
call fcn.1400f82b0
nop
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x308]
call sub.VCRUNTIME140.dll_memset
nop
cmp dword [rsp + 0x310], 0x12
je 0x14002125f
call fcn.1400f7d90
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x308]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140020aeb
lea rcx, [rsp + 0x308]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x308]
call qword [sym.imp.USER32.dll_DispatchMessageW]
nop
lea rcx, [rsp + 0x2c8]
call fcn.140020710
mov byte [rsp + 0x44], al
call fcn.140080510
movzx ecx, byte [rsp + 0x44]
mov byte [rax + 0x50], cl
lea rcx, [0x1403f4e80]
call fcn.14005f840
lea rcx, [0x1403f4e80]
call fcn.140060a90
nop
cmp dword [rsp + 0x2ec], 0
jne 0x140020b36
cmp dword [rsp + 0x2e8], 0
je 0x140020baf
call fcn.1400f8510
call fcn.1400f8620
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x148], rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x2ec]
mov r8d, dword [rsp + 0x2e8]
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [rsp + 0x148]
mov dword [rsp + 0x2e8], 0
mov eax, dword [rsp + 0x2e8]
mov dword [rsp + 0x2ec], eax
call fcn.1400f8550
nop
lea rcx, [rsp + 0x2c8]
call fcn.1400ee420
call fcn.1400f82e0
nop
movzx eax, byte [0x1403f52a0]
movzx ecx, byte [0x1403f52ac]
cmp eax, ecx
je 0x140020c2b
movzx eax, byte [0x1403f52a0]
mov byte [0x1403f52ac], al
movzx eax, byte [0x1403f52ac]
test eax, eax
je 0x140020bf6
mov dword [rsp + 0x48], 0x11
jmp 0x140020bfe
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x54], eax
call fcn.1400f7d90
mov qword [rsp + 0x150], rax
lea r8, [rsp + 0x54]
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x45]
call fcn.14001a620
nop
call fcn.1400bd490
call fcn.1400bf060
call fcn.14008c280
mov r8d, 0x30281
xor edx, edx
lea rcx, str.HiddenOverlayWindow
call fcn.140072aa0
call fcn.140081210
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x4c], xmm0
mov ecx, 0x34
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140020c79
mov byte [0x140390018], 0
movzx eax, byte [0x140390018]
test eax, eax
je 0x140020fc0
movss xmm0, dword [0x1403f52a8]
ucomiss xmm0, dword [0x140115630]
jp 0x140020ca9
jne 0x140020ca9
movss xmm0, dword [rsp + 0x4c]
movss dword [0x1403f52a8], xmm0
movss xmm0, dword [rsp + 0x4c]
subss xmm0, dword [0x1403f52a8]
movss dword [rsp + 0x58], xmm0
movss xmm0, dword [0x140115640]
comiss xmm0, dword [rsp + 0x58]
jbe 0x140020fb9
call fcn.140080510
mov rax, qword [rax + 8]
mov qword [rsp + 0x2b0], rax
lea rax, str.Press_4_to_open_the_menu
mov qword [rsp + 0x98], rax
call fcn.14007f990
mov qword [rsp + 0x168], rax
mov dword [rsp + 0x20], 0x80
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x218]
call fcn.14001ec20
mov rcx, rax
call fcn.14001ff80
mov dword [rsp + 0x5c], eax
movss xmm2, dword [rsp + 0x2b4]
movss xmm1, dword [rsp + 0x2b0]
lea rcx, [rsp + 0x1a0]
call fcn.14001ecb0
mov qword [rsp + 0x158], rax
xorps xmm2, xmm2
xorps xmm1, xmm1
lea rcx, [rsp + 0x1a8]
call fcn.14001ecb0
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x28], 0
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
mov r9d, dword [rsp + 0x5c]
mov r8, qword [rsp + 0x158]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x168]
call fcn.1400a1620
nop
movss xmm0, dword [0x140115650]
movss dword [rsp + 0x20], xmm0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x2f0]
call fcn.140078880
movss xmm0, dword [rsp + 0x2b4]
subss xmm0, dword [rsp + 0x2f4]
divss xmm0, dword [0x14011563c]
subss xmm0, dword [0x14011564c]
movss xmm1, dword [rsp + 0x2b0]
subss xmm1, dword [rsp + 0x2f0]
divss xmm1, dword [0x14011563c]
movaps xmm2, xmm0
lea rcx, [rsp + 0x2f8]
call fcn.14001ecb0
movss xmm2, dword [0x140115648]
movss xmm1, dword [0x140115648]
lea rcx, [rsp + 0x2b8]
call fcn.14001ecb0
movss xmm0, dword [rsp + 0x2fc]
subss xmm0, dword [rsp + 0x2bc]
subss xmm0, dword [0x140115644]
movss xmm1, dword [rsp + 0x2b0]
subss xmm1, dword [rsp + 0x2b8]
divss xmm1, dword [0x14011563c]
movaps xmm2, xmm0
lea rcx, [rsp + 0x2c0]
call fcn.14001ecb0
nop
call fcn.14007f990
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x20], 0xff
mov r9d, 0xff
mov r8d, 0xff
mov edx, 0xff
lea rcx, [rsp + 0x228]
call fcn.14001ec20
mov rcx, rax
call fcn.14001ff80
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x98]
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x2f8]
mov rcx, qword [rsp + 0x170]
call fcn.1400a3ee0
nop
movss xmm0, dword [rsp + 0x2c4]
addss xmm0, dword [rsp + 0x2bc]
movss xmm1, dword [rsp + 0x2c0]
addss xmm1, dword [rsp + 0x2b8]
movaps xmm2, xmm0
lea rcx, [rsp + 0x300]
call fcn.14001ecb0
nop
call fcn.14007f990
mov qword [rsp + 0x190], rax
movss xmm2, dword [0x140115638]
movss xmm1, dword [0x140115638]
lea rcx, [rsp + 0x1b0]
call fcn.14001ecb0
mov qword [rsp + 0x178], rax
xorps xmm2, xmm2
xorps xmm1, xmm1
lea rcx, [rsp + 0x1b8]
call fcn.14001ecb0
mov qword [rsp + 0x180], rax
mov rax, qword [0x1403f4e70]
mov qword [rsp + 0x188], rax
mov dword [rsp + 0x30], 0xffffffff
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x300]
lea r8, [rsp + 0x2c0]
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x190]
call fcn.14009f180
nop
jmp 0x140020fc0
mov byte [0x140390018], 0
call fcn.14007c440
nop
movzx eax, byte [0x140390018]
test eax, eax
jne 0x1400211cd
movzx eax, byte [0x1403f5268]
test eax, eax
je 0x1400210b9
call fcn.14007f990
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x20], 0xff
mov r9d, 0xff
mov r8d, 0xff
mov edx, 0xff
lea rcx, [rsp + 0x238]
call fcn.14001ec20
mov rcx, rax
call fcn.14001ff80
mov dword [rsp + 0x6c], eax
cvtsi2ss xmm0, dword [0x1403f5198]
movss dword [rsp + 0x70], xmm0
call fcn.140080510
movss xmm0, dword [rax + 0xc]
divss xmm0, dword [0x14011563c]
movss dword [rsp + 0x64], xmm0
call fcn.140080510
movss xmm0, dword [rax + 8]
divss xmm0, dword [0x14011563c]
movss dword [rsp + 0x68], xmm0
movss xmm2, dword [rsp + 0x64]
movss xmm1, dword [rsp + 0x68]
lea rcx, [rsp + 0x1c0]
call fcn.14001ecb0
mov qword [rsp + 0xa0], rax
movss xmm0, dword [0x140115638]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0x168
mov r9d, dword [rsp + 0x6c]
movss xmm2, dword [rsp + 0x70]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
call fcn.14009d9f0
nop
movzx eax, byte [0x1403f5269]
test eax, eax
je 0x14002119d
call fcn.14007f990
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x20], 0xff
xor r9d, r9d
xor r8d, r8d
mov edx, 0xff
lea rcx, [rsp + 0x248]
call fcn.14001ec20
mov rcx, rax
call fcn.14001ff80
mov dword [rsp + 0x7c], eax
cvtsi2ss xmm0, dword [0x1403f51c0]
movss dword [rsp + 0x80], xmm0
call fcn.140080510
movss xmm0, dword [rax + 0xc]
divss xmm0, dword [0x14011563c]
movss dword [rsp + 0x74], xmm0
call fcn.140080510
movss xmm0, dword [rax + 8]
divss xmm0, dword [0x14011563c]
movss dword [rsp + 0x78], xmm0
movss xmm2, dword [rsp + 0x74]
movss xmm1, dword [rsp + 0x78]
lea rcx, [rsp + 0x1c8]
call fcn.14001ecb0
mov qword [rsp + 0xb0], rax
movss xmm0, dword [0x140115638]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0x168
mov r9d, dword [rsp + 0x7c]
movss xmm2, dword [rsp + 0x80]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
call fcn.14009d9f0
nop
movzx eax, byte [0x1403f5250]
test eax, eax
je 0x1400211ae
call fcn.140057940
nop
movzx eax, byte [0x1403f51d8]
test eax, eax
je 0x1400211bf
call fcn.140053df0
nop
lea rcx, [rsp + 0x2c8]
call fcn.1400ef9a0
nop
call fcn.14007cc30
call fcn.14008e540
call fcn.1400f8650
call fcn.140080120
mov rcx, rax
call fcn.1400bd4c0
call fcn.1400f8620
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0xc0], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [rsp + 0xc0]
nop
movzx eax, byte [0x1403f5294]
test eax, eax
je 0x14002123d
lea rcx, [rsp + 0x2c8]
call fcn.14001fdf0
nop
jmp 0x14002126d
lea rdx, [0x1403f52a4]
lea rcx, [rsp + 0x1d0]
call fcn.140019af0
mov rcx, rax
call fcn.14001df20
nop
jmp 0x140020a98
lea rcx, [rsp + 0x2c8]
call fcn.14001fdf0
nop
mov rcx, qword [rsp + 0x338]
xor rcx, rsp
call fcn.140100260
add rsp, 0x340
pop rdi
ret