Function at 0x47081c
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.0040e610
mov eax, dword [ebp - 0x18]
call fcn.00471b24
test eax, eax
jne 0x470877
lea ecx, [ebp - 0x74]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.0042219c
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 + 0x30]
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x34]
sub dword [ebp - 0x20], eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x3c]
dec edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
dec eax
call fcn.0040e610
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
setl byte [ebp - 0x2d]
mov dl, 1
mov eax, dword [0x40da28]
call fcn.00402f84
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x470c79
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
call fcn.00471b24
call fcn.0046c010
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 + 0x174]
push eax
lea eax, [ebp - 0x48]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.0046e964
lea eax, [ebp - 0x50]
call fcn.0046bbf4
mov eax, 0xc
call fcn.004026d4
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x470950
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.0040e610
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.0040eeb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47096c
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 4]
mov eax, esi
call fcn.004157b0
dec eax
test eax, eax
jl 0x470a63
inc eax
mov dword [ebp - 0x40], eax
xor ebx, ebx
mov edx, ebx
mov eax, esi
call fcn.00415744
mov edx, dword [0x46a704]
call fcn.0040307c
test al, al
je 0x470a59
mov eax, 0xc
call fcn.004026d4
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x470a3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [ebp - 0x3c]
mov edx, ebx
mov eax, esi
call fcn.00415744
mov dword [edi], eax
mov edx, ebx
mov eax, esi
call fcn.00415744
push eax
mov eax, dword [ebp - 0x18]
call fcn.00471b24
pop edx
cmp edx, eax
je 0x470a0e
mov al, byte [ebp - 0x36]
push eax
mov edx, ebx
mov eax, esi
call fcn.00415744
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x174]
push eax
lea eax, [edi + 4]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.0046e964
jmp 0x470a28
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
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.0040eeb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x470a59
inc ebx
dec dword [ebp - 0x40]
jne 0x470988
call fcn.0046c110
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 0x470c1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4a4664]
mov eax, dword [eax]
mov al, byte [eax + 0x68]
mov byte [ebp - 0x37], al
mov eax, dword [0x4a4664]
mov eax, dword [eax]
xor edx, edx
call fcn.0043295c
xor eax, eax
push ebp
push 0x470bd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
call fcn.0042627c
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.00470504
pop ecx
jmp 0x470b8d
push 0
push 0
push 0
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_GetMessageA
sub eax, 0xffffffff
je 0x470ba4
dec eax
je 0x470b04
jmp 0x470b12
mov eax, dword [ebp - 0x64]
push eax
call sub.user32.dll_PostQuitMessage
jmp 0x470ba4
mov eax, dword [ebp - 0x68]
cmp eax, 0x202
jg 0x470b34
je 0x470b75
add eax, 0xffffff00
sub eax, 2
jb 0x470b43
sub eax, 0xfe
je 0x470b6c
dec eax
je 0x470ba4
jmp 0x470b7b
sub eax, 0x203
je 0x470ba4
dec eax
sub eax, 6
jb 0x470b8d
jmp 0x470b7b
cmp dword [ebp - 0x64], 0x11
jne 0x470b8d
cmp dword [ebp - 0x68], 0x100
sete al
cmp al, byte [ebp - 0x2d]
je 0x470b8d
cmp dword [ebp - 0x68], 0x100
sete byte [ebp - 0x2d]
push ebp
call fcn.00470504
pop ecx
jmp 0x470b8d
push ebp
call fcn.00470504
pop ecx
jmp 0x470b8d
mov byte [ebp - 0x35], 1
jmp 0x470ba4
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.0042627c
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
je 0x470ae7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470be0
mov eax, dword [ebp - 0x18]
call fcn.0042627c
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
jne 0x470bc9
call sub.user32.dll_ReleaseCapture
mov eax, dword [0x4a4664]
mov eax, dword [eax]
mov dl, byte [ebp - 0x37]
call fcn.0043295c
ret