Function at 0x481600
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [esp + 0x48]
xor ebx, ebx
cmp ebp, ebx
push esi
push edi
je 0x481b62
cmp dword [0x694c78], ebx
jne 0x481b62
cmp dword [0x61ab50], ebx
je 0x481639
cmp ebp, dword [0x696a88]
jne 0x481639
mov edi, dword [0x61ab54]
jmp 0x48167b
cmp dword [0x61a9ec], ebx
je 0x481651
cmp ebp, dword [0x694c7c]
jne 0x481651
mov edi, dword [0x61aa08]
jmp 0x48167b
cmp dword [0x61af40], ebx
je 0x481b62
cmp ebp, dword [0x698920]
jne 0x481b62
cmp dword [0x676e80], ebx
jne 0x481b62
mov edi, dword [0x61af44]
mov eax, dword [esp + 0x54]
movzx ecx, ax
shr eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
cmp eax, 0x201
mov dword [esp + 0x10], ecx
jne 0x481ab4
lea edx, [esp + 0x10]
push edx
push edi
push ebp
call fcn.00480b40
add esp, 0xc
test eax, eax
je 0x4816bb
mov dword [0x642fac], 1
jmp 0x4816dc
lea eax, [esp + 0x10]
push eax
push edi
push ebp
call fcn.004811e0
add esp, 0xc
test eax, eax
je 0x481a8e
mov dword [0x642fac], 2
call fcn.0056dea0
mov eax, dword [0x61ab50]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
mov ebx, dword [sym.imp.USER32.dll_UpdateWindow]
je 0x48170f
mov eax, dword [0x696a88]
test eax, eax
je 0x48170f
push 1
push 0
push eax
call esi
mov ecx, dword [0x696a88]
push ecx
call ebx
mov eax, dword [0x61a9ec]
test eax, eax
je 0x48173b
mov eax, dword [0x694c7c]
test eax, eax
je 0x48173b
push 1
push 0
push eax
mov dword [0x61aa04], 0
call esi
mov edx, dword [0x694c7c]
push edx
call ebx
mov eax, dword [0x61af40]
test eax, eax
je 0x48175c
mov eax, dword [0x698920]
test eax, eax
je 0x48175c
push 1
push 0
push eax
call esi
mov eax, dword [0x698920]
push eax
call ebx
mov ecx, dword [0x6a0f44]
push ecx
call ebx
mov edx, dword [0x6a0f40]
push edx
call ebx
mov ecx, dword [0x6a0f40]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_ClipCursor]
mov eax, dword [0x6a0f40]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [0x642fac]
cmp eax, 1
jne 0x4817b5
push 0x7f86
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x642fd4], eax
jmp 0x4817d8
cmp eax, 2
jne 0x4817d3
push edi
call fcn.004810e0
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x642fd4], eax
jmp 0x4817d8
mov eax, dword [0x642fd4]
mov ecx, dword [0x642fd0]
test ecx, ecx
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
je 0x4817ed
call esi
jmp 0x4817f4
call esi
mov dword [0x642fd0], eax
cmp dword [0x642fac], 2
jne 0x481818
movzx ecx, word [esp + 0x14]
movzx edx, word [esp + 0x10]
shl ecx, 0x10
push 0
or ecx, edx
push ecx
push ebp
call fcn.00481240
add esp, 0xc
mov eax, dword [0x642fd4]
push eax
call esi
mov ebp, dword [sym.imp.USER32.dll_GetActiveWindow]
call ebp
cmp eax, dword [0x6a0f40]
jne 0x48194c
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
lea ebx, [ebx]
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x481a45
mov eax, dword [esp + 0x34]
cmp eax, 0x200
jb 0x4818dd
cmp eax, 0x209
ja 0x4818dd
cmp eax, 0x200
jne 0x4818b1
mov eax, dword [0x642fac]
cmp eax, 1
jne 0x481890
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x50]
push edx
push eax
call fcn.00480cf0
add esp, 8
jmp 0x481932
cmp eax, 2
jne 0x481932
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
push eax
push ecx
push edx
call fcn.00481240
add esp, 0xc
jmp 0x481932
cmp eax, 0x202
jne 0x481932
mov eax, dword [0x642fac]
cmp eax, 1
jne 0x48199d
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
push ecx
push edx
call fcn.00480cf0
add esp, 8
jmp 0x481a45
cmp eax, 0x100
jb 0x48191a
cmp eax, 0x108
ja 0x48191a
mov eax, dword [esp + 0x38]
cmp eax, 0xd
je 0x4819b7
cmp eax, 0x1b
jne 0x481932
mov eax, dword [0x642fac]
cmp eax, 1
jne 0x481a21
movzx eax, word [esp + 0x14]
movzx ecx, word [esp + 0x10]
jmp 0x4819f9
sub esp, 0x1c
mov ecx, 7
lea esi, [esp + 0x4c]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004fe880
add esp, 0x1c
mov eax, dword [0x642fd4]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call ebp
cmp eax, dword [0x6a0f40]
je 0x481840
mov eax, dword [0x642fac]
cmp eax, 1
jne 0x481978
movzx ecx, word [esp + 0x14]
movzx edx, word [esp + 0x10]
mov eax, dword [esp + 0x50]
shl ecx, 0x10
or ecx, edx
push ecx
push eax
call fcn.00480cf0
add esp, 8
jmp 0x481a45
cmp eax, 2
jne 0x481a45
movzx ecx, word [esp + 0x14]
movzx edx, word [esp + 0x10]
mov eax, dword [esp + 0x50]
shl ecx, 0x10
push 4
or ecx, edx
push ecx
push eax
jmp 0x481a3d
cmp eax, 2
jne 0x481a45
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
push 3
push eax
push ecx
jmp 0x481a3d
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx edx, ax
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [0x6a0f40]
push ecx
mov dword [esp + 0x18], eax
push edx
sar eax, 0x10
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [0x642fac]
cmp eax, 1
jne 0x481a0e
movzx eax, word [esp + 0x1c]
movzx ecx, word [esp + 0x18]
mov edx, dword [esp + 0x50]
shl eax, 0x10
or eax, ecx
push eax
push edx
call fcn.00480cf0
add esp, 8
jmp 0x481a45
cmp eax, 2
jne 0x481a45
movzx eax, word [esp + 0x1c]
movzx ecx, word [esp + 0x18]
push 3
jmp 0x481a32
cmp eax, 2
jne 0x481a45
movzx eax, word [esp + 0x14]
movzx ecx, word [esp + 0x10]
push 4
mov edx, dword [esp + 0x54]
shl eax, 0x10
or eax, ecx
push eax
push edx
call fcn.00481240
add esp, 0xc
mov eax, dword [0x642fd0]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x642fd0], 0
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
mov ecx, dword [0x6a0f44]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push ecx
call esi
mov edx, dword [0x6a0f40]
push edx
call esi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov eax, dword [0x642fd0]
cmp eax, ebx
je 0x481aa4
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x642fd0], ebx
mov dword [0x642fac], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
cmp eax, 0x200
jne 0x481b4c
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call esi
test ah, ah
js 0x481b4c
push 2
call esi
test ah, ah
js 0x481b4c
lea eax, [esp + 0x10]
push eax
push edi
push ebp
call fcn.00480b40
add esp, 0xc
test eax, eax
je 0x481b15
push 0x7f86
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
cmp dword [0x642fd0], ebx
mov dword [0x642fd4], eax
push eax
je 0x481b34
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
lea ecx, [esp + 0x10]
push ecx
push edi
push ebp
call fcn.004811e0
add esp, 0xc
test eax, eax
je 0x481b4c
push edi
call fcn.004810e0
add esp, 4
push eax
jmp 0x481aed
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x642fd0], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov eax, dword [0x642fd0]
cmp eax, ebx
je 0x481b62
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x642fd0], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret