Function at 0x474e8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x35], 0
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, ebx
call fcn.0041575c
mov eax, dword [ebp - 0x18]
call fcn.00476194
test eax, eax
jne 0x474ee7
lea ecx, [ebp - 0x74]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.004486a4
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x40]
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x44]
sub dword [ebp - 0x20], eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x4c]
dec edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x48]
dec eax
call fcn.0041575c
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
setl byte [ebp - 0x2d]
mov dl, 1
mov eax, dword [0x414590]
call fcn.00403ae0
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4752ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
call fcn.00476194
call fcn.00470668
mov byte [ebp - 0x36], al
lea eax, [ebp - 0x50]
push eax
call sub.user32.dll_SetRectEmpty
mov al, byte [ebp - 0x36]
push eax
push 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x26c]
push eax
lea eax, [ebp - 0x48]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00472fe4
lea eax, [ebp - 0x50]
call fcn.0047024c
mov eax, 0xc
call fcn.00402774
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x474fc0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebx], eax
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x44]
sub edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x50]
call fcn.0041575c
mov eax, dword [ebp - 0x74]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [ebx + 8], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x1c]
call fcn.00416c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x474fdc
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 4]
mov eax, esi
call fcn.0041f69c
dec eax
test eax, eax
jl 0x4750d3
inc eax
mov dword [ebp - 0x40], eax
xor ebx, ebx
mov edx, ebx
mov eax, esi
call fcn.0041f670
mov edx, dword [0x46eb80]
call fcn.00403c9c
test al, al
je 0x4750c9
mov eax, 0xc
call fcn.00402774
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x4750ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [ebp - 0x3c]
mov edx, ebx
mov eax, esi
call fcn.0041f670
mov dword [edi], eax
mov edx, ebx
mov eax, esi
call fcn.0041f670
push eax
mov eax, dword [ebp - 0x18]
call fcn.00476194
pop edx
cmp edx, eax
je 0x47507e
mov al, byte [ebp - 0x36]
push eax
mov edx, ebx
mov eax, esi
call fcn.0041f670
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x26c]
push eax
lea eax, [edi + 4]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00472fe4
jmp 0x475098
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x7c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [edi + 8], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x1c]
call fcn.00416c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4750c9
inc ebx
dec dword [ebp - 0x40]
jne 0x474ff8
call fcn.00470768
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_LockWindowUpdate
push 0x403
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetDCEx
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x475292
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x50ca24]
mov eax, dword [eax]
mov al, byte [eax + 0x88]
mov byte [ebp - 0x37], al
mov eax, dword [0x50ca24]
mov eax, dword [eax]
xor edx, edx
call fcn.004692d0
xor eax, eax
push ebp
push 0x47524c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
call fcn.0044f370
push eax
call sub.user32.dll_SetCapture
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
call sub.user32.dll_SetRectEmpty
push ebp
call fcn.00474b80
pop ecx
jmp 0x475200
push 0
push 0
push 0
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_GetMessageA
sub eax, 0xffffffff
je 0x475217
dec eax
je 0x475177
jmp 0x475185
mov eax, dword [ebp - 0x64]
push eax
call sub.user32.dll_PostQuitMessage
jmp 0x475217
mov eax, dword [ebp - 0x68]
cmp eax, 0x202
jg 0x4751a7
je 0x4751e8
add eax, 0xffffff00
sub eax, 2
jb 0x4751b6
sub eax, 0xfe
je 0x4751df
dec eax
je 0x475217
jmp 0x4751ee
sub eax, 0x203
je 0x475217
dec eax
sub eax, 6
jb 0x475200
jmp 0x4751ee
cmp dword [ebp - 0x64], 0x11
jne 0x475200
cmp dword [ebp - 0x68], 0x100
sete al
cmp al, byte [ebp - 0x2d]
je 0x475200
cmp dword [ebp - 0x68], 0x100
sete byte [ebp - 0x2d]
push ebp
call fcn.00474b80
pop ecx
jmp 0x475200
push ebp
call fcn.00474b80
pop ecx
jmp 0x475200
mov byte [ebp - 0x35], 1
jmp 0x475217
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_DispatchMessageA
mov eax, dword [ebp - 0x18]
call fcn.0044f370
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
je 0x47515a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475253
mov eax, dword [ebp - 0x18]
call fcn.0044f370
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
jne 0x47523c
call sub.user32.dll_ReleaseCapture
mov eax, dword [0x50ca24]
mov eax, dword [eax]
mov dl, byte [ebp - 0x37]
call fcn.004692d0
ret