Function at 0x414670
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
cmp dword [0x4700c4], 0
push ebx
push esi
je 0x414691
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
push 0x11
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
xor esi, esi
call ebx
test ax, ax
jns 0x4146cb
mov esi, 8
push 2
call ebx
test ax, ax
jns 0x4146d7
or esi, 1
push 1
call ebx
test ax, ax
jns 0x4146e3
or esi, 2
push 0x10
call ebx
test ax, ax
jns 0x4146ef
or esi, 4
push 0x12
call ebx
test ax, ax
jns 0x4146fb
or esi, 0x20
lea edx, [esp + 0x20]
mov eax, edi
mov word [esp + 0x2e], si
call fcn.00411610
test eax, eax
jne 0x414684
mov esi, dword [0x4700c0]
xor ebx, ebx
cmp esi, ebx
je 0x414763
mov dword [0x4700c0], ebx
mov dword [0x4700c8], ebx
jmp 0x414730
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 6
call edx
mov esi, dword [esi + 0x14]
cmp esi, ebx
jne 0x414730
cmp dword [edi + 0xa4], ebx
je 0x414785
mov eax, dword [edi + 0xa0]
push ebx
push ebx
push 0x41c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0xa4], ebx
test dword [edi + 0x18], 0x8000000
je 0x414993
mov ecx, dword [edi + 0x78]
push ecx
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x414993
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
mov esi, 3
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.ui::Rect.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [vtable.ui::Rect.0]
test al, al
je 0x4147e4
lea eax, [esi + 0xa]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x28]
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x24]
sub ecx, 6
push edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], esi
call eax
test al, al
je 0x414821
mov eax, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x28]
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x24]
sub ecx, esi
push edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call eax
test al, al
je 0x41485d
mov eax, 0xe
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x28]
mov ecx, dword [edi + 0x10]
mov eax, dword [esp + 0x24]
sub ecx, 6
push edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call eax
test al, al
je 0x41489a
mov eax, 0xa
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov eax, dword [esp + 0x28]
sub ecx, esi
sub edx, 6
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x24]
push eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call eax
test al, al
je 0x4148dc
mov eax, 0xb
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x28]
mov ecx, dword [edi + 0x10]
mov eax, dword [esp + 0x24]
sub ecx, esi
push edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call eax
test al, al
je 0x414918
mov eax, 0x10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x28]
sub ecx, esi
sub edx, 6
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x24]
push eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], esi
call eax
test al, al
je 0x41495a
mov eax, 0xf
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov eax, dword [esp + 0x28]
sub ecx, esi
sub edx, esi
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x24]
push eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call eax
test al, al
mov eax, 0x11
jne 0x414998
mov eax, 2
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8