Function at 0x10029f50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b8
cmp dword [0x1005d064], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x1002a403
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
movlpd qword [ebp - 0x98], xmm0
movlpd qword [ebp - 0x90], xmm0
movlpd qword [ebp - 0x88], xmm0
movlpd qword [ebp - 0x80], xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0xa0], 4
mov dword [ebp - 0x9c], eax
test eax, eax
js 0x1002a403
lea eax, [ebp - 0xa0]
push eax
push 0
push 0x104b
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x1002a403
mov ebx, dword [ebp - 0x80]
test ebx, ebx
je 0x1002a403
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
je 0x1002a403
lea eax, [ebx + 0x18]
lock inc dword [eax]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 1
push eax
push 0x1004eab0
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_SHCreateItemFromIDList]
test eax, eax
jne 0x1002a328
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 8]
push edx
push 0x1004f6dc
push 0x1004fad0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1002a315
mov eax, dword [ebp - 8]
lea edx, [edi + 0x54]
push edx
push 0x10055a18
push eax
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 8]
lea esi, [edi + 0x58]
push esi
push 0x10055a08
push eax
mov ecx, dword [eax]
call dword [ecx]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1002a2e6
mov edx, dword [edi]
mov ecx, edi
push dword [ebp - 8]
call dword [edx + 0x58]
mov esi, 0x10
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, pe_nt_image_headers32
mov eax, dword [ebp - 8]
cmovs esi, ecx
push esi
mov esi, dword [ebp - 0xc]
mov ecx, dword [eax]
push 0x7000
push 1
push 0
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x1002a2dc
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], 0
test ecx, ecx
je 0x1002a10b
push 0x400
push ecx
push 0x7000
push 1
push str.link
mov edx, esi
call fcn.1004c170
add esp, 0x10
push eax
push esi
call dword [sym.imp.USER32.dll_DeleteMenu]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1002a10b
push 0x400
push ecx
push 0x7000
push 1
push 0x10055b78
mov edx, esi
call fcn.1004c170
add esp, 0x10
push eax
push esi
call dword [sym.imp.USER32.dll_DeleteMenu]
mov ecx, dword [ebp - 8]
push dword [edi + 0xa0]
mov eax, dword [edi]
push esi
push ecx
push ebx
mov ecx, edi
call dword [eax + 0x5c]
mov ecx, esi
call fcn.1004c2d0
push ecx
push dword [edi + 0x50]
mov edx, 0x102
push ecx
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.10018dd0
mov ecx, eax
add esp, 0x14
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x1002a2dc
mov eax, dword [edi + 0x50]
xorps xmm0, xmm0
mov dword [ebp - 0x5c], eax
lea eax, [ecx - 1]
movzx eax, ax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
push 0x11
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x64], 0x40
mov dword [ebp - 0x4c], 0xa
mov dword [ebp - 0x60], 0x20004000
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1002a1b0
or dword [ebp - 0x60], 0x40000000
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1002a1c4
or dword [ebp - 0x60], 0x10000000
mov ax, word [0x10055b88]
movq xmm0, qword [str.fail]
push 0x1fe
mov word [ebp - 0x2a4], ax
lea eax, [ebp - 0x2a2]
push 0
push eax
movq qword [ebp - 0x2ac], xmm0
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp eax, 0x7000
jae 0x1002a280
mov ecx, dword [ebp - 8]
lea edx, [eax - 1]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x1002a280
mov eax, dword [ecx]
lea esi, [ebp - 0x3b4]
push 0x50
push esi
push 0
push 0
push edx
push ecx
mov byte [ebp - 0x3b4], 0
call dword [eax + 0x14]
mov esi, dword [ebp - 0xc]
test eax, eax
jne 0x1002a255
push 0x104
lea eax, [ebp - 0x2ac]
mov byte [ebp - 0x364], 0
push eax
lea eax, [ebp - 0x3b4]
push eax
call dword [sym.imp.SHLWAPI.dll_SHAnsiToUnicode]
jmp 0x1002a280
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x2ac]
push 0x50
push edx
push 0
xor eax, eax
push 4
push dword [ebp - 0x20]
mov word [ebp - 0x2ac], ax
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
xor eax, eax
mov word [ebp - 0x20c], ax
push str.rename
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1002a2b1
push eax
push dword [ebp + 0x10]
mov dword [edi + 0x74], 1
push 0x1076
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1002a2dc
mov eax, dword [edi]
lea ecx, [ebp - 0x2ac]
push ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x64]
push ecx
push esi
push dword [ebp - 8]
mov ecx, edi
push ebx
call dword [eax + 0x60]
test eax, eax
jne 0x1002a2dc
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x64]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
lea esi, [edi + 0x58]
mov ecx, dword [esi]
test ecx, ecx
je 0x1002a2f8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], 0
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x1002a30c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x54], 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x18], 0
je 0x1002a3ef
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push 0x104
mov esi, eax
lea eax, [ebp - 0x2ac]
push eax
push 0x155
push dword [0x1005dc3c]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x1002a36e
push 0x104
lea eax, [ebp - 0x2ac]
push eax
push 0x155
push dword [0x1005dc10]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x2ac]
push eax
push 1
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_InsertMenuW]
push 0
push 1
push esi
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
push dword [edi + 0xa0]
mov eax, dword [edi]
mov ecx, edi
push esi
push 0
push ebx
call dword [eax + 0x5c]
mov ecx, esi
call fcn.1004c2d0
push ecx
push dword [edi + 0x50]
mov edx, 0x102
push ecx
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.10018dd0
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x1002a3e8
push 0
cmp ecx, 1
jne 0x1002a3da
push 0
push dword [ebp + 0x10]
mov ecx, edi
call fcn.1002a4d0
jmp 0x1002a3e8
mov eax, dword [edi]
push ecx
push 0
push esi
push 0
push ebx
mov ecx, edi
call dword [eax + 0x60]
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
or eax, 0xffffffff
lea ecx, [ebx + 0x18]
lock xadd dword [ecx], eax
jne 0x1002a403
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc