Function at 0x10040c60
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0x70
call esi
test ax, ax
jns 0x10040c92
cmp byte [0x1006ef27], 0
jne 0x10040c92
cmp byte [0x1006ee6e], 0
mov byte [0x1006ef27], 1
sete byte [0x1006ee6e]
jmp 0x10040cab
push 0x70
call esi
test ax, ax
js 0x10040cab
cmp byte [0x1006ef27], 0
je 0x10040cab
mov byte [0x1006ef27], 0
push 0x71
call esi
test ax, ax
jns 0x10040ce9
cmp byte [0x1006ef26], 0
jne 0x10040ce9
mov byte [0x1006ef26], 1
mov byte [0x1006ef23], 0
mov byte [0x1006ef22], 0
mov byte [0x1006ef21], 0
mov byte [0x1006ef20], 0
mov byte [0x1006ef1f], 0
jmp 0x10040d02
push 0x71
call esi
test ax, ax
js 0x10040d02
cmp byte [0x1006ef26], 0
je 0x10040d02
mov byte [0x1006ef26], 0
cmp byte [0x1006ef12], 0
je 0x10040d10
call fcn.10041770
cmp byte [0x1006ef34], 0
je 0x10040efa
push 0x1006ef38
push 0
call dword [sym.imp.XINPUT1_4.dll_Ordinal_2]
test eax, eax
jne 0x10040efa
mov esi, dword [0x1006f068]
mov esi, dword [esi]
cmp byte [esi + 0xd], al
jne 0x10040de7
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0x10]
test ecx, ecx
je 0x10040da1
movzx eax, word [0x1006ef3c]
and eax, ecx
cmp eax, ecx
jne 0x10040d80
push edi
call fcn.10042140
cmp byte [eax], 0
jne 0x10040d80
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x10040e2b
mov eax, dword [ecx]
call dword [eax + 8]
push edi
call fcn.10042140
mov byte [eax], 1
jmp 0x10040da1
movzx eax, word [0x1006ef3c]
and eax, dword [edi]
cmp eax, dword [edi]
je 0x10040da1
push edi
call fcn.10042140
cmp byte [eax], 0
je 0x10040da1
push edi
call fcn.10042140
mov byte [eax], 0
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10040dc7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10040dc3
cmp esi, dword [eax + 8]
jne 0x10040dc3
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10040db3
mov esi, eax
jmp 0x10040ddd
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x10040ddd
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10040dd1
cmp byte [esi + 0xd], 0
je 0x10040d43
mov ecx, dword [0x1006ee70]
test ecx, ecx
jne 0x10040e0f
push 0xc80
push str.C:UsersUser_source_reposLANRedTrainerLANRedTrainerimguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [0x1006ee70]
add esp, 0xc
test dword [0x1006ef3c], 0x1000
xorps xmm0, xmm0
movss xmm1, dword [0x10062f60]
je 0x10040e31
movaps xmm2, xmm1
jmp 0x10040e34
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
xorps xmm2, xmm2
movss dword [ecx + 0x304], xmm2
test dword [0x1006ef3c], 0x2000
jne 0x10040e4b
xorps xmm1, xmm1
movss xmm2, dword [0x10062ee4]
mov esi, 0xffffe157
movss dword [ecx + 0x308], xmm1
mov dword [ecx + 0x310], 0
mov ax, word [0x1006ef40]
cmp ax, si
jge 0x10040e83
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm2
jmp 0x10040e86
xorps xmm1, xmm1
movss dword [ecx + 0x324], xmm1
mov edx, 0x1ea9
mov ax, word [0x1006ef40]
cmp ax, dx
jle 0x10040eac
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm2
jmp 0x10040eaf
xorps xmm1, xmm1
movss dword [ecx + 0x328], xmm1
mov ax, word [0x1006ef42]
cmp ax, dx
jle 0x10040ed0
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm2
jmp 0x10040ed3
xorps xmm1, xmm1
movss dword [ecx + 0x32c], xmm1
mov ax, word [0x1006ef42]
cmp ax, si
jge 0x10040ef2
cwde
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [ecx + 0x330], xmm0
pop edi
pop esi
pop ecx
ret