Function at 0x413950
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
cmp dword [0x52a8c0], 0
push ebx
push esi
je 0x413971
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 0x4139ab
mov esi, 8
push 2
call ebx
test ax, ax
jns 0x4139b7
or esi, 1
push 1
call ebx
test ax, ax
jns 0x4139c3
or esi, 2
push 0x10
call ebx
test ax, ax
jns 0x4139cf
or esi, 4
push 0x12
call ebx
test ax, ax
jns 0x4139db
or esi, 0x20
lea edx, [esp + 0x20]
mov eax, edi
mov word [esp + 0x2e], si
call fcn.004153f0
test eax, eax
jne 0x413964
mov esi, dword [0x52a8bc]
xor ebx, ebx
cmp esi, ebx
je 0x413a43
mov dword [0x52a8bc], ebx
mov dword [0x52a8c4], ebx
jmp 0x413a10
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 0x413a10
cmp dword [edi + 0xa4], ebx
je 0x413a65
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 0x413c6f
mov ecx, dword [edi + 0x78]
push ecx
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x413c6f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
mov esi, 5
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 0x413ac4
lea eax, [esi + 8]
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 + 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 0x413b00
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 0x413b3c
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, esi
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 0x413b78
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, esi
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 0x413bb9
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 0x413bf5
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, esi
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 0x413c36
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 0x413c74
mov eax, 2
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8