Function at 0x4761b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bf6f8
push eax
mov dword fs:[0], esp
mov eax, dword [ebp + 0x18]
sub esp, 0x124
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x4c]
push edi
mov dword [ebx + 0x1a04], eax
call fcn.00478f70
mov edi, dword [ebp + 8]
test al, al
je 0x47639c
cmp edi, 0x201
jne 0x476222
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push edi
mov ecx, ebx
call fcn.00474830
test al, al
je 0x476279
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x200
jne 0x476279
cmp dword [ebx + 0x1abc], 0
jne 0x476279
mov ecx, dword [0x50b3a0]
cmp byte [ecx + 0x124b], 0
je 0x47625c
push 0
push 0x7d7
call fcn.004451d0
test al, al
jne 0x47630b
mov ecx, dword [0x50b3a0]
cmp byte [ecx + 0x124c], 0
je 0x47627f
push 0
push 0x7d8
call fcn.004451d0
test al, al
jne 0x47630b
mov ecx, dword [0x50b3a0]
mov al, byte [ecx + 0x124e]
cmp al, 2
je 0x4762a3
cmp al, 3
jne 0x476325
cmp dword [ebx + 0x1abc], 0
setne al
test al, al
jne 0x476325
cmp edi, 0x204
je 0x4762b3
cmp edi, 0x205
jne 0x476325
cmp byte [ecx + 0x124d], 2
jne 0x4762da
mov ecx, dword [ebx + 0x4c]
call fcn.00476e20
test eax, eax
je 0x4762d4
mov ecx, dword [ebx + 0x4c]
call fcn.00478f20
test al, al
je 0x4762f3
mov ecx, dword [0x50b3a0]
cmp byte [ecx + 0x124d], 1
jne 0x476325
push 1
push 0x7d9
call fcn.004451d0
test al, al
je 0x47631f
cmp edi, 0x205
jne 0x47630b
mov ecx, dword [ebx + 0x4c]
push 0
push 0
push 0
push 0
call fcn.0047ece0
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [0x50b3a0]
mov al, byte [ecx + 0x124f]
cmp al, 2
je 0x476341
cmp al, 3
jne 0x47639c
cmp dword [ebx + 0x1abc], 0
setne al
test al, al
jne 0x47639c
cmp edi, 0x207
je 0x476351
cmp edi, 0x208
jne 0x47639c
cmp byte [ecx + 0x124d], 2
jne 0x476378
mov ecx, dword [ebx + 0x4c]
call fcn.00476e20
test eax, eax
je 0x476372
mov ecx, dword [ebx + 0x4c]
call fcn.00478f20
test al, al
je 0x476391
mov ecx, dword [0x50b3a0]
cmp byte [ecx + 0x124d], 1
jne 0x47639c
push 1
push 0x7d9
call fcn.004451d0
test al, al
je 0x47639c
cmp edi, 0x208
jmp 0x4762f9
cmp dword [ebx + 0x1abc], 0
jne 0x4763e7
mov ecx, dword [ebx + 0x4c]
push 0
call fcn.0047adf0
test al, al
je 0x4763e7
cmp edi, 0x200
je 0x4763d3
cmp edi, 0x201
je 0x4763d3
cmp edi, 0x202
je 0x4763d3
cmp edi, 0x203
jne 0x4763e7
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov ecx, ebx
call fcn.004732d0
test al, al
jne 0x47620e
mov ecx, dword [ebx + 0x4c]
push esi
call fcn.00478f20
movzx esi, al
xor eax, eax
cmp edi, 0x20a
je 0x476405
cmp edi, 0x20e
jne 0x47642e
cmp dword [ebx + 0x1b44], 0
je 0x47650d
cmp dword [ebx], 1
jne 0x47642e
test esi, esi
je 0x47642e
mov edx, dword [ebx + 0x4c]
mov ecx, dword [edx + 0x47c]
push 1
add ecx, 8
call fcn.0049d2e0
cmp dword [ebx + 0x1b44], 0
je 0x47650d
cmp dword [ebx], 1
jne 0x47644c
test esi, esi
je 0x47644c
test eax, eax
je 0x47650d
cmp edi, 0x20a
jne 0x476502
mov esi, dword [ebp + 0xc]
shr esi, 0x10
push 0x11
mov dword [ebp + 0xc], esi
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
xor ecx, ecx
cmp ax, dx
sete cl
cmp byte [ebp + 0x1c], 0
mov edi, ecx
je 0x47648a
mov eax, 1
jmp 0x4764a9
mov esi, dword [0x50b39c]
add esi, 0x42c0
cmp dword [esi + 0x60], 0
jne 0x4764a3
mov ecx, esi
call fcn.004049c0
mov eax, dword [esi + 0x60]
mov esi, dword [ebp + 0xc]
test si, si
jle 0x4764d5
neg edi
push eax
sbb edi, edi
push 0xffffffffffffffff
and edi, 2
push edi
mov ecx, ebx
call fcn.0046f530
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
jge 0x4764ed
xor edx, edx
test edi, edi
setne dl
push eax
push 0xffffffffffffffff
mov ecx, ebx
lea edx, [edx + edx + 1]
push edx
call fcn.0046f530
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, ebx
call fcn.0046e2b0
test al, al
je 0x476588
xor esi, esi
cmp dword [ebx + 0x1abc], esi
je 0x476540
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
push edi
mov ecx, ebx
call fcn.00474830
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ebx], 1
jne 0x47657a
mov eax, dword [0x50b3a0]
cmp byte [eax + 0x11285], 0
je 0x47657a
cmp edi, 0x204
jne 0x4765a3
mov eax, dword [ebx + 0x1b30]
movsx ecx, word [ebp + 0x1a]
dec eax
cmp ecx, eax
jne 0x47657a
mov ecx, dword [ebx + 0x4c]
call fcn.0047c130
test al, al
jne 0x476773
cmp dword [ebx + 0x1b64], esi
je 0x476588
mov dword [ebx + 0x1b64], esi
xor eax, eax
cmp dword [ebx], 1
pop esi
pop edi
setne al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x200
je 0x4765b3
cmp edi, 0x205
jne 0x47657a
cmp dword [ebx + 0x1b64], esi
je 0x476588
cmp edi, 0x205
jne 0x47691e
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [ebp + 0x1c], eax
xor esi, esi
xor ecx, ecx
test byte [esi*4 + 0x4dbf08], 8
mov word [ebp - 0x130], cx
je 0x4765fb
push str.Ctrl_
push 0x80
lea edx, [ebp - 0x130]
push edx
call fcn.00401880
test byte [esi*4 + 0x4dbf08], 2
je 0x47661b
push str.Alt_
push 0x80
lea eax, [ebp - 0x130]
push eax
call fcn.00401880
test byte [esi*4 + 0x4dbf08], 4
je 0x47663b
push str.RCtrl_
push 0x80
lea ecx, [ebp - 0x130]
push ecx
call fcn.00401880
test byte [esi*4 + 0x4dbf08], 1
je 0x47665b
push str.RAlt_
push 0x80
lea edx, [ebp - 0x130]
push edx
call fcn.00401880
test byte [esi*4 + 0x4dbf08], 0x10
je 0x47667b
push str.Shift_
push 0x80
lea eax, [ebp - 0x130]
push eax
call fcn.00401880
mov ecx, dword [ebx + 0x1b74]
sub ecx, 0x6f
push ecx
push 0x4dd374
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x130]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, esi
and dl, 3
add esp, 0xc
movzx eax, dl
neg eax
sbb eax, eax
lea ecx, [ebp - 0x130]
push ecx
mov ecx, dword [ebp + 0x1c]
and eax, 0xffffffc0
lea edi, [esi + 1]
push edi
add eax, 0x40
push eax
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov esi, edi
cmp esi, 0xc
jb 0x4765d2
mov eax, dword [ebx + 0x1b6c]
mov ecx, dword [ebx + 0x1b70]
mov edi, dword [ebp + 0x1c]
lea edx, [eax - 1]
mov dword [ebp - 0x28], edx
lea edx, [ecx - 1]
mov dword [ebp - 0x24], edx
lea edx, [eax + 1]
mov dword [ebp - 0x20], edx
lea edx, [ecx + 1]
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x28]
push edx
mov edx, dword [0x50b384]
push edx
push ecx
push eax
mov eax, dword [0x50b39c]
mov ecx, dword [eax + 0x4230]
push 0x122
push edi
push 5
call fcn.0043e200
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_DestroyMenu]
lea ecx, [esi - 1]
cmp ecx, 0xb
ja 0x476754
mov edx, dword [esi*4 + 0x4dbf04]
movzx eax, word [ebx + 0x1b74]
mov ecx, dword [ebx + 0x4c]
push 0xffffffffffffffff
push 0
push edx
push eax
call fcn.004804a0
pop esi
pop edi
mov dword [ebx + 0x1b64], 0
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
lea ecx, [ebp - 0x18]
call fcn.00486620
lea edx, [ebp - 0x18]
push edx
movsx edx, word [ebp + 0x1a]
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0x1c]
push ecx
push edx
mov ecx, ebx
mov dword [ebp - 4], esi
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x14], esi
call fcn.0046e3a0
test eax, eax
je 0x476874
mov edx, dword [ebp + 0x1c]
cmp word [edx], 0x31
jne 0x476874
cmp dword [ebp + 0x14], 1
mov dword [ebp + 0xc], esi
mov edi, 2
jle 0x476874
xor ecx, ecx
mov dword [ebp + 0x1c], 0xfffffff8
add edx, 4
jmp 0x4767d4
mov esi, dword [ebp + 0xc]
movzx eax, word [edx - 2]
cmp ax, 0x30
jb 0x476864
cmp ax, 0x39
ja 0x476864
cmp edi, 9
jg 0x47681b
movzx eax, ax
sub eax, 0x30
cmp eax, edi
jne 0x476864
cmp word [edx - 4], 0x20
jne 0x476864
movzx eax, word [edx]
cmp ax, 0x30
jb 0x47680d
cmp ax, 0x39
jbe 0x476864
movsx eax, word [ebp + 0x18]
cmp eax, ecx
jg 0x47685d
cmp eax, esi
jge 0x476889
jmp 0x47685d
mov esi, dword [ebp + 0x1c]
cmp esi, 2
jg 0x476910
cmp ax, 0x31
jne 0x476864
movzx eax, word [edx]
sub eax, 0x30
cmp eax, esi
jne 0x476864
cmp word [edx - 4], 0x20
jne 0x476864
movzx eax, word [edx + 2]
cmp ax, 0x30
jb 0x47684e
cmp ax, 0x39
jbe 0x476864
movsx eax, word [ebp + 0x18]
cmp eax, ecx
jg 0x47685d
mov esi, dword [ebp + 0xc]
cmp eax, esi
jge 0x476888
inc edi
inc dword [ebp + 0x1c]
mov dword [ebp + 0xc], ecx
inc ecx
lea eax, [ecx + 1]
add edx, 2
cmp eax, dword [ebp + 0x14]
jl 0x4767d1
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004ae3a0
jmp 0x476588
inc esi
add edi, 0x6e
test edi, edi
je 0x476874
mov ecx, dword [ebp + 0x18]
mov dword [ebx + 0x1b64], 1
mov dword [ebx + 0x1b68], ecx
lea eax, [esi + 1]
cmp edi, 0x70
je 0x4768ae
lea eax, [esi + 2]
movsx edx, word [ebp + 0x1a]
mov ecx, dword [ebx + 0x4c]
mov ecx, dword [ecx + 0x47c]
push edx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004a6740
mov edx, dword [eax]
lea ecx, [ebx + 0x1b6c]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
push ecx
mov ecx, dword [ebx + 0x4c]
call fcn.00478bf0
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
lea ecx, [ebp - 0x18]
mov dword [ebx + 0x1b74], edi
mov dword [ebp - 4], 0xffffffff
call fcn.004ae3a0
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [ebp + 0xc]
inc esi
mov edi, 0x7b
jmp 0x476890
cmp edi, 0x200
jne 0x476588
mov ecx, dword [ebp - 0xc]
pop esi
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18