Function at 0x40d05a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
sub esp, 0x44
mov eax, 0x45d11a
call fcn.0044e550
sub esp, 0x50
push ebx
push esi
mov dword [ebp + 0x44], ecx
push edi
lea ecx, [ebp - 0x4c]
call fcn.0040cfb5
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp]
call fcn.0040492b
mov byte [ebp - 4], 1
test dword [ebp + 0x5c], 0x200
je 0x40d09c
and dword [ebp + 0x5c], 0xffffeaee
jmp 0x40d0be
test dword [ebp + 0x5c], 0x1100
je 0x40d0be
cmp dword [ebp + 0x54], ebx
je 0x40d0b7
push dword [ebp + 0x54]
call sym.qmmacro.exe_DpiIsWindowScaled
pop ecx
test eax, eax
je 0x40d0be
and dword [ebp + 0x5c], 0xffffeeff
mov ecx, SysReAllocString
test dword [ebp + 0x5c], ecx
je 0x40d0cc
and dword [ebp + 0x5c], 0xfffffffe
mov edi, dword [ebp + 0x58]
cmp edi, ebx
jne 0x40d0e0
or dword [ebp + 0x5c], 0x80
lea edi, [ebp - 0x5c]
mov dword [ebp + 0x58], edi
test dword [ebp + 0x5c], 0x280
je 0x40d0ef
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 0x40d12d
cmp dword [ebp + 0x50], ebx
jne 0x40d10a
mov ecx, dword [ebp + 0x44]
push 0x23b
call fcn.004052f9
mov esi, dword [ebp + 0x50]
lea ecx, [ebp - 0x4c]
call fcn.0040c655
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 0x40d3b6
mov eax, dword [ebp + 0x50]
cmp eax, ebx
je 0x40d3a4
cmp byte [eax], 0
je 0x40d3a4
push eax
jmp 0x40d37f
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 0x40d187
mov eax, dword [ebp + 0x50]
add eax, 6
push eax
call fcn.0043b2b0
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.0040c655
mov dword [eax + 0x18], esi
mov byte [eax + 0x1c], 0xff
mov byte [eax + 0x1d], 1
jmp 0x40d37c
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 0x40d1b4
mov eax, dword [ebp + 0x50]
add eax, 8
push eax
call fcn.0043b2b0
jmp 0x40d1dd
push 6
push str.hicon:
push dword [ebp + 0x50]
call sym.qmmacro.exe_q_strnicmp
add esp, 0xc
test eax, eax
jne 0x40d1e8
mov eax, dword [ebp + 0x50]
add eax, 6
push eax
call fcn.0043b2b0
mov dword [ebp + 0x40], 1
mov esi, eax
mov byte [ebp + 0x30], 1
jmp 0x40d35c
push 6
push str.macro:
push dword [ebp + 0x50]
call sym.qmmacro.exe_q_strnicmp
add esp, 0xc
test eax, eax
jne 0x40d27d
mov eax, dword [ebp + 0x50]
add eax, 6
push eax
mov ecx, 0x473b90
call fcn.00402154
mov edi, eax
cmp edi, ebx
jne 0x40d222
mov ecx, dword [ebp + 0x44]
push 0x209
call fcn.004052f9
push edi
mov ecx, 0x473b90
call fcn.004020e0
imul eax, eax, 0x18
mov ecx, dword [0x473b90]
push dword [eax + ecx + 0xc]
lea ecx, [ebp]
call fcn.0042cab5
push ebx
push ebx
lea eax, [ebp]
push eax
push 0x24
lea ecx, [ebp + 0x10]
call fcn.00438a7a
test al, al
je 0x40d273
push 0x100
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040dc3e
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40d36d
push 0x23d
jmp 0x40d354
lea eax, [ebp + 0x50]
push eax
call fcn.0040db38
mov edi, eax
xor esi, esi
pop ecx
cmp edi, ebx
je 0x40d2d5
test byte [ebp + 0x5c], 0x40
jne 0x40d2a6
push str..ico
push dword [ebp + 0x50]
call fcn.0042f06e
test al, al
je 0x40d2b4
xor eax, eax
inc eax
test byte [ebp + 0x5c], 0x20
mov dword [ebp + 0x40], eax
je 0x40d2b4
mov esi, eax
push esi
push dword [ebp + 0x40]
push dword [ebp + 0x50]
push edi
call fcn.0040e068
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x40d36d
push 0x24e
jmp 0x40d354
test byte [ebp + 0x5c], 0x20
mov dword [ebp + 0x34], ebx
je 0x40d2e1
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.00431632
add esp, 0x14
test al, al
je 0x40d2ff
or esi, 2
push ebx
push ebx
push dword [ebp + 0x50]
lea ecx, [ebp]
call fcn.004383ba
test al, al
jne 0x40d31b
push dword [ebp + 0x50]
lea ecx, [ebp]
call fcn.0042cab5
cmp esi, ebx
jne 0x40d332
push 0xffffffffffffffff
push str..bmp
lea ecx, [ebp]
call fcn.0042b567
test al, al
jne 0x40d394
push ebx
push esi
push dword [ebp + 0x34]
mov dword [ebp + 0x40], 1
push dword [ebp]
call fcn.00432fb2
add esp, 0x10
mov esi, eax
cmp esi, ebx
jne 0x40d36d
push 0x1fa
mov ecx, dword [ebp + 0x44]
call fcn.004052f9
cmp esi, ebx
jne 0x40d36d
mov ecx, dword [ebp + 0x44]
push 0x23b
call fcn.004052f9
push dword [ebp + 0x30]
lea ecx, [ebp - 0x4c]
push dword [ebp + 0x40]
push esi
call fcn.0040c71d
push dword [ebp + 0x3c]
lea ecx, [ebp + 0x20]
call fcn.0042c92b
mov dword [ebp + 0x3c], eax
cmp eax, ebx
jne 0x40d147
jmp 0x40d3b6
push 0x10
push ebx
push ebx
push ebx
push dword [ebp]
push ebx
call fcn.00436ede
jmp 0x40d349
test dword [ebp + 0x5c], ecx
jne 0x40d3b6
mov ecx, dword [ebp + 0x44]
push 0x23b
call fcn.004052f9
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 0x40d4bf
mov ecx, dword [ebp + 0x44]
call fcn.004228aa
inc eax
mov ecx, 0x1f4
cmp eax, ecx
mov dword [ebp + 0x3c], eax
jl 0x40d3ec
mov dword [ebp + 0x3c], ecx
fild dword [ebp + 0x3c]
push ecx
push ecx
fstp qword [esp]
call fcn.00450b84
pop ecx
pop ecx
call fcn.004504a0
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.0040c780
mov esi, eax
add esp, 0x24
test esi, esi
je 0x40d451
cmp esi, 1
je 0x40d451
mov ecx, dword [ebp + 0x44]
push esi
call fcn.004052f9
xor eax, eax
cmp dword [ebp + 0x34], eax
je 0x40d46c
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 0x40d4e8
cmp dword [ebp + 0x70], eax
je 0x40d537
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 0x40d490
add ebx, dword [ebp + 0x3c]
cmp esi, ebx
jae 0x40d496
mov esi, ebx
mov ecx, dword [ebp + 0x44]
push esi
call fcn.004052e3
cmp dword [ebp + 0x70], 0xffffffff
je 0x40d4b0
cmp esi, dword [ebp + 0x70]
jbe 0x40d4ad
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 0x40d410
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.0040c780
add esp, 0x24
cmp eax, ebx
jne 0x40d565
test dword [ebp + 0x5c], 0x400
je 0x40d5a4
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
xor bl, bl
push 1
call esi
test ax, ax
jl 0x40d518
push 2
call esi
test ax, ax
jl 0x40d518
push 4
call esi
test ax, ax
jge 0x40d526
mov ecx, dword [ebp + 0x44]
push 0x14
mov bl, 1
call fcn.004052e3
jmp 0x40d4fd
test bl, bl
je 0x40d5a4
mov edi, dword [ebp + 0x58]
lea esi, [ebp - 0x1c]
xor ebx, ebx
jmp 0x40d3c6
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0040493f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040d003
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 0x40d573
mov ecx, dword [ebp + 0x44]
push eax
call fcn.004052f9
test byte [ebp + 0x5c], 2
je 0x40d586
mov ecx, dword [ebp + 0x44]
push 0x204
call fcn.004052f9
xor esi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0040493f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040d003
mov eax, esi
jmp 0x40d551
test byte [ebp + 0x5c], 1
je 0x40d624
mov esi, dword [ebp + 0x58]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 0x3c
jge 0x40d5c2
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x40d5c5
push 0x1e
pop edi
mov eax, dword [esi + 0xc]
add edi, ecx
mov ecx, dword [esi + 4]
sub eax, ecx
cmp eax, 0x3c
jge 0x40d5dd
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jmp 0x40d5e0
push 0x1e
pop esi
add esi, ecx
test dword [ebp + 0x5c], 0x1100
je 0x40d605
push dword [ebp + 0x54]
call fcn.00434899
pop ecx
test al, al
je 0x40d605
mov ecx, dword [ebp + 0x44]
push 5
push dword [ebp + 0x54]
call fcn.00427d40
mov ecx, dword [ebp + 0x44]
push esi
push edi
call fcn.0040bc29
mov ecx, dword [ebp + 0x44]
call fcn.004228aa
mov ecx, dword [ebp + 0x44]
shr eax, 2
inc eax
push eax
call fcn.004052e3
mov esi, dword [ebp + 0x40]
jmp 0x40d588