Function at 0x470c60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5515e0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x84], edi
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x471087
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp + 8]
call fcn.00416ab0
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
push eax
push dword [ebp + 8]
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
movups xmm0, xmmword [ebp - 0x40]
push dword [ebp + 8]
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_GetDC]
push 0x5a
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, 0xd
cmp eax, 0x60
je 0x470d20
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x597168]
divsd xmm0, qword [0x597170]
addsd xmm0, qword [0x597138]
cvttsd2si esi, xmm0
cmp byte [ebp + 0xc], 0
je 0x470d35
mov eax, 0xfffffffc
sub eax, esi
add dword [ebp - 0x38], eax
sub dword [ebp - 0x28], esi
jmp 0x470d3e
lea eax, [esi + 4]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x471048
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ValidateRect]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00416930
mov byte [ebp - 4], 3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetParent]
push dword [ebp + 8]
push dword [ebp - 0x70]
push 0x135
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [edi], 0
mov dword [ebp - 0x7c], eax
je 0x470da6
push dword [edi + 4]
push dword [ebp - 0x70]
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x8c]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x70]
movlpd qword [ebp - 0x8c], xmm0
call dword [sym.imp.GDI32.dll_GetBrushOrgEx]
mov eax, dword [ebp - 0x8c]
push 0
push dword [ebp - 0x88]
sub eax, esi
push eax
push dword [ebp - 0x70]
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
push dword [ebp - 0x7c]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_FillRect]
push 0
push 0
push 0x31
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 8]
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x71], 0
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x470e35
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x71], 1
movzx eax, byte [ebp + 0x10]
movups xmm0, xmmword [ebp - 0x40]
mov esi, dword [ebp - 0x78]
shl eax, 0x11
add eax, 0x10
movups xmmword [ebp - 0x20], xmm0
cmp dword [esi - 4], 1
mov dword [ebp - 0x80], eax
jle 0x470e64
push dword [esi - 0xc]
lea ecx, [ebp - 0x78]
call fcn.004124b0
mov esi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x80]
push 0
or eax, 0x400
push eax
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push esi
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_DrawTextExW]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x470e9c
mov ecx, eax
sub ecx, dword [ebp - 0x1c]
add dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
cmp byte [ebp + 0xc], 0
je 0x470ec3
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
sub edi, edx
sub edi, dword [ebp - 0x40]
add edi, dword [ebp - 0x38]
mov eax, edi
sub eax, dword [ebp - 0x20]
add edx, eax
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x84]
mov dword [ebp - 0x18], edx
cmp dword [esi - 4], 1
jle 0x470ed7
push dword [esi - 0xc]
lea ecx, [ebp - 0x78]
call fcn.004124b0
mov esi, dword [ebp - 0x78]
push 0
push dword [ebp - 0x80]
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push esi
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_DrawTextExW]
cmp byte [ebp - 0x71], 0
je 0x470efe
push dword [ebp - 0x7c]
push dword [ebp - 0x70]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dl, byte [edi + 8]
mov ecx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
test dl, dl
jne 0x470f23
push 9
call ecx
mov ecx, 0x8000
test cx, ax
mov ecx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
seta dl
mov byte [edi + 8], dl
mov al, byte [edi + 9]
test al, al
jne 0x470f7a
push 0x26
call ecx
mov ecx, 0x8000
test cx, ax
ja 0x470f72
push 0x28
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
ja 0x470f72
push 0x25
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
ja 0x470f72
push 0x27
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
ja 0x470f72
xor al, al
jmp 0x470f74
mov al, 1
mov dl, byte [edi + 8]
mov byte [edi + 9], al
test dl, dl
jne 0x470f86
test al, al
je 0x47103a
mov edi, dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, edi
jne 0x47103a
movups xmm1, xmmword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov edx, edi
sub edx, dword [ebp - 0x2c]
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd ecx, xmm0
movaps xmm0, xmm1
movups xmmword [ebp - 0x50], xmm1
psrldq xmm0, 4
mov dword [ebp - 0x14], ecx
movd eax, xmm0
psrldq xmm1, 0xc
sub ecx, eax
movd eax, xmm1
cmp ecx, edx
cmovg eax, edi
sub edi, eax
mov dword [ebp - 0x7c], eax
xor eax, eax
test edi, edi
mov edi, dword [ebp - 0x48]
setg al
xor ecx, ecx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x2c]
test eax, eax
mov eax, dword [ebp - 0x50]
setg cl
sub eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x84], ecx
test eax, eax
mov eax, dword [ebp - 0x28]
setg dl
sub eax, edi
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x4c]
setg cl
sub eax, dword [ebp - 0x84]
sub dword [ebp - 0x50], edx
add edi, ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x48], edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00416880
jmp 0x47104b
mov esi, dword [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47106a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004126a0
int3