Function at 0x10408ad
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x1046080]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x21c], eax
call fcn.0103fbb4
test eax, eax
je 0x10408dc
xor eax, eax
jmp 0x1040c1c
push esi
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0x14]
mov ecx, edi
xor esi, esi
call fcn.0103fcff
test eax, eax
mov dword [ebp - 0x22c], eax
jl 0x1040c06
push eax
mov ecx, edi
call fcn.010094e9
test eax, eax
mov dword [ebp - 0x220], eax
je 0x1040c06
mov edx, dword [edi]
lea ecx, [ebp - 0x210]
push ecx
push 0x1009ae8
push eax
mov ecx, edi
call dword [edx + 0x84]
test eax, eax
jge 0x1040939
mov dword [ebp - 0x210], 0x1047734
push ebx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x230], ebx
je 0x1040bf1
and dword [ebp - 0x214], 0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov esi, 0x100
jge 0x104096f
mov dword [ebp - 0x214], esi
test byte [edi + 0x48], 8
je 0x104097c
or dword [ebp - 0x214], 0x10
push dword [ebp - 0x214]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push 0x7000
push esi
push 0
push ebx
push eax
call dword [ecx + 0xc]
push 0x1040c54
push esi
push ebx
push dword [ebp - 0x210]
call fcn.0103c7ec
push 0x1040c4c
push esi
push ebx
push dword [ebp - 0x210]
call fcn.0103c7ec
push 0x102aaf0
push esi
push dword [ebp - 0x210]
push ebx
call fcn.0103c5e9
and dword [ebp - 0x218], 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x220]
mov dword [ebp - 0x214], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
test eax, eax
je 0x1040a67
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
push dword [0x1046f08]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1040a79
cmp dword [ebp - 0x214], 0xffffffff
je 0x1040a3f
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x218]
push 1
or eax, 0x400
push eax
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.USER32.dll_ModifyMenuW]
jmp 0x1040a79
push 0
push 0xffffffffffffffff
push 0x800
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
lea eax, [ebp - 0x20c]
push eax
push 1
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x1040a79
push 0x400
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.USER32.dll_DeleteMenu]
push ebx
call fcn.0103c472
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
lea eax, [edi + 0x64]
push eax
push 0x1040c2c
push ecx
call dword [edx]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
lea eax, [edi + 0x68]
push eax
push 0x102a238
push ecx
call dword [edx]
push 0
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
push dword [ebp - 0x228]
push 0x102
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
mov ebx, eax
lea eax, [edi + 0x64]
push eax
call fcn.010051c6
lea eax, [edi + 0x68]
push eax
call fcn.010051c6
test ebx, ebx
je 0x1040be2
mov eax, ebx
dec eax
push 0x104
lea eax, [ebp - 0x20c]
je 0x1040b08
push eax
lea eax, [ebx - 0x100]
push eax
push dword [ebp - 0x210]
call fcn.0103c74c
jmp 0x1040b14
push 0x102aaf0
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x268], eax
xor eax, eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x228]
sub ebx, esi
test byte [edi + 0x48], 8
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x270], 0x40
mov dword [ebp - 0x26c], 0x4100000
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x258], 0xa
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x234], eax
je 0x1040bc1
push 0x1040c3c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1040bc1
push dword [ebp - 0x22c]
mov ecx, edi
call fcn.0103fdcb
jmp 0x1040be2
mov eax, dword [edi]
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x270]
push ecx
push dword [ebp - 0x210]
mov ecx, edi
push dword [ebp - 0x220]
call dword [eax + 0x48]
push dword [ebp - 0x230]
call dword [sym.imp.USER32.dll_DestroyMenu]
xor esi, esi
inc esi
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
pop ebx
je 0x1040c06
xor eax, eax
jmp 0x1040c1b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.01001aff
leave
ret 0x10