Function at 0x4531e0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x5226e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x1c]
push 0
push 0
push 0x188
push eax
mov dword [esp + 0x54], 0
call dword [sym.imp.user32.dll_SendMessageA]
mov esi, eax
push 0x10
mov dword [esp + 0x2c], esi
call dword [sym.imp.user32.dll_GetKeyState]
test ax, ax
jge 0x453246
mov eax, dword [ebx + 0x58]
test eax, eax
jge 0x453249
mov dword [ebx + 0x58], esi
mov eax, dword [ebx + 0x58]
cmp esi, eax
jge 0x453258
mov edi, esi
mov dword [esp + 0x18], edi
jmp 0x45325e
mov dword [esp + 0x18], eax
mov edi, eax
cmp esi, eax
jle 0x45326a
mov ebp, esi
mov dword [esp + 0x20], ebp
jmp 0x453270
mov dword [esp + 0x20], eax
mov ebp, eax
cmp edi, ebp
mov esi, dword [sym.imp.rgss102j.dll_RGSSGetInt]
mov dword [esp + 0x1c], 0x7fffffff
jg 0x4532c3
push edi
lea ecx, [esp + 0x14]
push 0x54b5f4
push ecx
call fcn.004024a0
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
mov ecx, 0x589134
call fcn.004095a0
push 0x54b5dc
call esi
mov ecx, dword [esp + 0x20]
add esp, 4
cmp eax, ecx
jge 0x4532ba
mov dword [esp + 0x1c], eax
inc edi
cmp edi, ebp
jle 0x453282
mov edi, dword [esp + 0x18]
cmp edi, ebp
mov dword [esp + 0x14], 0xffffffff
jg 0x453325
nop
push edi
lea eax, [esp + 0x14]
push 0x54b5f4
push eax
call fcn.004024a0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, 0x589134
call fcn.004095a0
push 0x54b5c8
call esi
push 0x54b5dc
mov ebp, eax
call esi
add esp, 8
cmp ebp, 0x190
jge 0x453313
cmp eax, dword [esp + 0x1c]
je 0x45331e
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
jle 0x4532d0
jmp 0x453325
mov dword [esp + 0x14], edi
mov dword [ebx + 0x64], ebp
mov edi, dword [esp + 0x20]
cmp edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
jl 0x453451
jmp 0x453340
push edi
lea edx, [esp + 0x14]
push 0x54b5f4
push edx
call fcn.004024a0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
mov ecx, 0x589134
call fcn.004095a0
push 0x54b5c8
call esi
push 0x54b5dc
mov dword [esp + 0x28], eax
call esi
mov ecx, dword [ebx + 0x1c]
add esp, 8
push 0
push 0
push 0x18b
push ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.user32.dll_SendMessageA]
dec eax
cmp edi, eax
jge 0x45339b
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4533af
cmp dword [esp + 0x20], 0x190
jge 0x4533af
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x24], edx
je 0x4533bd
mov eax, dword [esp + 0x18]
dec edi
cmp edi, eax
jge 0x453340
jmp 0x453451
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, edi
mov ecx, dword [ebx + 0x1c]
push 0
sete al
push 0
push 0x18b
push ecx
mov ebp, edi
mov dword [ebx + 0x68], eax
call dword [sym.imp.user32.dll_SendMessageA]
sub eax, 2
cmp edi, eax
jge 0x453451
lea edi, [ebp + 1]
push edi
lea edx, [esp + 0x14]
push 0x54b5f4
push edx
call fcn.004024a0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
mov ecx, 0x589134
call fcn.004095a0
push 0x54b5c8
call esi
push 0x54b5dc
mov dword [esp + 0x2c], eax
call esi
mov ecx, dword [esp + 0x24]
add esp, 8
cmp eax, ecx
jl 0x453451
jne 0x453435
cmp dword [esp + 0x24], 0x190
jl 0x453451
mov ecx, dword [ebx + 0x1c]
push 0
push 0
push 0x18b
push ecx
mov ebp, edi
call dword [sym.imp.user32.dll_SendMessageA]
sub eax, 2
cmp ebp, eax
jl 0x4533e7
mov edx, dword [ebx + 0x1c]
mov edi, dword [sym.imp.user32.dll_SendMessageA]
push 0
push 0
push 0x18b
push edx
call edi
dec eax
cmp ebp, eax
jne 0x45348b
cmp dword [esp + 0x28], ebp
jl 0x453477
cmp dword [esp + 0x14], ebp
jge 0x45348b
mov eax, dword [ebx + 0x1c]
push 0
push 0
push 0x18b
push eax
call edi
mov ebp, eax
sub ebp, 2
mov ecx, dword [ebx + 0x1c]
xor esi, esi
push esi
push esi
push 0x18b
push ecx
call edi
test eax, eax
jle 0x453500
mov edi, edi
cmp esi, dword [ebx + 0x5c]
jl 0x4534b1
cmp esi, dword [ebx + 0x60]
jg 0x4534b1
mov ecx, 1
jmp 0x4534b3
xor ecx, ecx
cmp esi, dword [esp + 0x14]
jl 0x4534c4
cmp esi, ebp
jg 0x4534c4
mov eax, 1
jmp 0x4534c6
xor eax, eax
cmp ecx, eax
je 0x4534ec
mov eax, dword [ebx + 0x1c]
lea edx, [esp + 0x2c]
push edx
push esi
push 0x198
push eax
call edi
mov edx, dword [ebx + 0x1c]
push 0
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.user32.dll_InvalidateRect]
mov eax, dword [ebx + 0x1c]
push 0
push 0
push 0x18b
push eax
inc esi
call edi
cmp esi, eax
jl 0x4534a0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [ebx + 0x5c], ecx
mov dword [ebx + 0x60], ebp
mov dword [esp + 0x44], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
pop ebp
pop ebx
jg 0x453534
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x38
ret