Function at 0x1049a33
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x10b0090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x234], eax
call fcn.010178ab
test eax, eax
jne 0x105cacc
cmp dword [0x10b11ec], 0
push ebx
push edi
je 0x1049a9a
mov al, byte [0x10b11f0]
cmp al, 4
jb 0x1049f2b
mov eax, dword [0x10b11d8]
mov ecx, dword [0x10b11dc]
mov edx, 0x10000
mov edi, 0x80000000
and eax, edx
and ecx, edi
or eax, ecx
jne 0x105cad3
mov eax, dword [esi]
push esi
mov dword [esi + 0x1bc], 1
call dword [eax + 4]
push 0
push 0xd3
push dword [esi + 0x44]
call fcn.01037588
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 0x14]
mov ecx, esi
call fcn.0104a048
mov dword [ebp - 0x21c], eax
test eax, eax
jl 0x1049f06
push eax
mov ecx, esi
call fcn.01010c59
mov dword [ebp - 0x214], eax
test eax, eax
je 0x1049f06
mov ecx, dword [eax + 0x10]
mov edi, 0x100
test edi, ecx
jne 0x1049eff
test cl, cl
js 0x1049eff
lea ecx, [ebp - 0x210]
push ecx
push 0x101726c
mov ecx, eax
call fcn.01049ff8
test eax, eax
jl 0x105cb11
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
mov dword [ebp - 0x240], ebx
test ebx, ebx
je 0x1049eed
and dword [ebp - 0x218], 0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x105cb20
test byte [esi + 0xc8], 8
je 0x1049b66
or dword [ebp - 0x218], 0x10
mov eax, dword [esi]
lea ecx, [ebp - 0x244]
push ecx
push dword [ebp - 0x210]
mov ecx, esi
push dword [ebp - 0x214]
call dword [eax + 0xa0]
test eax, eax
mov eax, dword [ebp - 0x210]
jge 0x105cb2b
push dword [ebp - 0x218]
mov ecx, dword [eax]
push 0x7000
push edi
push 0
push ebx
push eax
call dword [ecx + 0xc]
push 0x1049f54
push edi
push ebx
push dword [ebp - 0x210]
call fcn.01049811
push 0x1049f4c
push edi
push ebx
push dword [ebp - 0x210]
call fcn.01049811
push 0x1049f60
push edi
push dword [ebp - 0x210]
push ebx
call fcn.0104984a
and dword [ebp - 0x228], 0
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x224], 1
call dword [eax + 0xd8]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x230]
push eax
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [ebp - 0x220], 0
je 0x105cba1
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x220]
push dword [0x10b10f0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1049ca4
cmp dword [ebp - 0x218], 0xffffffff
je 0x105cb42
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
mov eax, dword [ebp - 0x228]
or eax, 0x400
push eax
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.USER32.dll_ModifyMenuW]
push dword [ebp - 0x22c]
mov ecx, esi
push dword [ebp - 0x230]
push dword [ebp - 0x21c]
call fcn.0103c1be
test eax, eax
jne 0x105cbb8
push dword [ebp - 0x22c]
mov ecx, esi
push dword [ebp - 0x230]
push dword [ebp - 0x21c]
call fcn.0103c252
test eax, eax
jne 0x105cbf4
push dword [ebp - 0x228]
mov eax, dword [esi]
push ebx
push dword [ebp - 0x214]
mov ecx, esi
push dword [ebp - 0x210]
call dword [eax + 0x9c]
push ebx
call fcn.0104966d
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
lea eax, [esi + 0x104]
push eax
push 0x10497fc
push ecx
call dword [edx]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
lea eax, [esi + 0x108]
push eax
push 0x100ebdc
push ecx
call dword [edx]
push 0
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push 0x102
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
mov ebx, eax
lea eax, [esi + 0x104]
push eax
call fcn.01002bf6
lea eax, [esi + 0x108]
push eax
call fcn.01002bf6
cmp dword [esi + 0x44], 0
je 0x1049ec7
test ebx, ebx
je 0x1049ec7
mov eax, ebx
dec eax
je 0x105cc12
dec eax
je 0x105cc0b
dec eax
lea eax, [ebp - 0x20c]
je 0x105cc04
push 0x104
push eax
lea eax, [ebx - 0x100]
push eax
push dword [ebp - 0x210]
call fcn.01049792
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x27c], eax
xor eax, eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x23c]
sub ebx, edi
test byte [esi + 0xc8], 8
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpICW]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x284], 0x40
mov dword [ebp - 0x280], 0x4100000
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x26c], 0xa
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x248], eax
je 0x1049e5f
push 0x104a24c
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x105cc2d
push 0x104a25c
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x1049f38
push 0x104a270
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x1049f38
push 0x100ebf0
call fcn.01032bc1
test al, al
jne 0x105ccad
mov eax, dword [esi]
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x284]
push ecx
push dword [ebp - 0x210]
mov ecx, esi
push dword [ebp - 0x21c]
push dword [ebp - 0x214]
call dword [eax + 0xa4]
mov eax, dword [ebp - 0x214]
test byte [eax + 0x10], 0x40
jne 0x105cd77
push dword [ebp - 0x240]
call dword [sym.imp.USER32.dll_DestroyMenu]
mov dword [ebp - 0x220], 1
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x214]
mov ecx, eax
call fcn.0100f775
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
pop edi
pop ebx
cmp dword [ebp - 0x220], eax
je 0x105cd8b
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100204d
leave
ret 0x10
test al, al
je 0x1049a79
jmp 0x1049a9a
cmp dword [0x10b11ec], 0
je 0x1049e8b
jmp 0x105cc3f
xor eax, eax
jmp 0x1049f1c
mov eax, dword [0x10b11e0]
mov ebx, dword [0x10b11e4]
mov ecx, eax
and ecx, edx
mov edx, ebx
and edx, edi
cmp ecx, eax
jne 0x1049a9a
cmp edx, ebx
jne 0x1049a9a
push 0x105cda8
push dword [0x10b119c]
push dword [0x10b1198]
call fcn.010127a5
jmp 0x1049a9a
mov dword [ebp - 0x210], 0x10b27c0
jmp 0x1049b28
mov dword [ebp - 0x218], edi
jmp 0x1049b56
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x210], eax
jmp 0x1049b91
push 0
push 0xffffffffffffffff
push 0x800
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
push dword [ebp - 0x228]
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
push dword [ebp - 0x22c]
mov ecx, esi
push dword [ebp - 0x230]
push dword [ebp - 0x21c]
call fcn.0103c1be
test eax, eax
je 0x1049ca4
push 0
push dword [ebp - 0x224]
push ebx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x1049ca4
push 0x400
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.USER32.dll_DeleteMenu]
jmp 0x1049ca4
mov eax, dword [ebp - 0x214]
test byte [eax + 0x20], 1
mov eax, 0x104a270
jne 0x105cbce
mov eax, 0x104a25c
push eax
push edi
push dword [ebp - 0x210]
push ebx
call fcn.0104984a
cmp eax, 0xffffffff
je 0x1049cc5
push 1
push eax
push ebx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x1049cc5
push 1
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x1049ce6
push 0x1066910
jmp 0x105cc1d
push 0x1066928
jmp 0x105cc17
push 0x1049f60
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.010065a0
jmp 0x1049db8
push dword [ebp - 0x21c]
mov ecx, esi
call fcn.0108db1f
jmp 0x1049e8b
mov al, byte [0x10b11f0]
cmp al, 4
jae 0x105cc50
test al, al
jne 0x1049e8b
mov eax, dword [0x10b11d8]
mov ecx, dword [0x10b11dc]
mov edx, 0x10000
mov ebx, 0x80000000
and eax, edx
and ecx, ebx
or eax, ecx
je 0x1049e8b
mov eax, dword [0x10b11e0]
mov edi, dword [0x10b11e4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, ebx
cmp ecx, eax
jne 0x105cca2
cmp edx, edi
jne 0x105cca2
push 0x105cdb8
push dword [0x10b119c]
push dword [0x10b1198]
call fcn.010127a5
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpICW]
jmp 0x1049e8b
push 0x104a25c
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x105ccdb
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1049e9d
push 2
jmp 0x105cd5e
push 0x104a270
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x105cd06
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1049e9d
push 7
jmp 0x105cd5e
push 0x10668f8
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x105cd31
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1049e9d
push 5
jmp 0x105cd5e
push 0x10668dc
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x1049e9d
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1049e9d
push 0xa
push 0
push edi
push 0x10b1198
call fcn.01028047
push edi
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x1049e9d
push 0x17a5
push 0x105cdc8
call fcn.01012644
jmp 0x1049ed7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x234]
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x1049f1c