Function at 0x40fdc2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, 0xd0d0d0d1
cmp dword [0x4143c0], 0
jne 0x40ff8f
cmp dword [ebp + 0xc], 0x112
jne 0x410426
mov eax, dword [ebp + 0x10]
and eax, 0xfff0
cmp eax, 0xf000
jne 0x410426
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x26
call sub.USER32.dll_SystemParametersInfoA
cmp dword [ebp - 0xc], 0
je 0x410426
mov dword [0x4143c0], 1
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [0x415e88], eax
push 0x415e9c
push dword [ebp + 8]
call sub.USER32.dll_GetWindowRect
push 0x415e8c
push dword [ebp + 8]
call sub.USER32.dll_GetWindowRect
and dword [0x415e60], 0
and dword [0x415e64], 0
push 0x3d
call sub.USER32.dll_GetSystemMetrics
mov dword [0x415e68], eax
push 0x3e
call sub.USER32.dll_GetSystemMetrics
mov dword [0x415e6c], eax
push 0xfffffffffffffff0
push dword [ebp + 8]
call sub.USER32.dll_GetWindowLongA
test eax, 0x800000
je 0x40fe96
push 5
call sub.USER32.dll_GetSystemMetrics
mov dword [0x415e70], eax
push 6
call sub.USER32.dll_GetSystemMetrics
mov dword [0x415e74], eax
jmp 0x40fece
push 0xffffffffffffffec
push dword [ebp + 8]
call sub.USER32.dll_GetWindowLongA
test ax, 0x100
je 0x40fec0
push 0x2d
call sub.USER32.dll_GetSystemMetrics
mov dword [0x415e70], eax
push 0x2e
call sub.USER32.dll_GetSystemMetrics
mov dword [0x415e74], eax
jmp 0x40fece
and dword [0x415e70], 0
and dword [0x415e74], 0
push 0x22
call sub.USER32.dll_GetSystemMetrics
mov dword [0x415e78], eax
push 0x23
call sub.USER32.dll_GetSystemMetrics
mov dword [0x415e7c], eax
push 0x3b
call sub.USER32.dll_GetSystemMetrics
mov dword [0x415e80], eax
push 0x3c
call sub.USER32.dll_GetSystemMetrics
mov dword [0x415e84], eax
push 0x415e60
push 0
push 0x24
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push 1
call sub.USER32.dll_GetKeyState
or ax, ax
jne 0x40ff2c
push 0
push 1
push 0x201
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push dword [ebp + 8]
call sub.USER32.dll_SetCapture
push 0
push 0
push 0x231
push dword [ebp + 8]
call sub.USER32.dll_PostMessageA
cmp dword [0x415e88], 0
jne 0x40ff81
mov dword [0x415eb4], 1
push 0x415eac
call sub.USER32.dll_GetCursorPos
push 0x8040
push 0
push 0
push 2
push 0x7f86
push 0
call sub.USER32.dll_LoadImageA
push eax
call sub.USER32.dll_SetCursor
jmp 0x40ff88
and dword [0x415eb4], 0
xor ebx, ebx
jmp 0x410426
cmp dword [ebp + 0xc], 0x200
jne 0x410021
and dword [0x415eb4], 0
movzx eax, word [ebp + 0x14]
and eax, 0xffff
movsx eax, ax
mov dword [ebp - 8], eax
mov edi, dword [ebp + 0x14]
shr edi, 0x10
and edi, 0xffff
and edi, 0xffff
movsx edi, di
mov dword [ebp - 4], edi
push 1
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
call sub.USER32.dll_MapWindowPoints
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041042f
push 0x415e9c
push dword [0x415e88]
push 0x214
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
lea esi, [0x415e9c]
sub esp, 0x10
mov edi, esp
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 8]
call fcn.004105e0
add esp, 0x1c
xor ebx, ebx
jmp 0x410426
cmp dword [ebp + 0xc], 0x100
jne 0x4103e4
mov eax, dword [ebp + 0x10]
cmp eax, 0x1b
je 0x410099
jg 0x410042
cmp eax, 0xd
je 0x41005b
jmp 0x410426
cmp eax, 0x25
jl 0x410426
cmp eax, 0x28
jg 0x410426
jmp dword [eax*4 + 0x414330]
call sub.USER32.dll_ReleaseCapture
push 0
push 0
push 0x232
push dword [ebp + 8]
call sub.USER32.dll_PostMessageA
and dword [0x4143c0], 0
cmp dword [0x415eb4], 0
je 0x410092
push dword [0x415eb0]
push dword [0x415eac]
call sub.USER32.dll_SetCursorPos
xor ebx, ebx
jmp 0x410426
call sub.USER32.dll_ReleaseCapture
lea esi, [0x415e8c]
sub esp, 0x10
mov edi, esp
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 8]
call fcn.004105e0
add esp, 0x14
push 0
push 0
push 0x232
push dword [ebp + 8]
call sub.USER32.dll_PostMessageA
and dword [0x4143c0], 0
cmp dword [0x415eb4], 0
je 0x4100ed
push dword [0x415eb0]
push dword [0x415eac]
call sub.USER32.dll_SetCursorPos
xor ebx, ebx
jmp 0x410426
cmp dword [ebp + 0xc], 0x202
jne 0x410426
call sub.USER32.dll_ReleaseCapture
push 0
push 0
push 0x232
push dword [ebp + 8]
call sub.USER32.dll_PostMessageA
and dword [0x4143c0], 0
cmp dword [0x415eb4], 0
je 0x410424
push dword [0x415eb0]
push dword [0x415eac]
call sub.USER32.dll_SetCursorPos
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10