Function at 0x1004fe60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0x70
call esi
test ax, ax
jns 0x1004fef1
cmp byte [0x1008a0a0], 0
jne 0x1004fef1
mov al, byte [0x1008a08a]
mov byte [ebp - 4], al
mov eax, dword [0x1008a104]
add eax, 0x3b7c50
mov byte [0x1008a0a0], 1
mov byte [0x1008a095], 0
mov byte [0x1008a094], 0
mov byte [0x1008a091], 0
mov byte [0x1008a08f], 0
mov byte [0x1008a092], 0
mov byte [0x1008a093], 0
mov byte [0x1008a090], 0
mov byte [0x1008a08e], 0
mov byte [0x1008a08d], 0
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [ebp - 8]
cmp byte [0x10089fac], 0
sete byte [0x10089fac]
jmp 0x1004ff0a
push 0x70
call esi
test ax, ax
js 0x1004ff0a
cmp byte [0x1008a0a0], 0
je 0x1004ff0a
mov byte [0x1008a0a0], 0
push 0x71
call esi
test ax, ax
jns 0x1004ff7d
cmp byte [0x1008a08d], 0
je 0x1004ff7d
mov al, byte [0x1008a08a]
mov byte [ebp - 8], al
mov eax, dword [0x1008a104]
add eax, 0x3b7c50
mov byte [0x1008a095], 0
mov byte [0x1008a094], 0
mov byte [0x1008a091], 0
mov byte [0x1008a08f], 0
mov byte [0x1008a092], 0
mov byte [0x1008a093], 0
mov byte [0x1008a090], 0
mov byte [0x1008a08e], 0
mov byte [0x1008a08d], 0
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [ebp - 4]
mov byte [0x1008a09f], 1
push 0x71
call esi
test ax, ax
jns 0x1004ffd0
cmp byte [0x1008a09f], 0
jne 0x1004ffd0
mov byte [0x1008a09f], 1
mov byte [0x1008a09d], 0
mov byte [0x1008a09c], 0
mov byte [0x1008a09b], 0
mov byte [0x1008a09a], 0
mov byte [0x1008a099], 0
mov byte [0x1008a098], 0
mov byte [0x1008a097], 0
mov byte [0x1008a096], 0
jmp 0x1004ffe9
push 0x71
call esi
test ax, ax
js 0x1004ffe9
cmp byte [0x1008a09f], 0
je 0x1004ffe9
mov byte [0x1008a09f], 0
cmp byte [0x1008a083], 0
je 0x1004fff7
call fcn.10050500
cmp byte [0x1008a084], 0
je 0x10050005
call fcn.100513a0
cmp byte [0x1008a0a1], 0
je 0x100501ef
push 0x1008a0ac
push 0
call dword [sym.imp.XINPUT1_4.dll_Ordinal_2]
test eax, eax
jne 0x100501ef
mov esi, dword [0x1008a8b0]
mov esi, dword [esi]
cmp byte [esi + 0xd], al
jne 0x100500dc
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0x10]
test ecx, ecx
je 0x10050096
movzx eax, word [0x1008a0b0]
and eax, ecx
cmp eax, ecx
jne 0x10050075
push edi
call fcn.10054140
cmp byte [eax], 0
jne 0x10050075
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x10050120
mov eax, dword [ecx]
call dword [eax + 8]
push edi
call fcn.10054140
mov byte [eax], 1
jmp 0x10050096
movzx eax, word [0x1008a0b0]
and eax, dword [edi]
cmp eax, dword [edi]
je 0x10050096
push edi
call fcn.10054140
cmp byte [eax], 0
je 0x10050096
push edi
call fcn.10054140
mov byte [eax], 0
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x100500bc
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100500b8
cmp esi, dword [eax + 8]
jne 0x100500b8
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100500a8
mov esi, eax
jmp 0x100500d2
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x100500d2
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x100500c6
cmp byte [esi + 0xd], 0
je 0x10050038
mov ecx, dword [0x10089f58]
test ecx, ecx
jne 0x10050104
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 [0x10089f58]
add esp, 0xc
test dword [0x1008a0b0], 0x1000
xorps xmm0, xmm0
movss xmm1, dword [0x1007d1fc]
je 0x10050126
movaps xmm2, xmm1
jmp 0x10050129
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
xorps xmm2, xmm2
movss dword [ecx + 0x304], xmm2
test dword [0x1008a0b0], 0x2000
jne 0x10050140
xorps xmm1, xmm1
movss xmm2, dword [0x1007d174]
mov esi, 0xffffe157
movss dword [ecx + 0x308], xmm1
mov dword [ecx + 0x310], 0
mov ax, word [0x1008a0b4]
cmp ax, si
jge 0x10050178
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm2
jmp 0x1005017b
xorps xmm1, xmm1
movss dword [ecx + 0x324], xmm1
mov edx, 0x1ea9
mov ax, word [0x1008a0b4]
cmp ax, dx
jle 0x100501a1
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm2
jmp 0x100501a4
xorps xmm1, xmm1
movss dword [ecx + 0x328], xmm1
mov ax, word [0x1008a0b6]
cmp ax, dx
jle 0x100501c5
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm2
jmp 0x100501c8
xorps xmm1, xmm1
movss dword [ecx + 0x32c], xmm1
mov ax, word [0x1008a0b6]
cmp ax, si
jge 0x100501e7
cwde
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [ecx + 0x330], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret