Function at 0x45b90b
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x4df824
call fcn.004aef44
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.004c4290
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x45bd50
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x45bd50
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45bd50
lea eax, [ebp + 0x10]
lea ecx, [edi + 8]
push eax
mov dword [edi + 4], ebx
call fcn.004c5fe3
and dword [edi + 0x58], 0
mov dword [edi + 0xc], esi
mov eax, dword [0x51f03c]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
call fcn.0040f916
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.004c764b
push eax
lea ecx, [ebp - 0x14]
call fcn.004c6033
jmp 0x45b9cf
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0045bdf6
test eax, eax
je 0x45b9eb
mov ebx, dword [eax + 0x1a8]
test ebx, ebx
jg 0x45b9f0
mov ebx, 0x1f1
test eax, eax
je 0x45ba01
mov eax, dword [eax + 0x1ac]
test eax, eax
mov dword [ebp + 8], eax
jg 0x45ba08
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 [0x523ba4]
cmp dword [eax + 0x318], edx
lea ecx, [eax + 0x318]
je 0x45baa7
push edx
mov dword [ecx], edx
call esi
sub eax, dword [ebp + 0xc]
mov ecx, dword [0x523ba4]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ecx + 0x310], eax
call esi
mov ecx, dword [0x523ba4]
sub eax, ebx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov dword [ecx + 0x314], eax
mov eax, dword [0x523ba4]
cmp dword [eax + 0x310], edx
lea ecx, [eax + 0x310]
jge 0x45ba91
mov dword [ecx], edx
mov eax, dword [0x523ba4]
cmp dword [eax + 0x314], edx
lea ecx, [eax + 0x314]
jge 0x45baa7
and dword [ecx], 0
mov eax, dword [0x523ba4]
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.0045c43c
push eax
push 0x84c80000
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str._ProductName__Setup
call fcn.004c5f18
lea eax, [ebp + 8]
push eax
mov eax, dword [0x523ba4]
lea ecx, [eax + 0x214]
call fcn.00478ba6
mov ecx, eax
mov byte [ebp - 4], 4
lea esi, [edi + 0x10]
call fcn.0042819b
push eax
lea ecx, [ebp - 0x14]
call fcn.0042819b
push eax
push 0x30001
mov ecx, esi
call fcn.004c6f09
mov ebx, eax
lea ecx, [ebp + 8]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 1
inc bl
call fcn.004c5eaa
test bl, bl
je 0x45bb55
push 0
push 0
push str.Failed_to_create_canvas
call fcn.004cdc20
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004c5eaa
push 3
jmp 0x45bd52
mov eax, dword [0x523ba4]
xor ebx, ebx
push ebx
push 0x10000
push ebx
mov ecx, esi
mov dword [eax + 0x30c], esi
call fcn.004c9445
mov ecx, edi
call fcn.0045c2db
test eax, eax
je 0x45bb82
mov ecx, edi
call fcn.0045c36d
mov eax, dword [0x523ba4]
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 0x45bd3f
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45bd3f
mov eax, dword [edi + 0xc]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45bd3f
cmp esi, ebx
jne 0x45bd3f
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 0x45bcec
cmp esi, ebx
jne 0x45bcec
mov eax, dword [ebp - 0x44]
sub eax, 0xa3
je 0x45bc93
sub eax, 0x5d
je 0x45bc47
sub eax, 4
je 0x45bc29
sub eax, 0x31a
jne 0x45bca4
mov eax, dword [ebp - 0x40]
cmp eax, ebx
jge 0x45bc1a
ja 0x45bc1d
mov dword [ebp - 0x18], eax
mov ecx, edi
call fcn.0045c36d
jmp 0x45bcdc
test byte [ebp - 0x39], 2
jne 0x45bca4
cmp dword [ebp - 0x40], ebx
jge 0x45bc36
ja 0x45bca4
push dword [ebp - 0x40]
mov ecx, edi
call fcn.0045c3fc
neg eax
sbb eax, eax
inc eax
jmp 0x45bca0
cmp dword [ebp - 0x40], 0xd
jne 0x45bc5f
push ebx
push ebx
push 0x40f
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x45bca4
cmp dword [ebp - 0x40], 0x41
jne 0x45bc7b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x45bca4
push ebx
push ebx
push 0x410
jmp 0x45bc88
cmp dword [ebp - 0x40], 0x1b
jne 0x45bca4
push ebx
push ebx
push 0x411
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x45bcdc
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [eax + 0x1c]
jne 0x45bca4
xor eax, eax
cmp eax, ebx
je 0x45bcdc
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x45bcdc
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45bcdc
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x48]
push eax
call fcn.004c93ad
test eax, eax
jne 0x45bcdc
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 [0x523ba4]
mov esi, dword [eax + 0x88]
jmp 0x45bbcf
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x523ba4]
push dword [edi + 0x2c]
mov esi, dword [eax + 0x88]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45bba2
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x523ba4]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x310], ecx
mov ecx, dword [0x523ba4]
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x314], eax
jmp 0x45bba2
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004c5eaa
mov esi, dword [ebp - 0x18]
jmp 0x45bd53
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10