Function at 0x4b6a70
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x2c8
push ebx
mov ebx, dword [0xcecc84]
push ebp
push esi
push edi
mov edi, 0x636af0
mov esi, 0x636c1c
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x4b6ab2
test al, al
je 0x4b6aae
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x4b6ab2
add esi, 2
add edi, 2
test al, al
jne 0x4b6a8a
xor eax, eax
jmp 0x4b6ab7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b6bb2
mov edi, 0x636af0
mov esi, 0xcf35e0
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x4b6af1
test al, al
je 0x4b6aed
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x4b6af1
add esi, 2
add edi, 2
test al, al
jne 0x4b6ac9
xor eax, eax
jmp 0x4b6af6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b6bb2
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, 0xcf35e0
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.004cc490
mov edx, dword [str.macros.txt]
add esp, 4
lea eax, [esp + 0x18]
lea ecx, [esp + 0xd0]
push edx
push eax
push 0x636c1c
push 0xcf14e0
push str.Desktop__s__s__s__s
push ecx
call fcn.004ee486
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 0x5270a4
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.004a61a0
mov esi, eax
add esp, 0x20
test esi, esi
mov dword [esp + 0x10], esi
jne 0x4b6bdd
push 0x5270a4
push str.macros.txt
call fcn.004a61a0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4b6bd9
push str.CApp::SaveMacros:_cannot_open_file_macros.txt_for_writing._n
call fcn.004de150
add esp, 4
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x4b6c91
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.004ef9e7
mov eax, dword [ebx + 0x14]
add esp, 0x18
xor ebp, ebp
test eax, eax
jle 0x4b6c75
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.004b6cb0
mov edx, dword [esp + 0x28]
add esp, 0x18
lea ecx, [esp + 0x50]
push ecx
push 0x527050
push edx
call fcn.004ef9e7
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 0x4b6c2a
mov esi, dword [esp + 0x10]
push 0x527044
push esi
call fcn.004ef9e7
mov ebx, dword [ebx + 0xe0]
add esp, 8
test ebx, ebx
jne 0x4b6be5
push esi
call fcn.004a6830
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c8
ret