Function at 0x494cf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff3c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00405cfc
lea eax, [ebp + 8]
call fcn.00405084
xor eax, eax
push ebp
push 0x495436
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x44], eax
xor eax, eax
push ebp
push 0x4953ca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
mov edx, dword [0x48bf00]
call fcn.00405c98
mov byte [ebp - 0xd], 0
cmp dword [ebp - 8], 0
jne 0x494d81
mov ecx, 0x19c8
mov edx, 0x495454
mov eax, 0x4954a0
call fcn.004042e8
cmp dword [ebp - 8], 0
je 0x4953b3
push 0x10
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne bl
push 0x11
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne byte [ebp - 0x45]
xor eax, eax
push ebp
push 0x4953ac
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x495372
lea eax, [ebp - 0x30]
call fcn.00406350
lea eax, [ebp - 0x34]
call fcn.00406350
lea eax, [ebp - 0x38]
call fcn.00406350
mov byte [ebp - 0xd], 0
cmp dword [ebp + 0x10], 0
je 0x494df6
mov eax, dword [ebp + 0x10]
mov esi, dword [eax]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
jmp 0x494e29
lea edx, [ebp - 0xc0]
mov eax, dword [0x565348]
mov eax, dword [eax]
call fcn.00465940
mov esi, dword [ebp - 0xc0]
lea edx, [ebp - 0xc0]
mov eax, dword [0x565348]
mov eax, dword [eax]
call fcn.00465940
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x88]
xor ecx, ecx
mov edx, 0x40
call fcn.00402db4
call sub.user32.dll_CreatePopupMenu
mov dword [ebp - 0x14], eax
push 0x8001
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x49536b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [ebp + 0x26], 0
je 0x494e77
mov eax, dword [ebp - 0xc]
call fcn.00405ad0
dec eax
jne 0x494e77
mov edi, 0x14
jmp 0x494e7c
mov edi, 4
test bl, bl
je 0x494e86
or edi, 0x100
cmp dword [ebp - 0xc], 0
je 0x494e9c
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00494a58
jmp 0x494ea7
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00496000
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00496014
cmp dword [ebp - 0x30], 0
je 0x49534b
lea eax, [ebp - 0x38]
push eax
push 0x4954f0
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [eax]
call dword [eax]
cmp eax, 0x80004002
jne 0x494f04
lea eax, [ebp - 0x34]
push eax
mov eax, dword [0x5651dc]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [eax]
call dword [eax]
cmp eax, 0x80004002
je 0x494f0f
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.00496014
jmp 0x494f0f
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00496014
cmp dword [ebp - 0x38], 0
je 0x494f2e
push edi
push 0x7fff
push 1
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
jmp 0x494f6a
cmp dword [ebp - 0x34], 0
je 0x494f4d
push edi
push 0x7fff
push 1
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
jmp 0x494f6a
cmp dword [ebp - 0x30], 0
je 0x494f6a
push edi
push 0x7fff
push 1
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
cmp dword [ebp + 0xc], 0
je 0x494f9b
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc4]
mov edx, dword [ebp + 8]
call fcn.00404624
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004945b8
mov byte [ebp - 0x2a], 1
cmp word [ebp + 0x1e], 0
je 0x494fb6
lea eax, [ebp - 0x2a]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x20]
call dword [ebp + 0x1c]
cmp byte [ebp - 0x2a], 0
je 0x495064
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x38]
mov dword [eax + 0x40], ecx
mov ecx, dword [edx + 0x3c]
mov dword [eax + 0x44], ecx
xor eax, eax
push ebp
push 0x49505d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax + 0x3c], edx
mov dword [eax + 0x38], 0x496e40
push 0
mov eax, dword [ebp - 8]
call fcn.00461074
push eax
mov eax, dword [ebp - 0x1c]
push eax
push esi
push 0x102
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_TrackPopupMenuEx
mov dword [ebp - 0x18], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495069
push 0x10
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne bl
push 0x11
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne byte [ebp - 0x45]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x40]
mov dword [eax + 0x38], ecx
mov ecx, dword [edx + 0x44]
mov dword [eax + 0x3c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
ret
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x495330
call fcn.004a1738
test al, al
je 0x4950ae
lea eax, [ebp - 0x28]
mov edx, 0x80
call fcn.00405040
mov eax, dword [ebp - 0x28]
call fcn.00404ccc
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00402db4
mov eax, dword [ebp - 0x28]
call fcn.00404ccc
mov esi, eax
mov edi, 4
jmp 0x4950db
lea eax, [ebp - 0x24]
mov edx, 0x80
call fcn.004049e8
lea eax, [ebp - 0x24]
call fcn.004048b4
xor ecx, ecx
mov edx, 0x80
call fcn.00402db4
lea eax, [ebp - 0x24]
call fcn.004048b4
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x38], 0
je 0x495102
push 0x80
push esi
push 0
push edi
mov eax, dword [ebp - 0x18]
dec eax
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.0041a80c
mov byte [ebp - 0xd], al
jmp 0x49514e
cmp dword [ebp - 0x34], 0
je 0x495129
push 0x80
push esi
push 0
push edi
mov eax, dword [ebp - 0x18]
dec eax
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.0041a80c
mov byte [ebp - 0xd], al
jmp 0x49514e
cmp dword [ebp - 0x30], 0
je 0x49514e
push 0x80
push esi
push 0
push edi
mov eax, dword [ebp - 0x18]
dec eax
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.0041a80c
mov byte [ebp - 0xd], al
call fcn.004a1738
test al, al
je 0x495171
mov eax, dword [ebp - 0x28]
call fcn.00404ccc
push eax
call sub.kernel32.dll_lstrlenW
mov edx, eax
lea eax, [ebp - 0x28]
call fcn.00405040
jmp 0x495193
mov eax, dword [ebp - 0x24]
call fcn.0040485c
call fcn.0040a368
mov edx, eax
lea eax, [ebp - 0x24]
call fcn.004049e8
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00404c50
cmp byte [ebp - 0xd], 0
jne 0x4951a9
lea eax, [ebp - 0x28]
mov edx, dword [0x564fc8]
mov edx, dword [edx]
call fcn.00404adc
mov byte [ebp - 0x29], 0
mov eax, dword [ebp - 0x3c]
call fcn.00405ad0
mov esi, eax
dec esi
test esi, esi
jl 0x495225
inc esi
xor edi, edi
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + edi*4]
cmp eax, dword [ebp - 0x18]
jne 0x495221
cmp dword [ebp - 0x40], 0
je 0x495221
mov byte [ebp - 0x29], 1
lea eax, [ebp - 0xb8]
xor ecx, ecx
mov edx, 0x30
call fcn.00402db4
mov dword [ebp - 0xb8], 0x30
mov dword [ebp - 0xb4], 0x20
lea eax, [ebp - 0xb8]
push eax
push 0xffffffffffffffff
push edi
mov eax, dword [ebp - 0x40]
push eax
call sub.user32.dll_GetMenuItemInfoA
cmp dword [ebp - 0x98], 0
je 0x495221
mov eax, dword [ebp - 0x98]
mov edx, dword [eax]
call dword [edx + 0x44]
inc edi
dec esi
jne 0x4951bf
cmp byte [ebp - 0x29], 0
jne 0x495330
cmp word [ebp + 0x26], 0
je 0x49524a
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x29]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x28]
call dword [ebp + 0x24]
lea eax, [ebp - 0x88]
xor ecx, ecx
mov edx, 0x40
call fcn.00402db4
mov esi, dword [ebp - 0x18]
dec esi
mov dword [ebp - 0x7c], esi
call fcn.004a1738
test al, al
je 0x495279
mov dword [ebp - 0x84], 0x10000
mov dword [ebp - 0x60], esi
call fcn.004a1738
test al, al
je 0x49528e
mov dword [ebp - 0x88], 0x40
jmp 0x495298
mov dword [ebp - 0x88], 0x24
mov eax, dword [ebp - 8]
call fcn.00461074
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], 1
or dword [ebp - 0x84], 0x100000
test bl, bl
je 0x4952c2
or dword [ebp - 0x84], 0x10000000
cmp byte [ebp - 0x45], 0
je 0x4952d2
or dword [ebp - 0x84], 0x40000000
cmp dword [ebp - 0x38], 0
je 0x4952f2
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
call fcn.0041a80c
mov byte [ebp - 0xd], al
jmp 0x495330
cmp dword [ebp - 0x34], 0
je 0x495312
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
call fcn.0041a80c
mov byte [ebp - 0xd], al
jmp 0x495330
cmp dword [ebp - 0x30], 0
je 0x495330
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
call fcn.0041a80c
mov byte [ebp - 0xd], al
cmp word [ebp + 0x16], 0
je 0x49534b
mov eax, dword [ebp - 0x18]
push eax
mov al, byte [ebp - 0xd]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
call dword [ebp + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495372
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_DestroyMenu
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4953b3
lea eax, [ebp - 0x30]
call fcn.00406350
lea eax, [ebp - 0x34]
call fcn.00406350
lea eax, [ebp - 0x38]
call fcn.00406350
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00496000
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00496014
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4953d1
mov eax, dword [ebp - 0x44]
push eax
call sub.kernel32.dll_SetErrorMode
ret