Function at 0x4a1c1c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff3c
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 8], eax
mov byte [ebp - 0x6d], 0
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x218]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x214]
mov dword [ebp - 0x64], eax
xor edx, edx
push ebp
push 0x4a2420
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov byte [eax + 0x2c1], 1
mov eax, dword [ebp - 8]
mov byte [eax + 0x2c2], 0
mov eax, dword [ebp - 8]
cmp byte [eax + 0x224], 0
je 0x4a1cd1
mov eax, dword [ebp - 8]
mov byte [eax + 0x2c3], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
mov byte [eax + 0x21a], 1
call fcn.0049ca88
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
mov al, byte [eax + 0x210]
add al, 0xfe
sub al, 2
setb al
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 8]
mov al, byte [eax + 0x2c3]
mov byte [ebp - 0x1d], al
xor eax, eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4a23f7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov al, byte [eax + 0x296]
mov byte [ebp - 0x59], al
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x59]
mov byte [eax + 0x2c4], dl
lea ecx, [ebp - 0x41]
mov edx, esi
mov eax, ebx
call fcn.0041d52c
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x30]
mov eax, ebx
mov edx, dword [0x49b834]
call fcn.00404248
test al, al
jne 0x4a1d86
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 8]
call fcn.0046f898
push eax
call sub.user32.dll_GetWindowRect
lea ecx, [ebp - 0xb4]
xor edx, edx
xor eax, eax
call fcn.0041d52c
lea edx, [ebp - 0xb4]
lea ecx, [ebp - 0xac]
mov eax, dword [ebp - 8]
call fcn.00468a78
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x49]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x4c]
dec edx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
dec eax
call fcn.0041d52c
jmp 0x4a1de8
lea eax, [ebp - 0x88]
push eax
mov eax, ebx
call fcn.0046f898
push eax
call sub.user32.dll_GetWindowRect
lea ecx, [ebp - 0xb4]
xor edx, edx
xor eax, eax
call fcn.0041d52c
lea edx, [ebp - 0xb4]
lea ecx, [ebp - 0xac]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.00468a78
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x49]
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x30]
mov edx, dword [ebx + 0x4c]
dec edx
mov eax, dword [ebx + 0x48]
dec eax
call fcn.0041d52c
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x80]
sub dword [ebp - 0x41], eax
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x7c]
sub dword [ebp - 0x3d], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
setl byte [ebp - 0x4b]
mov eax, dword [ebp - 8]
cmp byte [eax + 0x292], 0
setne byte [ebp - 0x51]
mov dl, 1
mov eax, dword [0x41c254]
call fcn.00404080
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x292], 2
je 0x4a1e40
push ebp
call fcn.004a1ad0
pop ecx
jmp 0x4a1e5d
mov eax, dword [ebp - 8]
cmp byte [eax + 0x224], 0
je 0x4a1e5d
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x228]
mov eax, dword [ebp - 0x50]
call fcn.0041eb78
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4a1e83
inc eax
mov dword [ebp - 0x78], eax
xor esi, esi
mov edx, esi
mov eax, dword [ebp - 0x50]
call fcn.0041ecd4
call fcn.0049da20
inc esi
dec dword [ebp - 0x78]
jne 0x4a1e6e
mov dl, 1
mov eax, dword [0x41c254]
call fcn.00404080
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
dec eax
sub eax, 0xffffffff
jl 0x4a20cf
inc eax
mov dword [ebp - 0x78], eax
mov esi, 0xffffffff
mov eax, dword [ebp - 4]
call fcn.0041ecb4
mov dl, 1
mov eax, dword [0x4a10f0]
call fcn.00404080
mov dword [ebp - 0x74], eax
xor eax, eax
push ebp
push 0x4a20a3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp esi, 0xffffffff
jne 0x4a1f42
mov eax, dword [ebp - 0x74]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x74]
add eax, 8
push eax
call sub.user32.dll_SetRectEmpty
push 1
push 0
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0x238]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x228]
call fcn.0049c004
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xd4]
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0xac]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0xa8]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x74]
lea edx, [eax + 0x18]
mov eax, dword [ebp - 8]
call fcn.004a0384
jmp 0x4a2033
mov edx, esi
mov eax, dword [ebp - 0x50]
call fcn.0041ecd4
mov ebx, eax
mov eax, dword [ebp - 0x74]
mov dword [eax + 4], ebx
lea edx, [ebp - 0xc4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x74]
push esi
lea esi, [ebp - 0xc4]
lea edi, [eax + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
push 2
mov eax, dword [ebp - 0x74]
add eax, 8
push eax
push 0
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 4]
call fcn.0046f898
push eax
call sub.user32.dll_MapWindowPoints
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x228]
mov eax, dword [ebp - 0x74]
cmp ebx, dword [eax + 4]
je 0x4a2007
push 0
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0x238]
mov eax, ebx
call fcn.0049c004
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xd4]
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0xac]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0xa8]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 4]
mov al, byte [eax + 0x210]
add al, 0xfe
sub al, 2
setb cl
mov eax, dword [ebp - 0x74]
lea edx, [eax + 0x18]
mov eax, dword [ebp - 8]
call fcn.004a0354
jmp 0x4a2033
lea ecx, [ebp - 0xac]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
call fcn.0041d52c
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0xac]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0xa8]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x74]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x4a2099
mov eax, ebx
mov dl, 1
call fcn.0049c864
inc eax
push eax
mov eax, dword [ebp - 0x74]
add eax, 0x20
mov ecx, 1
mov edx, dword [0x4a10cc]
call fcn.004066e4
add esp, 4
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x20]
call fcn.00406510
mov edi, eax
test edi, edi
jl 0x4a2099
inc edi
xor ebx, ebx
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x20]
lea ecx, [eax + ebx*8 + 4]
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 4]
mov edx, ebx
call fcn.0049c6ec
mov edx, dword [ebp - 0x74]
mov edx, dword [edx + 0x20]
mov dword [edx + ebx*8], eax
inc ebx
dec edi
jne 0x4a2075
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a20ba
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.0041eb78
inc esi
dec dword [ebp - 0x78]
jne 0x4a1eab
call fcn.0048c714
call sub.user32.dll_GetCursor
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_SetRectEmpty
cmp byte [ebp - 0x59], 0
jne 0x4a210d
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 - 0x60], eax
jmp 0x4a2112
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
push ebp
push 0x4a2308
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0046f898
push eax
call sub.user32.dll_SetCapture
mov eax, dword [ebp - 8]
mov al, byte [eax + 0x224]
mov byte [ebp - 0x4a], al
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x31]
push eax
call sub.user32.dll_GetCursorPos
mov eax, dword [ebp - 0x31]
mov dword [ebp - 0x39], eax
mov eax, dword [ebp - 0x2d]
mov dword [ebp - 0x35], eax
push ebp
call fcn.004a1634
pop ecx
mov byte [ebp - 0x4a], 1
jmp 0x4a2260
push 0
push 0
push 0
lea eax, [ebp - 0xa4]
push eax
call sub.user32.dll_GetMessageA
sub eax, 0xffffffff
je 0x4a2277
dec eax
je 0x4a2184
jmp 0x4a2195
mov eax, dword [ebp - 0x9c]
push eax
call sub.user32.dll_PostQuitMessage
jmp 0x4a2277
mov ebx, dword [ebp - 0xa0]
mov eax, ebx
cmp eax, 0x202
jg 0x4a21c7
je 0x4a2242
add eax, 0xffffff00
sub eax, 2
jb 0x4a21de
sub eax, 0xfe
je 0x4a2215
dec eax
je 0x4a2277
jmp 0x4a2248
sub eax, 0x203
je 0x4a2277
dec eax
sub eax, 6
jb 0x4a2260
jmp 0x4a2248
mov eax, dword [ebp - 0x9c]
sub eax, 0x11
je 0x4a21f4
sub eax, 0xa
je 0x4a2277
jmp 0x4a2260
cmp ebx, 0x100
sete al
cmp al, byte [ebp - 0x4b]
je 0x4a2260
cmp ebx, 0x100
sete byte [ebp - 0x4b]
push ebp
call fcn.004a1634
pop ecx
jmp 0x4a2260
lea eax, [ebp - 0x6c]
call fcn.0048d5e0
mov eax, dword [ebp - 0x39]
cmp eax, dword [ebp - 0x6c]
jne 0x4a222d
mov eax, dword [ebp - 0x35]
cmp eax, dword [ebp - 0x68]
je 0x4a2260
push ebp
call fcn.004a1634
pop ecx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x39], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x35], eax
jmp 0x4a2260
mov byte [ebp - 0x6d], 1
jmp 0x4a2277
lea eax, [ebp - 0xa4]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0xa4]
push eax
call sub.user32.dll_DispatchMessageA
mov eax, dword [ebp - 8]
call fcn.0046f898
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
je 0x4a2164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2312
mov eax, dword [ebp - 8]
call fcn.0046f898
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
jne 0x4a229c
call sub.user32.dll_ReleaseCapture
cmp byte [ebp - 0x59], 0
jne 0x4a2307
mov eax, dword [ebp - 0x60]
push eax
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_ReleaseDC
push 0x403
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetDCEx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x88]
push eax
call sub.user32.dll_SetRectEmpty
lea eax, [ebp - 0x1c]
push eax
push 1
cmp dword [ebp - 0xc], 0
setne al
push eax
lea ecx, [ebp - 0x88]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 8]
call fcn.004a0f90
mov eax, dword [ebp - 0x60]
push eax
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_ReleaseDC
push 0
call sub.user32.dll_LockWindowUpdate
ret