Function at 0x474460
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x2c8
push ebx
mov ebx, dword [0xcc0484]
push ebp
push esi
push edi
mov edi, 0x74166c
mov esi, 0x741ccc
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x4744a2
test al, al
je 0x47449e
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x4744a2
add esi, 2
add edi, 2
test al, al
jne 0x47447a
xor eax, eax
jmp 0x4744a7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4745a2
mov edi, 0x74166c
mov esi, 0xcc4e98
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x4744e1
test al, al
je 0x4744dd
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x4744e1
add esi, 2
add edi, 2
test al, al
jne 0x4744b9
xor eax, eax
jmp 0x4744e6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4745a2
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0xcc4e98
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call fcn.0048d8f0
mov edx, dword [str.macros.txt]
add esp, 4
lea eax, [esp + 0x18]
lea ecx, [esp + 0xd0]
push edx
push eax
push 0x741ccc
push 0xcc2d98
push str.Desktop__s__s__s__s
push ecx
call fcn.004de113
lea edi, [esp + 0xe8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1ec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x510960
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1f0]
push ecx
call fcn.00441230
mov esi, eax
add esp, 0x20
test esi, esi
mov dword [esp + 0x10], esi
jne 0x4745cd
push 0x510960
push str.macros.txt
call fcn.00441230
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4745c9
push str.CApp::SaveMacros:_cannot_open_file_macros.txt_for_writing._n
call fcn.004cea60
add esp, 4
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x474681
mov eax, dword [ebx + 4]
lea edx, [esp + 0x38]
push 0x14
and eax, 0xbfffffff
push edx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
push ecx
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
push str._s__d__d__d_n
push esi
call fcn.004de9aa
mov eax, dword [ebx + 0x14]
add esp, 0x18
xor ebp, ebp
test eax, eax
jle 0x474665
lea edx, [ebx + 0x18]
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x50]
push eax
mov ecx, 5
sub esp, 0x14
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004746a0
mov edx, dword [esp + 0x28]
add esp, 0x18
lea ecx, [esp + 0x50]
push ecx
push 0x51090c
push edx
call fcn.004de9aa
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0x14]
add esp, 0xc
inc ebp
add ecx, 0x14
cmp ebp, eax
mov dword [esp + 0x14], ecx
jl 0x47461a
mov esi, dword [esp + 0x10]
push 0x510900
push esi
call fcn.004de9aa
mov ebx, dword [ebx + 0xe0]
add esp, 8
test ebx, ebx
jne 0x4745d5
push esi
call fcn.004418c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c8
ret