Function at 0x474af0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3f70
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov eax, dword [eax + 0x34]
call eax
test al, al
jne 0x474b37
mov eax, dword [edi]
cmp eax, 8
jbe 0x474b37
cmp eax, 0x14
jb 0x474b44
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x2c]
call eax
test al, al
jne 0x474b65
mov ecx, dword [esi + 0x294]
push edi
test ecx, ecx
je 0x474b59
mov eax, dword [ecx]
call dword [eax + 0x74]
jmp 0x474f85
mov ecx, esi
call fcn.004611e0
jmp 0x474f85
mov ecx, dword [edi]
cmp ecx, 0x24
jne 0x474c1e
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
add edi, 0xc
lea eax, [ebp - 0x28]
push eax
sub esp, 8
mov eax, dword [edi]
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [esi - 4]
call fcn.00476e00
test al, al
je 0x474bf3
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x474f85
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x474c0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474fa3
jmp 0x474c0f
mov ecx, dword [esi + 0x35c]
test ecx, ecx
je 0x474c08
push edi
push ecx
call fcn.00473560
test eax, eax
jne 0x474bbd
push 0x7f01
jmp 0x474bae
push edx
push ecx
call fcn.004c1d47
add esp, 8
jmp 0x474f85
cmp ecx, 5
jne 0x474c94
push 9
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x474c58
cmp byte [esi + 0x361], 0
jne 0x474c58
mov ecx, dword [esi + 0x2b0]
test ecx, ecx
je 0x474f85
push 0
push 0
push 0x2a
push esi
call fcn.0043f640
jmp 0x474f85
cmp byte [esi + 0x368], 0
je 0x474c76
mov eax, dword [edi + 0x18]
cmp eax, 0x30
jb 0x474f85
cmp eax, 0x39
ja 0x474f85
mov eax, dword [esi - 4]
lea ecx, [esi - 4]
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push 0x102
call dword [eax + 0x1c8]
jmp 0x474f85
cmp ecx, 3
jne 0x474ca7
push edi
lea ecx, [esi - 4]
call fcn.00475100
jmp 0x474f85
cmp ecx, 9
jne 0x474cb7
push edi
push 0x200
jmp 0x474f7d
cmp ecx, 0x13
jne 0x474cda
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x474f85
push edi
mov ecx, esi
call fcn.0045c080
jmp 0x474f85
cmp ecx, 0xd
je 0x474eac
cmp ecx, 0x1b
je 0x474eac
cmp ecx, 0xe
je 0x474e35
cmp ecx, 0x1d
je 0x474e35
cmp ecx, 0xfffffc18
jne 0x474d47
cmp byte [esi + 0x365], 0
lea ecx, [esi - 4]
je 0x474d3c
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push edx
push 0
push 0x437
mov dword [ebp - 0x30], 0xffffffff
call dword [eax + 0x1c8]
jmp 0x474f85
push edi
push 0x203
jmp 0x474f80
cmp ecx, 0xf
jne 0x474d57
push edi
push 0x204
jmp 0x474f7d
cmp ecx, 0x10
jne 0x474d67
push edi
push 0x205
jmp 0x474f7d
cmp ecx, 0x21
jne 0x474de6
mov eax, dword [esi + 0x2b0]
mov edi, dword [eax + 0xc]
test edi, edi
je 0x474f85
push edi
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov ebx, eax
test ebx, ebx
je 0x474f85
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.0045f5b0
mov ecx, dword [esi + 0x374]
mov edx, 1
sub ecx, dword [ebp - 0x34]
mov eax, dword [esi + 0x378]
sub eax, dword [ebp - 0x30]
cmp ecx, edx
mov dword [ebp - 0x2c], 2
cmovl ecx, edx
cmp eax, edx
mov dword [ebp - 0x28], ecx
cmovl eax, edx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.IMM32.dll_ImmSetCompositionWindow]
push ebx
push edi
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
mov byte [esi + 0x370], 1
jmp 0x474f85
cmp ecx, 0x22
jne 0x474df7
mov byte [esi + 0x370], 0
jmp 0x474f85
cmp ecx, 0xfffffc1a
jne 0x474e0d
push ecx
lea ecx, [esi - 4]
call fcn.00474fb0
jmp 0x474f85
cmp ecx, 0xfffffc1b
jne 0x474ccd
push ecx
lea ecx, [esi - 4]
call fcn.00475010
push 0
call fcn.0047ed70
mov ecx, eax
call fcn.0047edc0
jmp 0x474f85
cmp byte [esi + 0x1c], 0
je 0x474ea1
cmp byte [esi + 0x36b], 0
jne 0x474ea1
cmp byte [esi + 0x36d], 0
mov byte [esi + 0x36b], 1
je 0x474ea1
mov eax, dword [esi - 4]
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
lea ecx, [esi - 4]
mov dword [ebp - 0x30], 0xffffffff
push edx
push 0
push 0x437
call dword [eax + 0x1c8]
test byte [esi + 0x3a0], 4
mov ecx, esi
mov eax, dword [esi]
je 0x474e9b
call dword [eax + 0x134]
push edi
push 0x202
jmp 0x474f7d
call dword [eax + 0x144]
push edi
push 0x202
jmp 0x474f7d
mov eax, dword [esi + 0x4b0]
sub eax, dword [esi + 0x4ac]
sar eax, 5
test eax, eax
je 0x474f64
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov eax, dword [edi + 0xc]
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 4], eax
lea ecx, [esi - 4]
call fcn.00476e00
test al, al
je 0x474f25
mov ecx, dword [esi + 0x2b0]
test ecx, ecx
je 0x474bbd
push 0
xor eax, eax
cmp esi, 4
push 0
push 0x2b
cmove esi, eax
push esi
call fcn.0043f640
jmp 0x474bbd
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x474f62
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x474f58
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474fa3
push edx
push ecx
call fcn.004c1d47
add esp, 8
mov ecx, dword [edi]
cmp ecx, 0x1b
jne 0x474f77
push 1
call fcn.0047ed70
mov ecx, eax
call fcn.0047edc0
push edi
push 0x201
lea ecx, [esi - 4]
call fcn.00475380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c1fe9
mov esp, ebp
pop ebp
ret 4
call fcn.004c7ca1
int3