Function at 0x140042040
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400b2580]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
lea rdx, str.MedalOverlay
lea rcx, str.MedalOverlayClass
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x1400b2730], rax
test rax, rax
jne 0x14004209e
lea r9d, [rax + 2]
xor ecx, ecx
lea r8, str.Overlay
lea rdx, str.Medal_Not_Found
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140042113
movdqa xmm0, xmmword [0x140050e80]
lea rdx, [rsp + 0x40]
mov rcx, rax
movdqu xmmword [rsp + 0x40], xmm0
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov rcx, qword [0x1400b2730]
xor r9d, r9d
mov dword [rsp + 0x30], 0x40
xor r8d, r8d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x1400b2730]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400b2730]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, rdi
call fcn.1400460c0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
nop dword [rax]
mov rcx, qword [0x1400b2730]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x1400b2730]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rdx, qword [0x1400b2730]
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140042189
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call fcn.14000ac50
mov rcx, qword [0x1400b2730]
mov rbx, rax
mov qword [rax + 0xc8], rcx
lea rcx, [rsp + 0x40]
mov dword [rax + 0x10], 0x3c888889
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm0, dword [rsp + 0x40]
mov ecx, 1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe00], xmm0
movd xmm0, dword [rsp + 0x44]
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe04], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400421ff
mov byte [rbx + 0xe08], 1
mov eax, dword [rbx + 0xe04]
mov dword [rbx + 0x36f0], eax
mov byte [rbx + 0x3740], 1
jmp 0x140042206
mov byte [rbx + 0xe08], 0
xor ecx, ecx
call fcn.140024e50
call fcn.14002dad0
call fcn.14002e990
call fcn.140011720
mov rcx, qword [0x1400b2890]
call fcn.140042d70
mov rcx, rdi
call fcn.140046470
call fcn.140013420
mov rcx, qword [0x1400b2748]
lea r8, [0x1400b2758]
xorps xmm0, xmm0
xor r9d, r9d
movups xmmword [rsp + 0x80], xmm0
mov rax, qword [rcx]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rcx, qword [0x1400b2748]
lea r8, [rsp + 0x80]
mov rdx, qword [0x1400b2758]
mov rax, qword [rcx]
call qword [rax + 0x190]
call fcn.14000a8f0
mov rcx, rax
call fcn.14002db10
mov rcx, qword [0x1400b2750]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 1]
call qword [rax + 0x40]
cmp dword [rsp + 0x58], 0x12
jne 0x140042130
call fcn.14002e770
call fcn.14002eca0
xor ecx, ecx
call fcn.140008860
mov rcx, qword [0x1400b2730]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400470b0
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret