Function at 0x10499cb
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x10b1090]
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.01015403
test eax, eax
jne 0x105fbe7
cmp dword [0x10b24cc], 0
push ebx
push edi
je 0x1049a32
mov al, byte [0x10b24d0]
cmp al, 4
jb 0x1049f17
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
mov edx, 0x10000
mov edi, SHChangeNotifyRegister
and eax, edx
and ecx, edi
or eax, ecx
jne 0x105fbee
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.0103c3ea
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 0x14]
mov ecx, esi
call fcn.0104a014
mov dword [ebp - 0x21c], eax
test eax, eax
jl 0x1049ef2
push eax
mov ecx, esi
call fcn.01012311
mov dword [ebp - 0x214], eax
test eax, eax
je 0x1049ef2
mov ecx, dword [eax + 0x10]
mov edi, 0x100
test edi, ecx
jne 0x1049eeb
test cl, cl
js 0x1049eeb
lea ecx, [ebp - 0x210]
push ecx
push 0x1011ea0
mov ecx, eax
call fcn.01049f7d
test eax, eax
jl 0x105fc2c
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
mov dword [ebp - 0x240], ebx
test ebx, ebx
je 0x1049ed9
and dword [ebp - 0x218], 0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x105fc3b
test byte [esi + 0xc8], 8
je 0x1049afe
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 0x105fc46
push dword [ebp - 0x218]
mov ecx, dword [eax]
push 0x7000
push edi
push 0
push ebx
push eax
call dword [ecx + 0xc]
push 0x1049f40
push edi
push ebx
push dword [ebp - 0x210]
call fcn.010497a9
push 0x1049f38
push edi
push ebx
push dword [ebp - 0x210]
call fcn.010497a9
push 0x1049f4c
push edi
push dword [ebp - 0x210]
push ebx
call fcn.010497e2
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 0x105fcbc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x220]
push dword [0x10b23d0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1049c3c
cmp dword [ebp - 0x218], 0xffffffff
je 0x105fc5d
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.0103dda6
test eax, eax
jne 0x105fcd3
push dword [ebp - 0x22c]
mov ecx, esi
push dword [ebp - 0x230]
push dword [ebp - 0x21c]
call fcn.0103de3a
test eax, eax
jne 0x105fd0f
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.010495dd
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
lea eax, [esi + 0x104]
push eax
push 0x1049794
push ecx
call dword [edx]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
lea eax, [esi + 0x108]
push eax
push 0x101208c
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.01002bee
lea eax, [esi + 0x108]
push eax
call fcn.01002bee
cmp dword [esi + 0x44], 0
je 0x1049eb3
test ebx, ebx
je 0x1049eb3
mov eax, ebx
dec eax
je 0x105fd2d
dec eax
je 0x105fd26
dec eax
lea eax, [ebp - 0x20c]
je 0x105fd1f
push 0x104
push eax
lea eax, [ebx - 0x100]
push eax
push dword [ebp - 0x210]
call fcn.0104972c
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 0x1049df7
push 0x104a244
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x105fd48
push 0x104a288
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x1049f24
push 0x104a29c
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x1049f24
push 0x1034f08
call fcn.01008600
test al, al
je 0x1049e89
push 0x104a288
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x105fdc8
push 0x104a29c
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x105fde1
push 0x104a270
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x105fdfa
push 0x104a254
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x105fe13
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 0x105fe43
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.0100f311
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
pop edi
pop ebx
cmp dword [ebp - 0x220], eax
je 0x105fe57
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01001fef
leave
ret 0x10
test al, al
je 0x1049a11
jmp 0x1049a32
cmp dword [0x10b24cc], 0
je 0x1049e23
jmp 0x105fd5a
xor eax, eax
jmp 0x1049f08
mov eax, dword [0x10b24c0]
mov ebx, dword [0x10b24c4]
mov ecx, eax
and ecx, edx
mov edx, ebx
and edx, edi
cmp ecx, eax
jne 0x1049a32
cmp edx, ebx
jne 0x1049a32
push 0x105fe78
push dword [0x10b247c]
push dword [0x10b2478]
call fcn.0100e7c9
jmp 0x1049a32
mov dword [ebp - 0x210], 0x10b3b84
jmp 0x1049ac0
mov dword [ebp - 0x218], edi
jmp 0x1049aee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x210], eax
jmp 0x1049b29
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.0103dda6
test eax, eax
je 0x1049c3c
push 0
push dword [ebp - 0x224]
push ebx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x1049c3c
push 0x400
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.USER32.dll_DeleteMenu]
jmp 0x1049c3c
mov eax, dword [ebp - 0x214]
test byte [eax + 0x20], 1
mov eax, 0x104a29c
jne 0x105fce9
mov eax, 0x104a288
push eax
push edi
push dword [ebp - 0x210]
push ebx
call fcn.010497e2
cmp eax, 0xffffffff
je 0x1049c5d
push 1
push eax
push ebx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x1049c5d
push 1
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x1049c7e
push 0x1069a84
jmp 0x105fd38
push 0x1069a9c
jmp 0x105fd32
push 0x1049f4c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100665f
jmp 0x1049d50
push dword [ebp - 0x21c]
mov ecx, esi
call fcn.0108f9ef
jmp 0x1049e23
mov al, byte [0x10b24d0]
cmp al, 4
jae 0x105fd6b
test al, al
jne 0x1049e23
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
mov edx, 0x10000
mov ebx, SHChangeNotifyRegister
and eax, edx
and ecx, ebx
or eax, ecx
je 0x1049e23
mov eax, dword [0x10b24c0]
mov edi, dword [0x10b24c4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, ebx
cmp ecx, eax
jne 0x105fdbd
cmp edx, edi
jne 0x105fdbd
push 0x105fe88
push dword [0x10b247c]
push dword [0x10b2478]
call fcn.0100e7c9
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpICW]
jmp 0x1049e23
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1049e89
push 2
jmp 0x105fe2a
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1049e89
push 7
jmp 0x105fe2a
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1049e89
push 5
jmp 0x105fe2a
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1049e89
push 0xa
push 0
push edi
push 0x10b2478
call fcn.0102e4d2
push edi
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x1049e89
push 0x17a5
push 0x105fe98
call fcn.01034ccd
jmp 0x1049ec3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x234]
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x1049f08