Function at 0x492c68
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff38
push ebx
push esi
push edi
mov dword [ebp - 0x64], ecx
mov esi, edx
mov dword [ebp - 8], eax
mov byte [ebp - 0x71], 0
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x278]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x268]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x264]
mov dword [ebp - 0x68], eax
xor edx, edx
push ebp
push 0x49348d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov byte [eax + 0x311], 1
mov eax, dword [ebp - 8]
mov byte [eax + 0x312], 0
mov eax, dword [ebp - 8]
cmp byte [eax + 0x274], 0
je 0x492d25
mov eax, dword [ebp - 8]
mov byte [eax + 0x313], 0
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x278]
mov byte [edi + 0x262], 1
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0xe8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x278]
movzx eax, byte [eax + 0x258]
add al, 0xfe
sub al, 2
setb al
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x313]
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 0x493461
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x2e6]
mov byte [ebp - 0x59], al
mov eax, dword [ebp - 8]
movzx edx, byte [ebp - 0x59]
mov byte [eax + 0x314], dl
lea ecx, [ebp - 0x41]
mov edx, dword [ebp - 0x64]
mov eax, esi
call fcn.00418cd0
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x30]
mov eax, ebx
mov edx, dword [0x48c658]
call fcn.00403ebc
test al, al
jne 0x492de3
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 8]
call fcn.00461dec
push eax
call sub.user32.dll_GetWindowRect
lea ecx, [ebp - 0xc4]
xor edx, edx
xor eax, eax
call fcn.00418cd0
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0xbc]
mov eax, dword [ebp - 8]
call fcn.00459744
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x8c], 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.00418cd0
jmp 0x492e4b
lea eax, [ebp - 0x98]
push eax
mov eax, ebx
call fcn.00461dec
push eax
call sub.user32.dll_GetWindowRect
lea ecx, [ebp - 0xc4]
xor edx, edx
xor eax, eax
call fcn.00418cd0
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0xbc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.00459744
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x8c], 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.00418cd0
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x90]
sub dword [ebp - 0x41], eax
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x8c]
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 + 0x2e2], 0
setne byte [ebp - 0x51]
mov dl, 1
mov eax, dword [0x417a78]
call fcn.00403d00
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x2e2], 2
je 0x492ea9
push ebp
call fcn.00492af8
pop ecx
jmp 0x492ec6
mov eax, dword [ebp - 8]
cmp byte [eax + 0x274], 0
je 0x492ec6
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x278]
mov eax, dword [ebp - 0x50]
call fcn.0041a218
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x492eec
inc eax
mov dword [ebp - 0x7c], eax
xor ebx, ebx
mov edx, ebx
mov eax, dword [ebp - 0x50]
call fcn.0041a3c0
call fcn.0048e9a0
inc ebx
dec dword [ebp - 0x7c]
jne 0x492ed7
mov dl, 1
mov eax, dword [0x417a78]
call fcn.00403d00
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
dec eax
sub eax, 0xffffffff
jl 0x4930f9
inc eax
mov dword [ebp - 0x7c], eax
mov ebx, 0xffffffff
mov eax, 0x20
call fcn.00402ef8
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
xor edx, edx
mov dword [eax + 0x1c], edx
xor edx, edx
push ebp
push 0x4930c8
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 0x78]
cmp ebx, 0xffffffff
jne 0x492fa0
xor eax, eax
mov dword [esi], eax
lea eax, [esi + 4]
push eax
call sub.user32.dll_SetRectEmpty
push 1
push 0
lea eax, [ebp - 0xbc]
push eax
mov eax, dword [ebp - 8]
movzx edx, byte [eax + 0x288]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x278]
call fcn.0048cea0
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xe8]
mov eax, dword [ebp - 0xbc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xb8]
mov dword [esi + 0x18], eax
lea edx, [esi + 0x14]
mov eax, dword [ebp - 8]
call fcn.00491474
jmp 0x493057
mov edx, ebx
mov eax, dword [ebp - 0x50]
call fcn.0041a3c0
mov edi, eax
mov dword [esi], edi
lea eax, [esi + 4]
push eax
mov eax, edi
call fcn.00461dec
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x278]
cmp eax, dword [esi]
je 0x49302e
push 0
mov eax, dword [esi]
push eax
lea eax, [ebp - 0xbc]
push eax
mov eax, dword [ebp - 8]
movzx edx, byte [eax + 0x288]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x278]
call fcn.0048cea0
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xe8]
mov eax, dword [ebp - 0xbc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xb8]
mov dword [esi + 0x18], eax
mov eax, dword [esi]
movzx eax, byte [eax + 0x258]
add al, 0xfe
sub al, 2
setb cl
lea edx, [esi + 0x14]
mov eax, dword [ebp - 8]
call fcn.00491444
jmp 0x493057
lea ecx, [ebp - 0xbc]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
call fcn.00418cd0
mov eax, dword [ebp - 0xbc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xb8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
je 0x4930b3
mov dl, 1
mov eax, dword [0x417a78]
call fcn.00403d00
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
mov dl, 1
call fcn.0048d9dc
mov esi, eax
test esi, esi
jl 0x4930b3
inc esi
xor edi, edi
lea ecx, [ebp - 0x72]
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
mov edx, edi
call fcn.0048d864
movsx eax, ax
cmp byte [ebp - 0x72], 0
je 0x4930a3
or eax, 0x10000
mov edx, dword [ebp - 0x78]
mov edx, dword [edx + 0x1c]
xchg edx, eax
call fcn.0041a218
inc edi
dec esi
jne 0x493086
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 4]
call fcn.0041a218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4930ef
inc ebx
dec dword [ebp - 0x7c]
jne 0x492f14
call fcn.0048a3e0
call sub.user32.dll_GetCursor
mov dword [ebp - 0x58], eax
cmp byte [ebp - 0x59], 0
jne 0x49312e
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 0x493133
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
push ebp
push 0x49335f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00461dec
push eax
call sub.user32.dll_SetCapture
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x274]
mov byte [ebp - 0x4a], al
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_SetRectEmpty
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.00492674
pop ecx
mov byte [ebp - 0x4a], 1
jmp 0x4932c7
push 0
push 0
push 0
lea eax, [ebp - 0xb4]
push eax
call sub.user32.dll_GetMessageA
sub eax, 0xffffffff
je 0x4932de
dec eax
je 0x4931af
jmp 0x4931c0
mov eax, dword [ebp - 0xac]
push eax
call sub.user32.dll_PostQuitMessage
jmp 0x4932de
mov ebx, dword [ebp - 0xb0]
mov eax, ebx
cmp eax, 0x202
jg 0x4931f2
je 0x4932a9
add eax, 0xffffff00
sub eax, 2
jb 0x49320c
sub eax, 0xfe
je 0x49324a
dec eax
je 0x4932de
jmp 0x4932af
sub eax, 0x203
je 0x4932de
dec eax
sub eax, 6
jb 0x4932c7
jmp 0x4932af
mov eax, dword [ebp - 0xac]
sub eax, 0x11
je 0x493225
sub eax, 0xa
je 0x4932de
jmp 0x4932c7
cmp ebx, 0x100
sete al
cmp al, byte [ebp - 0x4b]
je 0x4932c7
cmp ebx, 0x100
sete byte [ebp - 0x4b]
push ebp
call fcn.00492674
pop ecx
jmp 0x4932c7
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x80], eax
movsx eax, word [ebp - 0x80]
mov dword [ebp - 0x88], eax
movsx eax, word [ebp - 0x7e]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x39]
cmp eax, dword [ebp - 0x70]
jne 0x493294
mov eax, dword [ebp - 0x35]
cmp eax, dword [ebp - 0x6c]
je 0x4932c7
push ebp
call fcn.00492674
pop ecx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x39], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x35], eax
jmp 0x4932c7
mov byte [ebp - 0x71], 1
jmp 0x4932de
lea eax, [ebp - 0xb4]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0xb4]
push eax
call sub.user32.dll_DispatchMessageA
mov eax, dword [ebp - 8]
call fcn.00461dec
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
je 0x49318f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493366
mov eax, dword [ebp - 8]
call fcn.00461dec
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
jne 0x493303
call sub.user32.dll_ReleaseCapture
cmp byte [ebp - 0x59], 0
jne 0x49335e
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 - 0x1c]
push eax
push 1
cmp dword [ebp - 0xc], 0
setne al
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 8]
call fcn.00492030
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