Function at 0x5057c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
sub esp, 0x48
push 0x74
mov eax, 0x6384a5
call fcn.0058c0ed
mov esi, ecx
mov ecx, dword [esi + 0x334]
cmp byte [ecx + 0x110], 0
jne 0x5057ee
call fcn.0040c737
test al, al
je 0x505a7e
lea eax, [ebp]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp byte [esi + 0x190], 0
mov eax, dword [ebp]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 4]
mov dword [ebp + 0x3c], eax
jne 0x505855
lea ecx, [ebp - 0x80]
call fcn.0040d212
and dword [ebp - 4], 0
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.004f5b39
lea eax, [ebp - 0x80]
lea edi, [esi + 0x1d4]
mov ecx, dword [edi]
push eax
call fcn.004dbffa
add dword [ebp + 0x38], eax
mov ecx, dword [edi]
lea eax, [ebp - 0x80]
push eax
call fcn.004dbfdc
add dword [ebp + 0x3c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.0040c7d6
push dword [esi + 0x360]
lea ecx, [ebp + 0x10]
call fcn.004c85fc
xor edi, edi
inc edi
mov dword [ebp - 4], edi
call fcn.0054f69d
push eax
lea ecx, [ebp + 0x40]
call fcn.004018a6
mov byte [ebp - 4], 2
call fcn.0054f69d
push eax
lea ecx, [ebp + 0x48]
call fcn.004018a6
mov byte [ebp - 4], 3
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
lea ecx, [ebp + 0x10]
call fcn.005656a6
mov ebx, edi
mov dword [ebp + 0x44], 0xf98
mov edi, 0x645364
mov ecx, dword [ebp + 0x44]
mov eax, dword [esi + 0x334]
add eax, ecx
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x505944
push eax
lea ecx, [ebp + 0x48]
call fcn.00401dd7
mov eax, dword [ebp + 0x48]
cmp dword [eax - 0xc], 0x40
jle 0x50591a
push 0x3c
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x48]
call fcn.00403286
push edi
push eax
lea eax, [ebp + 0x30]
push eax
mov byte [ebp - 4], 4
call fcn.0040e47a
add esp, 0xc
push eax
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 5
call fcn.00401dd7
mov ecx, dword [ebp + 0x30]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp + 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401493
push ebx
push dword [ebp + 0x48]
lea eax, [ebp + 0x40]
push str._s_t__i
push eax
call fcn.00401e49
add esp, 0x10
push dword [ebp + 0x40]
lea eax, [ebx + 0x7bd4]
push eax
push 0
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_AppendMenuW]
add dword [ebp + 0x44], 4
inc ebx
cmp dword [ebp + 0x44], 0xfbc
jl 0x5058aa
mov eax, dword [esi + 0x334]
add eax, 0xf94
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x5059ed
push eax
lea ecx, [ebp + 0x48]
call fcn.00401dd7
mov eax, dword [ebp + 0x48]
cmp dword [eax - 0xc], 0x40
jle 0x5059c6
push 0x3c
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp + 0x48]
call fcn.00403286
push edi
push eax
lea eax, [ebp + 0x34]
push eax
mov byte [ebp - 4], 6
call fcn.0040e47a
add esp, 0xc
push eax
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 7
call fcn.00401dd7
mov ecx, dword [ebp + 0x34]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp + 0x30]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401493
push dword [ebp + 0x48]
lea eax, [ebp + 0x40]
push str._s_t_0
push eax
call fcn.00401e49
add esp, 0xc
push dword [ebp + 0x40]
push 0x7bd4
push 0
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_AppendMenuW]
mov ecx, dword [esi + 0x334]
xor eax, eax
cmp byte [ecx + 0xc90], al
je 0x505a02
mov eax, 0x8008
push 0
push esi
push dword [ebp + 0x3c]
or eax, 0x102
push dword [ebp + 0x38]
lea ecx, [ebp + 0x10]
push eax
call fcn.00553dad
lea ecx, [ebp + 0x10]
mov edi, eax
call fcn.005656fe
add edi, 0xffff842c
cmp edi, 9
ja 0x505a5c
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call ebx
test ax, ax
setl al
push 0x11
mov byte [ebp + 0x3c], al
call ebx
test ax, ax
setl al
mov byte [ebp + 0x44], al
push dword [ebp + 0x44]
mov ecx, esi
push dword [ebp + 0x3c]
push edi
call fcn.005053ee
mov ecx, dword [ebp + 0x48]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp + 0x40]
add ecx, 0xfffffff0
call fcn.00401493
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0040bd21
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x4c
leave
ret