Function at 0x45b909
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x4e0ee4
call fcn.004b0604
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edi
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
lea ecx, [edi + 0x60]
call fcn.004c5925
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x45bd4e
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x45bd4e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45bd4e
lea eax, [ebp + 0x10]
lea ecx, [edi + 8]
push eax
mov dword [edi + 4], ebx
call fcn.004c76a3
and dword [edi + 0x58], 0
mov dword [edi + 0xc], esi
mov eax, dword [str.pRdR]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
call fcn.0040f94a
push dword [eax + 0xbc]
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
push 3
call fcn.004c8d0c
push eax
lea ecx, [ebp - 0x14]
call fcn.004c76f3
jmp 0x45b9cd
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0045bdf4
test eax, eax
je 0x45b9e9
mov ebx, dword [eax + 0x1a8]
test ebx, ebx
jg 0x45b9ee
mov ebx, 0x1f1
test eax, eax
je 0x45b9ff
mov eax, dword [eax + 0x1ac]
test eax, eax
mov dword [ebp + 8], eax
jg 0x45ba06
mov dword [ebp + 8], 0x16a
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
call esi
lea eax, [ebx + eax*2]
push 8
mov dword [ebp + 0xc], eax
call esi
push 4
mov ebx, eax
call esi
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp + 8]
add ebx, eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
lea ebx, [ebx + eax*2]
mov eax, dword [0x524bc4]
cmp dword [eax + 0x318], edx
lea ecx, [eax + 0x318]
je 0x45baa5
push edx
mov dword [ecx], edx
call esi
sub eax, dword [ebp + 0xc]
mov ecx, dword [0x524bc4]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ecx + 0x310], eax
call esi
mov ecx, dword [0x524bc4]
sub eax, ebx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov dword [ecx + 0x314], eax
mov eax, dword [0x524bc4]
cmp dword [eax + 0x310], edx
lea ecx, [eax + 0x310]
jge 0x45ba8f
mov dword [ecx], edx
mov eax, dword [0x524bc4]
cmp dword [eax + 0x314], edx
lea ecx, [eax + 0x314]
jge 0x45baa5
and dword [ecx], 0
mov eax, dword [0x524bc4]
mov ecx, dword [eax + 0x310]
mov eax, dword [eax + 0x314]
push 0
push 0
push dword [edi + 0xc]
lea edx, [eax + ebx]
push edx
mov edx, dword [ebp + 0xc]
add edx, ecx
push edx
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0045c560
push eax
push 0x84c80000
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str._ProductName__Setup
call fcn.004c75d8
lea eax, [ebp + 8]
push eax
mov eax, dword [0x524bc4]
lea ecx, [eax + 0x214]
call fcn.0047a1b1
mov ecx, eax
mov byte [ebp - 4], 4
lea esi, [edi + 0x10]
call fcn.00428184
push eax
lea ecx, [ebp - 0x14]
call fcn.00428184
push eax
push 0x30001
mov ecx, esi
call fcn.004c85c9
mov ebx, eax
lea ecx, [ebp + 8]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 1
inc bl
call fcn.004c756a
test bl, bl
je 0x45bb53
push 0
push 0
push str.Failed_to_create_canvas
call fcn.004cf2e0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004c756a
push 3
jmp 0x45bd50
mov eax, dword [0x524bc4]
xor ebx, ebx
push ebx
push 0x10000
push ebx
mov ecx, esi
mov dword [eax + 0x30c], esi
call fcn.004cab01
mov ecx, edi
call fcn.0045c37e
test eax, eax
je 0x45bb80
mov ecx, edi
call fcn.0045c410
mov eax, dword [0x524bc4]
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov esi, dword [eax + 0x88]
jne 0x45bd3d
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45bd3d
mov eax, dword [edi + 0xc]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45bd3d
cmp esi, ebx
jne 0x45bd3d
push 1
push ebx
push ebx
lea eax, [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x45bcea
cmp esi, ebx
jne 0x45bcea
mov eax, dword [ebp - 0x44]
sub eax, 0xa3
je 0x45bc91
sub eax, 0x5d
je 0x45bc45
sub eax, 4
je 0x45bc27
sub eax, 0x31a
jne 0x45bca2
mov eax, dword [ebp - 0x40]
cmp eax, ebx
jge 0x45bc18
ja 0x45bc1b
mov dword [ebp - 0x18], eax
mov ecx, edi
call fcn.0045c410
jmp 0x45bcda
test byte [ebp - 0x39], 2
jne 0x45bca2
cmp dword [ebp - 0x40], ebx
jge 0x45bc34
ja 0x45bca2
push dword [ebp - 0x40]
mov ecx, edi
call fcn.0045c49f
neg eax
sbb eax, eax
inc eax
jmp 0x45bc9e
cmp dword [ebp - 0x40], 0xd
jne 0x45bc5d
push ebx
push ebx
push 0x40f
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x45bca2
cmp dword [ebp - 0x40], 0x41
jne 0x45bc79
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x45bca2
push ebx
push ebx
push 0x410
jmp 0x45bc86
cmp dword [ebp - 0x40], 0x1b
jne 0x45bca2
push ebx
push ebx
push 0x411
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x45bcda
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [eax + 0x1c]
jne 0x45bca2
xor eax, eax
cmp eax, ebx
je 0x45bcda
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x45bcda
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45bcda
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x48]
push eax
call fcn.004caa69
test eax, eax
jne 0x45bcda
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x524bc4]
mov esi, dword [eax + 0x88]
jmp 0x45bbcd
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x524bc4]
push dword [edi + 0x2c]
mov esi, dword [eax + 0x88]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45bba0
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x524bc4]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x310], ecx
mov ecx, dword [0x524bc4]
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x314], eax
jmp 0x45bba0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004c756a
mov esi, dword [ebp - 0x18]
jmp 0x45bd51
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10