Function at 0x1049943
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.010178ab
test eax, eax
jne 0x105cbbc
cmp dword [0x10b21ec], 0
push ebx
push edi
je 0x10499aa
mov al, byte [0x10b21f0]
cmp al, 4
jb 0x1049e3b
mov eax, dword [0x10b21d8]
mov ecx, dword [0x10b21dc]
mov edx, 0x10000
mov edi, 0x80000000
and eax, edx
and ecx, edi
or eax, ecx
jne 0x105cbc3
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.01037520
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 0x14]
mov ecx, esi
call fcn.01049f58
mov dword [ebp - 0x21c], eax
test eax, eax
jl 0x1049e16
push eax
mov ecx, esi
call fcn.01010c59
mov dword [ebp - 0x214], eax
test eax, eax
je 0x1049e16
mov ecx, dword [eax + 0x10]
mov edi, 0x100
test edi, ecx
jne 0x1049e0f
test cl, cl
js 0x1049e0f
lea ecx, [ebp - 0x210]
push ecx
push 0x101726c
mov ecx, eax
call fcn.01049f08
test eax, eax
jl 0x105cc01
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
mov dword [ebp - 0x240], ebx
test ebx, ebx
je 0x1049dfd
and dword [ebp - 0x218], 0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x105cc10
test byte [esi + 0xc8], 8
je 0x1049a76
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 0x105cc1b
push dword [ebp - 0x218]
mov ecx, dword [eax]
push 0x7000
push edi
push 0
push ebx
push eax
call dword [ecx + 0xc]
push 0x1049e64
push edi
push ebx
push dword [ebp - 0x210]
call fcn.01049721
push 0x1049e5c
push edi
push ebx
push dword [ebp - 0x210]
call fcn.01049721
push 0x1049e70
push edi
push dword [ebp - 0x210]
push ebx
call fcn.0104975a
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 + pe_nt_image_headers32]
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 0x105cc91
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x220]
push dword [0x10b20f0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1049bb4
cmp dword [ebp - 0x218], 0xffffffff
je 0x105cc32
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.0103c156
test eax, eax
jne 0x105cca8
push dword [ebp - 0x22c]
mov ecx, esi
push dword [ebp - 0x230]
push dword [ebp - 0x21c]
call fcn.0103c1ea
test eax, eax
jne 0x105cce4
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.0104957d
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
lea eax, [esi + 0x104]
push eax
push 0x104970c
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 0x1049dd7
test ebx, ebx
je 0x1049dd7
mov eax, ebx
dec eax
je 0x105cd02
dec eax
je 0x105ccfb
dec eax
lea eax, [ebp - 0x20c]
je 0x105ccf4
push 0x104
push eax
lea eax, [ebx - 0x100]
push eax
push dword [ebp - 0x210]
call fcn.010496a2
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 0x1049d6f
push 0x104a15c
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x105cd1d
push 0x104a16c
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x1049e48
push 0x104a180
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x1049e48
push 0x100ebf0
call fcn.01032b59
test al, al
jne 0x105cd9d
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 0x105ce67
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 0x105ce7b
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100204d
leave
ret 0x10
test al, al
je 0x1049989
jmp 0x10499aa
cmp dword [0x10b21ec], 0
je 0x1049d9b
jmp 0x105cd2f
xor eax, eax
jmp 0x1049e2c
mov eax, dword [0x10b21e0]
mov ebx, dword [0x10b21e4]
mov ecx, eax
and ecx, edx
mov edx, ebx
and edx, edi
cmp ecx, eax
jne 0x10499aa
cmp edx, ebx
jne 0x10499aa
push 0x105ce98
push dword [0x10b219c]
push dword [0x10b2198]
call fcn.010127a5
jmp 0x10499aa
mov dword [ebp - 0x210], 0x10b37c0
jmp 0x1049a38
mov dword [ebp - 0x218], edi
jmp 0x1049a66
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x210], eax
jmp 0x1049aa1
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.0103c156
test eax, eax
je 0x1049bb4
push 0
push dword [ebp - 0x224]
push ebx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x1049bb4
push 0x400
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.USER32.dll_DeleteMenu]
jmp 0x1049bb4
mov eax, dword [ebp - 0x214]
test byte [eax + 0x20], 1
mov eax, 0x104a180
jne 0x105ccbe
mov eax, 0x104a16c
push eax
push edi
push dword [ebp - 0x210]
push ebx
call fcn.0104975a
cmp eax, 0xffffffff
je 0x1049bd5
push 1
push eax
push ebx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x1049bd5
push 1
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
jmp 0x1049bf6
push 0x1066a00
jmp 0x105cd0d
push 0x1066a18
jmp 0x105cd07
push 0x1049e70
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.010065a0
jmp 0x1049cc8
push dword [ebp - 0x21c]
mov ecx, esi
call fcn.0108e027
jmp 0x1049d9b
mov al, byte [0x10b21f0]
cmp al, 4
jae 0x105cd40
test al, al
jne 0x1049d9b
mov eax, dword [0x10b21d8]
mov ecx, dword [0x10b21dc]
mov edx, 0x10000
mov ebx, 0x80000000
and eax, edx
and ecx, ebx
or eax, ecx
je 0x1049d9b
mov eax, dword [0x10b21e0]
mov edi, dword [0x10b21e4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, ebx
cmp ecx, eax
jne 0x105cd92
cmp edx, edi
jne 0x105cd92
push 0x105cea8
push dword [0x10b219c]
push dword [0x10b2198]
call fcn.010127a5
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpICW]
jmp 0x1049d9b
push 0x104a16c
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x105cdcb
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1049dad
push 2
jmp 0x105ce4e
push 0x104a180
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x105cdf6
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1049dad
push 7
jmp 0x105ce4e
push 0x10669e8
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x105ce21
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1049dad
push 5
jmp 0x105ce4e
push 0x10669cc
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x1049dad
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x1049dad
push 0xa
push 0
push edi
push 0x10b2198
call fcn.01027fd7
push edi
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x1049dad
push 0x17a5
push 0x105ceb8
call fcn.01012644
jmp 0x1049de7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x234]
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x1049e2c