Function at 0x40a930
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x50b3a0]
cmp byte [eax + 0x1237], 0
push esi
mov esi, ecx
mov dword [ebp - 0xc], esi
jne 0x40a953
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x50b384]
push edi
mov edi, dword [sym.imp.USER32.dll_IsIconic]
push ecx
call edi
test eax, eax
setne al
test al, al
jne 0x40ac1a
mov edx, dword [0x50b3a0]
cmp byte [edx + 0x1220], al
je 0x40a98a
cmp byte [esi + 0x426a], al
jne 0x40ac1a
cmp byte [esi + 0x4224], 0
jne 0x40a9a7
mov eax, dword [0x50b384]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40ac1a
cmp dword [esi + 0x4260], 0x520
jne 0x40a9c4
mov ecx, dword [0x50b384]
push ecx
call edi
test eax, eax
je 0x40ac1a
cmp dword [esi + 0x4260], 0x521
jne 0x40a9e1
mov edx, dword [0x50b384]
push edx
call edi
test eax, eax
je 0x40ac1a
mov eax, dword [0x50b3a0]
cmp byte [eax + 0x1220], 0
jne 0x40ac1a
cmp byte [ebp + 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
je 0x40aa38
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
jne 0x40aa38
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
push 2
push ecx
push edx
call dword [sym.imp.USER32.dll_MonitorFromPoint]
jmp 0x40aa53
push 2
test ebx, ebx
je 0x40aa47
push ebx
call dword [sym.imp.USER32.dll_MonitorFromRect]
jmp 0x40aa53
mov eax, dword [0x50b384]
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x54]
push ecx
push eax
mov dword [ebp - 0x54], 0x28
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x40aba5
mov ecx, dword [0x50b3a0]
call fcn.00442da0
test al, al
je 0x40aabf
push 0
push 3
lea edx, [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.00409d00
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
sub dword [ebp - 0x40], ecx
sub dword [ebp - 0x3c], edx
add dword [ebp - 0x38], esi
add dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x40aaea
mov edx, dword [ebx]
mov edi, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x40ab07
mov ecx, dword [0x50b384]
lea eax, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
sub eax, edi
mov dword [ebp + 0xc], eax
xor eax, eax
sub ecx, edx
mov ebx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x38]
sub eax, ebx
cmp edx, eax
mov dword [ebp - 4], ebx
mov ecx, edx
jl 0x40ab2e
mov ecx, eax
cmp dword [ebp - 0x40], ecx
jle 0x40ab38
mov ecx, dword [ebp - 0x40]
jmp 0x40ab40
cmp edx, eax
mov ecx, edx
jl 0x40ab40
mov ecx, eax
mov esi, dword [ebp - 0x34]
sub esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
cmp edi, esi
mov eax, edi
jl 0x40ab51
mov eax, esi
mov edx, dword [ebp - 0x3c]
cmp edx, eax
jle 0x40ab5c
mov edi, edx
jmp 0x40ab62
cmp edi, esi
jl 0x40ab62
mov edi, esi
mov edx, dword [ebp - 0x38]
lea eax, [ecx + ebx]
cmp edx, eax
mov dword [ebp - 0x18], edi
jl 0x40ab71
mov edx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x34]
add eax, edi
cmp esi, eax
mov dword [ebp - 0x14], edx
jl 0x40ab82
mov esi, eax
mov dword [ebp - 0x10], esi
mov eax, 0x10
xor ecx, ecx
lea esp, [esp]
mov ebx, dword [ebp + ecx - 0x1c]
cmp ebx, dword [ebp + ecx - 0x2c]
jne 0x40abb0
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x40ab90
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40abfe
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
push 1
inc ecx
push ecx
mov ecx, dword [ebp - 0x1c]
inc eax
push eax
push edx
mov edx, dword [0x50b384]
push ecx
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [0x50b3a4]
cmp byte [eax + 0x127d2], 0
je 0x40ac0c
mov ecx, dword [ebp - 0xc]
push str.OnMoving.end
call fcn.00413460
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8