Function at 0x40cf7a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
sub esp, 0x44
mov eax, 0x45c45a
call fcn.0044d930
sub esp, 0x50
push ebx
push esi
mov dword [ebp + 0x44], ecx
push edi
lea ecx, [ebp - 0x4c]
call fcn.0040ced5
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp]
call fcn.00404931
mov byte [ebp - 4], 1
test dword [ebp + 0x5c], 0x200
je 0x40cfbc
and dword [ebp + 0x5c], 0xffffeaee
jmp 0x40cfde
test dword [ebp + 0x5c], 0x1100
je 0x40cfde
cmp dword [ebp + 0x54], ebx
je 0x40cfd7
push dword [ebp + 0x54]
call sym.qmmacro.exe_DpiIsWindowScaled
pop ecx
test eax, eax
je 0x40cfde
and dword [ebp + 0x5c], 0xffffeeff
mov ecx, SysReAllocString
test dword [ebp + 0x5c], ecx
je 0x40cfec
and dword [ebp + 0x5c], 0xfffffffe
mov edi, dword [ebp + 0x58]
cmp edi, ebx
jne 0x40d000
or dword [ebp + 0x5c], 0x80
lea edi, [ebp - 0x5c]
mov dword [ebp + 0x58], edi
test dword [ebp + 0x5c], 0x280
je 0x40d00f
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test dword [ebp + 0x5c], 0x40000000
je 0x40d04d
cmp dword [ebp + 0x50], ebx
jne 0x40d02a
mov ecx, dword [ebp + 0x44]
push 0x23b
call fcn.004052ff
mov esi, dword [ebp + 0x50]
lea ecx, [ebp - 0x4c]
call fcn.00418cbe
mov ecx, dword [ebp + 0x5c]
shr ecx, 6
and cl, 1
mov dword [eax + 0x18], esi
mov byte [eax + 0x1c], cl
mov byte [eax + 0x1d], 1
jmp 0x40d2d6
mov eax, dword [ebp + 0x50]
cmp eax, ebx
je 0x40d2c4
cmp byte [eax], 0
je 0x40d2c4
push eax
jmp 0x40d29f
mov eax, dword [ebp + 0x20]
push 6
push str.color:
push eax
mov dword [ebp + 0x50], eax
call sym.qmmacro.exe_q_strnicmp
add esp, 0xc
test eax, eax
jne 0x40d0a7
mov eax, dword [ebp + 0x50]
add eax, 6
push eax
call fcn.0043a850
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.00418cbe
mov dword [eax + 0x18], esi
mov byte [eax + 0x1c], 0xff
mov byte [eax + 0x1d], 1
jmp 0x40d29c
push 8
push str.hbitmap:
push dword [ebp + 0x50]
xor esi, esi
mov dword [ebp + 0x40], ebx
mov byte [ebp + 0x30], 0
call sym.qmmacro.exe_q_strnicmp
add esp, 0xc
test eax, eax
jne 0x40d0d4
mov eax, dword [ebp + 0x50]
add eax, 8
push eax
call fcn.0043a850
jmp 0x40d0fd
push 6
push str.hicon:
push dword [ebp + 0x50]
call sym.qmmacro.exe_q_strnicmp
add esp, 0xc
test eax, eax
jne 0x40d108
mov eax, dword [ebp + 0x50]
add eax, 6
push eax
call fcn.0043a850
mov dword [ebp + 0x40], 1
mov esi, eax
mov byte [ebp + 0x30], 1
jmp 0x40d27c
push 6
push str.macro:
push dword [ebp + 0x50]
call sym.qmmacro.exe_q_strnicmp
add esp, 0xc
test eax, eax
jne 0x40d19d
mov eax, dword [ebp + 0x50]
add eax, 6
push eax
mov ecx, 0x472b70
call fcn.00402124
mov edi, eax
cmp edi, ebx
jne 0x40d142
mov ecx, dword [ebp + 0x44]
push 0x209
call fcn.004052ff
push edi
mov ecx, 0x472b70
call fcn.004020b0
imul eax, eax, 0x18
mov ecx, dword [0x472b70]
push dword [eax + ecx + 0xc]
lea ecx, [ebp]
call fcn.0042ca6f
push ebx
push ebx
lea eax, [ebp]
push eax
push 0x24
lea ecx, [ebp + 0x10]
call fcn.00438011
test al, al
je 0x40d193
push 0x100
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040dd54
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40d28d
push 0x23d
jmp 0x40d274
lea eax, [ebp + 0x50]
push eax
call fcn.0040d999
mov edi, eax
xor esi, esi
pop ecx
cmp edi, ebx
je 0x40d1f5
test byte [ebp + 0x5c], 0x40
jne 0x40d1c6
push str..ico
push dword [ebp + 0x50]
call fcn.004303ee
test al, al
je 0x40d1d4
xor eax, eax
inc eax
test byte [ebp + 0x5c], 0x20
mov dword [ebp + 0x40], eax
je 0x40d1d4
mov esi, eax
push esi
push dword [ebp + 0x40]
push dword [ebp + 0x50]
push edi
call fcn.0040e02e
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x40d28d
push 0x24e
jmp 0x40d274
test byte [ebp + 0x5c], 0x20
mov dword [ebp + 0x34], ebx
je 0x40d201
xor esi, esi
inc esi
push ebx
push 0xffffffffffffffff
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x50]
push eax
call fcn.0043290d
add esp, 0x14
test al, al
je 0x40d21f
or esi, 2
push ebx
push ebx
push dword [ebp + 0x50]
lea ecx, [ebp]
call fcn.00437951
test al, al
jne 0x40d23b
push dword [ebp + 0x50]
lea ecx, [ebp]
call fcn.0042ca6f
cmp esi, ebx
jne 0x40d252
push 0xffffffffffffffff
push str..bmp
lea ecx, [ebp]
call fcn.0042b4f5
test al, al
jne 0x40d2b4
push ebx
push esi
push dword [ebp + 0x34]
mov dword [ebp + 0x40], 1
push dword [ebp]
call fcn.00433312
add esp, 0x10
mov esi, eax
cmp esi, ebx
jne 0x40d28d
push 0x1fa
mov ecx, dword [ebp + 0x44]
call fcn.004052ff
cmp esi, ebx
jne 0x40d28d
mov ecx, dword [ebp + 0x44]
push 0x23b
call fcn.004052ff
push dword [ebp + 0x30]
lea ecx, [ebp - 0x4c]
push dword [ebp + 0x40]
push esi
call fcn.0040c640
push dword [ebp + 0x3c]
lea ecx, [ebp + 0x20]
call fcn.0042c8e5
mov dword [ebp + 0x3c], eax
cmp eax, ebx
jne 0x40d067
jmp 0x40d2d6
push 0x10
push ebx
push ebx
push ebx
push dword [ebp]
push ebx
call fcn.00436461
jmp 0x40d269
test dword [ebp + 0x5c], ecx
jne 0x40d2d6
mov ecx, dword [ebp + 0x44]
push 0x23b
call fcn.004052ff
cmp dword [ebp + 0x70], ebx
mov esi, dword [ebp + 0x58]
setne byte [ebp + 0x3b]
mov dword [ebp + 0x40], ebx
lea edi, [ebp - 0x1c]
cmp byte [ebp + 0x3b], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x40d3df
mov ecx, dword [ebp + 0x44]
call fcn.00422852
inc eax
mov ecx, 0x1f4
cmp eax, ecx
mov dword [ebp + 0x3c], eax
jl 0x40d30c
mov dword [ebp + 0x3c], ecx
fild dword [ebp + 0x3c]
push ecx
push ecx
fstp qword [esp]
call fcn.0044ff64
pop ecx
pop ecx
call fcn.0044f880
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x5c]
xor ebx, ebx
and eax, 0x80000000
mov dword [ebp + 0x34], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, eax
lea eax, [ebp + 0x40]
push eax
push dword [ebp + 0x6c]
lea eax, [ebp - 0x4c]
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push dword [ebp + 0x54]
push dword [ebp + 0x60]
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
push eax
call fcn.0040c6a0
mov esi, eax
add esp, 0x24
test esi, esi
je 0x40d371
cmp esi, 1
je 0x40d371
mov ecx, dword [ebp + 0x44]
push esi
call fcn.004052ff
xor eax, eax
cmp dword [ebp + 0x34], eax
je 0x40d38c
xor ecx, ecx
cmp esi, eax
sete cl
mov esi, ecx
xor ecx, ecx
cmp dword [ebp + 0x40], eax
sete cl
mov dword [ebp + 0x40], ecx
cmp esi, eax
je 0x40d408
cmp dword [ebp + 0x70], eax
je 0x40d457
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
mov eax, dword [ebp + 0x3c]
shl eax, 5
sub esi, edi
cmp ebx, eax
jae 0x40d3b0
add ebx, dword [ebp + 0x3c]
cmp esi, ebx
jae 0x40d3b6
mov esi, ebx
mov ecx, dword [ebp + 0x44]
push esi
call fcn.004052e9
cmp dword [ebp + 0x70], 0xffffffff
je 0x40d3d0
cmp esi, dword [ebp + 0x70]
jbe 0x40d3cd
mov esi, dword [ebp + 0x70]
sub dword [ebp + 0x70], esi
mov edi, dword [ebp + 0x58]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x40d330
lea eax, [ebp + 0x40]
push eax
push dword [ebp + 0x6c]
lea eax, [ebp - 0x4c]
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push dword [ebp + 0x54]
push dword [ebp + 0x60]
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
push eax
call fcn.0040c6a0
add esp, 0x24
cmp eax, ebx
jne 0x40d485
test dword [ebp + 0x5c], 0x400
je 0x40d4c4
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
xor bl, bl
push 1
call esi
test ax, ax
jl 0x40d438
push 2
call esi
test ax, ax
jl 0x40d438
push 4
call esi
test ax, ax
jge 0x40d446
mov ecx, dword [ebp + 0x44]
push 0x14
mov bl, 1
call fcn.004052e9
jmp 0x40d41d
test bl, bl
je 0x40d4c4
mov edi, dword [ebp + 0x58]
lea esi, [ebp - 0x1c]
xor ebx, ebx
jmp 0x40d2e6
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00404945
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040cf23
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x48
leave
ret 0x24
cmp eax, 1
je 0x40d493
mov ecx, dword [ebp + 0x44]
push eax
call fcn.004052ff
test byte [ebp + 0x5c], 2
je 0x40d4a6
mov ecx, dword [ebp + 0x44]
push 0x204
call fcn.004052ff
xor esi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00404945
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040cf23
mov eax, esi
jmp 0x40d471
test byte [ebp + 0x5c], 1
je 0x40d544
mov esi, dword [ebp + 0x58]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 0x3c
jge 0x40d4e2
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x40d4e5
push 0x1e
pop edi
mov eax, dword [esi + 0xc]
add edi, ecx
mov ecx, dword [esi + 4]
sub eax, ecx
cmp eax, 0x3c
jge 0x40d4fd
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jmp 0x40d500
push 0x1e
pop esi
add esi, ecx
test dword [ebp + 0x5c], 0x1100
je 0x40d525
push dword [ebp + 0x54]
call fcn.0042e999
pop ecx
test al, al
je 0x40d525
mov ecx, dword [ebp + 0x44]
push 5
push dword [ebp + 0x54]
call fcn.00427cbd
mov ecx, dword [ebp + 0x44]
push esi
push edi
call fcn.0040bbb1
mov ecx, dword [ebp + 0x44]
call fcn.00422852
mov ecx, dword [ebp + 0x44]
shr eax, 2
inc eax
push eax
call fcn.004052e9
mov esi, dword [ebp + 0x40]
jmp 0x40d4a8